From 807213d38460779870ad2807be781c4996ec54c9 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Mon, 16 Mar 2026 15:17:01 +0100 Subject: [PATCH] Stop tracking generated files Run make generate in CI lint and test jobs since generated files are now gitignored. Also include Relay codegen for frontend apps in the generate target. Signed-off-by: Bryan Frimin --- .github/workflows/make.yaml | 2 + .gitignore | 4 + .goreleaser.yaml | 2 +- GNUmakefile | 24 +- ...tyStatementDialogCreateMutation.graphql.ts | 274 - ...tyStatementDialogDeleteMutation.graphql.ts | 132 - ...plicabilityStatementDialogQuery.graphql.ts | 352 - ...tyStatementDialogUpdateMutation.graphql.ts | 123 - .../core/AssetGraphCreateMutation.graphql.ts | 323 - .../core/AssetGraphDeleteMutation.graphql.ts | 132 - .../core/AssetGraphListQuery.graphql.ts | 404 - .../core/AssetGraphNodeQuery.graphql.ts | 320 - .../core/AssetGraphUpdateMutation.graphql.ts | 242 - .../core/AssetsListQuery.graphql.ts | 463 - .../core/AssetsPageFragment.graphql.ts | 380 - .../core/AuditGraphCreateMutation.graphql.ts | 276 - .../core/AuditGraphDeleteMutation.graphql.ts | 132 - .../AuditGraphDeleteReportMutation.graphql.ts | 153 - .../core/AuditGraphListQuery.graphql.ts | 337 - .../core/AuditGraphNodeQuery.graphql.ts | 332 - .../core/AuditGraphUpdateMutation.graphql.ts | 194 - .../AuditGraphUploadReportMutation.graphql.ts | 154 - .../core/AuditSelectFieldQuery.graphql.ts | 199 - .../core/AuditsListQuery.graphql.ts | 382 - .../core/AuditsPageFragment.graphql.ts | 313 - ...liancePageAccessEditDialogQuery.graphql.ts | 465 - ...eAccessEditDialogUpdateMutation.graphql.ts | 148 - ...ompliancePageAccessListFragment.graphql.ts | 208 - ...iancePageAccessListItemFragment.graphql.ts | 140 - .../CompliancePageAccessListQuery.graphql.ts | 363 - .../CompliancePageAccessPageQuery.graphql.ts | 360 - ...CompliancePageAuditListFragment.graphql.ts | 116 - ...PageAuditListItem_auditFragment.graphql.ts | 94 - ...ListItem_compliancePageFragment.graphql.ts | 48 - ...m_updateAuditVisibilityMutation.graphql.ts | 184 - .../CompliancePageAuditsPageQuery.graphql.ts | 229 - .../CompliancePageBrandPageQuery.graphql.ts | 420 - ...ncePageBrandPage_updateMutation.graphql.ts | 123 - ...pliancePageDocumentListFragment.graphql.ts | 124 - ...ListItem_compliancePageFragment.graphql.ts | 48 - ...cumentListItem_documentFragment.graphql.ts | 128 - ...stItem_updateVisibilityMutation.graphql.ts | 220 - ...ompliancePageDocumentsPageQuery.graphql.ts | 270 - ...ompliancePageDomainCardFragment.graphql.ts | 71 - ...pliancePageDomainDialogFragment.graphql.ts | 112 - .../CompliancePageDomainPageQuery.graphql.ts | 257 - ...ernalUrlsSection_createMutation.graphql.ts | 144 - ...ernalUrlsSection_deleteMutation.graphql.ts | 92 - ...UrlsSection_trustCenterFragment.graphql.ts | 233 - ...Section_trustCenterRefetchQuery.graphql.ts | 309 - ...ernalUrlsSection_updateMutation.graphql.ts | 132 - .../CompliancePageFileListFragment.graphql.ts | 173 - ...pliancePageFileListItemMutation.graphql.ts | 199 - ...ListItem_compliancePageFragment.graphql.ts | 48 - ...cePageFileListItem_fileFragment.graphql.ts | 111 - .../CompliancePageFilesPageQuery.graphql.ts | 327 - ...workList_compliancePageFragment.graphql.ts | 252 - ...List_compliancePageRefetchQuery.graphql.ts | 323 - ...ageFrameworkList_createMutation.graphql.ts | 119 - ...ageFrameworkList_deleteMutation.graphql.ts | 92 - ...rameworkList_updateRankMutation.graphql.ts | 114 - .../core/CompliancePageLayoutQuery.graphql.ts | 164 - ...cePageMailingListDeleteMutation.graphql.ts | 132 - ...mpliancePageMailingListFragment.graphql.ts | 234 - ...pliancePageMailingListPageQuery.graphql.ts | 401 - ...tPage_updateMailingListMutation.graphql.ts | 114 - .../CompliancePageMailingListQuery.graphql.ts | 275 - ...ompliancePageNDASectionFragment.graphql.ts | 99 - ...CompliancePageOverviewPageQuery.graphql.ts | 313 - ...liancePageReferenceListFragment.graphql.ts | 209 - ...cePageReferenceListItemFragment.graphql.ts | 110 - ...ompliancePageReferenceListQuery.graphql.ts | 336 - ...mpliancePageReferencesPageQuery.graphql.ts | 349 - ...pliancePageSlackSectionFragment.graphql.ts | 130 - ...liancePageStatusSectionFragment.graphql.ts | 98 - ...cePageUpdatesListDeleteMutation.graphql.ts | 132 - ...mpliancePageUpdatesListFragment.graphql.ts | 218 - .../CompliancePageUpdatesListQuery.graphql.ts | 263 - ...ompliancePageVendorListFragment.graphql.ts | 93 - ...iancePageVendorListItemMutation.graphql.ts | 196 - ...geVendorListItem_vendorFragment.graphql.ts | 81 - .../CompliancePageVendorsPageQuery.graphql.ts | 196 - .../core/ComplianceReportListQuery.graphql.ts | 383 - ...eUpdateFormDialogCreateMutation.graphql.ts | 193 - ...eUpdateFormDialogUpdateMutation.graphql.ts | 140 - ...lImprovementGraphCreateMutation.graphql.ts | 275 - ...lImprovementGraphDeleteMutation.graphql.ts | 132 - ...tinualImprovementGraphListQuery.graphql.ts | 336 - ...tinualImprovementGraphNodeQuery.graphql.ts | 308 - ...lImprovementGraphUpdateMutation.graphql.ts | 194 - ...ntinualImprovementsPageFragment.graphql.ts | 290 - ...ualImprovementsPageRefetchQuery.graphql.ts | 344 - ...reateAuditDialogFrameworksQuery.graphql.ts | 172 - .../CreateContactDialogMutation.graphql.ts | 248 - .../CreateDocumentDialogMutation.graphql.ts | 401 - ...ateEvidenceDialogUploadMutation.graphql.ts | 248 - ...eateMeetingDialogCreateMutation.graphql.ts | 224 - ...ateRiskAssessmentDialogMutation.graphql.ts | 225 - .../CreateServiceDialogMutation.graphql.ts | 228 - ...teOfApplicabilityDialogMutation.graphql.ts | 273 - .../core/DataListQuery.graphql.ts | 445 - .../core/DataPageFragment.graphql.ts | 354 - .../core/DatumGraphCreateMutation.graphql.ts | 297 - .../core/DatumGraphDeleteMutation.graphql.ts | 132 - .../core/DatumGraphListQuery.graphql.ts | 383 - .../core/DatumGraphNodeQuery.graphql.ts | 317 - .../core/DatumGraphUpdateMutation.graphql.ts | 216 - ...ssociateAgreementDialogMutation.graphql.ts | 92 - ...pliancePageDomainDialogMutation.graphql.ts | 92 - ...ompliancePageFileDialogMutation.graphql.ts | 132 - ...aPrivacyAgreementDialogMutation.graphql.ts | 92 - ...ctionsDropdown_documentFragment.graphql.ts | 124 - ...ActionsDropdown_versionFragment.graphql.ts | 73 - ...Dropdownn_exportVersionMutation.graphql.ts | 95 - .../DocumentControlListFragment.graphql.ts | 235 - .../core/DocumentControlListQuery.graphql.ts | 363 - ...ntrolList_attachControlMutation.graphql.ts | 216 - ...ntrolList_detachControlMutation.graphql.ts | 133 - .../core/DocumentControlsPageQuery.graphql.ts | 263 - .../DocumentDescriptionPageQuery.graphql.ts | 316 - ...raphBulkDeleteDocumentsMutation.graphql.ts | 115 - ...raphBulkExportDocumentsMutation.graphql.ts | 95 - ...ocumentGraphDeleteDraftMutation.graphql.ts | 132 - .../DocumentGraphDeleteMutation.graphql.ts | 132 - ...endSigningNotificationsMutation.graphql.ts | 92 - .../DocumentLayoutDrawerMutation.graphql.ts | 186 - ...ntLayoutDrawer_documentFragment.graphql.ts | 123 - ...entLayoutDrawer_versionFragment.graphql.ts | 84 - .../core/DocumentLayoutQuery.graphql.ts | 709 - ...ntLayout_publishVersionMutation.graphql.ts | 106 - .../core/DocumentListFragment.graphql.ts | 270 - .../core/DocumentListItemFragment.graphql.ts | 281 - ...DocumentListItem_deleteMutation.graphql.ts | 132 - .../core/DocumentRowFragment.graphql.ts | 84 - ...cumentSignatureListItemFragment.graphql.ts | 102 - ...istItem_cancelSignatureMutation.graphql.ts | 132 - .../DocumentSignatureListQuery.graphql.ts | 337 - ...entSignatureList_peopleFragment.graphql.ts | 118 - ...ntSignatureList_versionFragment.graphql.ts | 219 - ...laceholder_organizationFragment.graphql.ts | 48 - ...aturePlaceholder_personFragment.graphql.ts | 58 - ...holder_requestSignatureMutation.graphql.ts | 184 - ...turePlaceholder_versionFragment.graphql.ts | 51 - .../DocumentSignaturesPageQuery.graphql.ts | 603 - .../core/DocumentTitleFormFragment.graphql.ts | 64 - .../core/DocumentTitleFormMutation.graphql.ts | 163 - ...entVersionsDropdownItemFragment.graphql.ts | 75 - ...cumentVersionsDropdownMenuQuery.graphql.ts | 383 - .../core/DocumentsListQuery.graphql.ts | 550 - .../core/DocumentsPageQuery.graphql.ts | 566 - ...ssociateAgreementDialogMutation.graphql.ts | 139 - ...ompliancePageFileDialogMutation.graphql.ts | 199 - ...EditContactDialogUpdateMutation.graphql.ts | 192 - ...EditControlDialogUpdateMutation.graphql.ts | 123 - ...aPrivacyAgreementDialogMutation.graphql.ts | 139 - ...EditServiceDialogUpdateMutation.graphql.ts | 178 - ...ctronicSignatureSectionFragment.graphql.ts | 105 - ...ntSignaturePageDocumentFragment.graphql.ts | 139 - ...rePageExportSignablePDFMutation.graphql.ts | 92 - ...loyeeDocumentSignaturePageQuery.graphql.ts | 217 - ...cumentSignaturePageSignMutation.graphql.ts | 114 - .../EmployeeDocumentsPageQuery.graphql.ts | 247 - .../core/EvidenceGraphFileQuery.graphql.ts | 189 - .../core/FormRiskDialogMutation.graphql.ts | 271 - ...ormRiskDialogUpdateRiskMutation.graphql.ts | 221 - ...workControlDialogCreateMutation.graphql.ts | 216 - .../FrameworkControlDialogFragment.graphql.ts | 74 - ...workControlDialogUpdateMutation.graphql.ts | 166 - ...kControlPageAttachAuditMutation.graphql.ts | 216 - ...ntrolPageAttachDocumentMutation.graphql.ts | 249 - ...meworkControlPageAttachMutation.graphql.ts | 202 - ...rolPageAttachObligationMutation.graphql.ts | 228 - ...ntrolPageAttachSnapshotMutation.graphql.ts | 216 - ...ontrolPageDeleteControlMutation.graphql.ts | 132 - ...kControlPageDetachAuditMutation.graphql.ts | 133 - ...ntrolPageDetachDocumentMutation.graphql.ts | 133 - ...meworkControlPageDetachMutation.graphql.ts | 133 - ...rolPageDetachObligationMutation.graphql.ts | 133 - ...ntrolPageDetachSnapshotMutation.graphql.ts | 133 - ...tailPageExportFrameworkMutation.graphql.ts | 95 - .../FrameworkDetailPageFragment.graphql.ts | 212 - .../FrameworkFormDialogMutation.graphql.ts | 243 - ...ameworkFormDialogUpdateMutation.graphql.ts | 123 - .../FrameworkGraphControlNodeQuery.graphql.ts | 1091 - .../FrameworkGraphDeleteMutation.graphql.ts | 132 - .../core/FrameworkGraphListQuery.graphql.ts | 364 - .../core/FrameworkGraphNodeQuery.graphql.ts | 282 - .../FrameworksPageCardFragment.graphql.ts | 102 - .../FrameworksPageImportMutation.graphql.ts | 242 - .../ImportAssessmentDialogMutation.graphql.ts | 570 - .../LinkControlDialogLinkMutation.graphql.ts | 153 - .../core/LinkControlDialogQuery.graphql.ts | 352 - ...LinkControlDialogUnlinkMutation.graphql.ts | 92 - .../core/LinkedAuditsCardFragment.graphql.ts | 80 - .../LinkedAuditsDialogFragment.graphql.ts | 241 - .../core/LinkedAuditsDialogQuery.graphql.ts | 259 - ...inkedAuditsDialogQuery_fragment.graphql.ts | 332 - .../LinkedControlsCardFragment.graphql.ts | 79 - ...nkedControlsDialogControlsQuery.graphql.ts | 351 - .../LinkedControlsDialogFragment.graphql.ts | 248 - .../core/LinkedControlsDialogQuery.graphql.ts | 253 - .../LinkedDocumentsCardFragment.graphql.ts | 118 - .../LinkedDocumentsDialogFragment.graphql.ts | 223 - .../LinkedDocumentsDialogQuery.graphql.ts | 245 - ...edDocumentsDialogQuery_fragment.graphql.ts | 318 - .../LinkedMeasuresCardFragment.graphql.ts | 59 - .../LinkedObligationsCardFragment.graphql.ts | 88 - ...LinkedObligationsDialogFragment.graphql.ts | 252 - .../LinkedObligationsDialogQuery.graphql.ts | 271 - ...ObligationsDialogQuery_fragment.graphql.ts | 344 - .../core/LinkedRisksCardFragment.graphql.ts | 66 - .../core/LinkedRisksDialogQuery.graphql.ts | 190 - .../LinkedSnapshotsCardFragment.graphql.ts | 75 - .../LinkedSnapshotsDialogFragment.graphql.ts | 239 - .../LinkedSnapshotsDialogQuery.graphql.ts | 259 - ...edSnapshotsDialogQuery_fragment.graphql.ts | 332 - ...atesOfApplicabilityCardFragment.graphql.ts | 99 - ...tatesOfApplicabilityDialogQuery.graphql.ts | 172 - ...easureControlsTabAttachMutation.graphql.ts | 216 - ...MeasureControlsTabControlsQuery.graphql.ts | 389 - ...easureControlsTabDetachMutation.graphql.ts | 133 - .../MeasureControlsTabFragment.graphql.ts | 263 - ...easureDetailPageTasksCountQuery.graphql.ts | 143 - ...asureEvidencesTabDeleteMutation.graphql.ts | 132 - .../MeasureEvidencesTabFragment.graphql.ts | 276 - ...reEvidencesTabFragment_evidence.graphql.ts | 110 - .../core/MeasureEvidencesTabQuery.graphql.ts | 389 - ...MeasureFormDialogCreateMutation.graphql.ts | 215 - ...easureFormDialogMeasureFragment.graphql.ts | 75 - .../MeasureGraphDeleteMutation.graphql.ts | 132 - .../core/MeasureGraphListQuery.graphql.ts | 307 - .../core/MeasureGraphNodeQuery.graphql.ts | 697 - .../MeasureGraphUpdateMutation.graphql.ts | 167 - .../MeasureRisksTabCreateMutation.graphql.ts | 209 - .../MeasureRisksTabDetachMutation.graphql.ts | 133 - .../core/MeasureRisksTabFragment.graphql.ts | 183 - .../core/MeasureTasksTabQuery.graphql.ts | 425 - .../core/MeasuresPageFragment.graphql.ts | 203 - .../MeasuresPageImportMutation.graphql.ts | 184 - ...eetingDetailPageMeetingFragment.graphql.ts | 120 - .../MeetingGraphCreateMutation.graphql.ts | 210 - .../MeetingGraphDeleteMutation.graphql.ts | 115 - .../core/MeetingGraphListQuery.graphql.ts | 331 - .../core/MeetingGraphNodeQuery.graphql.ts | 188 - .../MeetingGraphUpdateMutation.graphql.ts | 157 - .../core/MeetingsListQuery.graphql.ts | 383 - .../core/MeetingsPageListFragment.graphql.ts | 249 - .../core/MeetingsPageRowFragment.graphql.ts | 98 - ...tingsPage_UpdateSummaryMutation.graphql.ts | 114 - ...pliancePageDomainDialogMutation.graphql.ts | 214 - ...cePageFileDialog_createMutation.graphql.ts | 250 - ...ncePageSubscriberDialogMutation.graphql.ts | 201 - .../NonconformitiesPageFragment.graphql.ts | 322 - ...NonconformitiesPageRefetchQuery.graphql.ts | 370 - ...onconformityGraphCreateMutation.graphql.ts | 380 - ...onconformityGraphDeleteMutation.graphql.ts | 132 - .../NonconformityGraphListQuery.graphql.ts | 362 - .../NonconformityGraphNodeQuery.graphql.ts | 349 - ...onconformityGraphUpdateMutation.graphql.ts | 250 - .../ObligationGraphCreateMutation.graphql.ts | 302 - .../ObligationGraphDeleteMutation.graphql.ts | 132 - .../core/ObligationGraphListQuery.graphql.ts | 341 - .../core/ObligationGraphNodeQuery.graphql.ts | 338 - .../ObligationGraphUpdateMutation.graphql.ts | 221 - .../core/ObligationsPageFragment.graphql.ts | 294 - .../ObligationsPageRefetchQuery.graphql.ts | 349 - .../PeopleGraphPaginatedFragment.graphql.ts | 330 - .../core/PeopleGraphPaginatedQuery.graphql.ts | 340 - .../core/PeopleGraphQuery.graphql.ts | 206 - .../core/PeopleListQuery.graphql.ts | 426 - ...ssingActivitiesPageDPIAFragment.graphql.ts | 237 - ...gActivitiesPageDPIARefetchQuery.graphql.ts | 297 - ...vitiesPageExportDPIAPDFMutation.graphql.ts | 96 - ...ActivitiesPageExportPDFMutation.graphql.ts | 96 - ...ivitiesPageExportTIAPDFMutation.graphql.ts | 96 - ...rocessingActivitiesPageFragment.graphql.ts | 274 - ...ssingActivitiesPageRefetchQuery.graphql.ts | 332 - ...essingActivitiesPageTIAFragment.graphql.ts | 236 - ...ngActivitiesPageTIARefetchQuery.graphql.ts | 297 - ...ActivityGraphCreateDPIAMutation.graphql.ts | 253 - ...singActivityGraphCreateMutation.graphql.ts | 446 - ...gActivityGraphCreateTIAMutation.graphql.ts | 252 - ...ActivityGraphDeleteDPIAMutation.graphql.ts | 92 - ...singActivityGraphDeleteMutation.graphql.ts | 132 - ...gActivityGraphDeleteTIAMutation.graphql.ts | 92 - ...rocessingActivityGraphListQuery.graphql.ts | 535 - ...rocessingActivityGraphNodeQuery.graphql.ts | 695 - ...ActivityGraphUpdateDPIAMutation.graphql.ts | 167 - ...singActivityGraphUpdateMutation.graphql.ts | 365 - ...gActivityGraphUpdateTIAMutation.graphql.ts | 166 - .../PublishDocumentsDialogMutation.graphql.ts | 367 - ...ightsRequestGraphCreateMutation.graphql.ts | 259 - ...ightsRequestGraphDeleteMutation.graphql.ts | 132 - .../RightsRequestGraphListQuery.graphql.ts | 290 - .../RightsRequestGraphNodeQuery.graphql.ts | 273 - ...ightsRequestGraphUpdateMutation.graphql.ts | 178 - .../RightsRequestsPageFragment.graphql.ts | 242 - .../RightsRequestsPageRefetchQuery.graphql.ts | 284 - .../RiskControlsTabControlsQuery.graphql.ts | 351 - .../core/RiskControlsTabFragment.graphql.ts | 250 - .../RiskDocumentsTabCreateMutation.graphql.ts | 249 - .../RiskDocumentsTabDetachMutation.graphql.ts | 133 - .../core/RiskDocumentsTabFragment.graphql.ts | 155 - .../core/RiskGraphDeleteMutation.graphql.ts | 132 - .../core/RiskGraphFragment.graphql.ts | 385 - .../core/RiskGraphListQuery.graphql.ts | 404 - .../core/RiskGraphNodeQuery.graphql.ts | 888 - .../RiskMeasuresTabCreateMutation.graphql.ts | 202 - .../RiskMeasuresTabDetachMutation.graphql.ts | 133 - .../core/RiskMeasuresTabFragment.graphql.ts | 155 - ...iskObligationsTabCreateMutation.graphql.ts | 228 - ...iskObligationsTabDetachMutation.graphql.ts | 133 - .../RiskObligationsTabFragment.graphql.ts | 155 - .../core/RiskOverviewTabFragment.graphql.ts | 66 - .../core/RisksListQuery.graphql.ts | 482 - .../core/SendUpdateDialogMutation.graphql.ts | 138 - ...ignatureDocumentsDialogMutation.graphql.ts | 128 - .../core/SnapshotBannerQuery.graphql.ts | 155 - ...napshotFormDialogCreateMutation.graphql.ts | 208 - .../SnapshotGraphCreateMutation.graphql.ts | 194 - .../SnapshotGraphDeleteMutation.graphql.ts | 132 - .../core/SnapshotGraphListQuery.graphql.ts | 282 - .../core/SnapshotGraphNodeQuery.graphql.ts | 184 - .../core/SnapshotsPageFragment.graphql.ts | 191 - ...bilityControlsTabDeleteMutation.graphql.ts | 132 - ...pplicabilityControlsTabFragment.graphql.ts | 317 - ...cabilityControlsTabRefetchQuery.graphql.ts | 370 - ...abilityDetailPageDeleteMutation.graphql.ts | 132 - ...abilityDetailPageExportMutation.graphql.ts | 92 - ...eOfApplicabilityDetailPageQuery.graphql.ts | 478 - ...abilityDetailPageUpdateMutation.graphql.ts | 171 - ...fApplicabilityRowDeleteMutation.graphql.ts | 132 - ...StateOfApplicabilityRowFragment.graphql.ts | 93 - ...atesOfApplicabilityPageFragment.graphql.ts | 235 - ...pplicabilityPagePaginationQuery.graphql.ts | 384 - .../StatesOfApplicabilityPageQuery.graphql.ts | 325 - .../TaskFormDialogCreateMutation.graphql.ts | 249 - .../core/TaskFormDialogFragment.graphql.ts | 115 - .../TaskFormDialogUpdateMutation.graphql.ts | 201 - .../core/TaskGraphQuery.graphql.ts | 350 - .../core/TasksCardDeleteMutation.graphql.ts | 132 - .../core/TasksCard_TaskRowFragment.graphql.ts | 155 - .../core/TasksPageFragment.graphql.ts | 261 - .../core/TasksPageFragment_query.graphql.ts | 423 - ...rustCenterAccessTokenGraphQuery.graphql.ts | 159 - ...ustCenterGraphDeleteNDAMutation.graphql.ts | 121 - .../TrustCenterGraphUpdateMutation.graphql.ts | 122 - ...ustCenterGraphUploadNDAMutation.graphql.ts | 123 - ...terReferenceGraphCreateMutation.graphql.ts | 254 - ...terReferenceGraphDeleteMutation.graphql.ts | 132 - ...terReferenceGraphUpdateMutation.graphql.ts | 194 - ...eferenceGraphUpdateRankMutation.graphql.ts | 118 - ...dateVersionDialogCreateMutation.graphql.ts | 256 - .../UpdateVersionDialogFragment.graphql.ts | 166 - ...dateVersionDialogUpdateMutation.graphql.ts | 114 - ...ssociateAgreementDialogMutation.graphql.ts | 149 - ...dComplianceReportDialogMutation.graphql.ts | 295 - ...aPrivacyAgreementDialogMutation.graphql.ts | 149 - ...mplianceTabDeleteReportMutation.graphql.ts | 132 - .../VendorComplianceTabFragment.graphql.ts | 239 - ...dorComplianceTabFragment_report.graphql.ts | 117 - .../core/VendorContactsListQuery.graphql.ts | 370 - ...ontactsTabDeleteContactMutation.graphql.ts | 132 - .../core/VendorContactsTabFragment.graphql.ts | 253 - ...ndorContactsTabFragment_contact.graphql.ts | 102 - .../core/VendorGraphCreateMutation.graphql.ts | 247 - .../core/VendorGraphDeleteMutation.graphql.ts | 132 - .../core/VendorGraphListQuery.graphql.ts | 407 - .../core/VendorGraphNodeQuery.graphql.ts | 1024 - .../VendorGraphPaginatedFragment.graphql.ts | 379 - .../core/VendorGraphSelectQuery.graphql.ts | 188 - ...inessAssociateAgreementFragment.graphql.ts | 115 - ...TabDataPrivacyAgreementFragment.graphql.ts | 115 - ...VendorRiskAssessmentTabFragment.graphql.ts | 229 - ...ssessmentTabFragment_assessment.graphql.ts | 84 - .../VendorRiskAssessmentTabQuery.graphql.ts | 351 - .../core/VendorServicesListQuery.graphql.ts | 356 - ...ervicesTabDeleteServiceMutation.graphql.ts | 132 - .../core/VendorServicesTabFragment.graphql.ts | 253 - ...ndorServicesTabFragment_service.graphql.ts | 86 - .../core/VendorsListQuery.graphql.ts | 467 - .../core/VersionActionsFragment.graphql.ts | 50 - .../core/VersionRowFragment.graphql.ts | 66 - .../core/WebhooksSettingsPageQuery.graphql.ts | 292 - ...ooksSettingsPage_createMutation.graphql.ts | 204 - ...ooksSettingsPage_deleteMutation.graphql.ts | 132 - ...ebhooksSettingsPage_eventsQuery.graphql.ts | 249 - ...SettingsPage_signingSecretQuery.graphql.ts | 124 - ...ooksSettingsPage_updateMutation.graphql.ts | 132 - .../usePaginatedMeasuresFragment.graphql.ts | 239 - .../core/usePaginatedMeasuresQuery.graphql.ts | 259 - ...PaginatedMeasuresQuery_fragment.graphql.ts | 332 - .../core/useRiskFormFragment.graphql.ts | 133 - .../core/useVendorFormFragment.graphql.ts | 196 - .../core/useVendorFormMutation.graphql.ts | 285 - .../iam/APIKeysPageQuery.graphql.ts | 209 - .../ActivateAccountPageMutation.graphql.ts | 100 - .../iam/AssumePageMutation.graphql.ts | 136 - .../iam/AssumePageQuery.graphql.ts | 108 - .../iam/ConnectorListFragment.graphql.ts | 53 - .../iam/CreatePasswordPageMutation.graphql.ts | 93 - .../EditSAMLConfigurationFormQuery.graphql.ts | 273 - ...onfigurationForm_updateMutation.graphql.ts | 159 - .../iam/ForgotPasswordPageMutation.graphql.ts | 92 - .../iam/GeneralSettingsPageQuery.graphql.ts | 227 - ...eralSettingsPage_deleteMutation.graphql.ts | 132 - ...orkspaceConnectorDeleteMutation.graphql.ts | 93 - ...oogleWorkspaceConnectorFragment.graphql.ts | 91 - ...nnectorUpdateSCIMBridgeMutation.graphql.ts | 115 - .../iam/MembershipCardFragment.graphql.ts | 89 - ...ershipCard_organizationFragment.graphql.ts | 58 - ...ershipsDropdownMenuItemFragment.graphql.ts | 68 - ...wnMenuItem_organizationFragment.graphql.ts | 58 - .../MembershipsDropdownMenuQuery.graphql.ts | 305 - ...psDropdown_organizationFragment.graphql.ts | 42 - .../iam/MembershipsPageQuery.graphql.ts | 365 - .../NewOrganizationPageMutation.graphql.ts | 115 - ...onfigurationForm_createMutation.graphql.ts | 239 - .../iam/OrganizationFormFragment.graphql.ts | 116 - ...rm_deleteHorizontalLogoMutation.graphql.ts | 113 - ...OrganizationForm_updateMutation.graphql.ts | 168 - .../iam/PasswordSignInPageMutation.graphql.ts | 107 - .../iam/PeopleListFragment.graphql.ts | 244 - ...PeopleListFragment_RefetchQuery.graphql.ts | 513 - .../iam/PeopleListItemFragment.graphql.ts | 290 - .../PeopleListItem_inviteMutation.graphql.ts | 183 - .../PeopleListItem_removeMutation.graphql.ts | 133 - ...opleListItem_updateRoleMutation.graphql.ts | 116 - .../iam/PeoplePageQuery.graphql.ts | 478 - .../iam/PersonFormFragment.graphql.ts | 146 - .../iam/PersonForm_createMutation.graphql.ts | 413 - .../iam/PersonForm_updateMutation.graphql.ts | 111 - .../iam/PersonPageQuery.graphql.ts | 255 - .../iam/PersonPage_removeMutation.graphql.ts | 93 - ...ersonalAPIKeyListCreateMutation.graphql.ts | 193 - .../iam/PersonalAPIKeyListFragment.graphql.ts | 150 - .../iam/PersonalAPIKeyRowFragment.graphql.ts | 109 - .../PersonalAPIKeyRowRefetchQuery.graphql.ts | 179 - ...ersonalAPIKeyRow_revokeMutation.graphql.ts | 132 - .../iam/ResetPasswordPageMutation.graphql.ts | 93 - .../SAMLConfigurationListFragment.graphql.ts | 208 - ...onfigurationList_deleteMutation.graphql.ts | 133 - .../iam/SAMLSettingsPageQuery.graphql.ts | 300 - ...SCIMConfigurationCreateMutation.graphql.ts | 156 - ...SCIMConfigurationDeleteMutation.graphql.ts | 116 - .../iam/SCIMConfigurationFragment.graphql.ts | 109 - ...gurationRegenerateTokenMutation.graphql.ts | 138 - .../iam/SCIMEventListFragment.graphql.ts | 201 - .../iam/SCIMEventListItemFragment.graphql.ts | 90 - .../SCIMEventListPaginationQuery.graphql.ts | 318 - ...CreateSCIMConfigurationMutation.graphql.ts | 120 - .../iam/SCIMSettingsPageQuery.graphql.ts | 407 - .../iam/SSOSignInPageQuery.graphql.ts | 83 - .../iam/SidebarFragment.graphql.ts | 314 - .../iam/SignUpPageMutation.graphql.ts | 107 - .../iam/VerifyEmailPageMutation.graphql.ts | 92 - .../iam/ViewerDropdownFragment.graphql.ts | 64 - .../ViewerDropdownSignOutMutation.graphql.ts | 74 - .../iam/ViewerLayoutQuery.graphql.ts | 120 - ...iewerMembershipDropdownFragment.graphql.ts | 98 - ...mbershipDropdownSignOutMutation.graphql.ts | 74 - .../ViewerMembershipLayoutQuery.graphql.ts | 585 - .../AuditRowDownloadMutation.graphql.ts | 92 - .../__generated__/AuditRowFragment.graphql.ts | 140 - .../AuditRow_requestAccessMutation.graphql.ts | 179 - .../DocumentRowDownloadMutation.graphql.ts | 92 - .../DocumentRowFragment.graphql.ts | 85 - ...cumentRow_requestAccessMutation.graphql.ts | 154 - .../FrameworkBadgeFragment.graphql.ts | 66 - ...ebar_requestAllAccessesMutation.graphql.ts | 87 - ..._subscribeToMailingListMutation.graphql.ts | 111 - ...ubscribeFromMailingListMutation.graphql.ts | 96 - ...stCenterFileRowDownloadMutation.graphql.ts | 92 - .../TrustCenterFileRowFragment.graphql.ts | 85 - ...erFileRow_requestAccessMutation.graphql.ts | 154 - .../VendorRowFragment.graphql.ts | 67 - ...questAccessCallback_allMutation.graphql.ts | 87 - ...AccessCallback_documentMutation.graphql.ts | 154 - ...uestAccessCallback_fileMutation.graphql.ts | 154 - ...stAccessCallback_reportMutation.graphql.ts | 179 - ...ceptElectronicSignatureMutation.graphql.ts | 114 - .../__generated__/NDAPageFragment.graphql.ts | 116 - .../__generated__/NDAPageQuery.graphql.ts | 242 - ...APageRecordSigningEventMutation.graphql.ts | 94 - .../NDAPageRefetchQuery.graphql.ts | 166 - .../OverviewPageFragment.graphql.ts | 294 - .../__generated__/UpdatesPageQuery.graphql.ts | 146 - .../__generated__/AuthLayoutQuery.graphql.ts | 108 - .../ConnectPageMutation.graphql.ts | 93 - .../__generated__/ConnectPageQuery.graphql.ts | 128 - .../FullNamePageMutation.graphql.ts | 92 - .../VerifyMagicLinkPageMutation.graphql.ts | 92 - ...TrustGraphCurrentDocumentsQuery.graphql.ts | 351 - .../TrustGraphCurrentQuery.graphql.ts | 876 - .../TrustGraphCurrentVendorsQuery.graphql.ts | 237 - pkg/mailman/service.go | 102 +- pkg/server/api/connect/v1/schema/.gitignore | 3 + pkg/server/api/connect/v1/schema/doc.go | 17 + pkg/server/api/connect/v1/schema/schema.go | 23075 --- pkg/server/api/connect/v1/types/types.go | 666 - pkg/server/api/console/v1/schema.graphql | 4 +- pkg/server/api/console/v1/schema/.gitignore | 3 + pkg/server/api/console/v1/schema/doc.go | 17 + pkg/server/api/console/v1/schema/schema.go | 109415 --------------- pkg/server/api/console/v1/types/types.go | 2830 - pkg/server/api/console/v1/v1_resolver.go | 36 +- pkg/server/api/mcp/v1/server/.gitignore | 3 + pkg/server/api/mcp/v1/server/doc.go | 17 + pkg/server/api/mcp/v1/server/server.go | 1718 - pkg/server/api/mcp/v1/types/types.go | 3890 - pkg/server/api/trust/v1/schema/.gitignore | 3 + pkg/server/api/trust/v1/schema/doc.go | 17 + pkg/server/api/trust/v1/schema/schema.go | 17177 --- pkg/server/api/trust/v1/types/types.go | 379 - pkg/server/api/trust/v1/v1_resolver.go | 12 +- pkg/server/gqlutils/errors.go | 8 - 516 files changed, 134 insertions(+), 263935 deletions(-) delete mode 100644 apps/console/src/__generated__/core/AddApplicabilityStatementDialogCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AddApplicabilityStatementDialogDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AddApplicabilityStatementDialogQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AddApplicabilityStatementDialogUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AssetGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AssetGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AssetGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AssetGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AssetGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AssetsListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AssetsPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AuditGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AuditGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AuditGraphDeleteReportMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AuditGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AuditGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AuditGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AuditGraphUploadReportMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AuditSelectFieldQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AuditsListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/AuditsPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAccessEditDialogQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAccessEditDialogUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAccessListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAccessListItemFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAccessListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAccessPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAuditListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAuditListItem_auditFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAuditListItem_compliancePageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAuditListItem_updateAuditVisibilityMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageAuditsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageBrandPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageBrandPage_updateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageDocumentListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageDocumentListItem_compliancePageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageDocumentListItem_documentFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageDocumentListItem_updateVisibilityMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageDocumentsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageDomainCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageDomainDialogFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageDomainPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_createMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_deleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_trustCenterFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_trustCenterRefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_updateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageFileListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageFileListItemMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageFileListItem_compliancePageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageFileListItem_fileFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageFilesPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageFrameworkList_compliancePageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageFrameworkList_compliancePageRefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageFrameworkList_createMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageFrameworkList_deleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageFrameworkList_updateRankMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageLayoutQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageMailingListDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageMailingListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageMailingListPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageMailingListPage_updateMailingListMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageMailingListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageNDASectionFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageOverviewPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageReferenceListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageReferenceListItemFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageReferenceListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageReferencesPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageSlackSectionFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageStatusSectionFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageUpdatesListDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageUpdatesListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageUpdatesListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageVendorListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageVendorListItemMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageVendorListItem_vendorFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CompliancePageVendorsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ComplianceReportListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ComplianceUpdateFormDialogCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ComplianceUpdateFormDialogUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ContinualImprovementGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ContinualImprovementGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ContinualImprovementGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ContinualImprovementGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ContinualImprovementGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ContinualImprovementsPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ContinualImprovementsPageRefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CreateAuditDialogFrameworksQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CreateContactDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CreateDocumentDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CreateEvidenceDialogUploadMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CreateMeetingDialogCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CreateRiskAssessmentDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CreateServiceDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/CreateStateOfApplicabilityDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DataListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DataPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DatumGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DatumGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DatumGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DatumGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DatumGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DeleteBusinessAssociateAgreementDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DeleteCompliancePageDomainDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DeleteCompliancePageFileDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DeleteDataPrivacyAgreementDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentActionsDropdown_documentFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentActionsDropdown_versionFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentActionsDropdownn_exportVersionMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentControlListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentControlListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentControlList_attachControlMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentControlList_detachControlMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentControlsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentDescriptionPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentGraphBulkDeleteDocumentsMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentGraphBulkExportDocumentsMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentGraphDeleteDraftMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentGraphSendSigningNotificationsMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentLayoutDrawerMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentLayoutDrawer_documentFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentLayoutDrawer_versionFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentLayoutQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentLayout_publishVersionMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentListItemFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentListItem_deleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentRowFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentSignatureListItemFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentSignatureListItem_cancelSignatureMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentSignatureListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentSignatureList_peopleFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentSignatureList_versionFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentSignaturePlaceholder_organizationFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentSignaturePlaceholder_personFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentSignaturePlaceholder_requestSignatureMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentSignaturePlaceholder_versionFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentSignaturesPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentTitleFormFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentTitleFormMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentVersionsDropdownItemFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentVersionsDropdownMenuQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentsListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/DocumentsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EditBusinessAssociateAgreementDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EditCompliancePageFileDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EditContactDialogUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EditControlDialogUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EditDataPrivacyAgreementDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EditServiceDialogUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ElectronicSignatureSectionFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EmployeeDocumentSignaturePageDocumentFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EmployeeDocumentSignaturePageExportSignablePDFMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EmployeeDocumentSignaturePageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EmployeeDocumentSignaturePageSignMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EmployeeDocumentsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/EvidenceGraphFileQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FormRiskDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FormRiskDialogUpdateRiskMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlDialogCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlDialogFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlDialogUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageAttachAuditMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageAttachDocumentMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageAttachMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageAttachObligationMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageAttachSnapshotMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageDeleteControlMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageDetachAuditMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageDetachDocumentMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageDetachMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageDetachObligationMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkControlPageDetachSnapshotMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkDetailPageExportFrameworkMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkDetailPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkFormDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkFormDialogUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkGraphControlNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworkGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworksPageCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/FrameworksPageImportMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ImportAssessmentDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkControlDialogLinkMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkControlDialogQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkControlDialogUnlinkMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedAuditsCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedAuditsDialogFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedAuditsDialogQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedAuditsDialogQuery_fragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedControlsCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedControlsDialogControlsQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedControlsDialogFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedControlsDialogQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedDocumentsCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedDocumentsDialogFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedDocumentsDialogQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedDocumentsDialogQuery_fragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedMeasuresCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedObligationsCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedObligationsDialogFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedObligationsDialogQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedObligationsDialogQuery_fragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedRisksCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedRisksDialogQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedSnapshotsCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedSnapshotsDialogFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedSnapshotsDialogQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedSnapshotsDialogQuery_fragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedStatesOfApplicabilityCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/LinkedStatesOfApplicabilityDialogQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureControlsTabAttachMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureControlsTabControlsQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureControlsTabDetachMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureControlsTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureDetailPageTasksCountQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureEvidencesTabDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureEvidencesTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureEvidencesTabFragment_evidence.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureEvidencesTabQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureFormDialogCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureFormDialogMeasureFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureRisksTabCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureRisksTabDetachMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureRisksTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasureTasksTabQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasuresPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeasuresPageImportMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeetingDetailPageMeetingFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeetingGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeetingGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeetingGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeetingGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeetingGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeetingsListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeetingsPageListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeetingsPageRowFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/MeetingsPage_UpdateSummaryMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/NewCompliancePageDomainDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/NewCompliancePageFileDialog_createMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/NewCompliancePageSubscriberDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/NonconformitiesPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/NonconformitiesPageRefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/NonconformityGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/NonconformityGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/NonconformityGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/NonconformityGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/NonconformityGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ObligationGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ObligationGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ObligationGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ObligationGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ObligationGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ObligationsPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ObligationsPageRefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/PeopleGraphPaginatedFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/PeopleGraphPaginatedQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/PeopleGraphQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/PeopleListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivitiesPageDPIAFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivitiesPageDPIARefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivitiesPageExportDPIAPDFMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivitiesPageExportPDFMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivitiesPageExportTIAPDFMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivitiesPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivitiesPageRefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivitiesPageTIAFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivitiesPageTIARefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphCreateDPIAMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphCreateTIAMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphDeleteDPIAMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphDeleteTIAMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphUpdateDPIAMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/ProcessingActivityGraphUpdateTIAMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/PublishDocumentsDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RightsRequestGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RightsRequestGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RightsRequestGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RightsRequestGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RightsRequestGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RightsRequestsPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RightsRequestsPageRefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskControlsTabControlsQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskControlsTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskDocumentsTabCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskDocumentsTabDetachMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskDocumentsTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskGraphFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskMeasuresTabCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskMeasuresTabDetachMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskMeasuresTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskObligationsTabCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskObligationsTabDetachMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskObligationsTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RiskOverviewTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/RisksListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/SendUpdateDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/SignatureDocumentsDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/SnapshotBannerQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/SnapshotFormDialogCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/SnapshotGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/SnapshotGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/SnapshotGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/SnapshotGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/SnapshotsPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StateOfApplicabilityControlsTabDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StateOfApplicabilityControlsTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StateOfApplicabilityControlsTabRefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StateOfApplicabilityDetailPageDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StateOfApplicabilityDetailPageExportMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StateOfApplicabilityDetailPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StateOfApplicabilityDetailPageUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StateOfApplicabilityRowDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StateOfApplicabilityRowFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StatesOfApplicabilityPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StatesOfApplicabilityPagePaginationQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/StatesOfApplicabilityPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TaskFormDialogCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TaskFormDialogFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TaskFormDialogUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TaskGraphQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TasksCardDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TasksCard_TaskRowFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TasksPageFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TasksPageFragment_query.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TrustCenterAccessTokenGraphQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TrustCenterGraphDeleteNDAMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TrustCenterGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TrustCenterGraphUploadNDAMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TrustCenterReferenceGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TrustCenterReferenceGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TrustCenterReferenceGraphUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/TrustCenterReferenceGraphUpdateRankMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/UpdateVersionDialogCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/UpdateVersionDialogFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/UpdateVersionDialogUpdateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/UploadBusinessAssociateAgreementDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/UploadComplianceReportDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/UploadDataPrivacyAgreementDialogMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorComplianceTabDeleteReportMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorComplianceTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorComplianceTabFragment_report.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorContactsListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorContactsTabDeleteContactMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorContactsTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorContactsTabFragment_contact.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorGraphCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorGraphDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorGraphListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorGraphNodeQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorGraphPaginatedFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorGraphSelectQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorOverviewTabBusinessAssociateAgreementFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorOverviewTabDataPrivacyAgreementFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorRiskAssessmentTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorRiskAssessmentTabFragment_assessment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorRiskAssessmentTabQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorServicesListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorServicesTabDeleteServiceMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorServicesTabFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorServicesTabFragment_service.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VendorsListQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VersionActionsFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/VersionRowFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/WebhooksSettingsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/WebhooksSettingsPage_createMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/WebhooksSettingsPage_deleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/WebhooksSettingsPage_eventsQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/WebhooksSettingsPage_signingSecretQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/WebhooksSettingsPage_updateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/core/usePaginatedMeasuresFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/usePaginatedMeasuresQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/core/usePaginatedMeasuresQuery_fragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/useRiskFormFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/useVendorFormFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/core/useVendorFormMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/APIKeysPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/ActivateAccountPageMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/AssumePageMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/AssumePageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/ConnectorListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/CreatePasswordPageMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/EditSAMLConfigurationFormQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/EditSAMLConfigurationForm_updateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/ForgotPasswordPageMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/GeneralSettingsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/GeneralSettingsPage_deleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/GoogleWorkspaceConnectorDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/GoogleWorkspaceConnectorFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/GoogleWorkspaceConnectorUpdateSCIMBridgeMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/MembershipCardFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/MembershipCard_organizationFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/MembershipsDropdownMenuItemFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/MembershipsDropdownMenuItem_organizationFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/MembershipsDropdownMenuQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/MembershipsDropdown_organizationFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/MembershipsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/NewOrganizationPageMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/NewSAMLConfigurationForm_createMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/OrganizationFormFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/OrganizationForm_deleteHorizontalLogoMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/OrganizationForm_updateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PasswordSignInPageMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PeopleListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PeopleListFragment_RefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PeopleListItemFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PeopleListItem_inviteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PeopleListItem_removeMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PeopleListItem_updateRoleMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PeoplePageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PersonFormFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PersonForm_createMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PersonForm_updateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PersonPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PersonPage_removeMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PersonalAPIKeyListCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PersonalAPIKeyListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PersonalAPIKeyRowFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PersonalAPIKeyRowRefetchQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/PersonalAPIKeyRow_revokeMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/ResetPasswordPageMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SAMLConfigurationListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SAMLConfigurationList_deleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SAMLSettingsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SCIMConfigurationCreateMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SCIMConfigurationDeleteMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SCIMConfigurationFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SCIMConfigurationRegenerateTokenMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SCIMEventListFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SCIMEventListItemFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SCIMEventListPaginationQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SCIMSettingsPageCreateSCIMConfigurationMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SCIMSettingsPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SSOSignInPageQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SidebarFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/SignUpPageMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/VerifyEmailPageMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/ViewerDropdownFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/ViewerDropdownSignOutMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/ViewerLayoutQuery.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/ViewerMembershipDropdownFragment.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/ViewerMembershipDropdownSignOutMutation.graphql.ts delete mode 100644 apps/console/src/__generated__/iam/ViewerMembershipLayoutQuery.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/AuditRowDownloadMutation.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/AuditRowFragment.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/AuditRow_requestAccessMutation.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/DocumentRowDownloadMutation.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/DocumentRowFragment.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/DocumentRow_requestAccessMutation.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/FrameworkBadgeFragment.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/OrganizationSidebar_requestAllAccessesMutation.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/OrganizationSidebar_subscribeToMailingListMutation.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/OrganizationSidebar_unsubscribeFromMailingListMutation.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/TrustCenterFileRowDownloadMutation.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/TrustCenterFileRowFragment.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/TrustCenterFileRow_requestAccessMutation.graphql.ts delete mode 100644 apps/trust/src/components/__generated__/VendorRowFragment.graphql.ts delete mode 100644 apps/trust/src/hooks/__generated__/useRequestAccessCallback_allMutation.graphql.ts delete mode 100644 apps/trust/src/hooks/__generated__/useRequestAccessCallback_documentMutation.graphql.ts delete mode 100644 apps/trust/src/hooks/__generated__/useRequestAccessCallback_fileMutation.graphql.ts delete mode 100644 apps/trust/src/hooks/__generated__/useRequestAccessCallback_reportMutation.graphql.ts delete mode 100644 apps/trust/src/pages/__generated__/NDAPageAcceptElectronicSignatureMutation.graphql.ts delete mode 100644 apps/trust/src/pages/__generated__/NDAPageFragment.graphql.ts delete mode 100644 apps/trust/src/pages/__generated__/NDAPageQuery.graphql.ts delete mode 100644 apps/trust/src/pages/__generated__/NDAPageRecordSigningEventMutation.graphql.ts delete mode 100644 apps/trust/src/pages/__generated__/NDAPageRefetchQuery.graphql.ts delete mode 100644 apps/trust/src/pages/__generated__/OverviewPageFragment.graphql.ts delete mode 100644 apps/trust/src/pages/__generated__/UpdatesPageQuery.graphql.ts delete mode 100644 apps/trust/src/pages/auth/__generated__/AuthLayoutQuery.graphql.ts delete mode 100644 apps/trust/src/pages/auth/__generated__/ConnectPageMutation.graphql.ts delete mode 100644 apps/trust/src/pages/auth/__generated__/ConnectPageQuery.graphql.ts delete mode 100644 apps/trust/src/pages/auth/__generated__/FullNamePageMutation.graphql.ts delete mode 100644 apps/trust/src/pages/auth/__generated__/VerifyMagicLinkPageMutation.graphql.ts delete mode 100644 apps/trust/src/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts delete mode 100644 apps/trust/src/queries/__generated__/TrustGraphCurrentQuery.graphql.ts delete mode 100644 apps/trust/src/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql.ts create mode 100644 pkg/server/api/connect/v1/schema/.gitignore create mode 100644 pkg/server/api/connect/v1/schema/doc.go delete mode 100644 pkg/server/api/connect/v1/schema/schema.go delete mode 100644 pkg/server/api/connect/v1/types/types.go create mode 100644 pkg/server/api/console/v1/schema/.gitignore create mode 100644 pkg/server/api/console/v1/schema/doc.go delete mode 100644 pkg/server/api/console/v1/schema/schema.go delete mode 100644 pkg/server/api/console/v1/types/types.go create mode 100644 pkg/server/api/mcp/v1/server/.gitignore create mode 100644 pkg/server/api/mcp/v1/server/doc.go delete mode 100644 pkg/server/api/mcp/v1/server/server.go delete mode 100644 pkg/server/api/mcp/v1/types/types.go create mode 100644 pkg/server/api/trust/v1/schema/.gitignore create mode 100644 pkg/server/api/trust/v1/schema/doc.go delete mode 100644 pkg/server/api/trust/v1/schema/schema.go delete mode 100644 pkg/server/api/trust/v1/types/types.go diff --git a/.github/workflows/make.yaml b/.github/workflows/make.yaml index f90b7bde2..bd8900695 100644 --- a/.github/workflows/make.yaml +++ b/.github/workflows/make.yaml @@ -152,6 +152,7 @@ jobs: with: name: "build-artifacts" - run: "chmod +x bin/probod" + - run: "make generate" - name: "Run go vet" run: "go vet ./..." - name: "Run golangci-lint" @@ -196,6 +197,7 @@ jobs: with: name: "build-artifacts" - run: "chmod +x bin/probod" + - run: "make generate" - run: "make test" env: GOTESTSUM_JUNITFILE: "junit.xml" diff --git a/.gitignore b/.gitignore index cdf9b92cf..1ce21b760 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,7 @@ sbom-docker.json *.crt *.key compose/keycloak/probo-realm.json + +# Generated files (codegen) +__generated__/ +pkg/server/api/*/v1/types/types.go diff --git a/.goreleaser.yaml b/.goreleaser.yaml index f6546bf7d..15db012ae 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -5,7 +5,7 @@ project_name: probod before: hooks: - - make @probo/emails @probo/console @probo/trust + - make generate @probo/emails @probo/console @probo/trust builds: - id: probod diff --git a/GNUmakefile b/GNUmakefile index 1c63f3d84..c838f1e8a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -62,7 +62,7 @@ all: build lint: vet go-lint npm-lint .PHONY: vet -vet: @probo/emails +vet: generate apps/console/dist/index.html apps/trust/dist/index.html @probo/emails $(GO_VET) ./... .PHONY: npm-lint @@ -70,10 +70,11 @@ npm-lint: $(NPM) run lint .PHONY: go-lint -go-lint: +go-lint: generate $(GOLINTCMD) run ./... .PHONY: test +test: generate test: CGO_ENABLED=1 test: ## Run tests with race detection and coverage (usage: make test [MODULE=./pkg/some/module]) $(GO_TEST) $(if $(MODULE),$(MODULE),$(shell $(GO) list ./... | grep -v /e2e/)) @@ -190,15 +191,29 @@ bin/prb: .PHONY: @probo/console @probo/console: NODE_ENV=production @probo/console: + $(NPM) --workspace $@ run relay $(NPM) --workspace $@ run check $(NPM) --workspace $@ run build .PHONY: @probo/trust @probo/trust: NODE_ENV=production @probo/trust: + $(NPM) --workspace $@ run relay $(NPM) --workspace $@ run check $(NPM) --workspace $@ run build +.PHONY: generate +generate: pkg/server/api/connect/v1/schema/schema.go \ + pkg/server/api/connect/v1/types/types.go \ + pkg/server/api/console/v1/schema/schema.go \ + pkg/server/api/console/v1/types/types.go \ + pkg/server/api/trust/v1/schema/schema.go \ + pkg/server/api/trust/v1/types/types.go \ + pkg/server/api/mcp/v1/server/server.go \ + pkg/server/api/mcp/v1/types/types.go + $(NPM) --workspace @probo/console run relay + $(NPM) --workspace @probo/trust run relay + pkg/server/api/connect/v1/schema/schema.go \ pkg/server/api/connect/v1/types/types.go \ pkg/server/api/connect/v1/v1_resolver.go: pkg/server/api/connect/v1/gqlgen.yaml pkg/server/api/connect/v1/schema.graphql @@ -243,6 +258,11 @@ clean: ## Clean the project (node_modules and build artifacts) $(RM) -rf coverage.out coverage.html coverage-e2e.out coverage-e2e.html coverage-combined.out coverage-combined.html $(RM) -rf coverage/ $(RM) -rf compose/keycloak/certs/cert.pem compose/keycloak/certs/private-key.pem compose/keycloak/probo-realm.json + $(RM) -f pkg/server/api/connect/v1/schema/schema.go pkg/server/api/connect/v1/types/types.go + $(RM) -f pkg/server/api/console/v1/schema/schema.go pkg/server/api/console/v1/types/types.go + $(RM) -f pkg/server/api/trust/v1/schema/schema.go pkg/server/api/trust/v1/types/types.go + $(RM) -f pkg/server/api/mcp/v1/server/server.go pkg/server/api/mcp/v1/types/types.go + find apps -type d -name __generated__ -exec $(RM) -rf {} + .PHONY: stack-up stack-up: compose/pebble/certs/rootCA.pem compose/keycloak/probo-realm.json ## Start the docker stack as a deamon diff --git a/apps/console/src/__generated__/core/AddApplicabilityStatementDialogCreateMutation.graphql.ts b/apps/console/src/__generated__/core/AddApplicabilityStatementDialogCreateMutation.graphql.ts deleted file mode 100644 index f413d8aad..000000000 --- a/apps/console/src/__generated__/core/AddApplicabilityStatementDialogCreateMutation.graphql.ts +++ /dev/null @@ -1,274 +0,0 @@ -/** - * @generated SignedSource<<4f5d3e4c56b185607505d82119176eb5>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateApplicabilityStatementInput = { - applicability: boolean; - controlId: string; - justification?: string | null | undefined; - stateOfApplicabilityId: string; -}; -export type AddApplicabilityStatementDialogCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateApplicabilityStatementInput; -}; -export type AddApplicabilityStatementDialogCreateMutation$data = { - readonly createApplicabilityStatement: { - readonly applicabilityStatementEdge: { - readonly node: { - readonly applicability: boolean; - readonly control: { - readonly bestPractice: boolean; - readonly contractual: boolean; - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string; - readonly organization: { - readonly id: string; - } | null | undefined; - readonly regulatory: boolean; - readonly riskAssessment: boolean; - readonly sectionTitle: string; - }; - readonly id: string; - readonly justification: string; - }; - }; - }; -}; -export type AddApplicabilityStatementDialogCreateMutation = { - response: AddApplicabilityStatementDialogCreateMutation$data; - variables: AddApplicabilityStatementDialogCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatementEdge", - "kind": "LinkedField", - "name": "applicabilityStatementEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "applicability", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "justification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "control", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "bestPractice", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "regulatory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractual", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "riskAssessment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "AddApplicabilityStatementDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateApplicabilityStatementPayload", - "kind": "LinkedField", - "name": "createApplicabilityStatement", - "plural": false, - "selections": [ - (v5/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "AddApplicabilityStatementDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateApplicabilityStatementPayload", - "kind": "LinkedField", - "name": "createApplicabilityStatement", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "appendEdge", - "key": "", - "kind": "LinkedHandle", - "name": "applicabilityStatementEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "df832d2f8d480328039fdcf85bf9187c", - "id": null, - "metadata": {}, - "name": "AddApplicabilityStatementDialogCreateMutation", - "operationKind": "mutation", - "text": "mutation AddApplicabilityStatementDialogCreateMutation(\n $input: CreateApplicabilityStatementInput!\n) {\n createApplicabilityStatement(input: $input) {\n applicabilityStatementEdge {\n node {\n id\n applicability\n justification\n control {\n id\n sectionTitle\n name\n bestPractice\n regulatory\n contractual\n riskAssessment\n framework {\n id\n name\n }\n organization {\n id\n }\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "ddf10370932006893422c8cfb47e5587"; - -export default node; diff --git a/apps/console/src/__generated__/core/AddApplicabilityStatementDialogDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/AddApplicabilityStatementDialogDeleteMutation.graphql.ts deleted file mode 100644 index 8fbbe8ca2..000000000 --- a/apps/console/src/__generated__/core/AddApplicabilityStatementDialogDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteApplicabilityStatementInput = { - applicabilityStatementId: string; -}; -export type AddApplicabilityStatementDialogDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteApplicabilityStatementInput; -}; -export type AddApplicabilityStatementDialogDeleteMutation$data = { - readonly deleteApplicabilityStatement: { - readonly deletedApplicabilityStatementId: string; - }; -}; -export type AddApplicabilityStatementDialogDeleteMutation = { - response: AddApplicabilityStatementDialogDeleteMutation$data; - variables: AddApplicabilityStatementDialogDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedApplicabilityStatementId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "AddApplicabilityStatementDialogDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteApplicabilityStatementPayload", - "kind": "LinkedField", - "name": "deleteApplicabilityStatement", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "AddApplicabilityStatementDialogDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteApplicabilityStatementPayload", - "kind": "LinkedField", - "name": "deleteApplicabilityStatement", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedApplicabilityStatementId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "33d1b54d91487d7c3fcbc8ff8bcb68ce", - "id": null, - "metadata": {}, - "name": "AddApplicabilityStatementDialogDeleteMutation", - "operationKind": "mutation", - "text": "mutation AddApplicabilityStatementDialogDeleteMutation(\n $input: DeleteApplicabilityStatementInput!\n) {\n deleteApplicabilityStatement(input: $input) {\n deletedApplicabilityStatementId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "965c5b50e3a2a077fb7dc287b70026f1"; - -export default node; diff --git a/apps/console/src/__generated__/core/AddApplicabilityStatementDialogQuery.graphql.ts b/apps/console/src/__generated__/core/AddApplicabilityStatementDialogQuery.graphql.ts deleted file mode 100644 index 6b471de4a..000000000 --- a/apps/console/src/__generated__/core/AddApplicabilityStatementDialogQuery.graphql.ts +++ /dev/null @@ -1,352 +0,0 @@ -/** - * @generated SignedSource<<0a75f5819022ec5555d7c3d8b4098e1c>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type AddApplicabilityStatementDialogQuery$variables = { - organizationId: string; - stateOfApplicabilityId: string; -}; -export type AddApplicabilityStatementDialogQuery$data = { - readonly organization: { - readonly controls?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string; - readonly sectionTitle: string; - }; - }>; - }; - readonly id?: string; - }; - readonly stateOfApplicability: { - readonly applicabilityStatements?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly applicability: boolean; - readonly control: { - readonly id: string; - }; - readonly id: string; - readonly justification: string; - }; - }>; - }; - readonly id?: string; - }; -}; -export type AddApplicabilityStatementDialogQuery = { - response: AddApplicabilityStatementDialogQuery$data; - variables: AddApplicabilityStatementDialogQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "stateOfApplicabilityId" -}, -v2 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "stateOfApplicabilityId" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "kind": "Literal", - "name": "first", - "value": 10000 -}, -v5 = { - "alias": null, - "args": [ - (v4/*: any*/) - ], - "concreteType": "ApplicabilityStatementConnection", - "kind": "LinkedField", - "name": "applicabilityStatements", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatementEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "applicability", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "justification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "control", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "applicabilityStatements(first:10000)" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v8 = { - "alias": null, - "args": [ - (v4/*: any*/), - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v7/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v7/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "controls(first:10000,orderBy:{\"direction\":\"ASC\",\"field\":\"CREATED_AT\"})" -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "AddApplicabilityStatementDialogQuery", - "selections": [ - { - "alias": "stateOfApplicability", - "args": (v2/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v5/*: any*/) - ], - "type": "StateOfApplicability", - "abstractKey": null - } - ], - "storageKey": null - }, - { - "alias": "organization", - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v8/*: any*/) - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "AddApplicabilityStatementDialogQuery", - "selections": [ - { - "alias": "stateOfApplicability", - "args": (v2/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v5/*: any*/) - ], - "type": "StateOfApplicability", - "abstractKey": null - } - ], - "storageKey": null - }, - { - "alias": "organization", - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v8/*: any*/) - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "ac6bc824dd185cea6fe2928f8292eff1", - "id": null, - "metadata": {}, - "name": "AddApplicabilityStatementDialogQuery", - "operationKind": "query", - "text": "query AddApplicabilityStatementDialogQuery(\n $stateOfApplicabilityId: ID!\n $organizationId: ID!\n) {\n stateOfApplicability: node(id: $stateOfApplicabilityId) {\n __typename\n ... on StateOfApplicability {\n id\n applicabilityStatements(first: 10000) {\n edges {\n node {\n id\n applicability\n justification\n control {\n id\n }\n }\n }\n }\n }\n id\n }\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n controls(first: 10000, orderBy: {direction: ASC, field: CREATED_AT}) {\n edges {\n node {\n id\n sectionTitle\n name\n framework {\n id\n name\n }\n }\n }\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "dd10dd30b76ae39eca5953e71f7d2d02"; - -export default node; diff --git a/apps/console/src/__generated__/core/AddApplicabilityStatementDialogUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/AddApplicabilityStatementDialogUpdateMutation.graphql.ts deleted file mode 100644 index be16f101e..000000000 --- a/apps/console/src/__generated__/core/AddApplicabilityStatementDialogUpdateMutation.graphql.ts +++ /dev/null @@ -1,123 +0,0 @@ -/** - * @generated SignedSource<<43adbd5c0838293beac5a5f900fe47bd>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateApplicabilityStatementInput = { - applicability: boolean; - applicabilityStatementId: string; - justification?: string | null | undefined; -}; -export type AddApplicabilityStatementDialogUpdateMutation$variables = { - input: UpdateApplicabilityStatementInput; -}; -export type AddApplicabilityStatementDialogUpdateMutation$data = { - readonly updateApplicabilityStatement: { - readonly applicabilityStatement: { - readonly applicability: boolean; - readonly id: string; - readonly justification: string; - }; - }; -}; -export type AddApplicabilityStatementDialogUpdateMutation = { - response: AddApplicabilityStatementDialogUpdateMutation$data; - variables: AddApplicabilityStatementDialogUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateApplicabilityStatementPayload", - "kind": "LinkedField", - "name": "updateApplicabilityStatement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatement", - "kind": "LinkedField", - "name": "applicabilityStatement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "applicability", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "justification", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AddApplicabilityStatementDialogUpdateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AddApplicabilityStatementDialogUpdateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "b3f6f94a9c59775234d78ac8695211f0", - "id": null, - "metadata": {}, - "name": "AddApplicabilityStatementDialogUpdateMutation", - "operationKind": "mutation", - "text": "mutation AddApplicabilityStatementDialogUpdateMutation(\n $input: UpdateApplicabilityStatementInput!\n) {\n updateApplicabilityStatement(input: $input) {\n applicabilityStatement {\n id\n applicability\n justification\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "8c801c1409e926a39c67b1c20741e501"; - -export default node; diff --git a/apps/console/src/__generated__/core/AssetGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/AssetGraphCreateMutation.graphql.ts deleted file mode 100644 index e3e12ddce..000000000 --- a/apps/console/src/__generated__/core/AssetGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,323 +0,0 @@ -/** - * @generated SignedSource<<00aac6481455fe9181413e7d94c7c58d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type AssetType = "PHYSICAL" | "VIRTUAL"; -export type CreateAssetInput = { - amount: number; - assetType: AssetType; - dataTypesStored: string; - name: string; - organizationId: string; - ownerId: string; - vendorIds?: ReadonlyArray | null | undefined; -}; -export type AssetGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateAssetInput; -}; -export type AssetGraphCreateMutation$data = { - readonly createAsset: { - readonly assetEdge: { - readonly node: { - readonly amount: number; - readonly assetType: AssetType; - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly dataTypesStored: string; - readonly id: string; - readonly name: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly snapshotId: string | null | undefined; - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; - }; - }; -}; -export type AssetGraphCreateMutation = { - response: AssetGraphCreateMutation$data; - variables: AssetGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "concreteType": "AssetEdge", - "kind": "LinkedField", - "name": "assetEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Asset", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "amount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "assetType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataTypesStored", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "AssetGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateAssetPayload", - "kind": "LinkedField", - "name": "createAsset", - "plural": false, - "selections": [ - (v5/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "AssetGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateAssetPayload", - "kind": "LinkedField", - "name": "createAsset", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "appendEdge", - "key": "", - "kind": "LinkedHandle", - "name": "assetEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6e077b7787ccbc473247d102b0540e98", - "id": null, - "metadata": {}, - "name": "AssetGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation AssetGraphCreateMutation(\n $input: CreateAssetInput!\n) {\n createAsset(input: $input) {\n assetEdge {\n node {\n id\n snapshotId\n name\n amount\n assetType\n dataTypesStored\n owner {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n createdAt\n canUpdate: permission(action: \"core:asset:update\")\n canDelete: permission(action: \"core:asset:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "f337be2dfc0f146f33e1b94f65cfc199"; - -export default node; diff --git a/apps/console/src/__generated__/core/AssetGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/AssetGraphDeleteMutation.graphql.ts deleted file mode 100644 index bff31397e..000000000 --- a/apps/console/src/__generated__/core/AssetGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<067da1978a06c9feadeeff5ae6af7b50>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteAssetInput = { - assetId: string; -}; -export type AssetGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteAssetInput; -}; -export type AssetGraphDeleteMutation$data = { - readonly deleteAsset: { - readonly deletedAssetId: string; - }; -}; -export type AssetGraphDeleteMutation = { - response: AssetGraphDeleteMutation$data; - variables: AssetGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedAssetId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "AssetGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteAssetPayload", - "kind": "LinkedField", - "name": "deleteAsset", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "AssetGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteAssetPayload", - "kind": "LinkedField", - "name": "deleteAsset", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedAssetId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "bbda9e3ed8effba4140c130883a59d07", - "id": null, - "metadata": {}, - "name": "AssetGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation AssetGraphDeleteMutation(\n $input: DeleteAssetInput!\n) {\n deleteAsset(input: $input) {\n deletedAssetId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "46b040e435edef42987b5524d823f592"; - -export default node; diff --git a/apps/console/src/__generated__/core/AssetGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/AssetGraphListQuery.graphql.ts deleted file mode 100644 index 29036fe25..000000000 --- a/apps/console/src/__generated__/core/AssetGraphListQuery.graphql.ts +++ /dev/null @@ -1,404 +0,0 @@ -/** - * @generated SignedSource<<589e60013c6742892983123821a83a79>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type AssetGraphListQuery$variables = { - organizationId: string; - snapshotId?: string | null | undefined; -}; -export type AssetGraphListQuery$data = { - readonly node: { - readonly canCreateAsset?: boolean; - readonly " $fragmentSpreads": FragmentRefs<"AssetsPageFragment">; - }; -}; -export type AssetGraphListQuery = { - response: AssetGraphListQuery$data; - variables: AssetGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canCreateAsset", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:create\")" -}, -v3 = [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } -], -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v6 = [ - { - "fields": (v3/*: any*/), - "kind": "ObjectValue", - "name": "filter" - }, - { - "kind": "Literal", - "name": "first", - "value": 10 - } -], -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AssetGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "args": (v3/*: any*/), - "kind": "FragmentSpread", - "name": "AssetsPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AssetGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - (v5/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "AssetConnection", - "kind": "LinkedField", - "name": "assets", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AssetEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Asset", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - (v7/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "amount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "assetType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataTypesStored", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - (v7/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:delete\")" - }, - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v6/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "AssetsPage_assets", - "kind": "LinkedHandle", - "name": "assets" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "d8a4a67f62424bd305fddf0a54599a9a", - "id": null, - "metadata": {}, - "name": "AssetGraphListQuery", - "operationKind": "query", - "text": "query AssetGraphListQuery(\n $organizationId: ID!\n $snapshotId: ID\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateAsset: permission(action: \"core:asset:create\")\n ...AssetsPageFragment_3iomuz\n }\n id\n }\n}\n\nfragment AssetsPageFragment_3iomuz on Organization {\n assets(first: 10, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n amount\n assetType\n dataTypesStored\n owner {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n canUpdate: permission(action: \"core:asset:update\")\n canDelete: permission(action: \"core:asset:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "319c01153f98cf6c927a07cbe6eed98e"; - -export default node; diff --git a/apps/console/src/__generated__/core/AssetGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/AssetGraphNodeQuery.graphql.ts deleted file mode 100644 index 0d5ca2766..000000000 --- a/apps/console/src/__generated__/core/AssetGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,320 +0,0 @@ -/** - * @generated SignedSource<<8a1ec965a1f463c40cc4475b58428c13>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type AssetType = "PHYSICAL" | "VIRTUAL"; -export type VendorCategory = "ANALYTICS" | "CLOUD_MONITORING" | "CLOUD_PROVIDER" | "COLLABORATION" | "CUSTOMER_SUPPORT" | "DATA_STORAGE_AND_PROCESSING" | "DOCUMENT_MANAGEMENT" | "EMPLOYEE_MANAGEMENT" | "ENGINEERING" | "FINANCE" | "IDENTITY_PROVIDER" | "IT" | "MARKETING" | "OFFICE_OPERATIONS" | "OTHER" | "PASSWORD_MANAGEMENT" | "PRODUCT_AND_DESIGN" | "PROFESSIONAL_SERVICES" | "RECRUITING" | "SALES" | "SECURITY" | "VERSION_CONTROL"; -export type AssetGraphNodeQuery$variables = { - assetId: string; -}; -export type AssetGraphNodeQuery$data = { - readonly node: { - readonly amount?: number; - readonly assetType?: AssetType; - readonly canDelete?: boolean; - readonly canUpdate?: boolean; - readonly createdAt?: string; - readonly dataTypesStored?: string; - readonly id?: string; - readonly name?: string; - readonly owner?: { - readonly fullName: string; - readonly id: string; - }; - readonly snapshotId?: string | null | undefined; - readonly updatedAt?: string; - readonly vendors?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly category: VendorCategory; - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; -}; -export type AssetGraphNodeQuery = { - response: AssetGraphNodeQuery$data; - variables: AssetGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "assetId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "assetId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "amount", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "assetType", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataTypesStored", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null -}, -v9 = { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v12 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:update\")" -}, -v13 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AssetGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/) - ], - "type": "Asset", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AssetGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/) - ], - "type": "Asset", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6cc4f590468366f12144c88b15704bac", - "id": null, - "metadata": {}, - "name": "AssetGraphNodeQuery", - "operationKind": "query", - "text": "query AssetGraphNodeQuery(\n $assetId: ID!\n) {\n node(id: $assetId) {\n __typename\n ... on Asset {\n id\n snapshotId\n name\n amount\n assetType\n dataTypesStored\n owner {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n category\n }\n }\n }\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:asset:update\")\n canDelete: permission(action: \"core:asset:delete\")\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "61e648da526c4b332ded50ba1daa3fbf"; - -export default node; diff --git a/apps/console/src/__generated__/core/AssetGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/AssetGraphUpdateMutation.graphql.ts deleted file mode 100644 index f334537ef..000000000 --- a/apps/console/src/__generated__/core/AssetGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,242 +0,0 @@ -/** - * @generated SignedSource<<8fa12501ce4c5a9013357bfa3ee4ff72>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type AssetType = "PHYSICAL" | "VIRTUAL"; -export type UpdateAssetInput = { - amount?: number | null | undefined; - assetType?: AssetType | null | undefined; - dataTypesStored?: string | null | undefined; - id: string; - name?: string | null | undefined; - ownerId?: string | null | undefined; - vendorIds?: ReadonlyArray | null | undefined; -}; -export type AssetGraphUpdateMutation$variables = { - input: UpdateAssetInput; -}; -export type AssetGraphUpdateMutation$data = { - readonly updateAsset: { - readonly asset: { - readonly amount: number; - readonly assetType: AssetType; - readonly dataTypesStored: string; - readonly id: string; - readonly name: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly snapshotId: string | null | undefined; - readonly updatedAt: string; - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; - }; -}; -export type AssetGraphUpdateMutation = { - response: AssetGraphUpdateMutation$data; - variables: AssetGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v3 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateAssetPayload", - "kind": "LinkedField", - "name": "updateAsset", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Asset", - "kind": "LinkedField", - "name": "asset", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "amount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "assetType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataTypesStored", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AssetGraphUpdateMutation", - "selections": (v3/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AssetGraphUpdateMutation", - "selections": (v3/*: any*/) - }, - "params": { - "cacheID": "ee67fc797e7a09d39db357b1b8e68d11", - "id": null, - "metadata": {}, - "name": "AssetGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation AssetGraphUpdateMutation(\n $input: UpdateAssetInput!\n) {\n updateAsset(input: $input) {\n asset {\n id\n snapshotId\n name\n amount\n assetType\n dataTypesStored\n owner {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "65a76cfab2b2fba398cd19e566e3ee33"; - -export default node; diff --git a/apps/console/src/__generated__/core/AssetsListQuery.graphql.ts b/apps/console/src/__generated__/core/AssetsListQuery.graphql.ts deleted file mode 100644 index c0025cb39..000000000 --- a/apps/console/src/__generated__/core/AssetsListQuery.graphql.ts +++ /dev/null @@ -1,463 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type AssetOrderField = "AMOUNT" | "CREATED_AT"; -export type OrderDirection = "ASC" | "DESC"; -export type AssetOrder = { - direction: OrderDirection; - field: AssetOrderField; -}; -export type AssetsListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - orderBy?: AssetOrder | null | undefined; - snapshotId?: string | null | undefined; -}; -export type AssetsListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"AssetsPageFragment">; - }; -}; -export type AssetsListQuery = { - response: AssetsListQuery$data; - variables: AssetsListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "orderBy" -}, -v6 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v8 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v9 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v10 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v11 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v12 = { - "kind": "Variable", - "name": "orderBy", - "variableName": "orderBy" -}, -v13 = { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v15 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v16 = [ - (v8/*: any*/), - (v9/*: any*/), - { - "fields": [ - (v13/*: any*/) - ], - "kind": "ObjectValue", - "name": "filter" - }, - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/) -], -v17 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "AssetsListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/) - ], - "kind": "FragmentSpread", - "name": "AssetsPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "AssetsListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - (v15/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v16/*: any*/), - "concreteType": "AssetConnection", - "kind": "LinkedField", - "name": "assets", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AssetEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Asset", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v15/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - (v17/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "amount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "assetType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataTypesStored", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v15/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v15/*: any*/), - (v17/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:delete\")" - }, - (v14/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v16/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "AssetsPage_assets", - "kind": "LinkedHandle", - "name": "assets" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c0346ed84057ddaf9686c96a9dac21f2", - "id": null, - "metadata": {}, - "name": "AssetsListQuery", - "operationKind": "query", - "text": "query AssetsListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 10\n $last: Int = null\n $orderBy: AssetOrder = null\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...AssetsPageFragment_38J9tm\n id\n }\n}\n\nfragment AssetsPageFragment_38J9tm on Organization {\n assets(first: $first, after: $after, last: $last, before: $before, orderBy: $orderBy, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n amount\n assetType\n dataTypesStored\n owner {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n canUpdate: permission(action: \"core:asset:update\")\n canDelete: permission(action: \"core:asset:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "8c67b88d7d88fa017e97b19790271a4c"; - -export default node; diff --git a/apps/console/src/__generated__/core/AssetsPageFragment.graphql.ts b/apps/console/src/__generated__/core/AssetsPageFragment.graphql.ts deleted file mode 100644 index 189e44173..000000000 --- a/apps/console/src/__generated__/core/AssetsPageFragment.graphql.ts +++ /dev/null @@ -1,380 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type AssetType = "PHYSICAL" | "VIRTUAL"; -import { FragmentRefs } from "relay-runtime"; -export type AssetsPageFragment$data = { - readonly assets: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly amount: number; - readonly assetType: AssetType; - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly dataTypesStored: string; - readonly id: string; - readonly name: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly snapshotId: string | null | undefined; - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "AssetsPageFragment"; -}; -export type AssetsPageFragment$key = { - readonly " $data"?: AssetsPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"AssetsPageFragment">; -}; - -import AssetsListQuery_graphql from './AssetsListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "assets" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "orderBy" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": AssetsListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "AssetsPageFragment", - "selections": [ - { - "alias": "assets", - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } - ], - "kind": "ObjectValue", - "name": "filter" - } - ], - "concreteType": "AssetConnection", - "kind": "LinkedField", - "name": "__AssetsPage_assets_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AssetEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Asset", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "amount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "assetType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataTypesStored", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "8c67b88d7d88fa017e97b19790271a4c"; - -export default node; diff --git a/apps/console/src/__generated__/core/AuditGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/AuditGraphCreateMutation.graphql.ts deleted file mode 100644 index 05c63bf28..000000000 --- a/apps/console/src/__generated__/core/AuditGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,276 +0,0 @@ -/** - * @generated SignedSource<<5da72785f4532d069a59c8bb5f12101d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -export type CreateAuditInput = { - frameworkId: string; - name?: string | null | undefined; - organizationId: string; - state?: AuditState | null | undefined; - trustCenterVisibility?: TrustCenterVisibility | null | undefined; - validFrom?: string | null | undefined; - validUntil?: string | null | undefined; -}; -export type AuditGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateAuditInput; -}; -export type AuditGraphCreateMutation$data = { - readonly createAudit: { - readonly auditEdge: { - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string | null | undefined; - readonly report: { - readonly filename: string; - readonly id: string; - } | null | undefined; - readonly state: AuditState; - readonly validFrom: string | null | undefined; - readonly validUntil: string | null | undefined; - }; - }; - }; -}; -export type AuditGraphCreateMutation = { - response: AuditGraphCreateMutation$data; - variables: AuditGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "auditEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "filename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "AuditGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateAuditPayload", - "kind": "LinkedField", - "name": "createAudit", - "plural": false, - "selections": [ - (v5/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "AuditGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateAuditPayload", - "kind": "LinkedField", - "name": "createAudit", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "auditEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "d5155df01b8fe2fb74b49b953d49aed7", - "id": null, - "metadata": {}, - "name": "AuditGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation AuditGraphCreateMutation(\n $input: CreateAuditInput!\n) {\n createAudit(input: $input) {\n auditEdge {\n node {\n id\n name\n validFrom\n validUntil\n report {\n id\n filename\n }\n state\n framework {\n id\n name\n }\n createdAt\n canUpdate: permission(action: \"core:audit:update\")\n canDelete: permission(action: \"core:audit:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "dcca4ebf33522ad6ef45456612fad03f"; - -export default node; diff --git a/apps/console/src/__generated__/core/AuditGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/AuditGraphDeleteMutation.graphql.ts deleted file mode 100644 index ffeae3355..000000000 --- a/apps/console/src/__generated__/core/AuditGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteAuditInput = { - auditId: string; -}; -export type AuditGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteAuditInput; -}; -export type AuditGraphDeleteMutation$data = { - readonly deleteAudit: { - readonly deletedAuditId: string; - }; -}; -export type AuditGraphDeleteMutation = { - response: AuditGraphDeleteMutation$data; - variables: AuditGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedAuditId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "AuditGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteAuditPayload", - "kind": "LinkedField", - "name": "deleteAudit", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "AuditGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteAuditPayload", - "kind": "LinkedField", - "name": "deleteAudit", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedAuditId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "48906b2f55360bea9a8fc7f0daea34be", - "id": null, - "metadata": {}, - "name": "AuditGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation AuditGraphDeleteMutation(\n $input: DeleteAuditInput!\n) {\n deleteAudit(input: $input) {\n deletedAuditId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e0f3771289e512982adc900199820821"; - -export default node; diff --git a/apps/console/src/__generated__/core/AuditGraphDeleteReportMutation.graphql.ts b/apps/console/src/__generated__/core/AuditGraphDeleteReportMutation.graphql.ts deleted file mode 100644 index 91278b791..000000000 --- a/apps/console/src/__generated__/core/AuditGraphDeleteReportMutation.graphql.ts +++ /dev/null @@ -1,153 +0,0 @@ -/** - * @generated SignedSource<<39afab5f5f832b28f00e6bd7469fa4f3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteAuditReportInput = { - auditId: string; -}; -export type AuditGraphDeleteReportMutation$variables = { - input: DeleteAuditReportInput; -}; -export type AuditGraphDeleteReportMutation$data = { - readonly deleteAuditReport: { - readonly audit: { - readonly id: string; - readonly report: { - readonly createdAt: string; - readonly downloadUrl: string | null | undefined; - readonly filename: string; - readonly id: string; - } | null | undefined; - readonly updatedAt: string; - }; - }; -}; -export type AuditGraphDeleteReportMutation = { - response: AuditGraphDeleteReportMutation$data; - variables: AuditGraphDeleteReportMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteAuditReportPayload", - "kind": "LinkedField", - "name": "deleteAuditReport", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "filename", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "downloadUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AuditGraphDeleteReportMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AuditGraphDeleteReportMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "ebceb2fd2a2ffae09bc1578e37dde7e0", - "id": null, - "metadata": {}, - "name": "AuditGraphDeleteReportMutation", - "operationKind": "mutation", - "text": "mutation AuditGraphDeleteReportMutation(\n $input: DeleteAuditReportInput!\n) {\n deleteAuditReport(input: $input) {\n audit {\n id\n report {\n id\n filename\n downloadUrl\n createdAt\n }\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "4b5e9537b35458eb3daa313ead9ba655"; - -export default node; diff --git a/apps/console/src/__generated__/core/AuditGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/AuditGraphListQuery.graphql.ts deleted file mode 100644 index 334a8de85..000000000 --- a/apps/console/src/__generated__/core/AuditGraphListQuery.graphql.ts +++ /dev/null @@ -1,337 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type AuditGraphListQuery$variables = { - organizationId: string; -}; -export type AuditGraphListQuery$data = { - readonly node: { - readonly canCreateAudit?: boolean; - readonly " $fragmentSpreads": FragmentRefs<"AuditsPageFragment">; - }; -}; -export type AuditGraphListQuery = { - response: AuditGraphListQuery$data; - variables: AuditGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canCreateAudit", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:create\")" -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 10 - } -], -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AuditGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "AuditsPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AuditGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "audits", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - (v6/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v4/*: any*/), - (v6/*: any*/) - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:delete\")" - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "audits(first:10)" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "AuditsPage_audits", - "kind": "LinkedHandle", - "name": "audits" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "947a80a492551d8082ac7f43d88a1692", - "id": null, - "metadata": {}, - "name": "AuditGraphListQuery", - "operationKind": "query", - "text": "query AuditGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateAudit: permission(action: \"core:audit:create\")\n ...AuditsPageFragment\n }\n id\n }\n}\n\nfragment AuditsPageFragment on Organization {\n audits(first: 10) {\n edges {\n node {\n id\n name\n validFrom\n validUntil\n report {\n id\n }\n state\n framework {\n id\n name\n }\n canUpdate: permission(action: \"core:audit:update\")\n canDelete: permission(action: \"core:audit:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "fc989e08b0d6411aac7ca6b1a0125edc"; - -export default node; diff --git a/apps/console/src/__generated__/core/AuditGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/AuditGraphNodeQuery.graphql.ts deleted file mode 100644 index 8db68b70b..000000000 --- a/apps/console/src/__generated__/core/AuditGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,332 +0,0 @@ -/** - * @generated SignedSource<<8ce0dfdad4c98f5fa9fbbd2162a28778>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED"; -export type AuditGraphNodeQuery$variables = { - auditId: string; -}; -export type AuditGraphNodeQuery$data = { - readonly node: { - readonly canDelete?: boolean; - readonly canUpdate?: boolean; - readonly createdAt?: string; - readonly framework?: { - readonly darkLogoURL: string | null | undefined; - readonly id: string; - readonly lightLogoURL: string | null | undefined; - readonly name: string; - }; - readonly id?: string; - readonly name?: string | null | undefined; - readonly organization?: { - readonly id: string; - readonly name: string; - }; - readonly report?: { - readonly createdAt: string; - readonly downloadUrl: string | null | undefined; - readonly filename: string; - readonly id: string; - readonly mimeType: string; - readonly size: number; - } | null | undefined; - readonly reportUrl?: string | null | undefined; - readonly state?: AuditState; - readonly updatedAt?: string; - readonly validFrom?: string | null | undefined; - readonly validUntil?: string | null | undefined; - }; -}; -export type AuditGraphNodeQuery = { - response: AuditGraphNodeQuery$data; - variables: AuditGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "auditId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "auditId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "filename", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mimeType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "downloadUrl", - "storageKey": null - }, - (v6/*: any*/) - ], - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportUrl", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - } - ], - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/) - ], - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v13 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:update\")" -}, -v14 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AuditGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v6/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/) - ], - "type": "Audit", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AuditGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v6/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/) - ], - "type": "Audit", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c9d41c45b625f17ccf291ae2c027a027", - "id": null, - "metadata": {}, - "name": "AuditGraphNodeQuery", - "operationKind": "query", - "text": "query AuditGraphNodeQuery(\n $auditId: ID!\n) {\n node(id: $auditId) {\n __typename\n ... on Audit {\n id\n name\n validFrom\n validUntil\n report {\n id\n filename\n mimeType\n size\n downloadUrl\n createdAt\n }\n reportUrl\n state\n framework {\n id\n name\n lightLogoURL\n darkLogoURL\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:audit:update\")\n canDelete: permission(action: \"core:audit:delete\")\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3195b5564b2cf8a21536ebf89f0f5c82"; - -export default node; diff --git a/apps/console/src/__generated__/core/AuditGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/AuditGraphUpdateMutation.graphql.ts deleted file mode 100644 index d7c95285f..000000000 --- a/apps/console/src/__generated__/core/AuditGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,194 +0,0 @@ -/** - * @generated SignedSource<<1b9fd2fad98545d0e1ca4440a6a8936a>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -export type UpdateAuditInput = { - id: string; - name?: string | null | undefined; - state?: AuditState | null | undefined; - trustCenterVisibility?: TrustCenterVisibility | null | undefined; - validFrom?: string | null | undefined; - validUntil?: string | null | undefined; -}; -export type AuditGraphUpdateMutation$variables = { - input: UpdateAuditInput; -}; -export type AuditGraphUpdateMutation$data = { - readonly updateAudit: { - readonly audit: { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string | null | undefined; - readonly report: { - readonly filename: string; - readonly id: string; - } | null | undefined; - readonly state: AuditState; - readonly updatedAt: string; - readonly validFrom: string | null | undefined; - readonly validUntil: string | null | undefined; - }; - }; -}; -export type AuditGraphUpdateMutation = { - response: AuditGraphUpdateMutation$data; - variables: AuditGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v3 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateAuditPayload", - "kind": "LinkedField", - "name": "updateAudit", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "filename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AuditGraphUpdateMutation", - "selections": (v3/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AuditGraphUpdateMutation", - "selections": (v3/*: any*/) - }, - "params": { - "cacheID": "7257cd170b7441f3ce85966556e00ac3", - "id": null, - "metadata": {}, - "name": "AuditGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation AuditGraphUpdateMutation(\n $input: UpdateAuditInput!\n) {\n updateAudit(input: $input) {\n audit {\n id\n name\n validFrom\n validUntil\n report {\n id\n filename\n }\n state\n framework {\n id\n name\n }\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "7fb5d28c8c5fdffddb1c8926e66965ec"; - -export default node; diff --git a/apps/console/src/__generated__/core/AuditGraphUploadReportMutation.graphql.ts b/apps/console/src/__generated__/core/AuditGraphUploadReportMutation.graphql.ts deleted file mode 100644 index 3a9cd1955..000000000 --- a/apps/console/src/__generated__/core/AuditGraphUploadReportMutation.graphql.ts +++ /dev/null @@ -1,154 +0,0 @@ -/** - * @generated SignedSource<<497a7821f6c5e32068e495ccb8489075>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UploadAuditReportInput = { - auditId: string; - file: any; -}; -export type AuditGraphUploadReportMutation$variables = { - input: UploadAuditReportInput; -}; -export type AuditGraphUploadReportMutation$data = { - readonly uploadAuditReport: { - readonly audit: { - readonly id: string; - readonly report: { - readonly createdAt: string; - readonly downloadUrl: string | null | undefined; - readonly filename: string; - readonly id: string; - } | null | undefined; - readonly updatedAt: string; - }; - }; -}; -export type AuditGraphUploadReportMutation = { - response: AuditGraphUploadReportMutation$data; - variables: AuditGraphUploadReportMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UploadAuditReportPayload", - "kind": "LinkedField", - "name": "uploadAuditReport", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "filename", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "downloadUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AuditGraphUploadReportMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AuditGraphUploadReportMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "05229f6e6fb7e64ceaf93c4bb8f144e6", - "id": null, - "metadata": {}, - "name": "AuditGraphUploadReportMutation", - "operationKind": "mutation", - "text": "mutation AuditGraphUploadReportMutation(\n $input: UploadAuditReportInput!\n) {\n uploadAuditReport(input: $input) {\n audit {\n id\n report {\n id\n filename\n downloadUrl\n createdAt\n }\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "1acff19bbb4a2e0eeca934cc90040eda"; - -export default node; diff --git a/apps/console/src/__generated__/core/AuditSelectFieldQuery.graphql.ts b/apps/console/src/__generated__/core/AuditSelectFieldQuery.graphql.ts deleted file mode 100644 index 3ee7c1593..000000000 --- a/apps/console/src/__generated__/core/AuditSelectFieldQuery.graphql.ts +++ /dev/null @@ -1,199 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED"; -export type AuditSelectFieldQuery$variables = { - organizationId: string; -}; -export type AuditSelectFieldQuery$data = { - readonly organization: { - readonly audits?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string | null | undefined; - readonly state: AuditState; - }; - }>; - }; - }; -}; -export type AuditSelectFieldQuery = { - response: AuditSelectFieldQuery$data; - variables: AuditSelectFieldQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v4 = { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "audits", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "audits(first:100)" - } - ], - "type": "Organization", - "abstractKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AuditSelectFieldQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AuditSelectFieldQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v4/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "aff4976e133c357e4923155693cf55a8", - "id": null, - "metadata": {}, - "name": "AuditSelectFieldQuery", - "operationKind": "query", - "text": "query AuditSelectFieldQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n audits(first: 100) {\n edges {\n node {\n id\n name\n framework {\n id\n name\n }\n state\n }\n }\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "ff187d65a29fe5676b2405cece34383a"; - -export default node; diff --git a/apps/console/src/__generated__/core/AuditsListQuery.graphql.ts b/apps/console/src/__generated__/core/AuditsListQuery.graphql.ts deleted file mode 100644 index eb38e04a5..000000000 --- a/apps/console/src/__generated__/core/AuditsListQuery.graphql.ts +++ /dev/null @@ -1,382 +0,0 @@ -/** - * @generated SignedSource<<22dfddc4b5d6d6bbe1e7069f40316151>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type AuditOrderField = "CREATED_AT" | "STATE" | "VALID_FROM" | "VALID_UNTIL"; -export type OrderDirection = "ASC" | "DESC"; -export type AuditOrder = { - direction: OrderDirection; - field: AuditOrderField; -}; -export type AuditsListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - orderBy?: AuditOrder | null | undefined; -}; -export type AuditsListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"AuditsPageFragment">; - }; -}; -export type AuditsListQuery = { - response: AuditsListQuery$data; - variables: AuditsListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "orderBy" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = [ - { - "kind": "Variable", - "name": "after", - "variableName": "after" - }, - { - "kind": "Variable", - "name": "before", - "variableName": "before" - }, - { - "kind": "Variable", - "name": "first", - "variableName": "first" - }, - { - "kind": "Variable", - "name": "last", - "variableName": "last" - }, - { - "kind": "Variable", - "name": "orderBy", - "variableName": "orderBy" - } -], -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "AuditsListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": (v7/*: any*/), - "kind": "FragmentSpread", - "name": "AuditsPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "AuditsListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - (v9/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "audits", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - (v10/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v9/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v9/*: any*/), - (v10/*: any*/) - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:delete\")" - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v7/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "AuditsPage_audits", - "kind": "LinkedHandle", - "name": "audits" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "01f7bbcd6bbb76d61268e40c7917bc56", - "id": null, - "metadata": {}, - "name": "AuditsListQuery", - "operationKind": "query", - "text": "query AuditsListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 10\n $last: Int = null\n $orderBy: AuditOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...AuditsPageFragment_sdb03\n id\n }\n}\n\nfragment AuditsPageFragment_sdb03 on Organization {\n audits(first: $first, after: $after, last: $last, before: $before, orderBy: $orderBy) {\n edges {\n node {\n id\n name\n validFrom\n validUntil\n report {\n id\n }\n state\n framework {\n id\n name\n }\n canUpdate: permission(action: \"core:audit:update\")\n canDelete: permission(action: \"core:audit:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "1ad982515cedfc459612981eda49e1b5"; - -export default node; diff --git a/apps/console/src/__generated__/core/AuditsPageFragment.graphql.ts b/apps/console/src/__generated__/core/AuditsPageFragment.graphql.ts deleted file mode 100644 index a648b21c9..000000000 --- a/apps/console/src/__generated__/core/AuditsPageFragment.graphql.ts +++ /dev/null @@ -1,313 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED"; -import { FragmentRefs } from "relay-runtime"; -export type AuditsPageFragment$data = { - readonly audits: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string | null | undefined; - readonly report: { - readonly id: string; - } | null | undefined; - readonly state: AuditState; - readonly validFrom: string | null | undefined; - readonly validUntil: string | null | undefined; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "AuditsPageFragment"; -}; -export type AuditsPageFragment$key = { - readonly " $data"?: AuditsPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"AuditsPageFragment">; -}; - -import AuditsListQuery_graphql from './AuditsListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "audits" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "orderBy" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": AuditsListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "AuditsPageFragment", - "selections": [ - { - "alias": "audits", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "orderBy" - } - ], - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "__AuditsPage_audits_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v1/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "1ad982515cedfc459612981eda49e1b5"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAccessEditDialogQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAccessEditDialogQuery.graphql.ts deleted file mode 100644 index da11779e3..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAccessEditDialogQuery.graphql.ts +++ /dev/null @@ -1,465 +0,0 @@ -/** - * @generated SignedSource<<6356fdb9136b757a766816656cdf9eea>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -export type TrustCenterDocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -export type CompliancePageAccessEditDialogQuery$variables = { - accessId: string; -}; -export type CompliancePageAccessEditDialogQuery$data = { - readonly node: { - readonly availableDocumentAccesses?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly document: { - readonly documentType: DocumentType; - readonly id: string; - readonly title: string; - } | null | undefined; - readonly id: string; - readonly report: { - readonly audit: { - readonly framework: { - readonly name: string; - }; - readonly id: string; - } | null | undefined; - readonly filename: string; - readonly id: string; - } | null | undefined; - readonly status: TrustCenterDocumentAccessStatus; - readonly trustCenterFile: { - readonly category: string; - readonly id: string; - readonly name: string; - } | null | undefined; - }; - }>; - }; - readonly id?: string; - readonly ndaSignature?: { - readonly " $fragmentSpreads": FragmentRefs<"ElectronicSignatureSectionFragment">; - } | null | undefined; - }; -}; -export type CompliancePageAccessEditDialogQuery = { - response: CompliancePageAccessEditDialogQuery$data; - variables: CompliancePageAccessEditDialogQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "accessId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "accessId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = [ - { - "kind": "Literal", - "name": "first", - "value": 100 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } -], -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - } - ], - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "filename", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "trustCenterFile", - "plural": false, - "selections": [ - (v2/*: any*/), - (v7/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageAccessEditDialogQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "ndaSignature", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "ElectronicSignatureSectionFragment" - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v3/*: any*/), - "concreteType": "TrustCenterDocumentAccessConnection", - "kind": "LinkedField", - "name": "availableDocumentAccesses", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterDocumentAccessEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterDocumentAccess", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v2/*: any*/), - (v6/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v7/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v8/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "availableDocumentAccesses(first:100,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "type": "TrustCenterAccess", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageAccessEditDialogQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "ndaSignature", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "certificateFileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignatureEvent", - "kind": "LinkedField", - "name": "events", - "plural": true, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "eventType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "actorEmail", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "occurredAt", - "storageKey": null - } - ], - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": (v3/*: any*/), - "concreteType": "TrustCenterDocumentAccessConnection", - "kind": "LinkedField", - "name": "availableDocumentAccesses", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterDocumentAccessEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterDocumentAccess", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v2/*: any*/), - (v6/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v7/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v8/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "availableDocumentAccesses(first:100,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "type": "TrustCenterAccess", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "2c1a84490b7c138adbd06cd36a247f8b", - "id": null, - "metadata": {}, - "name": "CompliancePageAccessEditDialogQuery", - "operationKind": "query", - "text": "query CompliancePageAccessEditDialogQuery(\n $accessId: ID!\n) {\n node(id: $accessId) {\n __typename\n ... on TrustCenterAccess {\n id\n ndaSignature {\n ...ElectronicSignatureSectionFragment\n id\n }\n availableDocumentAccesses(first: 100, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n id\n status\n document {\n id\n title\n documentType\n }\n report {\n id\n filename\n audit {\n id\n framework {\n name\n id\n }\n }\n }\n trustCenterFile {\n id\n name\n category\n }\n }\n }\n }\n }\n id\n }\n}\n\nfragment ElectronicSignatureSectionFragment on ElectronicSignature {\n status\n signedAt\n certificateFileUrl\n events {\n id\n eventType\n actorEmail\n occurredAt\n }\n}\n" - } -}; -})(); - -(node as any).hash = "22c0951e589902a84654ef96af8887a7"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAccessEditDialogUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAccessEditDialogUpdateMutation.graphql.ts deleted file mode 100644 index 1e86ff793..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAccessEditDialogUpdateMutation.graphql.ts +++ /dev/null @@ -1,148 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type TrustCenterAccessState = "ACTIVE" | "INACTIVE"; -export type TrustCenterDocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -export type UpdateTrustCenterAccessInput = { - documents?: ReadonlyArray | null | undefined; - id: string; - name?: string | null | undefined; - reports?: ReadonlyArray | null | undefined; - state?: TrustCenterAccessState | null | undefined; - trustCenterFiles?: ReadonlyArray | null | undefined; -}; -export type TrustCenterDocumentAccessInput = { - id: string; - status: TrustCenterDocumentAccessStatus; -}; -export type CompliancePageAccessEditDialogUpdateMutation$variables = { - input: UpdateTrustCenterAccessInput; -}; -export type CompliancePageAccessEditDialogUpdateMutation$data = { - readonly updateTrustCenterAccess: { - readonly trustCenterAccess: { - readonly activeCount: number; - readonly createdAt: string; - readonly id: string; - readonly pendingRequestCount: number; - readonly updatedAt: string; - }; - }; -}; -export type CompliancePageAccessEditDialogUpdateMutation = { - response: CompliancePageAccessEditDialogUpdateMutation$data; - variables: CompliancePageAccessEditDialogUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateTrustCenterAccessPayload", - "kind": "LinkedField", - "name": "updateTrustCenterAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterAccess", - "kind": "LinkedField", - "name": "trustCenterAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "pendingRequestCount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "activeCount", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageAccessEditDialogUpdateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageAccessEditDialogUpdateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "39cf57753ab2bd46878a9200ef892894", - "id": null, - "metadata": {}, - "name": "CompliancePageAccessEditDialogUpdateMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageAccessEditDialogUpdateMutation(\n $input: UpdateTrustCenterAccessInput!\n) {\n updateTrustCenterAccess(input: $input) {\n trustCenterAccess {\n id\n createdAt\n updatedAt\n pendingRequestCount\n activeCount\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "896760c6c5c2d6adfca8ffcd7c7e22c7"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAccessListFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAccessListFragment.graphql.ts deleted file mode 100644 index 37fbfb099..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAccessListFragment.graphql.ts +++ /dev/null @@ -1,208 +0,0 @@ -/** - * @generated SignedSource<<82376847028f43013ad4fe0fd7ceaf0d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageAccessListFragment$data = { - readonly accesses: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAccessListItemFragment">; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - readonly hasPreviousPage: boolean; - readonly startCursor: string | null | undefined; - }; - }; - readonly id: string; - readonly " $fragmentType": "CompliancePageAccessListFragment"; -}; -export type CompliancePageAccessListFragment$key = { - readonly " $data"?: CompliancePageAccessListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAccessListFragment">; -}; - -import CompliancePageAccessListQuery_graphql from './CompliancePageAccessListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "accesses" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": { - "direction": "DESC", - "field": "CREATED_AT" - }, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": CompliancePageAccessListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "CompliancePageAccessListFragment", - "selections": [ - { - "alias": "accesses", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "TrustCenterAccessConnection", - "kind": "LinkedField", - "name": "__CompliancePageAccessList_accesses_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "TrustCenterAccessEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterAccess", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageAccessListItemFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "TrustCenter", - "abstractKey": null -}; -})(); - -(node as any).hash = "0a1b2761edd641e8eb52280cc48307b9"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAccessListItemFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAccessListItemFragment.graphql.ts deleted file mode 100644 index f7cc6a847..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAccessListItemFragment.graphql.ts +++ /dev/null @@ -1,140 +0,0 @@ -/** - * @generated SignedSource<<382df5177a666b0cc6c3feef198c8354>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type ElectronicSignatureStatus = "ACCEPTED" | "COMPLETED" | "FAILED" | "PENDING" | "PROCESSING"; -export type ProfileState = "ACTIVE" | "INACTIVE"; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageAccessListItemFragment$data = { - readonly activeCount: number; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly id: string; - readonly ndaSignature: { - readonly status: ElectronicSignatureStatus; - } | null | undefined; - readonly pendingRequestCount: number; - readonly profile: { - readonly emailAddress: string; - readonly fullName: string; - readonly state: ProfileState; - }; - readonly " $fragmentType": "CompliancePageAccessListItemFragment"; -}; -export type CompliancePageAccessListItemFragment$key = { - readonly " $data"?: CompliancePageAccessListItemFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAccessListItemFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageAccessListItemFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "profile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "activeCount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "pendingRequestCount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "ndaSignature", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-access:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-access:update\")" - } - ], - "type": "TrustCenterAccess", - "abstractKey": null -}; - -(node as any).hash = "a08d6999781177cb0896f372c570fca8"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAccessListQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAccessListQuery.graphql.ts deleted file mode 100644 index a301ea54f..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAccessListQuery.graphql.ts +++ /dev/null @@ -1,363 +0,0 @@ -/** - * @generated SignedSource<<55a5675db2c82dde34408e454aa05008>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type TrustCenterAccessOrderField = "CREATED_AT"; -export type TrustCenterAccessOrder = { - direction: OrderDirection; - field: TrustCenterAccessOrderField; -}; -export type CompliancePageAccessListQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; - order?: TrustCenterAccessOrder | null | undefined; -}; -export type CompliancePageAccessListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAccessListFragment">; - }; -}; -export type CompliancePageAccessListQuery = { - response: CompliancePageAccessListQuery$data; - variables: CompliancePageAccessListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": { - "direction": "DESC", - "field": "CREATED_AT" - }, - "kind": "LocalArgument", - "name": "order" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v6 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v9 = [ - (v5/*: any*/), - (v6/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageAccessListQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v5/*: any*/), - (v6/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "CompliancePageAccessListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "CompliancePageAccessListQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v7/*: any*/), - (v8/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v9/*: any*/), - "concreteType": "TrustCenterAccessConnection", - "kind": "LinkedField", - "name": "accesses", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "TrustCenterAccessEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterAccess", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "profile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "activeCount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "pendingRequestCount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "ndaSignature", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-access:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-access:update\")" - }, - (v7/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v9/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "CompliancePageAccessList_accesses", - "kind": "LinkedHandle", - "name": "accesses" - } - ], - "type": "TrustCenter", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6d600a693d55408b0121cca33c7bdaa6", - "id": null, - "metadata": {}, - "name": "CompliancePageAccessListQuery", - "operationKind": "query", - "text": "query CompliancePageAccessListQuery(\n $after: CursorKey = null\n $first: Int = 10\n $order: TrustCenterAccessOrder = {field: CREATED_AT, direction: DESC}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CompliancePageAccessListFragment_gOVF5\n id\n }\n}\n\nfragment CompliancePageAccessListFragment_gOVF5 on TrustCenter {\n accesses(first: $first, after: $after, orderBy: $order) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n edges {\n node {\n id\n ...CompliancePageAccessListItemFragment\n __typename\n }\n cursor\n }\n }\n id\n}\n\nfragment CompliancePageAccessListItemFragment on TrustCenterAccess {\n id\n createdAt\n profile {\n fullName\n emailAddress\n state\n id\n }\n activeCount\n pendingRequestCount\n ndaSignature {\n status\n id\n }\n canUpdate: permission(action: \"core:trust-center-access:update\")\n}\n" - } -}; -})(); - -(node as any).hash = "0a1b2761edd641e8eb52280cc48307b9"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAccessPageQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAccessPageQuery.graphql.ts deleted file mode 100644 index 096cd0ee1..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAccessPageQuery.graphql.ts +++ /dev/null @@ -1,360 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageAccessPageQuery$variables = { - organizationId: string; -}; -export type CompliancePageAccessPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly compliancePage: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAccessListFragment">; - }; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type CompliancePageAccessPageQuery = { - response: CompliancePageAccessPageQuery$data; - variables: CompliancePageAccessPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 10 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageAccessPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageAccessListFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageAccessPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "TrustCenterAccessConnection", - "kind": "LinkedField", - "name": "accesses", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "TrustCenterAccessEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterAccess", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "profile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "activeCount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "pendingRequestCount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "ndaSignature", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-access:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-access:update\")" - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "accesses(first:10,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "CompliancePageAccessList_accesses", - "kind": "LinkedHandle", - "name": "accesses" - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "01d3c68d85f6048a2d482702ba4c97a0", - "id": null, - "metadata": {}, - "name": "CompliancePageAccessPageQuery", - "operationKind": "query", - "text": "query CompliancePageAccessPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n compliancePage: trustCenter {\n id\n ...CompliancePageAccessListFragment\n }\n }\n id\n }\n}\n\nfragment CompliancePageAccessListFragment on TrustCenter {\n accesses(first: 10, orderBy: {field: CREATED_AT, direction: DESC}) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n edges {\n node {\n id\n ...CompliancePageAccessListItemFragment\n __typename\n }\n cursor\n }\n }\n id\n}\n\nfragment CompliancePageAccessListItemFragment on TrustCenterAccess {\n id\n createdAt\n profile {\n fullName\n emailAddress\n state\n id\n }\n activeCount\n pendingRequestCount\n ndaSignature {\n status\n id\n }\n canUpdate: permission(action: \"core:trust-center-access:update\")\n}\n" - } -}; -})(); - -(node as any).hash = "29f59aac000603a1d11c88a441fb595b"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAuditListFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAuditListFragment.graphql.ts deleted file mode 100644 index 843767367..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAuditListFragment.graphql.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageAuditListFragment$data = { - readonly audits: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAuditListItem_auditFragment">; - }; - }>; - }; - readonly compliancePage: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAuditListItem_compliancePageFragment">; - }; - readonly " $fragmentType": "CompliancePageAuditListFragment"; -}; -export type CompliancePageAuditListFragment$key = { - readonly " $data"?: CompliancePageAuditListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAuditListFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageAuditListFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageAuditListItem_compliancePageFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "audits", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageAuditListItem_auditFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "audits(first:100)" - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "b66fddcbd57e4fd5af9f2a91663cb65b"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAuditListItem_auditFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAuditListItem_auditFragment.graphql.ts deleted file mode 100644 index f5596db82..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAuditListItem_auditFragment.graphql.ts +++ /dev/null @@ -1,94 +0,0 @@ -/** - * @generated SignedSource<<7de15e098b76ab6e91a10160c60c6c69>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageAuditListItem_auditFragment$data = { - readonly framework: { - readonly name: string; - }; - readonly id: string; - readonly name: string | null | undefined; - readonly state: AuditState; - readonly trustCenterVisibility: TrustCenterVisibility; - readonly validUntil: string | null | undefined; - readonly " $fragmentType": "CompliancePageAuditListItem_auditFragment"; -}; -export type CompliancePageAuditListItem_auditFragment$key = { - readonly " $data"?: CompliancePageAuditListItem_auditFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAuditListItem_auditFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageAuditListItem_auditFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - (v0/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v0/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - } - ], - "type": "Audit", - "abstractKey": null -}; -})(); - -(node as any).hash = "495e75c50400e856ba08ed9f5840da67"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAuditListItem_compliancePageFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAuditListItem_compliancePageFragment.graphql.ts deleted file mode 100644 index d57a0e4af..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAuditListItem_compliancePageFragment.graphql.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @generated SignedSource<<9a44b4f71be46d5e02c3f1c8587d6f32>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageAuditListItem_compliancePageFragment$data = { - readonly canUpdate: boolean; - readonly " $fragmentType": "CompliancePageAuditListItem_compliancePageFragment"; -}; -export type CompliancePageAuditListItem_compliancePageFragment$key = { - readonly " $data"?: CompliancePageAuditListItem_compliancePageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAuditListItem_compliancePageFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageAuditListItem_compliancePageFragment", - "selections": [ - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - } - ], - "type": "TrustCenter", - "abstractKey": null -}; - -(node as any).hash = "4744b831ee9ad55304d2159e8b2ebfd5"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAuditListItem_updateAuditVisibilityMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAuditListItem_updateAuditVisibilityMutation.graphql.ts deleted file mode 100644 index 5344c295d..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAuditListItem_updateAuditVisibilityMutation.graphql.ts +++ /dev/null @@ -1,184 +0,0 @@ -/** - * @generated SignedSource<<4286fb5d45f1d4d8dba035c29219ab34>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -export type UpdateAuditInput = { - id: string; - name?: string | null | undefined; - state?: AuditState | null | undefined; - trustCenterVisibility?: TrustCenterVisibility | null | undefined; - validFrom?: string | null | undefined; - validUntil?: string | null | undefined; -}; -export type CompliancePageAuditListItem_updateAuditVisibilityMutation$variables = { - input: UpdateAuditInput; -}; -export type CompliancePageAuditListItem_updateAuditVisibilityMutation$data = { - readonly updateAudit: { - readonly audit: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAuditListItem_auditFragment">; - }; - }; -}; -export type CompliancePageAuditListItem_updateAuditVisibilityMutation = { - response: CompliancePageAuditListItem_updateAuditVisibilityMutation$data; - variables: CompliancePageAuditListItem_updateAuditVisibilityMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageAuditListItem_updateAuditVisibilityMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateAuditPayload", - "kind": "LinkedField", - "name": "updateAudit", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageAuditListItem_auditFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageAuditListItem_updateAuditVisibilityMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateAuditPayload", - "kind": "LinkedField", - "name": "updateAudit", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "4363d4bbf56cf55359dc0a1ff19e1dbf", - "id": null, - "metadata": {}, - "name": "CompliancePageAuditListItem_updateAuditVisibilityMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageAuditListItem_updateAuditVisibilityMutation(\n $input: UpdateAuditInput!\n) {\n updateAudit(input: $input) {\n audit {\n ...CompliancePageAuditListItem_auditFragment\n id\n }\n }\n}\n\nfragment CompliancePageAuditListItem_auditFragment on Audit {\n id\n name\n framework {\n name\n id\n }\n validUntil\n state\n trustCenterVisibility\n}\n" - } -}; -})(); - -(node as any).hash = "6868ffa86e630bac03c87aa363dc59e2"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageAuditsPageQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageAuditsPageQuery.graphql.ts deleted file mode 100644 index 167bca0f3..000000000 --- a/apps/console/src/__generated__/core/CompliancePageAuditsPageQuery.graphql.ts +++ /dev/null @@ -1,229 +0,0 @@ -/** - * @generated SignedSource<<109bdc23095ddd764ac63f68d9185ab1>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageAuditsPageQuery$variables = { - organizationId: string; -}; -export type CompliancePageAuditsPageQuery$data = { - readonly organization: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageAuditListFragment">; - }; -}; -export type CompliancePageAuditsPageQuery = { - response: CompliancePageAuditsPageQuery$data; - variables: CompliancePageAuditsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageAuditsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageAuditListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageAuditsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "audits", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "audits(first:100)" - } - ], - "type": "Organization", - "abstractKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "ebb26dedba5dbbae4d46bcd3a41b201d", - "id": null, - "metadata": {}, - "name": "CompliancePageAuditsPageQuery", - "operationKind": "query", - "text": "query CompliancePageAuditsPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ...CompliancePageAuditListFragment\n id\n }\n}\n\nfragment CompliancePageAuditListFragment on Organization {\n compliancePage: trustCenter {\n ...CompliancePageAuditListItem_compliancePageFragment\n id\n }\n audits(first: 100) {\n edges {\n node {\n id\n ...CompliancePageAuditListItem_auditFragment\n }\n }\n }\n}\n\nfragment CompliancePageAuditListItem_auditFragment on Audit {\n id\n name\n framework {\n name\n id\n }\n validUntil\n state\n trustCenterVisibility\n}\n\nfragment CompliancePageAuditListItem_compliancePageFragment on TrustCenter {\n canUpdate: permission(action: \"core:trust-center:update\")\n}\n" - } -}; -})(); - -(node as any).hash = "686edde90edd5f75bb7470e9e1e900c2"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageBrandPageQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageBrandPageQuery.graphql.ts deleted file mode 100644 index b1fa60ea8..000000000 --- a/apps/console/src/__generated__/core/CompliancePageBrandPageQuery.graphql.ts +++ /dev/null @@ -1,420 +0,0 @@ -/** - * @generated SignedSource<<5e625eeec03803e3e72c6dd998bed003>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageBrandPageQuery$variables = { - organizationId: string; -}; -export type CompliancePageBrandPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly compliancePage: { - readonly canUpdate: boolean; - readonly darkLogoFileUrl: string | null | undefined; - readonly id: string; - readonly logoFileUrl: string | null | undefined; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageExternalUrlsSection_trustCenterFragment" | "CompliancePageFrameworkList_compliancePageFragment">; - }; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type CompliancePageBrandPageQuery = { - response: CompliancePageBrandPageQuery$data; - variables: CompliancePageBrandPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoFileUrl", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoFileUrl", - "storageKey": null -}, -v6 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" -}, -v7 = [ - { - "kind": "Literal", - "name": "first", - "value": 100 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "RANK" - } - } -], -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null -}, -v12 = [ - "orderBy" -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageBrandPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageFrameworkList_compliancePageFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageExternalUrlsSection_trustCenterFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageBrandPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": "ComplianceFrameworkConnection", - "kind": "LinkedField", - "name": "complianceFrameworks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFrameworkEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFramework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "visibility", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - } - ], - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - (v10/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": "complianceFrameworks(first:100,orderBy:{\"direction\":\"ASC\",\"field\":\"RANK\"})" - }, - { - "alias": null, - "args": (v7/*: any*/), - "filters": (v12/*: any*/), - "handle": "connection", - "key": "CompliancePageFrameworkList_complianceFrameworks", - "kind": "LinkedHandle", - "name": "complianceFrameworks" - }, - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": "ComplianceExternalURLConnection", - "kind": "LinkedField", - "name": "externalUrls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURLEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURL", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "url", - "storageKey": null - }, - (v8/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - (v10/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/), - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "externalUrls(first:100,orderBy:{\"direction\":\"ASC\",\"field\":\"RANK\"})" - }, - { - "alias": null, - "args": (v7/*: any*/), - "filters": (v12/*: any*/), - "handle": "connection", - "key": "CompliancePageExternalUrlsSection_externalUrls", - "kind": "LinkedHandle", - "name": "externalUrls" - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "8a6a8094cbc0edebe011b284ac9638dc", - "id": null, - "metadata": {}, - "name": "CompliancePageBrandPageQuery", - "operationKind": "query", - "text": "query CompliancePageBrandPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n compliancePage: trustCenter {\n id\n logoFileUrl\n darkLogoFileUrl\n canUpdate: permission(action: \"core:trust-center:update\")\n ...CompliancePageFrameworkList_compliancePageFragment\n ...CompliancePageExternalUrlsSection_trustCenterFragment\n }\n }\n id\n }\n}\n\nfragment CompliancePageExternalUrlsSection_trustCenterFragment on TrustCenter {\n id\n canUpdate: permission(action: \"core:trust-center:update\")\n externalUrls(first: 100, orderBy: {field: RANK, direction: ASC}) {\n edges {\n node {\n id\n name\n url\n rank\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment CompliancePageFrameworkList_compliancePageFragment on TrustCenter {\n id\n canUpdate: permission(action: \"core:trust-center:update\")\n complianceFrameworks(first: 100, orderBy: {field: RANK, direction: ASC}) {\n edges {\n node {\n id\n rank\n visibility\n framework {\n id\n name\n lightLogoURL\n darkLogoURL\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d0a4169ebdc6d099e49faa2839d6f33d"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageBrandPage_updateMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageBrandPage_updateMutation.graphql.ts deleted file mode 100644 index 554843904..000000000 --- a/apps/console/src/__generated__/core/CompliancePageBrandPage_updateMutation.graphql.ts +++ /dev/null @@ -1,123 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateTrustCenterBrandInput = { - darkLogoFile?: any | null | undefined; - logoFile?: any | null | undefined; - trustCenterId: string; -}; -export type CompliancePageBrandPage_updateMutation$variables = { - input: UpdateTrustCenterBrandInput; -}; -export type CompliancePageBrandPage_updateMutation$data = { - readonly updateTrustCenterBrand: { - readonly trustCenter: { - readonly darkLogoFileUrl: string | null | undefined; - readonly id: string; - readonly logoFileUrl: string | null | undefined; - }; - }; -}; -export type CompliancePageBrandPage_updateMutation = { - response: CompliancePageBrandPage_updateMutation$data; - variables: CompliancePageBrandPage_updateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateTrustCenterBrandPayload", - "kind": "LinkedField", - "name": "updateTrustCenterBrand", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoFileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoFileUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageBrandPage_updateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageBrandPage_updateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "fb398aa8a46a93ca7b68e4ef9841a4d6", - "id": null, - "metadata": {}, - "name": "CompliancePageBrandPage_updateMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageBrandPage_updateMutation(\n $input: UpdateTrustCenterBrandInput!\n) {\n updateTrustCenterBrand(input: $input) {\n trustCenter {\n id\n logoFileUrl\n darkLogoFileUrl\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "cb158c24dbd3824e6fa9cc3e4632dc81"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageDocumentListFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageDocumentListFragment.graphql.ts deleted file mode 100644 index e936e4207..000000000 --- a/apps/console/src/__generated__/core/CompliancePageDocumentListFragment.graphql.ts +++ /dev/null @@ -1,124 +0,0 @@ -/** - * @generated SignedSource<<2a0f1332c57638e29eeee8e4113858d3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageDocumentListFragment$data = { - readonly compliancePage: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDocumentListItem_compliancePageFragment">; - }; - readonly documents: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly currentPublishedVersion: number | null | undefined; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDocumentListItem_documentFragment">; - }; - }>; - }; - readonly " $fragmentType": "CompliancePageDocumentListFragment"; -}; -export type CompliancePageDocumentListFragment$key = { - readonly " $data"?: CompliancePageDocumentListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDocumentListFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageDocumentListFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageDocumentListItem_compliancePageFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "currentPublishedVersion", - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageDocumentListItem_documentFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "documents(first:100)" - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "48e4f01fb5d80ae0856433598608d4cf"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageDocumentListItem_compliancePageFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageDocumentListItem_compliancePageFragment.graphql.ts deleted file mode 100644 index d735d050c..000000000 --- a/apps/console/src/__generated__/core/CompliancePageDocumentListItem_compliancePageFragment.graphql.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @generated SignedSource<<24c6b253b4339703abe0106728cb4a6f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageDocumentListItem_compliancePageFragment$data = { - readonly canUpdate: boolean; - readonly " $fragmentType": "CompliancePageDocumentListItem_compliancePageFragment"; -}; -export type CompliancePageDocumentListItem_compliancePageFragment$key = { - readonly " $data"?: CompliancePageDocumentListItem_compliancePageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDocumentListItem_compliancePageFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageDocumentListItem_compliancePageFragment", - "selections": [ - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - } - ], - "type": "TrustCenter", - "abstractKey": null -}; - -(node as any).hash = "7c884fb02ab6613707d02aa44c547ac7"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageDocumentListItem_documentFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageDocumentListItem_documentFragment.graphql.ts deleted file mode 100644 index 907539ed9..000000000 --- a/apps/console/src/__generated__/core/CompliancePageDocumentListItem_documentFragment.graphql.ts +++ /dev/null @@ -1,128 +0,0 @@ -/** - * @generated SignedSource<<85da952604018b5f879924bf3f8d5a27>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageDocumentListItem_documentFragment$data = { - readonly documentType: DocumentType; - readonly id: string; - readonly latestPublishedVersion: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly title: string; - }; - }>; - }; - readonly trustCenterVisibility: TrustCenterVisibility; - readonly " $fragmentType": "CompliancePageDocumentListItem_documentFragment"; -}; -export type CompliancePageDocumentListItem_documentFragment$key = { - readonly " $data"?: CompliancePageDocumentListItem_documentFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDocumentListItem_documentFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageDocumentListItem_documentFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - }, - { - "alias": "latestPublishedVersion", - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "status": "PUBLISHED" - } - }, - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(filter:{\"status\":\"PUBLISHED\"},first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "type": "Document", - "abstractKey": null -}; - -(node as any).hash = "4c6d4e935f4a54b6d2ef486f60aab5f6"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageDocumentListItem_updateVisibilityMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageDocumentListItem_updateVisibilityMutation.graphql.ts deleted file mode 100644 index d64dc52c9..000000000 --- a/apps/console/src/__generated__/core/CompliancePageDocumentListItem_updateVisibilityMutation.graphql.ts +++ /dev/null @@ -1,220 +0,0 @@ -/** - * @generated SignedSource<<976e80f8eb6650a229d5af8f1f58b5f5>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -export type UpdateDocumentInput = { - approverIds?: ReadonlyArray | null | undefined; - classification?: DocumentClassification | null | undefined; - content?: string | null | undefined; - documentType?: DocumentType | null | undefined; - id: string; - title?: string | null | undefined; - trustCenterVisibility?: TrustCenterVisibility | null | undefined; -}; -export type CompliancePageDocumentListItem_updateVisibilityMutation$variables = { - input: UpdateDocumentInput; -}; -export type CompliancePageDocumentListItem_updateVisibilityMutation$data = { - readonly updateDocument: { - readonly document: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDocumentListItem_documentFragment">; - }; - }; -}; -export type CompliancePageDocumentListItem_updateVisibilityMutation = { - response: CompliancePageDocumentListItem_updateVisibilityMutation$data; - variables: CompliancePageDocumentListItem_updateVisibilityMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageDocumentListItem_updateVisibilityMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateDocumentPayload", - "kind": "LinkedField", - "name": "updateDocument", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageDocumentListItem_documentFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageDocumentListItem_updateVisibilityMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateDocumentPayload", - "kind": "LinkedField", - "name": "updateDocument", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - }, - { - "alias": "latestPublishedVersion", - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "status": "PUBLISHED" - } - }, - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(filter:{\"status\":\"PUBLISHED\"},first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "8bb0348deb10b7f0fe65b953bccf8cb3", - "id": null, - "metadata": {}, - "name": "CompliancePageDocumentListItem_updateVisibilityMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageDocumentListItem_updateVisibilityMutation(\n $input: UpdateDocumentInput!\n) {\n updateDocument(input: $input) {\n document {\n ...CompliancePageDocumentListItem_documentFragment\n id\n }\n }\n}\n\nfragment CompliancePageDocumentListItem_documentFragment on Document {\n id\n documentType\n trustCenterVisibility\n latestPublishedVersion: versions(first: 1, orderBy: {field: CREATED_AT, direction: DESC}, filter: {status: PUBLISHED}) {\n edges {\n node {\n title\n id\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3f49f1e719ba93bc8cc69c483d50e225"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageDocumentsPageQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageDocumentsPageQuery.graphql.ts deleted file mode 100644 index dea5a89dc..000000000 --- a/apps/console/src/__generated__/core/CompliancePageDocumentsPageQuery.graphql.ts +++ /dev/null @@ -1,270 +0,0 @@ -/** - * @generated SignedSource<<56c0070ef19b8dff73eeb111e11fff52>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageDocumentsPageQuery$variables = { - organizationId: string; -}; -export type CompliancePageDocumentsPageQuery$data = { - readonly organization: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDocumentListFragment">; - }; -}; -export type CompliancePageDocumentsPageQuery = { - response: CompliancePageDocumentsPageQuery$data; - variables: CompliancePageDocumentsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageDocumentsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageDocumentListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageDocumentsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "currentPublishedVersion", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - }, - { - "alias": "latestPublishedVersion", - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "status": "PUBLISHED" - } - }, - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(filter:{\"status\":\"PUBLISHED\"},first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "documents(first:100)" - } - ], - "type": "Organization", - "abstractKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "44c832e5fec9c0e84a0cbd844063d0fe", - "id": null, - "metadata": {}, - "name": "CompliancePageDocumentsPageQuery", - "operationKind": "query", - "text": "query CompliancePageDocumentsPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ...CompliancePageDocumentListFragment\n id\n }\n}\n\nfragment CompliancePageDocumentListFragment on Organization {\n compliancePage: trustCenter {\n ...CompliancePageDocumentListItem_compliancePageFragment\n id\n }\n documents(first: 100) {\n edges {\n node {\n id\n currentPublishedVersion\n ...CompliancePageDocumentListItem_documentFragment\n }\n }\n }\n}\n\nfragment CompliancePageDocumentListItem_compliancePageFragment on TrustCenter {\n canUpdate: permission(action: \"core:trust-center:update\")\n}\n\nfragment CompliancePageDocumentListItem_documentFragment on Document {\n id\n documentType\n trustCenterVisibility\n latestPublishedVersion: versions(first: 1, orderBy: {field: CREATED_AT, direction: DESC}, filter: {status: PUBLISHED}) {\n edges {\n node {\n title\n id\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d81c7a5da1810d0e8d7fadb5b8a3766a"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageDomainCardFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageDomainCardFragment.graphql.ts deleted file mode 100644 index 1c381cd0f..000000000 --- a/apps/console/src/__generated__/core/CompliancePageDomainCardFragment.graphql.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * @generated SignedSource<<0e36707d7a08e91112f9f44e787b4844>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type SSLStatus = "ACTIVE" | "EXPIRED" | "FAILED" | "PENDING" | "PROVISIONING" | "RENEWING"; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageDomainCardFragment$data = { - readonly canDelete: boolean; - readonly domain: string; - readonly sslStatus: SSLStatus; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDomainDialogFragment">; - readonly " $fragmentType": "CompliancePageDomainCardFragment"; -}; -export type CompliancePageDomainCardFragment$key = { - readonly " $data"?: CompliancePageDomainCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDomainCardFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageDomainCardFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domain", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sslStatus", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:custom-domain:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:custom-domain:delete\")" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageDomainDialogFragment" - } - ], - "type": "CustomDomain", - "abstractKey": null -}; - -(node as any).hash = "db079748369f6103bb263de4e8921c76"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageDomainDialogFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageDomainDialogFragment.graphql.ts deleted file mode 100644 index 9bdc7cb6e..000000000 --- a/apps/console/src/__generated__/core/CompliancePageDomainDialogFragment.graphql.ts +++ /dev/null @@ -1,112 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type SSLStatus = "ACTIVE" | "EXPIRED" | "FAILED" | "PENDING" | "PROVISIONING" | "RENEWING"; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageDomainDialogFragment$data = { - readonly dnsRecords: ReadonlyArray<{ - readonly name: string; - readonly purpose: string; - readonly ttl: number; - readonly type: string; - readonly value: string; - }>; - readonly domain: string; - readonly sslExpiresAt: string | null | undefined; - readonly sslStatus: SSLStatus; - readonly " $fragmentType": "CompliancePageDomainDialogFragment"; -}; -export type CompliancePageDomainDialogFragment$key = { - readonly " $data"?: CompliancePageDomainDialogFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDomainDialogFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageDomainDialogFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sslStatus", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domain", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "DNSRecordInstruction", - "kind": "LinkedField", - "name": "dnsRecords", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "value", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ttl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "purpose", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sslExpiresAt", - "storageKey": null - } - ], - "type": "CustomDomain", - "abstractKey": null -}; - -(node as any).hash = "0275b6b52781473cb3dac5a631488e2f"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageDomainPageQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageDomainPageQuery.graphql.ts deleted file mode 100644 index 65402da16..000000000 --- a/apps/console/src/__generated__/core/CompliancePageDomainPageQuery.graphql.ts +++ /dev/null @@ -1,257 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageDomainPageQuery$variables = { - organizationId: string; -}; -export type CompliancePageDomainPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly canCreateCustomDomain: boolean; - readonly customDomain: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageDomainCardFragment">; - } | null | undefined; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type CompliancePageDomainPageQuery = { - response: CompliancePageDomainPageQuery$data; - variables: CompliancePageDomainPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": "canCreateCustomDomain", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:custom-domain:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:custom-domain:create\")" -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageDomainPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "CustomDomain", - "kind": "LinkedField", - "name": "customDomain", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageDomainCardFragment" - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageDomainPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "CustomDomain", - "kind": "LinkedField", - "name": "customDomain", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domain", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sslStatus", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:custom-domain:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:custom-domain:delete\")" - }, - { - "alias": null, - "args": null, - "concreteType": "DNSRecordInstruction", - "kind": "LinkedField", - "name": "dnsRecords", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "value", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ttl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "purpose", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sslExpiresAt", - "storageKey": null - }, - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - }, - (v4/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f916852f512fa1e1b06d73c608acad3a", - "id": null, - "metadata": {}, - "name": "CompliancePageDomainPageQuery", - "operationKind": "query", - "text": "query CompliancePageDomainPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateCustomDomain: permission(action: \"core:custom-domain:create\")\n customDomain {\n ...CompliancePageDomainCardFragment\n id\n }\n }\n id\n }\n}\n\nfragment CompliancePageDomainCardFragment on CustomDomain {\n domain\n sslStatus\n canDelete: permission(action: \"core:custom-domain:delete\")\n ...CompliancePageDomainDialogFragment\n}\n\nfragment CompliancePageDomainDialogFragment on CustomDomain {\n sslStatus\n domain\n dnsRecords {\n type\n name\n value\n ttl\n purpose\n }\n sslExpiresAt\n}\n" - } -}; -})(); - -(node as any).hash = "86eb03a06b0217c125eadf8cf661e384"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_createMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_createMutation.graphql.ts deleted file mode 100644 index 194f7fdf6..000000000 --- a/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_createMutation.graphql.ts +++ /dev/null @@ -1,144 +0,0 @@ -/** - * @generated SignedSource<<23a875a3299a51bdebef4d121b0b84ff>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateComplianceExternalURLInput = { - name: string; - trustCenterId: string; - url: string; -}; -export type CompliancePageExternalUrlsSection_createMutation$variables = { - input: CreateComplianceExternalURLInput; -}; -export type CompliancePageExternalUrlsSection_createMutation$data = { - readonly createComplianceExternalURL: { - readonly complianceExternalUrlEdge: { - readonly node: { - readonly id: string; - readonly name: string; - readonly rank: number; - readonly url: string; - }; - }; - }; -}; -export type CompliancePageExternalUrlsSection_createMutation = { - response: CompliancePageExternalUrlsSection_createMutation$data; - variables: CompliancePageExternalUrlsSection_createMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "CreateComplianceExternalURLPayload", - "kind": "LinkedField", - "name": "createComplianceExternalURL", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURLEdge", - "kind": "LinkedField", - "name": "complianceExternalUrlEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURL", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "url", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageExternalUrlsSection_createMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageExternalUrlsSection_createMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "946285e4ff57ca46030c3c2ec5b8cc22", - "id": null, - "metadata": {}, - "name": "CompliancePageExternalUrlsSection_createMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageExternalUrlsSection_createMutation(\n $input: CreateComplianceExternalURLInput!\n) {\n createComplianceExternalURL(input: $input) {\n complianceExternalUrlEdge {\n node {\n id\n name\n url\n rank\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "8441156775b5070a2dc3f0e316d5bb0b"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_deleteMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_deleteMutation.graphql.ts deleted file mode 100644 index d2b23f2ed..000000000 --- a/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_deleteMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteComplianceExternalURLInput = { - id: string; -}; -export type CompliancePageExternalUrlsSection_deleteMutation$variables = { - input: DeleteComplianceExternalURLInput; -}; -export type CompliancePageExternalUrlsSection_deleteMutation$data = { - readonly deleteComplianceExternalURL: { - readonly deletedComplianceExternalUrlId: string; - }; -}; -export type CompliancePageExternalUrlsSection_deleteMutation = { - response: CompliancePageExternalUrlsSection_deleteMutation$data; - variables: CompliancePageExternalUrlsSection_deleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteComplianceExternalURLPayload", - "kind": "LinkedField", - "name": "deleteComplianceExternalURL", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedComplianceExternalUrlId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageExternalUrlsSection_deleteMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageExternalUrlsSection_deleteMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "e0715ce1d37b8854b0eeea3e6214973c", - "id": null, - "metadata": {}, - "name": "CompliancePageExternalUrlsSection_deleteMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageExternalUrlsSection_deleteMutation(\n $input: DeleteComplianceExternalURLInput!\n) {\n deleteComplianceExternalURL(input: $input) {\n deletedComplianceExternalUrlId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "394380c11f7ee240360143f8f71f058c"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_trustCenterFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_trustCenterFragment.graphql.ts deleted file mode 100644 index 959a8750c..000000000 --- a/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_trustCenterFragment.graphql.ts +++ /dev/null @@ -1,233 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageExternalUrlsSection_trustCenterFragment$data = { - readonly canUpdate: boolean; - readonly externalUrls: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly rank: number; - readonly url: string; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "CompliancePageExternalUrlsSection_trustCenterFragment"; -}; -export type CompliancePageExternalUrlsSection_trustCenterFragment$key = { - readonly " $data"?: CompliancePageExternalUrlsSection_trustCenterFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageExternalUrlsSection_trustCenterFragment">; -}; - -import CompliancePageExternalUrlsSection_trustCenterRefetchQuery_graphql from './CompliancePageExternalUrlsSection_trustCenterRefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "externalUrls" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 100, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": { - "direction": "ASC", - "field": "RANK" - }, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": CompliancePageExternalUrlsSection_trustCenterRefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "CompliancePageExternalUrlsSection_trustCenterFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - }, - { - "alias": "externalUrls", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "ComplianceExternalURLConnection", - "kind": "LinkedField", - "name": "__CompliancePageExternalUrlsSection_externalUrls_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURLEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURL", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "url", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "TrustCenter", - "abstractKey": null -}; -})(); - -(node as any).hash = "f2614c45eaf65a9d6c6f857abc7c66f6"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_trustCenterRefetchQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_trustCenterRefetchQuery.graphql.ts deleted file mode 100644 index e88004bf3..000000000 --- a/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_trustCenterRefetchQuery.graphql.ts +++ /dev/null @@ -1,309 +0,0 @@ -/** - * @generated SignedSource<<1fdf3d464ce9b10a9dd2ea55a9dbfc26>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ComplianceExternalURLOrderField = "CREATED_AT" | "RANK"; -export type OrderDirection = "ASC" | "DESC"; -export type ComplianceExternalURLOrder = { - direction: OrderDirection; - field: ComplianceExternalURLOrderField; -}; -export type CompliancePageExternalUrlsSection_trustCenterRefetchQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; - order?: ComplianceExternalURLOrder | null | undefined; -}; -export type CompliancePageExternalUrlsSection_trustCenterRefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageExternalUrlsSection_trustCenterFragment">; - }; -}; -export type CompliancePageExternalUrlsSection_trustCenterRefetchQuery = { - response: CompliancePageExternalUrlsSection_trustCenterRefetchQuery$data; - variables: CompliancePageExternalUrlsSection_trustCenterRefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": 100, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": { - "direction": "ASC", - "field": "RANK" - }, - "kind": "LocalArgument", - "name": "order" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v6 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v9 = [ - (v5/*: any*/), - (v6/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageExternalUrlsSection_trustCenterRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v5/*: any*/), - (v6/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "CompliancePageExternalUrlsSection_trustCenterFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "CompliancePageExternalUrlsSection_trustCenterRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v7/*: any*/), - (v8/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - }, - { - "alias": null, - "args": (v9/*: any*/), - "concreteType": "ComplianceExternalURLConnection", - "kind": "LinkedField", - "name": "externalUrls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURLEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURL", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "url", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - }, - (v7/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v9/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "CompliancePageExternalUrlsSection_externalUrls", - "kind": "LinkedHandle", - "name": "externalUrls" - } - ], - "type": "TrustCenter", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "0732bd06586ed31ed89b4dfad14d1fbd", - "id": null, - "metadata": {}, - "name": "CompliancePageExternalUrlsSection_trustCenterRefetchQuery", - "operationKind": "query", - "text": "query CompliancePageExternalUrlsSection_trustCenterRefetchQuery(\n $after: CursorKey = null\n $first: Int = 100\n $order: ComplianceExternalURLOrder = {field: RANK, direction: ASC}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CompliancePageExternalUrlsSection_trustCenterFragment_gOVF5\n id\n }\n}\n\nfragment CompliancePageExternalUrlsSection_trustCenterFragment_gOVF5 on TrustCenter {\n id\n canUpdate: permission(action: \"core:trust-center:update\")\n externalUrls(first: $first, after: $after, orderBy: $order) {\n edges {\n node {\n id\n name\n url\n rank\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "f2614c45eaf65a9d6c6f857abc7c66f6"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_updateMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_updateMutation.graphql.ts deleted file mode 100644 index 461f29725..000000000 --- a/apps/console/src/__generated__/core/CompliancePageExternalUrlsSection_updateMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateComplianceExternalURLInput = { - id: string; - name: string; - rank?: number | null | undefined; - url: string; -}; -export type CompliancePageExternalUrlsSection_updateMutation$variables = { - input: UpdateComplianceExternalURLInput; -}; -export type CompliancePageExternalUrlsSection_updateMutation$data = { - readonly updateComplianceExternalURL: { - readonly complianceExternalUrl: { - readonly id: string; - readonly name: string; - readonly rank: number; - readonly url: string; - }; - }; -}; -export type CompliancePageExternalUrlsSection_updateMutation = { - response: CompliancePageExternalUrlsSection_updateMutation$data; - variables: CompliancePageExternalUrlsSection_updateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateComplianceExternalURLPayload", - "kind": "LinkedField", - "name": "updateComplianceExternalURL", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURL", - "kind": "LinkedField", - "name": "complianceExternalUrl", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "url", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageExternalUrlsSection_updateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageExternalUrlsSection_updateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "f771e54a9a15080525576308c8277815", - "id": null, - "metadata": {}, - "name": "CompliancePageExternalUrlsSection_updateMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageExternalUrlsSection_updateMutation(\n $input: UpdateComplianceExternalURLInput!\n) {\n updateComplianceExternalURL(input: $input) {\n complianceExternalUrl {\n id\n name\n url\n rank\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b6162bd7b54e784dff62db83e0ff32be"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageFileListFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageFileListFragment.graphql.ts deleted file mode 100644 index 75c331c45..000000000 --- a/apps/console/src/__generated__/core/CompliancePageFileListFragment.graphql.ts +++ /dev/null @@ -1,173 +0,0 @@ -/** - * @generated SignedSource<<6805840d2d78dff0dc2281278cf21757>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageFileListFragment$data = { - readonly compliancePage: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFileListItem_compliancePageFragment">; - }; - readonly trustCenterFiles: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFileListItem_fileFragment">; - }; - }>; - }; - readonly " $fragmentType": "CompliancePageFileListFragment"; -}; -export type CompliancePageFileListFragment$key = { - readonly " $data"?: CompliancePageFileListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFileListFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "trustCenterFiles" - ] - } - ] - }, - "name": "CompliancePageFileListFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageFileListItem_compliancePageFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "alias": "trustCenterFiles", - "args": null, - "concreteType": "TrustCenterFileConnection", - "kind": "LinkedField", - "name": "__CompliancePageFileList_trustCenterFiles_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageFileListItem_fileFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "2d91d06498ed17aca44a1eea3d3605ea"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageFileListItemMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageFileListItemMutation.graphql.ts deleted file mode 100644 index bc5f31f13..000000000 --- a/apps/console/src/__generated__/core/CompliancePageFileListItemMutation.graphql.ts +++ /dev/null @@ -1,199 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -export type UpdateTrustCenterFileInput = { - category?: string | null | undefined; - id: string; - name?: string | null | undefined; - trustCenterVisibility?: TrustCenterVisibility | null | undefined; -}; -export type CompliancePageFileListItemMutation$variables = { - input: UpdateTrustCenterFileInput; -}; -export type CompliancePageFileListItemMutation$data = { - readonly updateTrustCenterFile: { - readonly trustCenterFile: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFileListItem_fileFragment">; - }; - }; -}; -export type CompliancePageFileListItemMutation = { - response: CompliancePageFileListItemMutation$data; - variables: CompliancePageFileListItemMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageFileListItemMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateTrustCenterFilePayload", - "kind": "LinkedField", - "name": "updateTrustCenterFile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "trustCenterFile", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageFileListItem_fileFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageFileListItemMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateTrustCenterFilePayload", - "kind": "LinkedField", - "name": "updateTrustCenterFile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "trustCenterFile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "963de1bddf6d9339854e8c147436ea36", - "id": null, - "metadata": {}, - "name": "CompliancePageFileListItemMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageFileListItemMutation(\n $input: UpdateTrustCenterFileInput!\n) {\n updateTrustCenterFile(input: $input) {\n trustCenterFile {\n ...CompliancePageFileListItem_fileFragment\n id\n }\n }\n}\n\nfragment CompliancePageFileListItem_fileFragment on TrustCenterFile {\n id\n name\n category\n fileUrl\n trustCenterVisibility\n createdAt\n canUpdate: permission(action: \"core:trust-center-file:update\")\n canDelete: permission(action: \"core:trust-center-file:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "e4f65173916a702e8e9ea587e0b560b2"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageFileListItem_compliancePageFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageFileListItem_compliancePageFragment.graphql.ts deleted file mode 100644 index 049265f0c..000000000 --- a/apps/console/src/__generated__/core/CompliancePageFileListItem_compliancePageFragment.graphql.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageFileListItem_compliancePageFragment$data = { - readonly canUpdate: boolean; - readonly " $fragmentType": "CompliancePageFileListItem_compliancePageFragment"; -}; -export type CompliancePageFileListItem_compliancePageFragment$key = { - readonly " $data"?: CompliancePageFileListItem_compliancePageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFileListItem_compliancePageFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageFileListItem_compliancePageFragment", - "selections": [ - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - } - ], - "type": "TrustCenter", - "abstractKey": null -}; - -(node as any).hash = "83a20628bcc627902e29c5515741efc5"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageFileListItem_fileFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageFileListItem_fileFragment.graphql.ts deleted file mode 100644 index 10eee4466..000000000 --- a/apps/console/src/__generated__/core/CompliancePageFileListItem_fileFragment.graphql.ts +++ /dev/null @@ -1,111 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageFileListItem_fileFragment$data = { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly category: string; - readonly createdAt: string; - readonly fileUrl: string; - readonly id: string; - readonly name: string; - readonly trustCenterVisibility: TrustCenterVisibility; - readonly " $fragmentType": "CompliancePageFileListItem_fileFragment"; -}; -export type CompliancePageFileListItem_fileFragment$key = { - readonly " $data"?: CompliancePageFileListItem_fileFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFileListItem_fileFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageFileListItem_fileFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:delete\")" - } - ], - "type": "TrustCenterFile", - "abstractKey": null -}; - -(node as any).hash = "0e5caf3d8c62ca0cd3ed8b37787e2b86"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageFilesPageQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageFilesPageQuery.graphql.ts deleted file mode 100644 index bba827353..000000000 --- a/apps/console/src/__generated__/core/CompliancePageFilesPageQuery.graphql.ts +++ /dev/null @@ -1,327 +0,0 @@ -/** - * @generated SignedSource<<94259096753f254d67dba23309f3c17b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageFilesPageQuery$variables = { - organizationId: string; -}; -export type CompliancePageFilesPageQuery$data = { - readonly organization: { - readonly canCreateTrustCenterFile?: boolean; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFileListFragment">; - }; -}; -export type CompliancePageFilesPageQuery = { - response: CompliancePageFilesPageQuery$data; - variables: CompliancePageFilesPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canCreateTrustCenterFile", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:create\")" -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageFilesPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/) - ], - "type": "Organization", - "abstractKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageFileListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageFilesPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - }, - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "TrustCenterFileConnection", - "kind": "LinkedField", - "name": "trustCenterFiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:delete\")" - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "trustCenterFiles(first:100)" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": null, - "handle": "connection", - "key": "CompliancePageFileList_trustCenterFiles", - "kind": "LinkedHandle", - "name": "trustCenterFiles" - } - ], - "type": "Organization", - "abstractKey": null - }, - (v4/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "dfdca184d1fbe4ccaeddda2c71e86958", - "id": null, - "metadata": {}, - "name": "CompliancePageFilesPageQuery", - "operationKind": "query", - "text": "query CompliancePageFilesPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateTrustCenterFile: permission(action: \"core:trust-center-file:create\")\n }\n ...CompliancePageFileListFragment\n id\n }\n}\n\nfragment CompliancePageFileListFragment on Organization {\n compliancePage: trustCenter {\n ...CompliancePageFileListItem_compliancePageFragment\n id\n }\n trustCenterFiles(first: 100) {\n edges {\n node {\n id\n ...CompliancePageFileListItem_fileFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment CompliancePageFileListItem_compliancePageFragment on TrustCenter {\n canUpdate: permission(action: \"core:trust-center:update\")\n}\n\nfragment CompliancePageFileListItem_fileFragment on TrustCenterFile {\n id\n name\n category\n fileUrl\n trustCenterVisibility\n createdAt\n canUpdate: permission(action: \"core:trust-center-file:update\")\n canDelete: permission(action: \"core:trust-center-file:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "77e598eaad239dcac7b5036c52442ed4"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageFrameworkList_compliancePageFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageFrameworkList_compliancePageFragment.graphql.ts deleted file mode 100644 index e03e2e10a..000000000 --- a/apps/console/src/__generated__/core/CompliancePageFrameworkList_compliancePageFragment.graphql.ts +++ /dev/null @@ -1,252 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type ComplianceFrameworkVisibility = "NONE" | "PUBLIC"; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageFrameworkList_compliancePageFragment$data = { - readonly canUpdate: boolean; - readonly complianceFrameworks: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly framework: { - readonly darkLogoURL: string | null | undefined; - readonly id: string; - readonly lightLogoURL: string | null | undefined; - readonly name: string; - }; - readonly id: string; - readonly rank: number; - readonly visibility: ComplianceFrameworkVisibility; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "CompliancePageFrameworkList_compliancePageFragment"; -}; -export type CompliancePageFrameworkList_compliancePageFragment$key = { - readonly " $data"?: CompliancePageFrameworkList_compliancePageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFrameworkList_compliancePageFragment">; -}; - -import CompliancePageFrameworkList_compliancePageRefetchQuery_graphql from './CompliancePageFrameworkList_compliancePageRefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "complianceFrameworks" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 100, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": { - "direction": "ASC", - "field": "RANK" - }, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": CompliancePageFrameworkList_compliancePageRefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "CompliancePageFrameworkList_compliancePageFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - }, - { - "alias": "complianceFrameworks", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "ComplianceFrameworkConnection", - "kind": "LinkedField", - "name": "__CompliancePageFrameworkList_complianceFrameworks_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFrameworkEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFramework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "visibility", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "TrustCenter", - "abstractKey": null -}; -})(); - -(node as any).hash = "b67fb402ac09aee269e109129ad129a2"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageFrameworkList_compliancePageRefetchQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageFrameworkList_compliancePageRefetchQuery.graphql.ts deleted file mode 100644 index 825ac1b44..000000000 --- a/apps/console/src/__generated__/core/CompliancePageFrameworkList_compliancePageRefetchQuery.graphql.ts +++ /dev/null @@ -1,323 +0,0 @@ -/** - * @generated SignedSource<<3db3a1d31b09ffadc962faf1ffa21b0e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ComplianceFrameworkOrderField = "CREATED_AT" | "RANK"; -export type OrderDirection = "ASC" | "DESC"; -export type ComplianceFrameworkOrder = { - direction: OrderDirection; - field: ComplianceFrameworkOrderField; -}; -export type CompliancePageFrameworkList_compliancePageRefetchQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; - order?: ComplianceFrameworkOrder | null | undefined; -}; -export type CompliancePageFrameworkList_compliancePageRefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFrameworkList_compliancePageFragment">; - }; -}; -export type CompliancePageFrameworkList_compliancePageRefetchQuery = { - response: CompliancePageFrameworkList_compliancePageRefetchQuery$data; - variables: CompliancePageFrameworkList_compliancePageRefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": 100, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": { - "direction": "ASC", - "field": "RANK" - }, - "kind": "LocalArgument", - "name": "order" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v6 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v9 = [ - (v5/*: any*/), - (v6/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageFrameworkList_compliancePageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v5/*: any*/), - (v6/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "CompliancePageFrameworkList_compliancePageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "CompliancePageFrameworkList_compliancePageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v7/*: any*/), - (v8/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - }, - { - "alias": null, - "args": (v9/*: any*/), - "concreteType": "ComplianceFrameworkConnection", - "kind": "LinkedField", - "name": "complianceFrameworks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFrameworkEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFramework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "visibility", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - } - ], - "storageKey": null - }, - (v7/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v9/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "CompliancePageFrameworkList_complianceFrameworks", - "kind": "LinkedHandle", - "name": "complianceFrameworks" - } - ], - "type": "TrustCenter", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c3c1d708940371ebc18c2c5272f0b26d", - "id": null, - "metadata": {}, - "name": "CompliancePageFrameworkList_compliancePageRefetchQuery", - "operationKind": "query", - "text": "query CompliancePageFrameworkList_compliancePageRefetchQuery(\n $after: CursorKey = null\n $first: Int = 100\n $order: ComplianceFrameworkOrder = {field: RANK, direction: ASC}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CompliancePageFrameworkList_compliancePageFragment_gOVF5\n id\n }\n}\n\nfragment CompliancePageFrameworkList_compliancePageFragment_gOVF5 on TrustCenter {\n id\n canUpdate: permission(action: \"core:trust-center:update\")\n complianceFrameworks(first: $first, after: $after, orderBy: $order) {\n edges {\n node {\n id\n rank\n visibility\n framework {\n id\n name\n lightLogoURL\n darkLogoURL\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b67fb402ac09aee269e109129ad129a2"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageFrameworkList_createMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageFrameworkList_createMutation.graphql.ts deleted file mode 100644 index 816c00934..000000000 --- a/apps/console/src/__generated__/core/CompliancePageFrameworkList_createMutation.graphql.ts +++ /dev/null @@ -1,119 +0,0 @@ -/** - * @generated SignedSource<<2980fa2d2a72851686e88a7b5402d720>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateComplianceFrameworkInput = { - frameworkId: string; - trustCenterId: string; -}; -export type CompliancePageFrameworkList_createMutation$variables = { - input: CreateComplianceFrameworkInput; -}; -export type CompliancePageFrameworkList_createMutation$data = { - readonly createComplianceFramework: { - readonly complianceFrameworkEdge: { - readonly node: { - readonly id: string; - }; - }; - }; -}; -export type CompliancePageFrameworkList_createMutation = { - response: CompliancePageFrameworkList_createMutation$data; - variables: CompliancePageFrameworkList_createMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "CreateComplianceFrameworkPayload", - "kind": "LinkedField", - "name": "createComplianceFramework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFrameworkEdge", - "kind": "LinkedField", - "name": "complianceFrameworkEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFramework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageFrameworkList_createMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageFrameworkList_createMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "9caebfdeda321fb743a8d789c7e25e82", - "id": null, - "metadata": {}, - "name": "CompliancePageFrameworkList_createMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageFrameworkList_createMutation(\n $input: CreateComplianceFrameworkInput!\n) {\n createComplianceFramework(input: $input) {\n complianceFrameworkEdge {\n node {\n id\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "41815aaef15ed1754b4d81c1d982a2c6"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageFrameworkList_deleteMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageFrameworkList_deleteMutation.graphql.ts deleted file mode 100644 index cb7fd4eb1..000000000 --- a/apps/console/src/__generated__/core/CompliancePageFrameworkList_deleteMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<0f29d441e95842685f0311839d3b45ef>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteComplianceFrameworkInput = { - id: string; -}; -export type CompliancePageFrameworkList_deleteMutation$variables = { - input: DeleteComplianceFrameworkInput; -}; -export type CompliancePageFrameworkList_deleteMutation$data = { - readonly deleteComplianceFramework: { - readonly deletedComplianceFrameworkId: string; - }; -}; -export type CompliancePageFrameworkList_deleteMutation = { - response: CompliancePageFrameworkList_deleteMutation$data; - variables: CompliancePageFrameworkList_deleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteComplianceFrameworkPayload", - "kind": "LinkedField", - "name": "deleteComplianceFramework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedComplianceFrameworkId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageFrameworkList_deleteMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageFrameworkList_deleteMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "5792168e44352169568a1378b621df16", - "id": null, - "metadata": {}, - "name": "CompliancePageFrameworkList_deleteMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageFrameworkList_deleteMutation(\n $input: DeleteComplianceFrameworkInput!\n) {\n deleteComplianceFramework(input: $input) {\n deletedComplianceFrameworkId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "fed45c59adf7d88aec4bbb7eb61840c3"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageFrameworkList_updateRankMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageFrameworkList_updateRankMutation.graphql.ts deleted file mode 100644 index 637571d99..000000000 --- a/apps/console/src/__generated__/core/CompliancePageFrameworkList_updateRankMutation.graphql.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @generated SignedSource<<3c6052dff7f71548026fb23353e215b2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateComplianceFrameworkInput = { - id: string; - rank: number; -}; -export type CompliancePageFrameworkList_updateRankMutation$variables = { - input: UpdateComplianceFrameworkInput; -}; -export type CompliancePageFrameworkList_updateRankMutation$data = { - readonly updateComplianceFramework: { - readonly complianceFramework: { - readonly id: string; - readonly rank: number; - }; - }; -}; -export type CompliancePageFrameworkList_updateRankMutation = { - response: CompliancePageFrameworkList_updateRankMutation$data; - variables: CompliancePageFrameworkList_updateRankMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateComplianceFrameworkPayload", - "kind": "LinkedField", - "name": "updateComplianceFramework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFramework", - "kind": "LinkedField", - "name": "complianceFramework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageFrameworkList_updateRankMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageFrameworkList_updateRankMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "429989dd7550f3c5466a8098f5167592", - "id": null, - "metadata": {}, - "name": "CompliancePageFrameworkList_updateRankMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageFrameworkList_updateRankMutation(\n $input: UpdateComplianceFrameworkInput!\n) {\n updateComplianceFramework(input: $input) {\n complianceFramework {\n id\n rank\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a60d166f55bbe09a53349b400355ffc0"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageLayoutQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageLayoutQuery.graphql.ts deleted file mode 100644 index b1409635d..000000000 --- a/apps/console/src/__generated__/core/CompliancePageLayoutQuery.graphql.ts +++ /dev/null @@ -1,164 +0,0 @@ -/** - * @generated SignedSource<<7000743fa590bee3bbcf0a18def47ed0>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CompliancePageLayoutQuery$variables = { - organizationId: string; -}; -export type CompliancePageLayoutQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly compliancePage: { - readonly active: boolean; - } | null | undefined; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type CompliancePageLayoutQuery = { - response: CompliancePageLayoutQuery$data; - variables: CompliancePageLayoutQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "active", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageLayoutQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageLayoutQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - }, - (v4/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "4bbef5c143ac18fe30a6639af67368ba", - "id": null, - "metadata": {}, - "name": "CompliancePageLayoutQuery", - "operationKind": "query", - "text": "query CompliancePageLayoutQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n compliancePage: trustCenter {\n active\n id\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "29df1368a1d61815d82c172c94f1ca5e"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageMailingListDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageMailingListDeleteMutation.graphql.ts deleted file mode 100644 index 1b5e1a7cd..000000000 --- a/apps/console/src/__generated__/core/CompliancePageMailingListDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<72b5471e12ed01f059b4192ee5827a1a>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteMailingListSubscriberInput = { - id: string; -}; -export type CompliancePageMailingListDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteMailingListSubscriberInput; -}; -export type CompliancePageMailingListDeleteMutation$data = { - readonly deleteMailingListSubscriber: { - readonly deletedMailingListSubscriberId: string; - }; -}; -export type CompliancePageMailingListDeleteMutation = { - response: CompliancePageMailingListDeleteMutation$data; - variables: CompliancePageMailingListDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedMailingListSubscriberId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageMailingListDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteMailingListSubscriberPayload", - "kind": "LinkedField", - "name": "deleteMailingListSubscriber", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "CompliancePageMailingListDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteMailingListSubscriberPayload", - "kind": "LinkedField", - "name": "deleteMailingListSubscriber", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedMailingListSubscriberId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "65de43d2f00cd2c553aa72568f81eac2", - "id": null, - "metadata": {}, - "name": "CompliancePageMailingListDeleteMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageMailingListDeleteMutation(\n $input: DeleteMailingListSubscriberInput!\n) {\n deleteMailingListSubscriber(input: $input) {\n deletedMailingListSubscriberId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "bb627bfeb68e7b72c337c40133ab63a8"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageMailingListFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageMailingListFragment.graphql.ts deleted file mode 100644 index e5b3f5e04..000000000 --- a/apps/console/src/__generated__/core/CompliancePageMailingListFragment.graphql.ts +++ /dev/null @@ -1,234 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type MailingListSubscriberStatus = "CONFIRMED" | "PENDING"; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageMailingListFragment$data = { - readonly id: string; - readonly mailingList: { - readonly id: string; - readonly subscribers: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly createdAt: string; - readonly email: string; - readonly fullName: string; - readonly id: string; - readonly status: MailingListSubscriberStatus; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - }; - } | null | undefined; - readonly " $fragmentType": "CompliancePageMailingListFragment"; -}; -export type CompliancePageMailingListFragment$key = { - readonly " $data"?: CompliancePageMailingListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageMailingListFragment">; -}; - -import CompliancePageMailingListQuery_graphql from './CompliancePageMailingListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "mailingList", - "subscribers" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": CompliancePageMailingListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "CompliancePageMailingListFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingList", - "kind": "LinkedField", - "name": "mailingList", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": "subscribers", - "args": null, - "concreteType": "MailingListSubscriberConnection", - "kind": "LinkedField", - "name": "__CompliancePageMailingList_subscribers_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "MailingListSubscriberEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListSubscriber", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "TrustCenter", - "abstractKey": null -}; -})(); - -(node as any).hash = "b1828ed7ded38bb3e3e150b0875ea0a6"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageMailingListPageQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageMailingListPageQuery.graphql.ts deleted file mode 100644 index 56459f471..000000000 --- a/apps/console/src/__generated__/core/CompliancePageMailingListPageQuery.graphql.ts +++ /dev/null @@ -1,401 +0,0 @@ -/** - * @generated SignedSource<<085b4e7d01bd398825ec9387c79ab79f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageMailingListPageQuery$variables = { - organizationId: string; -}; -export type CompliancePageMailingListPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly compliancePage: { - readonly id: string; - readonly mailingList: { - readonly id: string; - readonly replyTo: string | null | undefined; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageUpdatesListFragment">; - } | null | undefined; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageMailingListFragment">; - }; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type CompliancePageMailingListPageQuery = { - response: CompliancePageMailingListPageQuery$data; - variables: CompliancePageMailingListPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "replyTo", - "storageKey": null -}, -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -], -v6 = { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v10 = { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageMailingListPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "MailingList", - "kind": "LinkedField", - "name": "mailingList", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageUpdatesListFragment" - } - ], - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageMailingListFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageMailingListPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "MailingList", - "kind": "LinkedField", - "name": "mailingList", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "MailingListUpdateConnection", - "kind": "LinkedField", - "name": "updates", - "plural": false, - "selections": [ - (v6/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "MailingListUpdateEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListUpdate", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "body", - "storageKey": null - }, - (v7/*: any*/), - (v8/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - (v9/*: any*/) - ], - "storageKey": null - }, - (v10/*: any*/) - ], - "storageKey": "updates(first:20)" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": null, - "handle": "connection", - "key": "CompliancePageUpdatesList_updates", - "kind": "LinkedHandle", - "name": "updates" - }, - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "MailingListSubscriberConnection", - "kind": "LinkedField", - "name": "subscribers", - "plural": false, - "selections": [ - (v6/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "MailingListSubscriberEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListSubscriber", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - (v7/*: any*/), - (v8/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - (v9/*: any*/) - ], - "storageKey": null - }, - (v10/*: any*/) - ], - "storageKey": "subscribers(first:20)" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": null, - "handle": "connection", - "key": "CompliancePageMailingList_subscribers", - "kind": "LinkedHandle", - "name": "subscribers" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "27f6d430c8dc7bec9a4b5ce29cc73d0d", - "id": null, - "metadata": {}, - "name": "CompliancePageMailingListPageQuery", - "operationKind": "query", - "text": "query CompliancePageMailingListPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n compliancePage: trustCenter {\n id\n mailingList {\n id\n replyTo\n ...CompliancePageUpdatesListFragment\n }\n ...CompliancePageMailingListFragment\n }\n }\n id\n }\n}\n\nfragment CompliancePageMailingListFragment on TrustCenter {\n mailingList {\n id\n subscribers(first: 20) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n fullName\n email\n status\n createdAt\n __typename\n }\n cursor\n }\n }\n }\n id\n}\n\nfragment CompliancePageUpdatesListFragment on MailingList {\n updates(first: 20) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n title\n body\n status\n createdAt\n __typename\n }\n cursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "bda0ad6e5ff15a324d4c2ad76d0c94cd"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageMailingListPage_updateMailingListMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageMailingListPage_updateMailingListMutation.graphql.ts deleted file mode 100644 index c25952529..000000000 --- a/apps/console/src/__generated__/core/CompliancePageMailingListPage_updateMailingListMutation.graphql.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateMailingListInput = { - id: string; - replyTo?: string | null | undefined; -}; -export type CompliancePageMailingListPage_updateMailingListMutation$variables = { - input: UpdateMailingListInput; -}; -export type CompliancePageMailingListPage_updateMailingListMutation$data = { - readonly updateMailingList: { - readonly mailingList: { - readonly id: string; - readonly replyTo: string | null | undefined; - }; - }; -}; -export type CompliancePageMailingListPage_updateMailingListMutation = { - response: CompliancePageMailingListPage_updateMailingListMutation$data; - variables: CompliancePageMailingListPage_updateMailingListMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateMailingListPayload", - "kind": "LinkedField", - "name": "updateMailingList", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingList", - "kind": "LinkedField", - "name": "mailingList", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "replyTo", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageMailingListPage_updateMailingListMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageMailingListPage_updateMailingListMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "30b67540b107297075df95ee044714ea", - "id": null, - "metadata": {}, - "name": "CompliancePageMailingListPage_updateMailingListMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageMailingListPage_updateMailingListMutation(\n $input: UpdateMailingListInput!\n) {\n updateMailingList(input: $input) {\n mailingList {\n id\n replyTo\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0a1e6524623210147ba5db2affec456c"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageMailingListQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageMailingListQuery.graphql.ts deleted file mode 100644 index f3f557fe0..000000000 --- a/apps/console/src/__generated__/core/CompliancePageMailingListQuery.graphql.ts +++ /dev/null @@ -1,275 +0,0 @@ -/** - * @generated SignedSource<<88648e469580db301e2d4105dae6a072>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageMailingListQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; -}; -export type CompliancePageMailingListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageMailingListFragment">; - }; -}; -export type CompliancePageMailingListQuery = { - response: CompliancePageMailingListQuery$data; - variables: CompliancePageMailingListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v2 = [ - { - "kind": "Variable", - "name": "after", - "variableName": "after" - }, - { - "kind": "Variable", - "name": "first", - "variableName": "first" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageMailingListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": (v2/*: any*/), - "kind": "FragmentSpread", - "name": "CompliancePageMailingListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageMailingListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingList", - "kind": "LinkedField", - "name": "mailingList", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "MailingListSubscriberConnection", - "kind": "LinkedField", - "name": "subscribers", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "MailingListSubscriberEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListSubscriber", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v2/*: any*/), - "filters": null, - "handle": "connection", - "key": "CompliancePageMailingList_subscribers", - "kind": "LinkedHandle", - "name": "subscribers" - } - ], - "storageKey": null - } - ], - "type": "TrustCenter", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "409500a631f678d3b173a2feae512f71", - "id": null, - "metadata": {}, - "name": "CompliancePageMailingListQuery", - "operationKind": "query", - "text": "query CompliancePageMailingListQuery(\n $after: CursorKey = null\n $first: Int = 20\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CompliancePageMailingListFragment_2HEEH6\n id\n }\n}\n\nfragment CompliancePageMailingListFragment_2HEEH6 on TrustCenter {\n mailingList {\n id\n subscribers(first: $first, after: $after) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n fullName\n email\n status\n createdAt\n __typename\n }\n cursor\n }\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "b1828ed7ded38bb3e3e150b0875ea0a6"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageNDASectionFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageNDASectionFragment.graphql.ts deleted file mode 100644 index ad56df94e..000000000 --- a/apps/console/src/__generated__/core/CompliancePageNDASectionFragment.graphql.ts +++ /dev/null @@ -1,99 +0,0 @@ -/** - * @generated SignedSource<<7f02840c4c00cf39638d75212db9c27f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageNDASectionFragment$data = { - readonly compliancePage: { - readonly canDeleteNDA: boolean; - readonly canUploadNDA: boolean; - readonly id: string; - readonly ndaFileName: string | null | undefined; - readonly ndaFileUrl: string | null | undefined; - } | null | undefined; - readonly " $fragmentType": "CompliancePageNDASectionFragment"; -}; -export type CompliancePageNDASectionFragment$key = { - readonly " $data"?: CompliancePageNDASectionFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageNDASectionFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageNDASectionFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ndaFileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ndaFileUrl", - "storageKey": null - }, - { - "alias": "canUploadNDA", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:upload-nda" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:upload-nda\")" - }, - { - "alias": "canDeleteNDA", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:delete-nda" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:delete-nda\")" - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "a4da57d370ca8b19342af873efac95f7"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageOverviewPageQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageOverviewPageQuery.graphql.ts deleted file mode 100644 index 67dd395b0..000000000 --- a/apps/console/src/__generated__/core/CompliancePageOverviewPageQuery.graphql.ts +++ /dev/null @@ -1,313 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageOverviewPageQuery$variables = { - organizationId: string; -}; -export type CompliancePageOverviewPageQuery$data = { - readonly organization: { - readonly compliancePage?: { - readonly canGetNDA: boolean; - } | null | undefined; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageNDASectionFragment" | "CompliancePageSlackSectionFragment" | "CompliancePageStatusSectionFragment">; - }; -}; -export type CompliancePageOverviewPageQuery = { - response: CompliancePageOverviewPageQuery$data; - variables: CompliancePageOverviewPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canGetNDA", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:get-nda" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:get-nda\")" -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageOverviewPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageStatusSectionFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageNDASectionFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageSlackSectionFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageOverviewPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "active", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ndaFileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ndaFileUrl", - "storageKey": null - }, - { - "alias": "canUploadNDA", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:upload-nda" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:upload-nda\")" - }, - { - "alias": "canDeleteNDA", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:delete-nda" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:delete-nda\")" - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "CustomDomain", - "kind": "LinkedField", - "name": "customDomain", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domain", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "SlackConnectionConnection", - "kind": "LinkedField", - "name": "slackConnections", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SlackConnectionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SlackConnection", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "channel", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "slackConnections(first:100)" - } - ], - "type": "Organization", - "abstractKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "ec3cfcfb3511a97a119b9d08b6c1069f", - "id": null, - "metadata": {}, - "name": "CompliancePageOverviewPageQuery", - "operationKind": "query", - "text": "query CompliancePageOverviewPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n compliancePage: trustCenter {\n canGetNDA: permission(action: \"core:trust-center:get-nda\")\n id\n }\n }\n ...CompliancePageStatusSectionFragment\n ...CompliancePageNDASectionFragment\n ...CompliancePageSlackSectionFragment\n id\n }\n}\n\nfragment CompliancePageNDASectionFragment on Organization {\n compliancePage: trustCenter {\n id\n ndaFileName\n ndaFileUrl\n canUploadNDA: permission(action: \"core:trust-center:upload-nda\")\n canDeleteNDA: permission(action: \"core:trust-center:delete-nda\")\n }\n}\n\nfragment CompliancePageSlackSectionFragment on Organization {\n compliancePage: trustCenter {\n canUpdate: permission(action: \"core:trust-center:update\")\n id\n }\n slackConnections(first: 100) {\n edges {\n node {\n id\n channel\n createdAt\n }\n }\n }\n}\n\nfragment CompliancePageStatusSectionFragment on Organization {\n customDomain {\n domain\n id\n }\n compliancePage: trustCenter {\n id\n active\n canUpdate: permission(action: \"core:trust-center:update\")\n }\n}\n" - } -}; -})(); - -(node as any).hash = "689133b7f1c380266e6f15a60c527c91"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageReferenceListFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageReferenceListFragment.graphql.ts deleted file mode 100644 index dea6d0c5d..000000000 --- a/apps/console/src/__generated__/core/CompliancePageReferenceListFragment.graphql.ts +++ /dev/null @@ -1,209 +0,0 @@ -/** - * @generated SignedSource<<0fb850d4fd73390187553a1b9d8aa5f6>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageReferenceListFragment$data = { - readonly id: string; - readonly references: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly rank: number; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageReferenceListItemFragment">; - }; - }>; - }; - readonly " $fragmentType": "CompliancePageReferenceListFragment"; -}; -export type CompliancePageReferenceListFragment$key = { - readonly " $data"?: CompliancePageReferenceListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageReferenceListFragment">; -}; - -import CompliancePageReferenceListQuery_graphql from './CompliancePageReferenceListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "references" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 100, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": { - "direction": "ASC", - "field": "RANK" - }, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": CompliancePageReferenceListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "CompliancePageReferenceListFragment", - "selections": [ - { - "alias": "references", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "TrustCenterReferenceConnection", - "kind": "LinkedField", - "name": "__CompliancePageReferenceList_references_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReferenceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReference", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageReferenceListItemFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "TrustCenter", - "abstractKey": null -}; -})(); - -(node as any).hash = "83c6f67e205efe88843125bbbd5798d3"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageReferenceListItemFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageReferenceListItemFragment.graphql.ts deleted file mode 100644 index 03886742c..000000000 --- a/apps/console/src/__generated__/core/CompliancePageReferenceListItemFragment.graphql.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageReferenceListItemFragment$data = { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly description: string | null | undefined; - readonly id: string; - readonly logoUrl: string; - readonly name: string; - readonly rank: number; - readonly websiteUrl: string; - readonly " $fragmentType": "CompliancePageReferenceListItemFragment"; -}; -export type CompliancePageReferenceListItemFragment$key = { - readonly " $data"?: CompliancePageReferenceListItemFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageReferenceListItemFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageReferenceListItemFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:delete\")" - } - ], - "type": "TrustCenterReference", - "abstractKey": null -}; - -(node as any).hash = "c7b132a9fea8a7c8cbf1a29af14dbb76"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageReferenceListQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageReferenceListQuery.graphql.ts deleted file mode 100644 index 5564808db..000000000 --- a/apps/console/src/__generated__/core/CompliancePageReferenceListQuery.graphql.ts +++ /dev/null @@ -1,336 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type TrustCenterReferenceOrderField = "CREATED_AT" | "NAME" | "RANK" | "UPDATED_AT"; -export type TrustCenterReferenceOrder = { - direction: OrderDirection; - field: TrustCenterReferenceOrderField; -}; -export type CompliancePageReferenceListQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; - order?: TrustCenterReferenceOrder | null | undefined; -}; -export type CompliancePageReferenceListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageReferenceListFragment">; - }; -}; -export type CompliancePageReferenceListQuery = { - response: CompliancePageReferenceListQuery$data; - variables: CompliancePageReferenceListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": 100, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": { - "direction": "ASC", - "field": "RANK" - }, - "kind": "LocalArgument", - "name": "order" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v6 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v9 = [ - (v5/*: any*/), - (v6/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageReferenceListQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v5/*: any*/), - (v6/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "CompliancePageReferenceListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "CompliancePageReferenceListQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v7/*: any*/), - (v8/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v9/*: any*/), - "concreteType": "TrustCenterReferenceConnection", - "kind": "LinkedField", - "name": "references", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReferenceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReference", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:delete\")" - }, - (v7/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v9/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "CompliancePageReferenceList_references", - "kind": "LinkedHandle", - "name": "references" - } - ], - "type": "TrustCenter", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "0d132045fe4d5dbaa3f5e86c43f07938", - "id": null, - "metadata": {}, - "name": "CompliancePageReferenceListQuery", - "operationKind": "query", - "text": "query CompliancePageReferenceListQuery(\n $after: CursorKey = null\n $first: Int = 100\n $order: TrustCenterReferenceOrder = {field: RANK, direction: ASC}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CompliancePageReferenceListFragment_gOVF5\n id\n }\n}\n\nfragment CompliancePageReferenceListFragment_gOVF5 on TrustCenter {\n references(first: $first, after: $after, orderBy: $order) {\n edges {\n node {\n id\n rank\n ...CompliancePageReferenceListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n}\n\nfragment CompliancePageReferenceListItemFragment on TrustCenterReference {\n id\n logoUrl\n name\n description\n websiteUrl\n rank\n canUpdate: permission(action: \"core:trust-center-reference:update\")\n canDelete: permission(action: \"core:trust-center-reference:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "83c6f67e205efe88843125bbbd5798d3"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageReferencesPageQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageReferencesPageQuery.graphql.ts deleted file mode 100644 index fa83584e7..000000000 --- a/apps/console/src/__generated__/core/CompliancePageReferencesPageQuery.graphql.ts +++ /dev/null @@ -1,349 +0,0 @@ -/** - * @generated SignedSource<<2e39ee9612cc7b0e6296af8e312a0e56>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageReferencesPageQuery$variables = { - organizationId: string; -}; -export type CompliancePageReferencesPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly compliancePage: { - readonly canCreateReference: boolean; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageReferenceListFragment">; - }; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type CompliancePageReferencesPageQuery = { - response: CompliancePageReferencesPageQuery$data; - variables: CompliancePageReferencesPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": "canCreateReference", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:create\")" -}, -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 100 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "RANK" - } - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageReferencesPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageReferenceListFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageReferencesPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "TrustCenterReferenceConnection", - "kind": "LinkedField", - "name": "references", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReferenceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReference", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:delete\")" - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "references(first:100,orderBy:{\"direction\":\"ASC\",\"field\":\"RANK\"})" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "CompliancePageReferenceList_references", - "kind": "LinkedHandle", - "name": "references" - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1a732f292c22feb29c304b4f99703ea0", - "id": null, - "metadata": {}, - "name": "CompliancePageReferencesPageQuery", - "operationKind": "query", - "text": "query CompliancePageReferencesPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n compliancePage: trustCenter {\n id\n canCreateReference: permission(action: \"core:trust-center-reference:create\")\n ...CompliancePageReferenceListFragment\n }\n }\n id\n }\n}\n\nfragment CompliancePageReferenceListFragment on TrustCenter {\n references(first: 100, orderBy: {field: RANK, direction: ASC}) {\n edges {\n node {\n id\n rank\n ...CompliancePageReferenceListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n}\n\nfragment CompliancePageReferenceListItemFragment on TrustCenterReference {\n id\n logoUrl\n name\n description\n websiteUrl\n rank\n canUpdate: permission(action: \"core:trust-center-reference:update\")\n canDelete: permission(action: \"core:trust-center-reference:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "9c5e008e8f12d028e3b280a833ec3fc5"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageSlackSectionFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageSlackSectionFragment.graphql.ts deleted file mode 100644 index c3f8ca713..000000000 --- a/apps/console/src/__generated__/core/CompliancePageSlackSectionFragment.graphql.ts +++ /dev/null @@ -1,130 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageSlackSectionFragment$data = { - readonly compliancePage: { - readonly canUpdate: boolean; - } | null | undefined; - readonly slackConnections: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly channel: string | null | undefined; - readonly createdAt: string; - readonly id: string; - }; - }>; - }; - readonly " $fragmentType": "CompliancePageSlackSectionFragment"; -}; -export type CompliancePageSlackSectionFragment$key = { - readonly " $data"?: CompliancePageSlackSectionFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageSlackSectionFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageSlackSectionFragment", - "selections": [ - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "SlackConnectionConnection", - "kind": "LinkedField", - "name": "slackConnections", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SlackConnectionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SlackConnection", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "channel", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "slackConnections(first:100)" - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "48af0130884a7e0070e64ead2afe5046"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageStatusSectionFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageStatusSectionFragment.graphql.ts deleted file mode 100644 index fc23f8d43..000000000 --- a/apps/console/src/__generated__/core/CompliancePageStatusSectionFragment.graphql.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageStatusSectionFragment$data = { - readonly compliancePage: { - readonly active: boolean; - readonly canUpdate: boolean; - readonly id: string; - } | null | undefined; - readonly customDomain: { - readonly domain: string; - } | null | undefined; - readonly " $fragmentType": "CompliancePageStatusSectionFragment"; -}; -export type CompliancePageStatusSectionFragment$key = { - readonly " $data"?: CompliancePageStatusSectionFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageStatusSectionFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageStatusSectionFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "CustomDomain", - "kind": "LinkedField", - "name": "customDomain", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domain", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "compliancePage", - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "active", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:update\")" - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "07af542e3be959de0daf6fcb165830b0"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageUpdatesListDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageUpdatesListDeleteMutation.graphql.ts deleted file mode 100644 index 8fa20effa..000000000 --- a/apps/console/src/__generated__/core/CompliancePageUpdatesListDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<8fc725e69722e66e680df0ed52206c77>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteMailingListUpdateInput = { - id: string; -}; -export type CompliancePageUpdatesListDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteMailingListUpdateInput; -}; -export type CompliancePageUpdatesListDeleteMutation$data = { - readonly deleteMailingListUpdate: { - readonly deletedMailingListUpdateId: string; - }; -}; -export type CompliancePageUpdatesListDeleteMutation = { - response: CompliancePageUpdatesListDeleteMutation$data; - variables: CompliancePageUpdatesListDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedMailingListUpdateId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageUpdatesListDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteMailingListUpdatePayload", - "kind": "LinkedField", - "name": "deleteMailingListUpdate", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "CompliancePageUpdatesListDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteMailingListUpdatePayload", - "kind": "LinkedField", - "name": "deleteMailingListUpdate", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedMailingListUpdateId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "892a75687f4d8560945e5a30915aecbd", - "id": null, - "metadata": {}, - "name": "CompliancePageUpdatesListDeleteMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageUpdatesListDeleteMutation(\n $input: DeleteMailingListUpdateInput!\n) {\n deleteMailingListUpdate(input: $input) {\n deletedMailingListUpdateId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "29a3142fa30bc64beb74d21f5162a00c"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageUpdatesListFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageUpdatesListFragment.graphql.ts deleted file mode 100644 index 0a05e7004..000000000 --- a/apps/console/src/__generated__/core/CompliancePageUpdatesListFragment.graphql.ts +++ /dev/null @@ -1,218 +0,0 @@ -/** - * @generated SignedSource<<761e66cf5fc7ceb254cd657949fd857f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type MailingListUpdateStatus = "DRAFT" | "ENQUEUED" | "PROCESSING" | "SENT"; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageUpdatesListFragment$data = { - readonly id: string; - readonly updates: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly body: string; - readonly createdAt: string; - readonly id: string; - readonly status: MailingListUpdateStatus; - readonly title: string; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - }; - readonly " $fragmentType": "CompliancePageUpdatesListFragment"; -}; -export type CompliancePageUpdatesListFragment$key = { - readonly " $data"?: CompliancePageUpdatesListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageUpdatesListFragment">; -}; - -import CompliancePageUpdatesListQuery_graphql from './CompliancePageUpdatesListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "updates" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": CompliancePageUpdatesListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "CompliancePageUpdatesListFragment", - "selections": [ - { - "alias": "updates", - "args": null, - "concreteType": "MailingListUpdateConnection", - "kind": "LinkedField", - "name": "__CompliancePageUpdatesList_updates_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "MailingListUpdateEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListUpdate", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "body", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "MailingList", - "abstractKey": null -}; -})(); - -(node as any).hash = "ec30cc8203e7247748a105b6740dcf1f"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageUpdatesListQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageUpdatesListQuery.graphql.ts deleted file mode 100644 index 68c861bd7..000000000 --- a/apps/console/src/__generated__/core/CompliancePageUpdatesListQuery.graphql.ts +++ /dev/null @@ -1,263 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageUpdatesListQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; -}; -export type CompliancePageUpdatesListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageUpdatesListFragment">; - }; -}; -export type CompliancePageUpdatesListQuery = { - response: CompliancePageUpdatesListQuery$data; - variables: CompliancePageUpdatesListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v2 = [ - { - "kind": "Variable", - "name": "after", - "variableName": "after" - }, - { - "kind": "Variable", - "name": "first", - "variableName": "first" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageUpdatesListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": (v2/*: any*/), - "kind": "FragmentSpread", - "name": "CompliancePageUpdatesListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageUpdatesListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "MailingListUpdateConnection", - "kind": "LinkedField", - "name": "updates", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "MailingListUpdateEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListUpdate", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "body", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v2/*: any*/), - "filters": null, - "handle": "connection", - "key": "CompliancePageUpdatesList_updates", - "kind": "LinkedHandle", - "name": "updates" - } - ], - "type": "MailingList", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "03f1291dd1f69df4daf3378cda095f4d", - "id": null, - "metadata": {}, - "name": "CompliancePageUpdatesListQuery", - "operationKind": "query", - "text": "query CompliancePageUpdatesListQuery(\n $after: CursorKey = null\n $first: Int = 20\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CompliancePageUpdatesListFragment_2HEEH6\n id\n }\n}\n\nfragment CompliancePageUpdatesListFragment_2HEEH6 on MailingList {\n updates(first: $first, after: $after) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n title\n body\n status\n createdAt\n __typename\n }\n cursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "ec30cc8203e7247748a105b6740dcf1f"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageVendorListFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageVendorListFragment.graphql.ts deleted file mode 100644 index 3d493ed32..000000000 --- a/apps/console/src/__generated__/core/CompliancePageVendorListFragment.graphql.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageVendorListFragment$data = { - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageVendorListItem_vendorFragment">; - }; - }>; - }; - readonly " $fragmentType": "CompliancePageVendorListFragment"; -}; -export type CompliancePageVendorListFragment$key = { - readonly " $data"?: CompliancePageVendorListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageVendorListFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageVendorListFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageVendorListItem_vendorFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:100)" - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "dc9e2540ae0f8b56dc322ef6cbbfe805"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageVendorListItemMutation.graphql.ts b/apps/console/src/__generated__/core/CompliancePageVendorListItemMutation.graphql.ts deleted file mode 100644 index cbb7b19b4..000000000 --- a/apps/console/src/__generated__/core/CompliancePageVendorListItemMutation.graphql.ts +++ /dev/null @@ -1,196 +0,0 @@ -/** - * @generated SignedSource<<4374d6a33690e83fc1bb684baf5b05c4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CountryCode = "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "EU" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW"; -export type VendorCategory = "ANALYTICS" | "CLOUD_MONITORING" | "CLOUD_PROVIDER" | "COLLABORATION" | "CUSTOMER_SUPPORT" | "DATA_STORAGE_AND_PROCESSING" | "DOCUMENT_MANAGEMENT" | "EMPLOYEE_MANAGEMENT" | "ENGINEERING" | "FINANCE" | "IDENTITY_PROVIDER" | "IT" | "MARKETING" | "OFFICE_OPERATIONS" | "OTHER" | "PASSWORD_MANAGEMENT" | "PRODUCT_AND_DESIGN" | "PROFESSIONAL_SERVICES" | "RECRUITING" | "SALES" | "SECURITY" | "VERSION_CONTROL"; -export type UpdateVendorInput = { - businessAssociateAgreementUrl?: string | null | undefined; - businessOwnerId?: string | null | undefined; - category?: VendorCategory | null | undefined; - certifications?: ReadonlyArray | null | undefined; - countries?: ReadonlyArray | null | undefined; - dataProcessingAgreementUrl?: string | null | undefined; - description?: string | null | undefined; - headquarterAddress?: string | null | undefined; - id: string; - legalName?: string | null | undefined; - name?: string | null | undefined; - privacyPolicyUrl?: string | null | undefined; - securityOwnerId?: string | null | undefined; - securityPageUrl?: string | null | undefined; - serviceLevelAgreementUrl?: string | null | undefined; - showOnTrustCenter?: boolean | null | undefined; - statusPageUrl?: string | null | undefined; - subprocessorsListUrl?: string | null | undefined; - termsOfServiceUrl?: string | null | undefined; - trustPageUrl?: string | null | undefined; - websiteUrl?: string | null | undefined; -}; -export type CompliancePageVendorListItemMutation$variables = { - input: UpdateVendorInput; -}; -export type CompliancePageVendorListItemMutation$data = { - readonly updateVendor: { - readonly vendor: { - readonly id: string; - readonly showOnTrustCenter: boolean; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageVendorListItem_vendorFragment">; - }; - }; -}; -export type CompliancePageVendorListItemMutation = { - response: CompliancePageVendorListItemMutation$data; - variables: CompliancePageVendorListItemMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "showOnTrustCenter", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageVendorListItemMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateVendorPayload", - "kind": "LinkedField", - "name": "updateVendor", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "vendor", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageVendorListItem_vendorFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageVendorListItemMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateVendorPayload", - "kind": "LinkedField", - "name": "updateVendor", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "vendor", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:update\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "20e9056d9d5d98f50940d4a0c4ff67df", - "id": null, - "metadata": {}, - "name": "CompliancePageVendorListItemMutation", - "operationKind": "mutation", - "text": "mutation CompliancePageVendorListItemMutation(\n $input: UpdateVendorInput!\n) {\n updateVendor(input: $input) {\n vendor {\n id\n showOnTrustCenter\n ...CompliancePageVendorListItem_vendorFragment\n }\n }\n}\n\nfragment CompliancePageVendorListItem_vendorFragment on Vendor {\n id\n category\n name\n showOnTrustCenter\n canUpdate: permission(action: \"core:vendor:update\")\n}\n" - } -}; -})(); - -(node as any).hash = "27c5e5e0d77dfbbd57480d6c49d0d87a"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageVendorListItem_vendorFragment.graphql.ts b/apps/console/src/__generated__/core/CompliancePageVendorListItem_vendorFragment.graphql.ts deleted file mode 100644 index 84037114f..000000000 --- a/apps/console/src/__generated__/core/CompliancePageVendorListItem_vendorFragment.graphql.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** - * @generated SignedSource<<5acd0b499b718393c592fa3d05cf3157>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type VendorCategory = "ANALYTICS" | "CLOUD_MONITORING" | "CLOUD_PROVIDER" | "COLLABORATION" | "CUSTOMER_SUPPORT" | "DATA_STORAGE_AND_PROCESSING" | "DOCUMENT_MANAGEMENT" | "EMPLOYEE_MANAGEMENT" | "ENGINEERING" | "FINANCE" | "IDENTITY_PROVIDER" | "IT" | "MARKETING" | "OFFICE_OPERATIONS" | "OTHER" | "PASSWORD_MANAGEMENT" | "PRODUCT_AND_DESIGN" | "PROFESSIONAL_SERVICES" | "RECRUITING" | "SALES" | "SECURITY" | "VERSION_CONTROL"; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageVendorListItem_vendorFragment$data = { - readonly canUpdate: boolean; - readonly category: VendorCategory; - readonly id: string; - readonly name: string; - readonly showOnTrustCenter: boolean; - readonly " $fragmentType": "CompliancePageVendorListItem_vendorFragment"; -}; -export type CompliancePageVendorListItem_vendorFragment$key = { - readonly " $data"?: CompliancePageVendorListItem_vendorFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageVendorListItem_vendorFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageVendorListItem_vendorFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "showOnTrustCenter", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:update\")" - } - ], - "type": "Vendor", - "abstractKey": null -}; - -(node as any).hash = "147628fced6667323cce1bf7e81fabfb"; - -export default node; diff --git a/apps/console/src/__generated__/core/CompliancePageVendorsPageQuery.graphql.ts b/apps/console/src/__generated__/core/CompliancePageVendorsPageQuery.graphql.ts deleted file mode 100644 index 325ae7662..000000000 --- a/apps/console/src/__generated__/core/CompliancePageVendorsPageQuery.graphql.ts +++ /dev/null @@ -1,196 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CompliancePageVendorsPageQuery$variables = { - organizationId: string; -}; -export type CompliancePageVendorsPageQuery$data = { - readonly organization: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageVendorListFragment">; - }; -}; -export type CompliancePageVendorsPageQuery = { - response: CompliancePageVendorsPageQuery$data; - variables: CompliancePageVendorsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CompliancePageVendorsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageVendorListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CompliancePageVendorsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "showOnTrustCenter", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:update\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:100)" - } - ], - "type": "Organization", - "abstractKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "83bd7ff13958372665e18d59f9636d55", - "id": null, - "metadata": {}, - "name": "CompliancePageVendorsPageQuery", - "operationKind": "query", - "text": "query CompliancePageVendorsPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ...CompliancePageVendorListFragment\n id\n }\n}\n\nfragment CompliancePageVendorListFragment on Organization {\n vendors(first: 100) {\n edges {\n node {\n id\n ...CompliancePageVendorListItem_vendorFragment\n }\n }\n }\n}\n\nfragment CompliancePageVendorListItem_vendorFragment on Vendor {\n id\n category\n name\n showOnTrustCenter\n canUpdate: permission(action: \"core:vendor:update\")\n}\n" - } -}; -})(); - -(node as any).hash = "991a68cadfe4984bf303a75dcda66a53"; - -export default node; diff --git a/apps/console/src/__generated__/core/ComplianceReportListQuery.graphql.ts b/apps/console/src/__generated__/core/ComplianceReportListQuery.graphql.ts deleted file mode 100644 index 73f78f249..000000000 --- a/apps/console/src/__generated__/core/ComplianceReportListQuery.graphql.ts +++ /dev/null @@ -1,383 +0,0 @@ -/** - * @generated SignedSource<<06786599f092383347104df17e963151>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type VendorComplianceReportOrderField = "CREATED_AT" | "REPORT_DATE"; -export type VendorComplianceReportOrder = { - direction: OrderDirection; - field: VendorComplianceReportOrderField; -}; -export type ComplianceReportListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: VendorComplianceReportOrder | null | undefined; -}; -export type ComplianceReportListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"VendorComplianceTabFragment">; - }; -}; -export type ComplianceReportListQuery = { - response: ComplianceReportListQuery$data; - variables: ComplianceReportListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ComplianceReportListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "VendorComplianceTabFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "ComplianceReportListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "VendorComplianceReportConnection", - "kind": "LinkedField", - "name": "complianceReports", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReportEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReport", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-compliance-report:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-compliance-report:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "downloadUrl", - "storageKey": null - }, - (v12/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "VendorComplianceTabFragment_complianceReports", - "kind": "LinkedHandle", - "name": "complianceReports" - } - ], - "type": "Vendor", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "832d836585f258271c468ed64f36952d", - "id": null, - "metadata": {}, - "name": "ComplianceReportListQuery", - "operationKind": "query", - "text": "query ComplianceReportListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: VendorComplianceReportOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...VendorComplianceTabFragment_16fISc\n id\n }\n}\n\nfragment VendorComplianceTabFragment_16fISc on Vendor {\n complianceReports(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n canDelete: permission(action: \"core:vendor-compliance-report:delete\")\n ...VendorComplianceTabFragment_report\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorComplianceTabFragment_report on VendorComplianceReport {\n id\n reportDate\n validUntil\n reportName\n file {\n fileName\n size\n downloadUrl\n id\n }\n canDelete: permission(action: \"core:vendor-compliance-report:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "078c14e9b989c435abf83ec5b4396f6c"; - -export default node; diff --git a/apps/console/src/__generated__/core/ComplianceUpdateFormDialogCreateMutation.graphql.ts b/apps/console/src/__generated__/core/ComplianceUpdateFormDialogCreateMutation.graphql.ts deleted file mode 100644 index 5d13c492c..000000000 --- a/apps/console/src/__generated__/core/ComplianceUpdateFormDialogCreateMutation.graphql.ts +++ /dev/null @@ -1,193 +0,0 @@ -/** - * @generated SignedSource<<2cec7e8ca8209de4cb2d007ad8bfe9fa>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type MailingListUpdateStatus = "DRAFT" | "ENQUEUED" | "PROCESSING" | "SENT"; -export type CreateMailingListUpdateInput = { - body: string; - mailingListId: string; - title: string; -}; -export type ComplianceUpdateFormDialogCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateMailingListUpdateInput; -}; -export type ComplianceUpdateFormDialogCreateMutation$data = { - readonly createMailingListUpdate: { - readonly mailingListUpdate: { - readonly body: string; - readonly createdAt: string; - readonly id: string; - readonly status: MailingListUpdateStatus; - readonly title: string; - readonly updatedAt: string; - }; - }; -}; -export type ComplianceUpdateFormDialogCreateMutation = { - response: ComplianceUpdateFormDialogCreateMutation$data; - variables: ComplianceUpdateFormDialogCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "MailingListUpdate", - "kind": "LinkedField", - "name": "mailingListUpdate", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "body", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ComplianceUpdateFormDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateMailingListUpdatePayload", - "kind": "LinkedField", - "name": "createMailingListUpdate", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "ComplianceUpdateFormDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateMailingListUpdatePayload", - "kind": "LinkedField", - "name": "createMailingListUpdate", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependNode", - "key": "", - "kind": "LinkedHandle", - "name": "mailingListUpdate", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - }, - { - "kind": "Literal", - "name": "edgeTypeName", - "value": "MailingListUpdateEdge" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "52d07d51ab21154cf26f8a932aba5e77", - "id": null, - "metadata": {}, - "name": "ComplianceUpdateFormDialogCreateMutation", - "operationKind": "mutation", - "text": "mutation ComplianceUpdateFormDialogCreateMutation(\n $input: CreateMailingListUpdateInput!\n) {\n createMailingListUpdate(input: $input) {\n mailingListUpdate {\n id\n title\n body\n status\n createdAt\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "6e8c7b014c850c90bcfb876d6e504f4d"; - -export default node; diff --git a/apps/console/src/__generated__/core/ComplianceUpdateFormDialogUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/ComplianceUpdateFormDialogUpdateMutation.graphql.ts deleted file mode 100644 index 84c4b255c..000000000 --- a/apps/console/src/__generated__/core/ComplianceUpdateFormDialogUpdateMutation.graphql.ts +++ /dev/null @@ -1,140 +0,0 @@ -/** - * @generated SignedSource<<44dade2df63778a95d78ef9aaf6c8fa2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type MailingListUpdateStatus = "DRAFT" | "ENQUEUED" | "PROCESSING" | "SENT"; -export type UpdateMailingListUpdateInput = { - body?: string | null | undefined; - id: string; - title?: string | null | undefined; -}; -export type ComplianceUpdateFormDialogUpdateMutation$variables = { - input: UpdateMailingListUpdateInput; -}; -export type ComplianceUpdateFormDialogUpdateMutation$data = { - readonly updateMailingListUpdate: { - readonly mailingListUpdate: { - readonly body: string; - readonly id: string; - readonly status: MailingListUpdateStatus; - readonly title: string; - readonly updatedAt: string; - }; - }; -}; -export type ComplianceUpdateFormDialogUpdateMutation = { - response: ComplianceUpdateFormDialogUpdateMutation$data; - variables: ComplianceUpdateFormDialogUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateMailingListUpdatePayload", - "kind": "LinkedField", - "name": "updateMailingListUpdate", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListUpdate", - "kind": "LinkedField", - "name": "mailingListUpdate", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "body", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ComplianceUpdateFormDialogUpdateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ComplianceUpdateFormDialogUpdateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "49b5feb2a9a2e157568ad2431e032425", - "id": null, - "metadata": {}, - "name": "ComplianceUpdateFormDialogUpdateMutation", - "operationKind": "mutation", - "text": "mutation ComplianceUpdateFormDialogUpdateMutation(\n $input: UpdateMailingListUpdateInput!\n) {\n updateMailingListUpdate(input: $input) {\n mailingListUpdate {\n id\n title\n body\n status\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3737c127b41a55df71e09d64aaa3da9e"; - -export default node; diff --git a/apps/console/src/__generated__/core/ContinualImprovementGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/ContinualImprovementGraphCreateMutation.graphql.ts deleted file mode 100644 index 3c1014651..000000000 --- a/apps/console/src/__generated__/core/ContinualImprovementGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,275 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ContinualImprovementPriority = "HIGH" | "LOW" | "MEDIUM"; -export type ContinualImprovementStatus = "CLOSED" | "IN_PROGRESS" | "OPEN"; -export type CreateContinualImprovementInput = { - description?: string | null | undefined; - organizationId: string; - ownerId: string; - priority: ContinualImprovementPriority; - referenceId: string; - source?: string | null | undefined; - status: ContinualImprovementStatus; - targetDate?: string | null | undefined; -}; -export type ContinualImprovementGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateContinualImprovementInput; -}; -export type ContinualImprovementGraphCreateMutation$data = { - readonly createContinualImprovement: { - readonly continualImprovementEdge: { - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly priority: ContinualImprovementPriority; - readonly referenceId: string; - readonly source: string | null | undefined; - readonly status: ContinualImprovementStatus; - readonly targetDate: string | null | undefined; - }; - }; - }; -}; -export type ContinualImprovementGraphCreateMutation = { - response: ContinualImprovementGraphCreateMutation$data; - variables: ContinualImprovementGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "concreteType": "ContinualImprovementEdge", - "kind": "LinkedField", - "name": "continualImprovementEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ContinualImprovement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "targetDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "priority", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ContinualImprovementGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateContinualImprovementPayload", - "kind": "LinkedField", - "name": "createContinualImprovement", - "plural": false, - "selections": [ - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "ContinualImprovementGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateContinualImprovementPayload", - "kind": "LinkedField", - "name": "createContinualImprovement", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "continualImprovementEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "5894da3b2ddc1c4a16c030770fae53bb", - "id": null, - "metadata": {}, - "name": "ContinualImprovementGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation ContinualImprovementGraphCreateMutation(\n $input: CreateContinualImprovementInput!\n) {\n createContinualImprovement(input: $input) {\n continualImprovementEdge {\n node {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n createdAt\n canUpdate: permission(action: \"core:continual-improvement:update\")\n canDelete: permission(action: \"core:continual-improvement:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "bcf5a1e0b02b6530c327741d4d744917"; - -export default node; diff --git a/apps/console/src/__generated__/core/ContinualImprovementGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/ContinualImprovementGraphDeleteMutation.graphql.ts deleted file mode 100644 index 964b5b0f3..000000000 --- a/apps/console/src/__generated__/core/ContinualImprovementGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<7e00cc82c493f1f051c9673fb95c6217>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteContinualImprovementInput = { - continualImprovementId: string; -}; -export type ContinualImprovementGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteContinualImprovementInput; -}; -export type ContinualImprovementGraphDeleteMutation$data = { - readonly deleteContinualImprovement: { - readonly deletedContinualImprovementId: string; - }; -}; -export type ContinualImprovementGraphDeleteMutation = { - response: ContinualImprovementGraphDeleteMutation$data; - variables: ContinualImprovementGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedContinualImprovementId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ContinualImprovementGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteContinualImprovementPayload", - "kind": "LinkedField", - "name": "deleteContinualImprovement", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "ContinualImprovementGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteContinualImprovementPayload", - "kind": "LinkedField", - "name": "deleteContinualImprovement", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedContinualImprovementId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "aaa3d35494c0b1bcaca143cdbc6b7143", - "id": null, - "metadata": {}, - "name": "ContinualImprovementGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation ContinualImprovementGraphDeleteMutation(\n $input: DeleteContinualImprovementInput!\n) {\n deleteContinualImprovement(input: $input) {\n deletedContinualImprovementId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "5474ad4a9bdc5ee4bd70f7289944079e"; - -export default node; diff --git a/apps/console/src/__generated__/core/ContinualImprovementGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/ContinualImprovementGraphListQuery.graphql.ts deleted file mode 100644 index 2cf5afe7e..000000000 --- a/apps/console/src/__generated__/core/ContinualImprovementGraphListQuery.graphql.ts +++ /dev/null @@ -1,336 +0,0 @@ -/** - * @generated SignedSource<<885968e1b7f56dd56709777e9f05d1ea>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ContinualImprovementGraphListQuery$variables = { - organizationId: string; - snapshotId?: string | null | undefined; -}; -export type ContinualImprovementGraphListQuery$data = { - readonly node: { - readonly canCreateContinualImprovement?: boolean; - readonly " $fragmentSpreads": FragmentRefs<"ContinualImprovementsPageFragment">; - }; -}; -export type ContinualImprovementGraphListQuery = { - response: ContinualImprovementGraphListQuery$data; - variables: ContinualImprovementGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canCreateContinualImprovement", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:create\")" -}, -v3 = [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } -], -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v6 = [ - { - "fields": (v3/*: any*/), - "kind": "ObjectValue", - "name": "filter" - }, - { - "kind": "Literal", - "name": "first", - "value": 10 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ContinualImprovementGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "args": (v3/*: any*/), - "kind": "FragmentSpread", - "name": "ContinualImprovementsPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ContinualImprovementGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - (v5/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "ContinualImprovementConnection", - "kind": "LinkedField", - "name": "continualImprovements", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ContinualImprovementEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ContinualImprovement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "targetDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "priority", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:delete\")" - }, - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v6/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "ContinualImprovementsPage_continualImprovements", - "kind": "LinkedHandle", - "name": "continualImprovements" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1684b6fb8eba4ff807d268879e9f4958", - "id": null, - "metadata": {}, - "name": "ContinualImprovementGraphListQuery", - "operationKind": "query", - "text": "query ContinualImprovementGraphListQuery(\n $organizationId: ID!\n $snapshotId: ID\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateContinualImprovement: permission(action: \"core:continual-improvement:create\")\n ...ContinualImprovementsPageFragment_3iomuz\n }\n id\n }\n}\n\nfragment ContinualImprovementsPageFragment_3iomuz on Organization {\n id\n continualImprovements(first: 10, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n referenceId\n description\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n canUpdate: permission(action: \"core:continual-improvement:update\")\n canDelete: permission(action: \"core:continual-improvement:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "36a306074f56f6dc2c80987a670f18c3"; - -export default node; diff --git a/apps/console/src/__generated__/core/ContinualImprovementGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/ContinualImprovementGraphNodeQuery.graphql.ts deleted file mode 100644 index c6f6ad713..000000000 --- a/apps/console/src/__generated__/core/ContinualImprovementGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,308 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ContinualImprovementPriority = "HIGH" | "LOW" | "MEDIUM"; -export type ContinualImprovementStatus = "CLOSED" | "IN_PROGRESS" | "OPEN"; -export type ContinualImprovementGraphNodeQuery$variables = { - continualImprovementId: string; -}; -export type ContinualImprovementGraphNodeQuery$data = { - readonly node: { - readonly canDelete?: boolean; - readonly canUpdate?: boolean; - readonly createdAt?: string; - readonly description?: string | null | undefined; - readonly id?: string; - readonly organization?: { - readonly id: string; - readonly name: string; - }; - readonly owner?: { - readonly fullName: string; - readonly id: string; - }; - readonly priority?: ContinualImprovementPriority; - readonly referenceId?: string; - readonly snapshotId?: string | null | undefined; - readonly source?: string | null | undefined; - readonly sourceId?: string | null | undefined; - readonly status?: ContinualImprovementStatus; - readonly targetDate?: string | null | undefined; - readonly updatedAt?: string; - }; -}; -export type ContinualImprovementGraphNodeQuery = { - response: ContinualImprovementGraphNodeQuery$data; - variables: ContinualImprovementGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "continualImprovementId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "continualImprovementId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sourceId", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "targetDate", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "priority", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v15 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:update\")" -}, -v16 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ContinualImprovementGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/) - ], - "type": "ContinualImprovement", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ContinualImprovementGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/) - ], - "type": "ContinualImprovement", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c5fa96253fe8c3e8e8307936ca76704d", - "id": null, - "metadata": {}, - "name": "ContinualImprovementGraphNodeQuery", - "operationKind": "query", - "text": "query ContinualImprovementGraphNodeQuery(\n $continualImprovementId: ID!\n) {\n node(id: $continualImprovementId) {\n __typename\n ... on ContinualImprovement {\n id\n snapshotId\n sourceId\n referenceId\n description\n source\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:continual-improvement:update\")\n canDelete: permission(action: \"core:continual-improvement:delete\")\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "66511af35ced4978629980d5339fc850"; - -export default node; diff --git a/apps/console/src/__generated__/core/ContinualImprovementGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/ContinualImprovementGraphUpdateMutation.graphql.ts deleted file mode 100644 index 4c887bb49..000000000 --- a/apps/console/src/__generated__/core/ContinualImprovementGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,194 +0,0 @@ -/** - * @generated SignedSource<<3fe464d047c80b94afdf64dc9cf2e23c>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ContinualImprovementPriority = "HIGH" | "LOW" | "MEDIUM"; -export type ContinualImprovementStatus = "CLOSED" | "IN_PROGRESS" | "OPEN"; -export type UpdateContinualImprovementInput = { - description?: string | null | undefined; - id: string; - ownerId?: string | null | undefined; - priority?: ContinualImprovementPriority | null | undefined; - referenceId?: string | null | undefined; - source?: string | null | undefined; - status?: ContinualImprovementStatus | null | undefined; - targetDate?: string | null | undefined; -}; -export type ContinualImprovementGraphUpdateMutation$variables = { - input: UpdateContinualImprovementInput; -}; -export type ContinualImprovementGraphUpdateMutation$data = { - readonly updateContinualImprovement: { - readonly continualImprovement: { - readonly description: string | null | undefined; - readonly id: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly priority: ContinualImprovementPriority; - readonly referenceId: string; - readonly source: string | null | undefined; - readonly status: ContinualImprovementStatus; - readonly targetDate: string | null | undefined; - readonly updatedAt: string; - }; - }; -}; -export type ContinualImprovementGraphUpdateMutation = { - response: ContinualImprovementGraphUpdateMutation$data; - variables: ContinualImprovementGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateContinualImprovementPayload", - "kind": "LinkedField", - "name": "updateContinualImprovement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ContinualImprovement", - "kind": "LinkedField", - "name": "continualImprovement", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "targetDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "priority", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ContinualImprovementGraphUpdateMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ContinualImprovementGraphUpdateMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "437d2ec2228356103e851f53d9edb577", - "id": null, - "metadata": {}, - "name": "ContinualImprovementGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation ContinualImprovementGraphUpdateMutation(\n $input: UpdateContinualImprovementInput!\n) {\n updateContinualImprovement(input: $input) {\n continualImprovement {\n id\n referenceId\n description\n source\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "75ef82d455a038a7c60852b7e849284d"; - -export default node; diff --git a/apps/console/src/__generated__/core/ContinualImprovementsPageFragment.graphql.ts b/apps/console/src/__generated__/core/ContinualImprovementsPageFragment.graphql.ts deleted file mode 100644 index d109170c2..000000000 --- a/apps/console/src/__generated__/core/ContinualImprovementsPageFragment.graphql.ts +++ /dev/null @@ -1,290 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type ContinualImprovementPriority = "HIGH" | "LOW" | "MEDIUM"; -export type ContinualImprovementStatus = "CLOSED" | "IN_PROGRESS" | "OPEN"; -import { FragmentRefs } from "relay-runtime"; -export type ContinualImprovementsPageFragment$data = { - readonly continualImprovements: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly description: string | null | undefined; - readonly id: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly priority: ContinualImprovementPriority; - readonly referenceId: string; - readonly snapshotId: string | null | undefined; - readonly status: ContinualImprovementStatus; - readonly targetDate: string | null | undefined; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - }; - readonly id: string; - readonly " $fragmentType": "ContinualImprovementsPageFragment"; -}; -export type ContinualImprovementsPageFragment$key = { - readonly " $data"?: ContinualImprovementsPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"ContinualImprovementsPageFragment">; -}; - -import ContinualImprovementsPageRefetchQuery_graphql from './ContinualImprovementsPageRefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "continualImprovements" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": ContinualImprovementsPageRefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "ContinualImprovementsPageFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "continualImprovements", - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } - ], - "kind": "ObjectValue", - "name": "filter" - } - ], - "concreteType": "ContinualImprovementConnection", - "kind": "LinkedField", - "name": "__ContinualImprovementsPage_continualImprovements_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ContinualImprovementEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ContinualImprovement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "targetDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "priority", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "c2371c08dd0f581a9803ca118f3bd366"; - -export default node; diff --git a/apps/console/src/__generated__/core/ContinualImprovementsPageRefetchQuery.graphql.ts b/apps/console/src/__generated__/core/ContinualImprovementsPageRefetchQuery.graphql.ts deleted file mode 100644 index 889cbc4fa..000000000 --- a/apps/console/src/__generated__/core/ContinualImprovementsPageRefetchQuery.graphql.ts +++ /dev/null @@ -1,344 +0,0 @@ -/** - * @generated SignedSource<<395e923c618fc03eecc9f83e5d2ce8d8>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ContinualImprovementsPageRefetchQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; - snapshotId?: string | null | undefined; -}; -export type ContinualImprovementsPageRefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"ContinualImprovementsPageFragment">; - }; -}; -export type ContinualImprovementsPageRefetchQuery = { - response: ContinualImprovementsPageRefetchQuery$data; - variables: ContinualImprovementsPageRefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v6 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v7 = { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v10 = [ - (v5/*: any*/), - { - "fields": [ - (v7/*: any*/) - ], - "kind": "ObjectValue", - "name": "filter" - }, - (v6/*: any*/) -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ContinualImprovementsPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/) - ], - "kind": "FragmentSpread", - "name": "ContinualImprovementsPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "ContinualImprovementsPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - (v9/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v10/*: any*/), - "concreteType": "ContinualImprovementConnection", - "kind": "LinkedField", - "name": "continualImprovements", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ContinualImprovementEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ContinualImprovement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "targetDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "priority", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:delete\")" - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v10/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "ContinualImprovementsPage_continualImprovements", - "kind": "LinkedHandle", - "name": "continualImprovements" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "cd8b3a661ee9da3f24d85b1e1bc8fac4", - "id": null, - "metadata": {}, - "name": "ContinualImprovementsPageRefetchQuery", - "operationKind": "query", - "text": "query ContinualImprovementsPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ContinualImprovementsPageFragment_35e0S5\n id\n }\n}\n\nfragment ContinualImprovementsPageFragment_35e0S5 on Organization {\n id\n continualImprovements(first: $first, after: $after, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n referenceId\n description\n targetDate\n status\n priority\n owner {\n id\n fullName\n }\n canUpdate: permission(action: \"core:continual-improvement:update\")\n canDelete: permission(action: \"core:continual-improvement:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "c2371c08dd0f581a9803ca118f3bd366"; - -export default node; diff --git a/apps/console/src/__generated__/core/CreateAuditDialogFrameworksQuery.graphql.ts b/apps/console/src/__generated__/core/CreateAuditDialogFrameworksQuery.graphql.ts deleted file mode 100644 index 858d35e3e..000000000 --- a/apps/console/src/__generated__/core/CreateAuditDialogFrameworksQuery.graphql.ts +++ /dev/null @@ -1,172 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateAuditDialogFrameworksQuery$variables = { - organizationId: string; -}; -export type CreateAuditDialogFrameworksQuery$data = { - readonly organization: { - readonly frameworks?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - }; - }>; - }; - }; -}; -export type CreateAuditDialogFrameworksQuery = { - response: CreateAuditDialogFrameworksQuery$data; - variables: CreateAuditDialogFrameworksQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "FrameworkConnection", - "kind": "LinkedField", - "name": "frameworks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "FrameworkEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "frameworks(first:100)" - } - ], - "type": "Organization", - "abstractKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CreateAuditDialogFrameworksQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CreateAuditDialogFrameworksQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "3b61e88adc92ac47ea6b5810a8d13f18", - "id": null, - "metadata": {}, - "name": "CreateAuditDialogFrameworksQuery", - "operationKind": "query", - "text": "query CreateAuditDialogFrameworksQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n frameworks(first: 100) {\n edges {\n node {\n id\n name\n }\n }\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "ce9f84bb4e6e1e657cdf54bf8a3b4faa"; - -export default node; diff --git a/apps/console/src/__generated__/core/CreateContactDialogMutation.graphql.ts b/apps/console/src/__generated__/core/CreateContactDialogMutation.graphql.ts deleted file mode 100644 index 85b338e72..000000000 --- a/apps/console/src/__generated__/core/CreateContactDialogMutation.graphql.ts +++ /dev/null @@ -1,248 +0,0 @@ -/** - * @generated SignedSource<<5416dd6f3fc2f674eb34b5b1519b0528>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateVendorContactInput = { - email?: string | null | undefined; - fullName?: string | null | undefined; - phone?: string | null | undefined; - role?: string | null | undefined; - vendorId: string; -}; -export type CreateContactDialogMutation$variables = { - connections: ReadonlyArray; - input: CreateVendorContactInput; -}; -export type CreateContactDialogMutation$data = { - readonly createVendorContact: { - readonly vendorContactEdge: { - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly " $fragmentSpreads": FragmentRefs<"VendorContactsTabFragment_contact">; - }; - }; - }; -}; -export type CreateContactDialogMutation = { - response: CreateContactDialogMutation$data; - variables: CreateContactDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:update\")" -}, -v4 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CreateContactDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateVendorContactPayload", - "kind": "LinkedField", - "name": "createVendorContact", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContactEdge", - "kind": "LinkedField", - "name": "vendorContactEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContact", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorContactsTabFragment_contact" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "CreateContactDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateVendorContactPayload", - "kind": "LinkedField", - "name": "createVendorContact", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContactEdge", - "kind": "LinkedField", - "name": "vendorContactEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContact", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "phone", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "vendorContactEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "083a8b4d83cdf2fc64f1edba3204c647", - "id": null, - "metadata": {}, - "name": "CreateContactDialogMutation", - "operationKind": "mutation", - "text": "mutation CreateContactDialogMutation(\n $input: CreateVendorContactInput!\n) {\n createVendorContact(input: $input) {\n vendorContactEdge {\n node {\n canUpdate: permission(action: \"core:vendor-contact:update\")\n canDelete: permission(action: \"core:vendor-contact:delete\")\n ...VendorContactsTabFragment_contact\n id\n }\n }\n }\n}\n\nfragment VendorContactsTabFragment_contact on VendorContact {\n id\n fullName\n email\n phone\n role\n canUpdate: permission(action: \"core:vendor-contact:update\")\n canDelete: permission(action: \"core:vendor-contact:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "5e50a35ba78497790a49461f684d0541"; - -export default node; diff --git a/apps/console/src/__generated__/core/CreateDocumentDialogMutation.graphql.ts b/apps/console/src/__generated__/core/CreateDocumentDialogMutation.graphql.ts deleted file mode 100644 index 1eef28884..000000000 --- a/apps/console/src/__generated__/core/CreateDocumentDialogMutation.graphql.ts +++ /dev/null @@ -1,401 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -export type CreateDocumentInput = { - approverIds: ReadonlyArray; - classification: DocumentClassification; - content: string; - documentType: DocumentType; - organizationId: string; - title: string; - trustCenterVisibility?: TrustCenterVisibility | null | undefined; -}; -export type CreateDocumentDialogMutation$variables = { - connections: ReadonlyArray; - input: CreateDocumentInput; -}; -export type CreateDocumentDialogMutation$data = { - readonly createDocument: { - readonly documentEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentListItemFragment">; - }; - }; - }; -}; -export type CreateDocumentDialogMutation = { - response: CreateDocumentDialogMutation$data; - variables: CreateDocumentDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "kind": "Literal", - "name": "first", - "value": 0 -}, -v5 = [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CreateDocumentDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateDocumentPayload", - "kind": "LinkedField", - "name": "createDocument", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "documentEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentListItemFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "CreateDocumentDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateDocumentPayload", - "kind": "LinkedField", - "name": "createDocument", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "documentEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "classification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:delete\")" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "approvers", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "approvers(first:100)" - }, - { - "alias": "lastVersion", - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true - } - }, - (v4/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v5/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true},first:0)" - }, - { - "alias": "signedSignatures", - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true, - "states": [ - "SIGNED" - ] - } - }, - (v4/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v5/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true,\"states\":[\"SIGNED\"]},first:0)" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "documentEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "927e922143fa7eac4270e7ac0ae7da39", - "id": null, - "metadata": {}, - "name": "CreateDocumentDialogMutation", - "operationKind": "mutation", - "text": "mutation CreateDocumentDialogMutation(\n $input: CreateDocumentInput!\n) {\n createDocument(input: $input) {\n documentEdge {\n node {\n id\n ...DocumentListItemFragment\n }\n }\n }\n}\n\nfragment DocumentListItemFragment on Document {\n id\n title\n documentType\n classification\n updatedAt\n canDelete: permission(action: \"core:document:delete\")\n approvers(first: 100) {\n edges {\n node {\n id\n fullName\n }\n }\n }\n lastVersion: versions(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n id\n status\n version\n signatures(first: 0, filter: {activeContract: true}) {\n totalCount\n }\n signedSignatures: signatures(first: 0, filter: {states: [SIGNED], activeContract: true}) {\n totalCount\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "30ea1213f809faa45e873b069e27df26"; - -export default node; diff --git a/apps/console/src/__generated__/core/CreateEvidenceDialogUploadMutation.graphql.ts b/apps/console/src/__generated__/core/CreateEvidenceDialogUploadMutation.graphql.ts deleted file mode 100644 index 1f797b2bc..000000000 --- a/apps/console/src/__generated__/core/CreateEvidenceDialogUploadMutation.graphql.ts +++ /dev/null @@ -1,248 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type UploadMeasureEvidenceInput = { - file: any; - measureId: string; -}; -export type CreateEvidenceDialogUploadMutation$variables = { - connections: ReadonlyArray; - input: UploadMeasureEvidenceInput; -}; -export type CreateEvidenceDialogUploadMutation$data = { - readonly uploadMeasureEvidence: { - readonly evidenceEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"MeasureEvidencesTabFragment_evidence">; - }; - }; - }; -}; -export type CreateEvidenceDialogUploadMutation = { - response: CreateEvidenceDialogUploadMutation$data; - variables: CreateEvidenceDialogUploadMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CreateEvidenceDialogUploadMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "UploadMeasureEvidencePayload", - "kind": "LinkedField", - "name": "uploadMeasureEvidence", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "EvidenceEdge", - "kind": "LinkedField", - "name": "evidenceEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Evidence", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "MeasureEvidencesTabFragment_evidence" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "CreateEvidenceDialogUploadMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "UploadMeasureEvidencePayload", - "kind": "LinkedField", - "name": "uploadMeasureEvidence", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "EvidenceEdge", - "kind": "LinkedField", - "name": "evidenceEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Evidence", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mimeType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:evidence:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:evidence:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "appendEdge", - "key": "", - "kind": "LinkedHandle", - "name": "evidenceEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "2fb329c16bcc54a40b95c0204469975c", - "id": null, - "metadata": {}, - "name": "CreateEvidenceDialogUploadMutation", - "operationKind": "mutation", - "text": "mutation CreateEvidenceDialogUploadMutation(\n $input: UploadMeasureEvidenceInput!\n) {\n uploadMeasureEvidence(input: $input) {\n evidenceEdge {\n node {\n id\n ...MeasureEvidencesTabFragment_evidence\n }\n }\n }\n}\n\nfragment MeasureEvidencesTabFragment_evidence on Evidence {\n id\n file {\n fileName\n mimeType\n size\n id\n }\n type\n createdAt\n canDelete: permission(action: \"core:evidence:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "719cce21cdff705c55dda3de31997a53"; - -export default node; diff --git a/apps/console/src/__generated__/core/CreateMeetingDialogCreateMutation.graphql.ts b/apps/console/src/__generated__/core/CreateMeetingDialogCreateMutation.graphql.ts deleted file mode 100644 index 397290c30..000000000 --- a/apps/console/src/__generated__/core/CreateMeetingDialogCreateMutation.graphql.ts +++ /dev/null @@ -1,224 +0,0 @@ -/** - * @generated SignedSource<<2c421e02bc469a3b76ffdf2761d67af3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateMeetingInput = { - attendeeIds?: ReadonlyArray | null | undefined; - date: string; - minutes?: string | null | undefined; - name: string; - organizationId: string; -}; -export type CreateMeetingDialogCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateMeetingInput; -}; -export type CreateMeetingDialogCreateMutation$data = { - readonly createMeeting: { - readonly meetingEdge: { - readonly node: { - readonly attendees: ReadonlyArray<{ - readonly fullName: string; - readonly id: string; - }>; - readonly canDelete: boolean; - readonly date: string; - readonly id: string; - readonly minutes: string | null | undefined; - readonly name: string; - }; - }; - }; -}; -export type CreateMeetingDialogCreateMutation = { - response: CreateMeetingDialogCreateMutation$data; - variables: CreateMeetingDialogCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "concreteType": "MeetingEdge", - "kind": "LinkedField", - "name": "meetingEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Meeting", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "date", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "minutes", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "attendees", - "plural": true, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CreateMeetingDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateMeetingPayload", - "kind": "LinkedField", - "name": "createMeeting", - "plural": false, - "selections": [ - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "CreateMeetingDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateMeetingPayload", - "kind": "LinkedField", - "name": "createMeeting", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "meetingEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6b9dce0e1a88fdf272b516cf59bb4137", - "id": null, - "metadata": {}, - "name": "CreateMeetingDialogCreateMutation", - "operationKind": "mutation", - "text": "mutation CreateMeetingDialogCreateMutation(\n $input: CreateMeetingInput!\n) {\n createMeeting(input: $input) {\n meetingEdge {\n node {\n id\n name\n date\n minutes\n attendees {\n id\n fullName\n }\n canDelete: permission(action: \"core:meeting:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b69925d4ec72b17467f8f50158d02f6f"; - -export default node; diff --git a/apps/console/src/__generated__/core/CreateRiskAssessmentDialogMutation.graphql.ts b/apps/console/src/__generated__/core/CreateRiskAssessmentDialogMutation.graphql.ts deleted file mode 100644 index a80f7d74a..000000000 --- a/apps/console/src/__generated__/core/CreateRiskAssessmentDialogMutation.graphql.ts +++ /dev/null @@ -1,225 +0,0 @@ -/** - * @generated SignedSource<<2271889b21f5a1f41c2e285a7a9ee1ca>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type BusinessImpact = "CRITICAL" | "HIGH" | "LOW" | "MEDIUM"; -export type DataSensitivity = "CRITICAL" | "HIGH" | "LOW" | "MEDIUM" | "NONE"; -export type CreateVendorRiskAssessmentInput = { - businessImpact: BusinessImpact; - dataSensitivity: DataSensitivity; - expiresAt: string; - notes?: string | null | undefined; - vendorId: string; -}; -export type CreateRiskAssessmentDialogMutation$variables = { - connections: ReadonlyArray; - input: CreateVendorRiskAssessmentInput; -}; -export type CreateRiskAssessmentDialogMutation$data = { - readonly createVendorRiskAssessment: { - readonly vendorRiskAssessmentEdge: { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"VendorRiskAssessmentTabFragment_assessment">; - }; - }; - }; -}; -export type CreateRiskAssessmentDialogMutation = { - response: CreateRiskAssessmentDialogMutation$data; - variables: CreateRiskAssessmentDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CreateRiskAssessmentDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateVendorRiskAssessmentPayload", - "kind": "LinkedField", - "name": "createVendorRiskAssessment", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessmentEdge", - "kind": "LinkedField", - "name": "vendorRiskAssessmentEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorRiskAssessmentTabFragment_assessment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "CreateRiskAssessmentDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateVendorRiskAssessmentPayload", - "kind": "LinkedField", - "name": "createVendorRiskAssessment", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessmentEdge", - "kind": "LinkedField", - "name": "vendorRiskAssessmentEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSensitivity", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "businessImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "notes", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "vendorRiskAssessmentEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1bd928ac46edc24d7b7cda3e5d7e2cb2", - "id": null, - "metadata": {}, - "name": "CreateRiskAssessmentDialogMutation", - "operationKind": "mutation", - "text": "mutation CreateRiskAssessmentDialogMutation(\n $input: CreateVendorRiskAssessmentInput!\n) {\n createVendorRiskAssessment(input: $input) {\n vendorRiskAssessmentEdge {\n node {\n ...VendorRiskAssessmentTabFragment_assessment\n id\n }\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n" - } -}; -})(); - -(node as any).hash = "1e6753dbe2856b5a1809c15a81eb9861"; - -export default node; diff --git a/apps/console/src/__generated__/core/CreateServiceDialogMutation.graphql.ts b/apps/console/src/__generated__/core/CreateServiceDialogMutation.graphql.ts deleted file mode 100644 index fe1fc3d16..000000000 --- a/apps/console/src/__generated__/core/CreateServiceDialogMutation.graphql.ts +++ /dev/null @@ -1,228 +0,0 @@ -/** - * @generated SignedSource<<8c54b45b60522018bd293091420c10c9>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateVendorServiceInput = { - description?: string | null | undefined; - name: string; - type?: string | null | undefined; - url?: string | null | undefined; - vendorId: string; -}; -export type CreateServiceDialogMutation$variables = { - connections: ReadonlyArray; - input: CreateVendorServiceInput; -}; -export type CreateServiceDialogMutation$data = { - readonly createVendorService: { - readonly vendorServiceEdge: { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"VendorServicesTabFragment_service">; - }; - }; - }; -}; -export type CreateServiceDialogMutation = { - response: CreateServiceDialogMutation$data; - variables: CreateServiceDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CreateServiceDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateVendorServicePayload", - "kind": "LinkedField", - "name": "createVendorService", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorServiceEdge", - "kind": "LinkedField", - "name": "vendorServiceEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorService", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorServicesTabFragment_service" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "CreateServiceDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateVendorServicePayload", - "kind": "LinkedField", - "name": "createVendorService", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorServiceEdge", - "kind": "LinkedField", - "name": "vendorServiceEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorService", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "vendorServiceEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "88f721ba15877e193df05b117bc275e6", - "id": null, - "metadata": {}, - "name": "CreateServiceDialogMutation", - "operationKind": "mutation", - "text": "mutation CreateServiceDialogMutation(\n $input: CreateVendorServiceInput!\n) {\n createVendorService(input: $input) {\n vendorServiceEdge {\n node {\n ...VendorServicesTabFragment_service\n id\n }\n }\n }\n}\n\nfragment VendorServicesTabFragment_service on VendorService {\n id\n name\n description\n canUpdate: permission(action: \"core:vendor-service:update\")\n canDelete: permission(action: \"core:vendor-service:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "8dd0e535bfa15e8ac78b630139b57177"; - -export default node; diff --git a/apps/console/src/__generated__/core/CreateStateOfApplicabilityDialogMutation.graphql.ts b/apps/console/src/__generated__/core/CreateStateOfApplicabilityDialogMutation.graphql.ts deleted file mode 100644 index 6ed29028f..000000000 --- a/apps/console/src/__generated__/core/CreateStateOfApplicabilityDialogMutation.graphql.ts +++ /dev/null @@ -1,273 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateStateOfApplicabilityInput = { - name: string; - organizationId: string; - ownerId: string; -}; -export type CreateStateOfApplicabilityDialogMutation$variables = { - connections: ReadonlyArray; - input: CreateStateOfApplicabilityInput; -}; -export type CreateStateOfApplicabilityDialogMutation$data = { - readonly createStateOfApplicability: { - readonly stateOfApplicabilityEdge: { - readonly node: { - readonly canDelete: boolean; - readonly createdAt: string; - readonly id: string; - readonly name: string; - readonly snapshotId: string | null | undefined; - readonly sourceId: string | null | undefined; - readonly updatedAt: string; - readonly " $fragmentSpreads": FragmentRefs<"StateOfApplicabilityRowFragment">; - }; - }; - }; -}; -export type CreateStateOfApplicabilityDialogMutation = { - response: CreateStateOfApplicabilityDialogMutation$data; - variables: CreateStateOfApplicabilityDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sourceId", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v9 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:state-of-applicability:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:state-of-applicability:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "CreateStateOfApplicabilityDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateStateOfApplicabilityPayload", - "kind": "LinkedField", - "name": "createStateOfApplicability", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicabilityEdge", - "kind": "LinkedField", - "name": "stateOfApplicabilityEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicability", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "StateOfApplicabilityRowFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "CreateStateOfApplicabilityDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateStateOfApplicabilityPayload", - "kind": "LinkedField", - "name": "createStateOfApplicability", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicabilityEdge", - "kind": "LinkedField", - "name": "stateOfApplicabilityEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicability", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - { - "alias": "statementsInfo", - "args": null, - "concreteType": "ApplicabilityStatementConnection", - "kind": "LinkedField", - "name": "applicabilityStatements", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "stateOfApplicabilityEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "cabae20b2fee98a353eaefaad0a28b4b", - "id": null, - "metadata": {}, - "name": "CreateStateOfApplicabilityDialogMutation", - "operationKind": "mutation", - "text": "mutation CreateStateOfApplicabilityDialogMutation(\n $input: CreateStateOfApplicabilityInput!\n) {\n createStateOfApplicability(input: $input) {\n stateOfApplicabilityEdge {\n node {\n id\n name\n sourceId\n snapshotId\n createdAt\n updatedAt\n canDelete: permission(action: \"core:state-of-applicability:delete\")\n ...StateOfApplicabilityRowFragment\n }\n }\n }\n}\n\nfragment StateOfApplicabilityRowFragment on StateOfApplicability {\n id\n name\n createdAt\n canDelete: permission(action: \"core:state-of-applicability:delete\")\n statementsInfo: applicabilityStatements {\n totalCount\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e5a7d1dc6b0401246d646dde983bc8a0"; - -export default node; diff --git a/apps/console/src/__generated__/core/DataListQuery.graphql.ts b/apps/console/src/__generated__/core/DataListQuery.graphql.ts deleted file mode 100644 index be7a77d7f..000000000 --- a/apps/console/src/__generated__/core/DataListQuery.graphql.ts +++ /dev/null @@ -1,445 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DatumOrderField = "CREATED_AT" | "DATA_CLASSIFICATION" | "NAME"; -export type OrderDirection = "ASC" | "DESC"; -export type DatumOrder = { - direction: OrderDirection; - field: DatumOrderField; -}; -export type DataListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: DatumOrder | null | undefined; - snapshotId?: string | null | undefined; -}; -export type DataListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"DataPageFragment">; - }; -}; -export type DataListQuery = { - response: DataListQuery$data; - variables: DataListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v8 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v9 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v10 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v11 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v12 = { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v15 = [ - (v8/*: any*/), - (v9/*: any*/), - { - "fields": [ - (v12/*: any*/) - ], - "kind": "ObjectValue", - "name": "filter" - }, - (v10/*: any*/), - (v11/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -], -v16 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DataListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - }, - (v12/*: any*/) - ], - "kind": "FragmentSpread", - "name": "DataPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "DataListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v13/*: any*/), - (v14/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v15/*: any*/), - "concreteType": "DatumConnection", - "kind": "LinkedField", - "name": "data", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DatumEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Datum", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - (v16/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataClassification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - (v14/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - (v16/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:delete\")" - }, - (v13/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v15/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "DataPage_data", - "kind": "LinkedHandle", - "name": "data" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "3033a11e399a226e54bba9ecfeb452bf", - "id": null, - "metadata": {}, - "name": "DataListQuery", - "operationKind": "query", - "text": "query DataListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 10\n $last: Int = null\n $order: DatumOrder = null\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...DataPageFragment_25MC8O\n id\n }\n}\n\nfragment DataPageFragment_25MC8O on Organization {\n data(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n name\n dataClassification\n owner {\n fullName\n id\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n canUpdate: permission(action: \"core:datum:update\")\n canDelete: permission(action: \"core:datum:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "e51f5dfa7d9e2cdc10ed400da2c94055"; - -export default node; diff --git a/apps/console/src/__generated__/core/DataPageFragment.graphql.ts b/apps/console/src/__generated__/core/DataPageFragment.graphql.ts deleted file mode 100644 index a0c1b1ab3..000000000 --- a/apps/console/src/__generated__/core/DataPageFragment.graphql.ts +++ /dev/null @@ -1,354 +0,0 @@ -/** - * @generated SignedSource<<9f991efd41ace6fcb6cdd3234b9c50ee>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DataClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -import { FragmentRefs } from "relay-runtime"; -export type DataPageFragment$data = { - readonly data: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly dataClassification: DataClassification; - readonly id: string; - readonly name: string; - readonly owner: { - readonly fullName: string; - }; - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "DataPageFragment"; -}; -export type DataPageFragment$key = { - readonly " $data"?: DataPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DataPageFragment">; -}; - -import DataListQuery_graphql from './DataListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "data" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": DataListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "DataPageFragment", - "selections": [ - { - "alias": "data", - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } - ], - "kind": "ObjectValue", - "name": "filter" - } - ], - "concreteType": "DatumConnection", - "kind": "LinkedField", - "name": "__DataPage_data_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DatumEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Datum", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataClassification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "e51f5dfa7d9e2cdc10ed400da2c94055"; - -export default node; diff --git a/apps/console/src/__generated__/core/DatumGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/DatumGraphCreateMutation.graphql.ts deleted file mode 100644 index 3f825cf10..000000000 --- a/apps/console/src/__generated__/core/DatumGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,297 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DataClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -export type CreateDatumInput = { - dataClassification: DataClassification; - name: string; - organizationId: string; - ownerId: string; - vendorIds?: ReadonlyArray | null | undefined; -}; -export type DatumGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateDatumInput; -}; -export type DatumGraphCreateMutation$data = { - readonly createDatum: { - readonly datumEdge: { - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly dataClassification: DataClassification; - readonly id: string; - readonly name: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; - }; - }; -}; -export type DatumGraphCreateMutation = { - response: DatumGraphCreateMutation$data; - variables: DatumGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "concreteType": "DatumEdge", - "kind": "LinkedField", - "name": "datumEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Datum", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataClassification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DatumGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateDatumPayload", - "kind": "LinkedField", - "name": "createDatum", - "plural": false, - "selections": [ - (v5/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "DatumGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateDatumPayload", - "kind": "LinkedField", - "name": "createDatum", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "datumEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "37d345acfe37d5edf653d021f8aad43c", - "id": null, - "metadata": {}, - "name": "DatumGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation DatumGraphCreateMutation(\n $input: CreateDatumInput!\n) {\n createDatum(input: $input) {\n datumEdge {\n node {\n id\n name\n dataClassification\n owner {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n createdAt\n canUpdate: permission(action: \"core:datum:update\")\n canDelete: permission(action: \"core:datum:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "db4781176e1b58224619f8237af92716"; - -export default node; diff --git a/apps/console/src/__generated__/core/DatumGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/DatumGraphDeleteMutation.graphql.ts deleted file mode 100644 index f288f8b8a..000000000 --- a/apps/console/src/__generated__/core/DatumGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<50c6ee9ebfd56ffeac153d8613118345>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteDatumInput = { - datumId: string; -}; -export type DatumGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteDatumInput; -}; -export type DatumGraphDeleteMutation$data = { - readonly deleteDatum: { - readonly deletedDatumId: string; - }; -}; -export type DatumGraphDeleteMutation = { - response: DatumGraphDeleteMutation$data; - variables: DatumGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedDatumId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DatumGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteDatumPayload", - "kind": "LinkedField", - "name": "deleteDatum", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "DatumGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteDatumPayload", - "kind": "LinkedField", - "name": "deleteDatum", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedDatumId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c8ac1dfe4d44edfa33008bfc92dee99d", - "id": null, - "metadata": {}, - "name": "DatumGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation DatumGraphDeleteMutation(\n $input: DeleteDatumInput!\n) {\n deleteDatum(input: $input) {\n deletedDatumId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "1d6ffd466ce547e7377669b6ba567b9d"; - -export default node; diff --git a/apps/console/src/__generated__/core/DatumGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/DatumGraphListQuery.graphql.ts deleted file mode 100644 index 638412762..000000000 --- a/apps/console/src/__generated__/core/DatumGraphListQuery.graphql.ts +++ /dev/null @@ -1,383 +0,0 @@ -/** - * @generated SignedSource<<54893ee38ce1b4e4e8dd6908cf58780e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DatumGraphListQuery$variables = { - organizationId: string; - snapshotId?: string | null | undefined; -}; -export type DatumGraphListQuery$data = { - readonly node: { - readonly canCreateDatum?: boolean; - readonly " $fragmentSpreads": FragmentRefs<"DataPageFragment">; - }; -}; -export type DatumGraphListQuery = { - response: DatumGraphListQuery$data; - variables: DatumGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canCreateDatum", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:create\")" -}, -v3 = [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } -], -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v6 = [ - { - "fields": (v3/*: any*/), - "kind": "ObjectValue", - "name": "filter" - }, - { - "kind": "Literal", - "name": "first", - "value": 10 - } -], -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DatumGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "args": (v3/*: any*/), - "kind": "FragmentSpread", - "name": "DataPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DatumGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - (v5/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "DatumConnection", - "kind": "LinkedField", - "name": "data", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DatumEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Datum", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - (v7/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataClassification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - (v5/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - (v7/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:delete\")" - }, - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v6/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "DataPage_data", - "kind": "LinkedHandle", - "name": "data" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "d1266769fa7348dfe7ab2725db8eb072", - "id": null, - "metadata": {}, - "name": "DatumGraphListQuery", - "operationKind": "query", - "text": "query DatumGraphListQuery(\n $organizationId: ID!\n $snapshotId: ID = null\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateDatum: permission(action: \"core:datum:create\")\n ...DataPageFragment_3iomuz\n }\n id\n }\n}\n\nfragment DataPageFragment_3iomuz on Organization {\n data(first: 10, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n name\n dataClassification\n owner {\n fullName\n id\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n canUpdate: permission(action: \"core:datum:update\")\n canDelete: permission(action: \"core:datum:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "e071e19eda0d4c105668ffd9671399bd"; - -export default node; diff --git a/apps/console/src/__generated__/core/DatumGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/DatumGraphNodeQuery.graphql.ts deleted file mode 100644 index 4581aa7f4..000000000 --- a/apps/console/src/__generated__/core/DatumGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,317 +0,0 @@ -/** - * @generated SignedSource<<99134677b485c7ba80891aad922e354a>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DataClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -export type VendorCategory = "ANALYTICS" | "CLOUD_MONITORING" | "CLOUD_PROVIDER" | "COLLABORATION" | "CUSTOMER_SUPPORT" | "DATA_STORAGE_AND_PROCESSING" | "DOCUMENT_MANAGEMENT" | "EMPLOYEE_MANAGEMENT" | "ENGINEERING" | "FINANCE" | "IDENTITY_PROVIDER" | "IT" | "MARKETING" | "OFFICE_OPERATIONS" | "OTHER" | "PASSWORD_MANAGEMENT" | "PRODUCT_AND_DESIGN" | "PROFESSIONAL_SERVICES" | "RECRUITING" | "SALES" | "SECURITY" | "VERSION_CONTROL"; -export type DatumGraphNodeQuery$variables = { - dataId: string; -}; -export type DatumGraphNodeQuery$data = { - readonly node: { - readonly canDelete?: boolean; - readonly canUpdate?: boolean; - readonly createdAt?: string; - readonly dataClassification?: DataClassification; - readonly id?: string; - readonly name?: string; - readonly organization?: { - readonly id: string; - }; - readonly owner?: { - readonly fullName: string; - readonly id: string; - }; - readonly snapshotId?: string | null | undefined; - readonly updatedAt?: string; - readonly vendors?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly category: VendorCategory; - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; -}; -export type DatumGraphNodeQuery = { - response: DatumGraphNodeQuery$data; - variables: DatumGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "dataId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "dataId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataClassification", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null -}, -v7 = { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" -}, -v8 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v11 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:update\")" -}, -v12 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DatumGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/) - ], - "type": "Datum", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DatumGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/) - ], - "type": "Datum", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "036588bb9b3daffb20c9d01a708976ac", - "id": null, - "metadata": {}, - "name": "DatumGraphNodeQuery", - "operationKind": "query", - "text": "query DatumGraphNodeQuery(\n $dataId: ID!\n) {\n node(id: $dataId) {\n __typename\n ... on Datum {\n id\n snapshotId\n name\n dataClassification\n owner {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n category\n }\n }\n }\n organization {\n id\n }\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:datum:update\")\n canDelete: permission(action: \"core:datum:delete\")\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "2b2e220e0bdd98bbee7ea72a00db7a61"; - -export default node; diff --git a/apps/console/src/__generated__/core/DatumGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/DatumGraphUpdateMutation.graphql.ts deleted file mode 100644 index 0658e5215..000000000 --- a/apps/console/src/__generated__/core/DatumGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,216 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DataClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -export type UpdateDatumInput = { - dataClassification?: DataClassification | null | undefined; - id: string; - name?: string | null | undefined; - ownerId?: string | null | undefined; - vendorIds?: ReadonlyArray | null | undefined; -}; -export type DatumGraphUpdateMutation$variables = { - input: UpdateDatumInput; -}; -export type DatumGraphUpdateMutation$data = { - readonly updateDatum: { - readonly datum: { - readonly dataClassification: DataClassification; - readonly id: string; - readonly name: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly updatedAt: string; - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; - }; -}; -export type DatumGraphUpdateMutation = { - response: DatumGraphUpdateMutation$data; - variables: DatumGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v3 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateDatumPayload", - "kind": "LinkedField", - "name": "updateDatum", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Datum", - "kind": "LinkedField", - "name": "datum", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataClassification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DatumGraphUpdateMutation", - "selections": (v3/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DatumGraphUpdateMutation", - "selections": (v3/*: any*/) - }, - "params": { - "cacheID": "0dbe0c32132e627730510b4bdddf5e84", - "id": null, - "metadata": {}, - "name": "DatumGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation DatumGraphUpdateMutation(\n $input: UpdateDatumInput!\n) {\n updateDatum(input: $input) {\n datum {\n id\n name\n dataClassification\n owner {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "682e71be938af8024fed4dcfb65e2ff3"; - -export default node; diff --git a/apps/console/src/__generated__/core/DeleteBusinessAssociateAgreementDialogMutation.graphql.ts b/apps/console/src/__generated__/core/DeleteBusinessAssociateAgreementDialogMutation.graphql.ts deleted file mode 100644 index 974664c2d..000000000 --- a/apps/console/src/__generated__/core/DeleteBusinessAssociateAgreementDialogMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<26343418dbdd4baf63f2846470e2d3ab>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteVendorBusinessAssociateAgreementInput = { - vendorId: string; -}; -export type DeleteBusinessAssociateAgreementDialogMutation$variables = { - input: DeleteVendorBusinessAssociateAgreementInput; -}; -export type DeleteBusinessAssociateAgreementDialogMutation$data = { - readonly deleteVendorBusinessAssociateAgreement: { - readonly deletedVendorId: string; - }; -}; -export type DeleteBusinessAssociateAgreementDialogMutation = { - response: DeleteBusinessAssociateAgreementDialogMutation$data; - variables: DeleteBusinessAssociateAgreementDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteVendorBusinessAssociateAgreementPayload", - "kind": "LinkedField", - "name": "deleteVendorBusinessAssociateAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedVendorId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DeleteBusinessAssociateAgreementDialogMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DeleteBusinessAssociateAgreementDialogMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "c8aa903ee410ee9e591c82f7f75e044c", - "id": null, - "metadata": {}, - "name": "DeleteBusinessAssociateAgreementDialogMutation", - "operationKind": "mutation", - "text": "mutation DeleteBusinessAssociateAgreementDialogMutation(\n $input: DeleteVendorBusinessAssociateAgreementInput!\n) {\n deleteVendorBusinessAssociateAgreement(input: $input) {\n deletedVendorId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "39106d060e4e1da4eaa78a8205fe7cf8"; - -export default node; diff --git a/apps/console/src/__generated__/core/DeleteCompliancePageDomainDialogMutation.graphql.ts b/apps/console/src/__generated__/core/DeleteCompliancePageDomainDialogMutation.graphql.ts deleted file mode 100644 index 5a2a70db0..000000000 --- a/apps/console/src/__generated__/core/DeleteCompliancePageDomainDialogMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<12b5695d6b5f46a7d4231abe93301a0b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteCustomDomainInput = { - organizationId: string; -}; -export type DeleteCompliancePageDomainDialogMutation$variables = { - input: DeleteCustomDomainInput; -}; -export type DeleteCompliancePageDomainDialogMutation$data = { - readonly deleteCustomDomain: { - readonly deletedCustomDomainId: string; - }; -}; -export type DeleteCompliancePageDomainDialogMutation = { - response: DeleteCompliancePageDomainDialogMutation$data; - variables: DeleteCompliancePageDomainDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteCustomDomainPayload", - "kind": "LinkedField", - "name": "deleteCustomDomain", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedCustomDomainId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DeleteCompliancePageDomainDialogMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DeleteCompliancePageDomainDialogMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "1d5e88cc48c7ce90d9110de6d4c6a4d9", - "id": null, - "metadata": {}, - "name": "DeleteCompliancePageDomainDialogMutation", - "operationKind": "mutation", - "text": "mutation DeleteCompliancePageDomainDialogMutation(\n $input: DeleteCustomDomainInput!\n) {\n deleteCustomDomain(input: $input) {\n deletedCustomDomainId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d65e8b9b66367509071b9349c828f5d0"; - -export default node; diff --git a/apps/console/src/__generated__/core/DeleteCompliancePageFileDialogMutation.graphql.ts b/apps/console/src/__generated__/core/DeleteCompliancePageFileDialogMutation.graphql.ts deleted file mode 100644 index 593d4dc0f..000000000 --- a/apps/console/src/__generated__/core/DeleteCompliancePageFileDialogMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<883f3a053aa51e1c94ad7c75a2fb91d2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteTrustCenterFileInput = { - id: string; -}; -export type DeleteCompliancePageFileDialogMutation$variables = { - connections: ReadonlyArray; - input: DeleteTrustCenterFileInput; -}; -export type DeleteCompliancePageFileDialogMutation$data = { - readonly deleteTrustCenterFile: { - readonly deletedTrustCenterFileId: string; - }; -}; -export type DeleteCompliancePageFileDialogMutation = { - response: DeleteCompliancePageFileDialogMutation$data; - variables: DeleteCompliancePageFileDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedTrustCenterFileId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DeleteCompliancePageFileDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteTrustCenterFilePayload", - "kind": "LinkedField", - "name": "deleteTrustCenterFile", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "DeleteCompliancePageFileDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteTrustCenterFilePayload", - "kind": "LinkedField", - "name": "deleteTrustCenterFile", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedTrustCenterFileId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "d3d7dcdb4201d8f3eeaa66973545bed0", - "id": null, - "metadata": {}, - "name": "DeleteCompliancePageFileDialogMutation", - "operationKind": "mutation", - "text": "mutation DeleteCompliancePageFileDialogMutation(\n $input: DeleteTrustCenterFileInput!\n) {\n deleteTrustCenterFile(input: $input) {\n deletedTrustCenterFileId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "1bf5628f93e3ec6ee240290f5aaf5761"; - -export default node; diff --git a/apps/console/src/__generated__/core/DeleteDataPrivacyAgreementDialogMutation.graphql.ts b/apps/console/src/__generated__/core/DeleteDataPrivacyAgreementDialogMutation.graphql.ts deleted file mode 100644 index a4a21e0a7..000000000 --- a/apps/console/src/__generated__/core/DeleteDataPrivacyAgreementDialogMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<4d1711d74f82bc8952b162a37dd8931e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteVendorDataPrivacyAgreementInput = { - vendorId: string; -}; -export type DeleteDataPrivacyAgreementDialogMutation$variables = { - input: DeleteVendorDataPrivacyAgreementInput; -}; -export type DeleteDataPrivacyAgreementDialogMutation$data = { - readonly deleteVendorDataPrivacyAgreement: { - readonly deletedVendorId: string; - }; -}; -export type DeleteDataPrivacyAgreementDialogMutation = { - response: DeleteDataPrivacyAgreementDialogMutation$data; - variables: DeleteDataPrivacyAgreementDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteVendorDataPrivacyAgreementPayload", - "kind": "LinkedField", - "name": "deleteVendorDataPrivacyAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedVendorId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DeleteDataPrivacyAgreementDialogMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DeleteDataPrivacyAgreementDialogMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "683fac4979ff59534ce2acaa05d82063", - "id": null, - "metadata": {}, - "name": "DeleteDataPrivacyAgreementDialogMutation", - "operationKind": "mutation", - "text": "mutation DeleteDataPrivacyAgreementDialogMutation(\n $input: DeleteVendorDataPrivacyAgreementInput!\n) {\n deleteVendorDataPrivacyAgreement(input: $input) {\n deletedVendorId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "38cb9bcb710db551eda7ed8cff9fca5a"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentActionsDropdown_documentFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentActionsDropdown_documentFragment.graphql.ts deleted file mode 100644 index aa0ff4757..000000000 --- a/apps/console/src/__generated__/core/DocumentActionsDropdown_documentFragment.graphql.ts +++ /dev/null @@ -1,124 +0,0 @@ -/** - * @generated SignedSource<<190e32d0bc7808055f7390730de5efd4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentActionsDropdown_documentFragment$data = { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly id: string; - readonly title: string; - readonly versions: { - readonly __id: string; - readonly totalCount: number; - }; - readonly " $fragmentSpreads": FragmentRefs<"UpdateVersionDialogFragment">; - readonly " $fragmentType": "DocumentActionsDropdown_documentFragment"; -}; -export type DocumentActionsDropdown_documentFragment$key = { - readonly " $data"?: DocumentActionsDropdown_documentFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentActionsDropdown_documentFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentActionsDropdown_documentFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:delete\")" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "versions(first:20)" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "UpdateVersionDialogFragment" - } - ], - "type": "Document", - "abstractKey": null -}; - -(node as any).hash = "0e6d41c74914e28aea353ddef6bf7385"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentActionsDropdown_versionFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentActionsDropdown_versionFragment.graphql.ts deleted file mode 100644 index 55c09529c..000000000 --- a/apps/console/src/__generated__/core/DocumentActionsDropdown_versionFragment.graphql.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentStatus = "DRAFT" | "PUBLISHED"; -import { FragmentRefs } from "relay-runtime"; -export type DocumentActionsDropdown_versionFragment$data = { - readonly canDeleteDraft: boolean; - readonly id: string; - readonly status: DocumentStatus; - readonly version: number; - readonly " $fragmentType": "DocumentActionsDropdown_versionFragment"; -}; -export type DocumentActionsDropdown_versionFragment$key = { - readonly " $data"?: DocumentActionsDropdown_versionFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentActionsDropdown_versionFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentActionsDropdown_versionFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": "canDeleteDraft", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version:delete-draft" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version:delete-draft\")" - } - ], - "type": "DocumentVersion", - "abstractKey": null -}; - -(node as any).hash = "00619a8709984275b2e18c2c44dd4e36"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentActionsDropdownn_exportVersionMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentActionsDropdownn_exportVersionMutation.graphql.ts deleted file mode 100644 index b8e57af59..000000000 --- a/apps/console/src/__generated__/core/DocumentActionsDropdownn_exportVersionMutation.graphql.ts +++ /dev/null @@ -1,95 +0,0 @@ -/** - * @generated SignedSource<<02f25af2f023ddc0a964b44c105ea248>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ExportDocumentVersionPDFInput = { - documentVersionId: string; - watermarkEmail?: string | null | undefined; - withSignatures: boolean; - withWatermark: boolean; -}; -export type DocumentActionsDropdownn_exportVersionMutation$variables = { - input: ExportDocumentVersionPDFInput; -}; -export type DocumentActionsDropdownn_exportVersionMutation$data = { - readonly exportDocumentVersionPDF: { - readonly data: string; - }; -}; -export type DocumentActionsDropdownn_exportVersionMutation = { - response: DocumentActionsDropdownn_exportVersionMutation$data; - variables: DocumentActionsDropdownn_exportVersionMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ExportDocumentVersionPDFPayload", - "kind": "LinkedField", - "name": "exportDocumentVersionPDF", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "data", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentActionsDropdownn_exportVersionMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentActionsDropdownn_exportVersionMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "b9228ff1ce940910b277cecf021ebecb", - "id": null, - "metadata": {}, - "name": "DocumentActionsDropdownn_exportVersionMutation", - "operationKind": "mutation", - "text": "mutation DocumentActionsDropdownn_exportVersionMutation(\n $input: ExportDocumentVersionPDFInput!\n) {\n exportDocumentVersionPDF(input: $input) {\n data\n }\n}\n" - } -}; -})(); - -(node as any).hash = "1bab1476f7c4231736feefd227063c27"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentControlListFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentControlListFragment.graphql.ts deleted file mode 100644 index 0850ee11f..000000000 --- a/apps/console/src/__generated__/core/DocumentControlListFragment.graphql.ts +++ /dev/null @@ -1,235 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentControlListFragment$data = { - readonly controls: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedControlsCardFragment">; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "DocumentControlListFragment"; -}; -export type DocumentControlListFragment$key = { - readonly " $data"?: DocumentControlListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentControlListFragment">; -}; - -import DocumentControlListQuery_graphql from './DocumentControlListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "controls" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": DocumentControlListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "DocumentControlListFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "controls", - "args": [ - { - "kind": "Variable", - "name": "filter", - "variableName": "filter" - }, - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "__DocumentControlsTab_controls_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedControlsCardFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Document", - "abstractKey": null -}; -})(); - -(node as any).hash = "564d18d5d5fb4c71f137e236bc16d138"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentControlListQuery.graphql.ts b/apps/console/src/__generated__/core/DocumentControlListQuery.graphql.ts deleted file mode 100644 index 390e4448e..000000000 --- a/apps/console/src/__generated__/core/DocumentControlListQuery.graphql.ts +++ /dev/null @@ -1,363 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ControlOrderField = "CREATED_AT" | "SECTION_TITLE"; -export type OrderDirection = "ASC" | "DESC"; -export type ControlFilter = { - query?: string | null | undefined; -}; -export type ControlOrder = { - direction: OrderDirection; - field: ControlOrderField; -}; -export type DocumentControlListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - filter?: ControlFilter | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: ControlOrder | null | undefined; -}; -export type DocumentControlListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"DocumentControlListFragment">; - }; -}; -export type DocumentControlListQuery = { - response: DocumentControlListQuery$data; - variables: DocumentControlListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" -}, -v3 = { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v6 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v8 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v9 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v10 = { - "kind": "Variable", - "name": "filter", - "variableName": "filter" -}, -v11 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v12 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v15 = [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -], -v16 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentControlListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "DocumentControlListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v4/*: any*/) - ], - "kind": "Operation", - "name": "DocumentControlListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v13/*: any*/), - (v14/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v15/*: any*/), - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - (v16/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v14/*: any*/), - (v16/*: any*/) - ], - "storageKey": null - }, - (v13/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v15/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "DocumentControlsTab_controls", - "kind": "LinkedHandle", - "name": "controls" - } - ], - "type": "Document", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "b88b4ca4d817fd4cb0e830391b10053a", - "id": null, - "metadata": {}, - "name": "DocumentControlListQuery", - "operationKind": "query", - "text": "query DocumentControlListQuery(\n $after: CursorKey\n $before: CursorKey = null\n $filter: ControlFilter = null\n $first: Int = 20\n $last: Int = null\n $order: ControlOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...DocumentControlListFragment_4cFWzS\n id\n }\n}\n\nfragment DocumentControlListFragment_4cFWzS on Document {\n id\n controls(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: $filter) {\n edges {\n node {\n id\n ...LinkedControlsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment LinkedControlsCardFragment on Control {\n id\n name\n sectionTitle\n framework {\n id\n name\n }\n}\n" - } -}; -})(); - -(node as any).hash = "564d18d5d5fb4c71f137e236bc16d138"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentControlList_attachControlMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentControlList_attachControlMutation.graphql.ts deleted file mode 100644 index ce02805fc..000000000 --- a/apps/console/src/__generated__/core/DocumentControlList_attachControlMutation.graphql.ts +++ /dev/null @@ -1,216 +0,0 @@ -/** - * @generated SignedSource<<443d3250386ad406f7dc62c35297ed8f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateControlDocumentMappingInput = { - controlId: string; - documentId: string; -}; -export type DocumentControlList_attachControlMutation$variables = { - connections: ReadonlyArray; - input: CreateControlDocumentMappingInput; -}; -export type DocumentControlList_attachControlMutation$data = { - readonly createControlDocumentMapping: { - readonly controlEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedControlsCardFragment">; - }; - }; - }; -}; -export type DocumentControlList_attachControlMutation = { - response: DocumentControlList_attachControlMutation$data; - variables: DocumentControlList_attachControlMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentControlList_attachControlMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlDocumentMappingPayload", - "kind": "LinkedField", - "name": "createControlDocumentMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "controlEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedControlsCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "DocumentControlList_attachControlMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlDocumentMappingPayload", - "kind": "LinkedField", - "name": "createControlDocumentMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "controlEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "controlEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "b9968838fb5f70316d9245f390a881c8", - "id": null, - "metadata": {}, - "name": "DocumentControlList_attachControlMutation", - "operationKind": "mutation", - "text": "mutation DocumentControlList_attachControlMutation(\n $input: CreateControlDocumentMappingInput!\n) {\n createControlDocumentMapping(input: $input) {\n controlEdge {\n node {\n id\n ...LinkedControlsCardFragment\n }\n }\n }\n}\n\nfragment LinkedControlsCardFragment on Control {\n id\n name\n sectionTitle\n framework {\n id\n name\n }\n}\n" - } -}; -})(); - -(node as any).hash = "8598ac5c4d0f83519b134549cf6f3353"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentControlList_detachControlMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentControlList_detachControlMutation.graphql.ts deleted file mode 100644 index 1c1755dc8..000000000 --- a/apps/console/src/__generated__/core/DocumentControlList_detachControlMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<<25dfecd5fa953558409d2a4d1daa32c3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteControlDocumentMappingInput = { - controlId: string; - documentId: string; -}; -export type DocumentControlList_detachControlMutation$variables = { - connections: ReadonlyArray; - input: DeleteControlDocumentMappingInput; -}; -export type DocumentControlList_detachControlMutation$data = { - readonly deleteControlDocumentMapping: { - readonly deletedControlId: string; - }; -}; -export type DocumentControlList_detachControlMutation = { - response: DocumentControlList_detachControlMutation$data; - variables: DocumentControlList_detachControlMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedControlId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentControlList_detachControlMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlDocumentMappingPayload", - "kind": "LinkedField", - "name": "deleteControlDocumentMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "DocumentControlList_detachControlMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlDocumentMappingPayload", - "kind": "LinkedField", - "name": "deleteControlDocumentMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedControlId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "5d78356c860e344801d99117b599665d", - "id": null, - "metadata": {}, - "name": "DocumentControlList_detachControlMutation", - "operationKind": "mutation", - "text": "mutation DocumentControlList_detachControlMutation(\n $input: DeleteControlDocumentMappingInput!\n) {\n deleteControlDocumentMapping(input: $input) {\n deletedControlId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "fc76faa3002641acaf89856a94d37942"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentControlsPageQuery.graphql.ts b/apps/console/src/__generated__/core/DocumentControlsPageQuery.graphql.ts deleted file mode 100644 index ce61d96d5..000000000 --- a/apps/console/src/__generated__/core/DocumentControlsPageQuery.graphql.ts +++ /dev/null @@ -1,263 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentControlsPageQuery$variables = { - documentId: string; -}; -export type DocumentControlsPageQuery$data = { - readonly document: { - readonly " $fragmentSpreads": FragmentRefs<"DocumentControlListFragment">; - }; -}; -export type DocumentControlsPageQuery = { - response: DocumentControlsPageQuery$data; - variables: DocumentControlsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "documentId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "documentId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentControlsPageQuery", - "selections": [ - { - "alias": "document", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentControlListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentControlsPageQuery", - "selections": [ - { - "alias": "document", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v5/*: any*/) - ], - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "controls(first:20)" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "DocumentControlsTab_controls", - "kind": "LinkedHandle", - "name": "controls" - } - ], - "type": "Document", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "94cf68d78b8b5d80bf25b716644a6950", - "id": null, - "metadata": {}, - "name": "DocumentControlsPageQuery", - "operationKind": "query", - "text": "query DocumentControlsPageQuery(\n $documentId: ID!\n) {\n document: node(id: $documentId) {\n __typename\n ...DocumentControlListFragment\n id\n }\n}\n\nfragment DocumentControlListFragment on Document {\n id\n controls(first: 20) {\n edges {\n node {\n id\n ...LinkedControlsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment LinkedControlsCardFragment on Control {\n id\n name\n sectionTitle\n framework {\n id\n name\n }\n}\n" - } -}; -})(); - -(node as any).hash = "847158fb93fde696fbaa2cb5098bc0e3"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentDescriptionPageQuery.graphql.ts b/apps/console/src/__generated__/core/DocumentDescriptionPageQuery.graphql.ts deleted file mode 100644 index a289b1d19..000000000 --- a/apps/console/src/__generated__/core/DocumentDescriptionPageQuery.graphql.ts +++ /dev/null @@ -1,316 +0,0 @@ -/** - * @generated SignedSource<<2842b2f8f4ab4a912666b7d7a15cf6d4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentDescriptionPageQuery$variables = { - documentId: string; - versionId: string; - versionSpecified: boolean; -}; -export type DocumentDescriptionPageQuery$data = { - readonly document: { - readonly __typename: "Document"; - readonly lastVersion?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly content: string; - }; - }>; - }; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; - readonly version?: { - readonly __typename: "DocumentVersion"; - readonly content: string; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type DocumentDescriptionPageQuery = { - response: DocumentDescriptionPageQuery$data; - variables: DocumentDescriptionPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "documentId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "versionId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "versionSpecified" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "versionId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "content", - "storageKey": null -}, -v4 = [ - (v3/*: any*/) -], -v5 = { - "kind": "InlineFragment", - "selections": (v4/*: any*/), - "type": "DocumentVersion", - "abstractKey": null -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "documentId" - } -], -v7 = [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } -], -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentDescriptionPageQuery", - "selections": [ - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": true, - "selections": [ - { - "alias": "version", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v5/*: any*/) - ], - "storageKey": null - } - ] - }, - { - "alias": "document", - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": false, - "selections": [ - { - "alias": "lastVersion", - "args": (v7/*: any*/), - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": (v4/*: any*/), - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ] - } - ], - "type": "Document", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentDescriptionPageQuery", - "selections": [ - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": true, - "selections": [ - { - "alias": "version", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v5/*: any*/), - (v8/*: any*/) - ], - "storageKey": null - } - ] - }, - { - "alias": "document", - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": false, - "selections": [ - { - "alias": "lastVersion", - "args": (v7/*: any*/), - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v8/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ] - } - ], - "type": "Document", - "abstractKey": null - }, - (v8/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "4646502b657225d9ba8f985892e6896f", - "id": null, - "metadata": {}, - "name": "DocumentDescriptionPageQuery", - "operationKind": "query", - "text": "query DocumentDescriptionPageQuery(\n $documentId: ID!\n $versionId: ID!\n $versionSpecified: Boolean!\n) {\n version: node(id: $versionId) @include(if: $versionSpecified) {\n __typename\n ... on DocumentVersion {\n content\n }\n id\n }\n document: node(id: $documentId) {\n __typename\n ... on Document {\n lastVersion: versions(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) @skip(if: $versionSpecified) {\n edges {\n node {\n content\n id\n }\n }\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a0db3f402544a630895fb0b55efd916f"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentGraphBulkDeleteDocumentsMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentGraphBulkDeleteDocumentsMutation.graphql.ts deleted file mode 100644 index d3e975227..000000000 --- a/apps/console/src/__generated__/core/DocumentGraphBulkDeleteDocumentsMutation.graphql.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type BulkDeleteDocumentsInput = { - documentIds: ReadonlyArray; -}; -export type DocumentGraphBulkDeleteDocumentsMutation$variables = { - input: BulkDeleteDocumentsInput; -}; -export type DocumentGraphBulkDeleteDocumentsMutation$data = { - readonly bulkDeleteDocuments: { - readonly deletedDocumentIds: ReadonlyArray; - }; -}; -export type DocumentGraphBulkDeleteDocumentsMutation = { - response: DocumentGraphBulkDeleteDocumentsMutation$data; - variables: DocumentGraphBulkDeleteDocumentsMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedDocumentIds", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentGraphBulkDeleteDocumentsMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "BulkDeleteDocumentsPayload", - "kind": "LinkedField", - "name": "bulkDeleteDocuments", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentGraphBulkDeleteDocumentsMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "BulkDeleteDocumentsPayload", - "kind": "LinkedField", - "name": "bulkDeleteDocuments", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteRecord", - "key": "", - "kind": "ScalarHandle", - "name": "deletedDocumentIds" - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "655f43d282b8e0007f3b93e381e7ff84", - "id": null, - "metadata": {}, - "name": "DocumentGraphBulkDeleteDocumentsMutation", - "operationKind": "mutation", - "text": "mutation DocumentGraphBulkDeleteDocumentsMutation(\n $input: BulkDeleteDocumentsInput!\n) {\n bulkDeleteDocuments(input: $input) {\n deletedDocumentIds\n }\n}\n" - } -}; -})(); - -(node as any).hash = "919857a24f366b8ebe004fcadf503c3d"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentGraphBulkExportDocumentsMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentGraphBulkExportDocumentsMutation.graphql.ts deleted file mode 100644 index 896544b28..000000000 --- a/apps/console/src/__generated__/core/DocumentGraphBulkExportDocumentsMutation.graphql.ts +++ /dev/null @@ -1,95 +0,0 @@ -/** - * @generated SignedSource<<9b84adc0253186c6f0a5f47837d83d7f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type BulkExportDocumentsInput = { - documentIds: ReadonlyArray; - watermarkEmail?: string | null | undefined; - withSignatures: boolean; - withWatermark: boolean; -}; -export type DocumentGraphBulkExportDocumentsMutation$variables = { - input: BulkExportDocumentsInput; -}; -export type DocumentGraphBulkExportDocumentsMutation$data = { - readonly bulkExportDocuments: { - readonly exportJobId: string; - }; -}; -export type DocumentGraphBulkExportDocumentsMutation = { - response: DocumentGraphBulkExportDocumentsMutation$data; - variables: DocumentGraphBulkExportDocumentsMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "BulkExportDocumentsPayload", - "kind": "LinkedField", - "name": "bulkExportDocuments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "exportJobId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentGraphBulkExportDocumentsMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentGraphBulkExportDocumentsMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "2f4eb206613f8fba307aeee5bad27b93", - "id": null, - "metadata": {}, - "name": "DocumentGraphBulkExportDocumentsMutation", - "operationKind": "mutation", - "text": "mutation DocumentGraphBulkExportDocumentsMutation(\n $input: BulkExportDocumentsInput!\n) {\n bulkExportDocuments(input: $input) {\n exportJobId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0a7bae4b58713bcc824a774c31bd6dca"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentGraphDeleteDraftMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentGraphDeleteDraftMutation.graphql.ts deleted file mode 100644 index 543ae10df..000000000 --- a/apps/console/src/__generated__/core/DocumentGraphDeleteDraftMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteDraftDocumentVersionInput = { - documentVersionId: string; -}; -export type DocumentGraphDeleteDraftMutation$variables = { - connections: ReadonlyArray; - input: DeleteDraftDocumentVersionInput; -}; -export type DocumentGraphDeleteDraftMutation$data = { - readonly deleteDraftDocumentVersion: { - readonly deletedDocumentVersionId: string; - }; -}; -export type DocumentGraphDeleteDraftMutation = { - response: DocumentGraphDeleteDraftMutation$data; - variables: DocumentGraphDeleteDraftMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedDocumentVersionId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentGraphDeleteDraftMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteDraftDocumentVersionPayload", - "kind": "LinkedField", - "name": "deleteDraftDocumentVersion", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "DocumentGraphDeleteDraftMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteDraftDocumentVersionPayload", - "kind": "LinkedField", - "name": "deleteDraftDocumentVersion", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedDocumentVersionId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "cd7e8253362e1d7e719e4ae2c206756e", - "id": null, - "metadata": {}, - "name": "DocumentGraphDeleteDraftMutation", - "operationKind": "mutation", - "text": "mutation DocumentGraphDeleteDraftMutation(\n $input: DeleteDraftDocumentVersionInput!\n) {\n deleteDraftDocumentVersion(input: $input) {\n deletedDocumentVersionId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d43940b41e3838fd03c3341c13b4c5c5"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentGraphDeleteMutation.graphql.ts deleted file mode 100644 index 2d62ca753..000000000 --- a/apps/console/src/__generated__/core/DocumentGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<64c2c92a2a0806f34243f8fc9904167c>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteDocumentInput = { - documentId: string; -}; -export type DocumentGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteDocumentInput; -}; -export type DocumentGraphDeleteMutation$data = { - readonly deleteDocument: { - readonly deletedDocumentId: string; - }; -}; -export type DocumentGraphDeleteMutation = { - response: DocumentGraphDeleteMutation$data; - variables: DocumentGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedDocumentId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteDocumentPayload", - "kind": "LinkedField", - "name": "deleteDocument", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "DocumentGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteDocumentPayload", - "kind": "LinkedField", - "name": "deleteDocument", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedDocumentId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "84c747138470346796393f93a85b7127", - "id": null, - "metadata": {}, - "name": "DocumentGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation DocumentGraphDeleteMutation(\n $input: DeleteDocumentInput!\n) {\n deleteDocument(input: $input) {\n deletedDocumentId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "355f3a70caecabb2146075657665633e"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentGraphSendSigningNotificationsMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentGraphSendSigningNotificationsMutation.graphql.ts deleted file mode 100644 index b5547743b..000000000 --- a/apps/console/src/__generated__/core/DocumentGraphSendSigningNotificationsMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<242a8628b9203b02dccea5e311141ec4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SendSigningNotificationsInput = { - organizationId: string; -}; -export type DocumentGraphSendSigningNotificationsMutation$variables = { - input: SendSigningNotificationsInput; -}; -export type DocumentGraphSendSigningNotificationsMutation$data = { - readonly sendSigningNotifications: { - readonly success: boolean; - }; -}; -export type DocumentGraphSendSigningNotificationsMutation = { - response: DocumentGraphSendSigningNotificationsMutation$data; - variables: DocumentGraphSendSigningNotificationsMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "SendSigningNotificationsPayload", - "kind": "LinkedField", - "name": "sendSigningNotifications", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "success", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentGraphSendSigningNotificationsMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentGraphSendSigningNotificationsMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "111167f828fa6eaad3beb44c43e43f06", - "id": null, - "metadata": {}, - "name": "DocumentGraphSendSigningNotificationsMutation", - "operationKind": "mutation", - "text": "mutation DocumentGraphSendSigningNotificationsMutation(\n $input: SendSigningNotificationsInput!\n) {\n sendSigningNotifications(input: $input) {\n success\n }\n}\n" - } -}; -})(); - -(node as any).hash = "eaf2fba7629e202537cfc7bd9b5c9586"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentLayoutDrawerMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentLayoutDrawerMutation.graphql.ts deleted file mode 100644 index 6df7f71c0..000000000 --- a/apps/console/src/__generated__/core/DocumentLayoutDrawerMutation.graphql.ts +++ /dev/null @@ -1,186 +0,0 @@ -/** - * @generated SignedSource<<54fdf6ba6490381a269cd77379fe1810>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -export type UpdateDocumentInput = { - approverIds?: ReadonlyArray | null | undefined; - classification?: DocumentClassification | null | undefined; - content?: string | null | undefined; - documentType?: DocumentType | null | undefined; - id: string; - title?: string | null | undefined; - trustCenterVisibility?: TrustCenterVisibility | null | undefined; -}; -export type DocumentLayoutDrawerMutation$variables = { - input: UpdateDocumentInput; -}; -export type DocumentLayoutDrawerMutation$data = { - readonly updateDocument: { - readonly document: { - readonly approvers: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly fullName: string; - readonly id: string; - }; - }>; - }; - readonly classification: DocumentClassification; - readonly documentType: DocumentType; - readonly id: string; - }; - }; -}; -export type DocumentLayoutDrawerMutation = { - response: DocumentLayoutDrawerMutation$data; - variables: DocumentLayoutDrawerMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateDocumentPayload", - "kind": "LinkedField", - "name": "updateDocument", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "classification", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "approvers", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "approvers(first:100)" - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentLayoutDrawerMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentLayoutDrawerMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "e92e7774c449389137a3e5fb1b037e8a", - "id": null, - "metadata": {}, - "name": "DocumentLayoutDrawerMutation", - "operationKind": "mutation", - "text": "mutation DocumentLayoutDrawerMutation(\n $input: UpdateDocumentInput!\n) {\n updateDocument(input: $input) {\n document {\n id\n documentType\n classification\n approvers(first: 100) {\n edges {\n node {\n id\n fullName\n }\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "6e9b5aa2c9ba01c18bf26c514c3fbcd3"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentLayoutDrawer_documentFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentLayoutDrawer_documentFragment.graphql.ts deleted file mode 100644 index dcc31ca64..000000000 --- a/apps/console/src/__generated__/core/DocumentLayoutDrawer_documentFragment.graphql.ts +++ /dev/null @@ -1,123 +0,0 @@ -/** - * @generated SignedSource<<547f6c8756b51ff46a73158262f78e8e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -import { FragmentRefs } from "relay-runtime"; -export type DocumentLayoutDrawer_documentFragment$data = { - readonly approvers: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly fullName: string; - readonly id: string; - }; - }>; - }; - readonly canUpdate: boolean; - readonly documentType: DocumentType; - readonly id: string; - readonly " $fragmentType": "DocumentLayoutDrawer_documentFragment"; -}; -export type DocumentLayoutDrawer_documentFragment$key = { - readonly " $data"?: DocumentLayoutDrawer_documentFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentLayoutDrawer_documentFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentLayoutDrawer_documentFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:update\")" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "approvers", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "approvers(first:100)" - } - ], - "type": "Document", - "abstractKey": null -}; -})(); - -(node as any).hash = "ffc32318ed0df6b2992eca91bef297e5"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentLayoutDrawer_versionFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentLayoutDrawer_versionFragment.graphql.ts deleted file mode 100644 index 3124b8fd5..000000000 --- a/apps/console/src/__generated__/core/DocumentLayoutDrawer_versionFragment.graphql.ts +++ /dev/null @@ -1,84 +0,0 @@ -/** - * @generated SignedSource<<7464a4e3e5b2b5b72a6ecda47b5dace7>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -export type DocumentStatus = "DRAFT" | "PUBLISHED"; -import { FragmentRefs } from "relay-runtime"; -export type DocumentLayoutDrawer_versionFragment$data = { - readonly classification: DocumentClassification; - readonly id: string; - readonly publishedAt: string | null | undefined; - readonly status: DocumentStatus; - readonly updatedAt: string; - readonly version: number; - readonly " $fragmentType": "DocumentLayoutDrawer_versionFragment"; -}; -export type DocumentLayoutDrawer_versionFragment$key = { - readonly " $data"?: DocumentLayoutDrawer_versionFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentLayoutDrawer_versionFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentLayoutDrawer_versionFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "classification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "publishedAt", - "storageKey": null - } - ], - "type": "DocumentVersion", - "abstractKey": null -}; - -(node as any).hash = "ebe62fad4b4044be35adb9ba4979a45a"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentLayoutQuery.graphql.ts b/apps/console/src/__generated__/core/DocumentLayoutQuery.graphql.ts deleted file mode 100644 index 666e247d0..000000000 --- a/apps/console/src/__generated__/core/DocumentLayoutQuery.graphql.ts +++ /dev/null @@ -1,709 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentStatus = "DRAFT" | "PUBLISHED"; -export type DocumentLayoutQuery$variables = { - documentId: string; - versionId: string; - versionSpecified: boolean; -}; -export type DocumentLayoutQuery$data = { - readonly document: { - readonly __typename: "Document"; - readonly canPublish: boolean; - readonly controlInfo: { - readonly totalCount: number; - }; - readonly id: string; - readonly lastVersion?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly signatures: { - readonly totalCount: number; - }; - readonly signedSignatures: { - readonly totalCount: number; - }; - readonly status: DocumentStatus; - readonly " $fragmentSpreads": FragmentRefs<"DocumentActionsDropdown_versionFragment" | "DocumentLayoutDrawer_versionFragment">; - }; - }>; - }; - readonly title: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentActionsDropdown_documentFragment" | "DocumentLayoutDrawer_documentFragment" | "DocumentTitleFormFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; - readonly version?: { - readonly __typename: "DocumentVersion"; - readonly id: string; - readonly signatures: { - readonly totalCount: number; - }; - readonly signedSignatures: { - readonly totalCount: number; - }; - readonly status: DocumentStatus; - readonly " $fragmentSpreads": FragmentRefs<"DocumentActionsDropdown_versionFragment" | "DocumentLayoutDrawer_versionFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type DocumentLayoutQuery = { - response: DocumentLayoutQuery$data; - variables: DocumentLayoutQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "documentId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "versionId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "versionSpecified" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "versionId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}, -v5 = { - "kind": "Literal", - "name": "first", - "value": 0 -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null -}, -v7 = [ - (v6/*: any*/) -], -v8 = { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true - } - }, - (v5/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v7/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true},first:0)" -}, -v9 = { - "alias": "signedSignatures", - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true, - "states": [ - "SIGNED" - ] - } - }, - (v5/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v7/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true,\"states\":[\"SIGNED\"]},first:0)" -}, -v10 = [ - (v3/*: any*/), - (v4/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentActionsDropdown_versionFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentLayoutDrawer_versionFragment" - }, - (v8/*: any*/), - (v9/*: any*/) -], -v11 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "documentId" - } -], -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null -}, -v13 = { - "alias": "canPublish", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version:publish" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version:publish\")" -}, -v14 = { - "alias": "controlInfo", - "args": [ - (v5/*: any*/) - ], - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": (v7/*: any*/), - "storageKey": "controls(first:0)" -}, -v15 = [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } -], -v16 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -], -v17 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null -}, -v18 = { - "alias": "canDeleteDraft", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version:delete-draft" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version:delete-draft\")" -}, -v19 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "classification", - "storageKey": null -}, -v20 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v21 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "publishedAt", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentLayoutQuery", - "selections": [ - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": true, - "selections": [ - { - "alias": "version", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": (v10/*: any*/), - "type": "DocumentVersion", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - { - "alias": "document", - "args": (v11/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentTitleFormFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentActionsDropdown_documentFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentLayoutDrawer_documentFragment" - }, - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": false, - "selections": [ - { - "alias": "lastVersion", - "args": (v15/*: any*/), - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": (v10/*: any*/), - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ] - } - ], - "type": "Document", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentLayoutQuery", - "selections": [ - { - "alias": "document", - "args": (v11/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:delete\")" - }, - { - "alias": null, - "args": (v16/*: any*/), - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - (v6/*: any*/), - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - }, - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "content", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:20)" - }, - { - "alias": null, - "args": (v16/*: any*/), - "filters": null, - "handle": "connection", - "key": "DocumentLayout_versions", - "kind": "LinkedHandle", - "name": "versions" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "approvers", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "approvers(first:100)" - }, - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": false, - "selections": [ - { - "alias": "lastVersion", - "args": (v15/*: any*/), - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v17/*: any*/), - (v18/*: any*/), - (v19/*: any*/), - (v20/*: any*/), - (v21/*: any*/), - (v8/*: any*/), - (v9/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ] - } - ], - "type": "Document", - "abstractKey": null - } - ], - "storageKey": null - }, - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": true, - "selections": [ - { - "alias": "version", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v4/*: any*/), - (v17/*: any*/), - (v18/*: any*/), - (v19/*: any*/), - (v20/*: any*/), - (v21/*: any*/), - (v8/*: any*/), - (v9/*: any*/) - ], - "type": "DocumentVersion", - "abstractKey": null - } - ], - "storageKey": null - } - ] - } - ] - }, - "params": { - "cacheID": "4291fe2afc2c86c77cbfd01d05f16e75", - "id": null, - "metadata": {}, - "name": "DocumentLayoutQuery", - "operationKind": "query", - "text": "query DocumentLayoutQuery(\n $documentId: ID!\n $versionId: ID!\n $versionSpecified: Boolean!\n) {\n version: node(id: $versionId) @include(if: $versionSpecified) {\n __typename\n ... on DocumentVersion {\n id\n status\n ...DocumentActionsDropdown_versionFragment\n ...DocumentLayoutDrawer_versionFragment\n signatures(first: 0, filter: {activeContract: true}) {\n totalCount\n }\n signedSignatures: signatures(first: 0, filter: {states: [SIGNED], activeContract: true}) {\n totalCount\n }\n }\n id\n }\n document: node(id: $documentId) {\n __typename\n ... on Document {\n id\n title\n canPublish: permission(action: \"core:document-version:publish\")\n controlInfo: controls(first: 0) {\n totalCount\n }\n ...DocumentTitleFormFragment\n ...DocumentActionsDropdown_documentFragment\n ...DocumentLayoutDrawer_documentFragment\n lastVersion: versions(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) @skip(if: $versionSpecified) {\n edges {\n node {\n id\n status\n ...DocumentActionsDropdown_versionFragment\n ...DocumentLayoutDrawer_versionFragment\n signatures(first: 0, filter: {activeContract: true}) {\n totalCount\n }\n signedSignatures: signatures(first: 0, filter: {states: [SIGNED], activeContract: true}) {\n totalCount\n }\n }\n }\n }\n }\n id\n }\n}\n\nfragment DocumentActionsDropdown_documentFragment on Document {\n id\n title\n canUpdate: permission(action: \"core:document:update\")\n canDelete: permission(action: \"core:document:delete\")\n versions(first: 20) {\n totalCount\n }\n ...UpdateVersionDialogFragment\n}\n\nfragment DocumentActionsDropdown_versionFragment on DocumentVersion {\n id\n version\n status\n canDeleteDraft: permission(action: \"core:document-version:delete-draft\")\n}\n\nfragment DocumentLayoutDrawer_documentFragment on Document {\n id\n documentType\n canUpdate: permission(action: \"core:document:update\")\n approvers(first: 100) {\n edges {\n node {\n id\n fullName\n }\n }\n }\n}\n\nfragment DocumentLayoutDrawer_versionFragment on DocumentVersion {\n id\n classification\n version\n status\n updatedAt\n publishedAt\n}\n\nfragment DocumentTitleFormFragment on Document {\n id\n title\n canUpdate: permission(action: \"core:document:update\")\n}\n\nfragment UpdateVersionDialogFragment on Document {\n id\n versions(first: 20) {\n edges {\n node {\n id\n status\n content\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "2ae22db6e21db2cade3476a25b912eec"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentLayout_publishVersionMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentLayout_publishVersionMutation.graphql.ts deleted file mode 100644 index 6ade228d3..000000000 --- a/apps/console/src/__generated__/core/DocumentLayout_publishVersionMutation.graphql.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * @generated SignedSource<<4617b6f203cf05562dccc80767cd0f9b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type PublishDocumentVersionInput = { - changelog?: string | null | undefined; - documentId: string; -}; -export type DocumentLayout_publishVersionMutation$variables = { - input: PublishDocumentVersionInput; -}; -export type DocumentLayout_publishVersionMutation$data = { - readonly publishDocumentVersion: { - readonly document: { - readonly id: string; - }; - }; -}; -export type DocumentLayout_publishVersionMutation = { - response: DocumentLayout_publishVersionMutation$data; - variables: DocumentLayout_publishVersionMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "PublishDocumentVersionPayload", - "kind": "LinkedField", - "name": "publishDocumentVersion", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentLayout_publishVersionMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentLayout_publishVersionMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "2d64ca66f58d2c312868cb6de4d01fd4", - "id": null, - "metadata": {}, - "name": "DocumentLayout_publishVersionMutation", - "operationKind": "mutation", - "text": "mutation DocumentLayout_publishVersionMutation(\n $input: PublishDocumentVersionInput!\n) {\n publishDocumentVersion(input: $input) {\n document {\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "226a81f075451d6db4d4f49e4bab70d6"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentListFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentListFragment.graphql.ts deleted file mode 100644 index 6226346a2..000000000 --- a/apps/console/src/__generated__/core/DocumentListFragment.graphql.ts +++ /dev/null @@ -1,270 +0,0 @@ -/** - * @generated SignedSource<<05daa30144e3f6586a379aaffc86a05e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentListFragment$data = { - readonly documents: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canRequestSignatures: boolean; - readonly canUpdate: boolean; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentListItemFragment">; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "DocumentListFragment"; -}; -export type DocumentListFragment$key = { - readonly " $data"?: DocumentListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentListFragment">; -}; - -import DocumentsListQuery_graphql from './DocumentsListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "documents" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": { - "direction": "ASC", - "field": "TITLE" - }, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": DocumentsListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "DocumentListFragment", - "selections": [ - { - "alias": "documents", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "__DocumentsListQuery_documents_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:delete\")" - }, - { - "alias": "canRequestSignatures", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version:request-signature" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version:request-signature\")" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentListItemFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "496614376a52d4557bcb06057863554e"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentListItemFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentListItemFragment.graphql.ts deleted file mode 100644 index d5aebcc12..000000000 --- a/apps/console/src/__generated__/core/DocumentListItemFragment.graphql.ts +++ /dev/null @@ -1,281 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -export type DocumentStatus = "DRAFT" | "PUBLISHED"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -import { FragmentRefs } from "relay-runtime"; -export type DocumentListItemFragment$data = { - readonly approvers: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly fullName: string; - readonly id: string; - }; - }>; - }; - readonly canDelete: boolean; - readonly classification: DocumentClassification; - readonly documentType: DocumentType; - readonly id: string; - readonly lastVersion: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly signatures: { - readonly totalCount: number; - }; - readonly signedSignatures: { - readonly totalCount: number; - }; - readonly status: DocumentStatus; - readonly version: number; - }; - }>; - }; - readonly title: string; - readonly updatedAt: string; - readonly " $fragmentType": "DocumentListItemFragment"; -}; -export type DocumentListItemFragment$key = { - readonly " $data"?: DocumentListItemFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentListItemFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "kind": "Literal", - "name": "first", - "value": 0 -}, -v2 = [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } -]; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentListItemFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "classification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:delete\")" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "approvers", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "approvers(first:100)" - }, - { - "alias": "lastVersion", - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true - } - }, - (v1/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v2/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true},first:0)" - }, - { - "alias": "signedSignatures", - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true, - "states": [ - "SIGNED" - ] - } - }, - (v1/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v2/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true,\"states\":[\"SIGNED\"]},first:0)" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "type": "Document", - "abstractKey": null -}; -})(); - -(node as any).hash = "440108e302ffc0f15018c14a9e922e88"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentListItem_deleteMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentListItem_deleteMutation.graphql.ts deleted file mode 100644 index 41a41214d..000000000 --- a/apps/console/src/__generated__/core/DocumentListItem_deleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<588b3953b36814ede0cd490eeaa6f99d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteDocumentInput = { - documentId: string; -}; -export type DocumentListItem_deleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteDocumentInput; -}; -export type DocumentListItem_deleteMutation$data = { - readonly deleteDocument: { - readonly deletedDocumentId: string; - }; -}; -export type DocumentListItem_deleteMutation = { - response: DocumentListItem_deleteMutation$data; - variables: DocumentListItem_deleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedDocumentId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentListItem_deleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteDocumentPayload", - "kind": "LinkedField", - "name": "deleteDocument", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "DocumentListItem_deleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteDocumentPayload", - "kind": "LinkedField", - "name": "deleteDocument", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedDocumentId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "de0d3cda546f944c8ae3a0ae98aa8bcb", - "id": null, - "metadata": {}, - "name": "DocumentListItem_deleteMutation", - "operationKind": "mutation", - "text": "mutation DocumentListItem_deleteMutation(\n $input: DeleteDocumentInput!\n) {\n deleteDocument(input: $input) {\n deletedDocumentId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "91fbf2fc8563f4ffe8732193a815de77"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentRowFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentRowFragment.graphql.ts deleted file mode 100644 index 29bc26b84..000000000 --- a/apps/console/src/__generated__/core/DocumentRowFragment.graphql.ts +++ /dev/null @@ -1,84 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -import { FragmentRefs } from "relay-runtime"; -export type DocumentRowFragment$data = { - readonly classification: DocumentClassification; - readonly documentType: DocumentType; - readonly id: string; - readonly signed: boolean; - readonly title: string; - readonly updatedAt: string; - readonly " $fragmentType": "DocumentRowFragment"; -}; -export type DocumentRowFragment$key = { - readonly " $data"?: DocumentRowFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentRowFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentRowFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "classification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signed", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "type": "SignableDocument", - "abstractKey": null -}; - -(node as any).hash = "43959adf3e4545cce78ba06f34c82cd2"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentSignatureListItemFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentSignatureListItemFragment.graphql.ts deleted file mode 100644 index 91eda715f..000000000 --- a/apps/console/src/__generated__/core/DocumentSignatureListItemFragment.graphql.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentVersionSignatureState = "REQUESTED" | "SIGNED"; -import { FragmentRefs } from "relay-runtime"; -export type DocumentSignatureListItemFragment$data = { - readonly canCancel: boolean; - readonly id: string; - readonly requestedAt: string; - readonly signedAt: string | null | undefined; - readonly signedBy: { - readonly fullName: string; - }; - readonly state: DocumentVersionSignatureState; - readonly " $fragmentType": "DocumentSignatureListItemFragment"; -}; -export type DocumentSignatureListItemFragment$key = { - readonly " $data"?: DocumentSignatureListItemFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignatureListItemFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentSignatureListItemFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "signedBy", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestedAt", - "storageKey": null - }, - { - "alias": "canCancel", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version-signature:cancel" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version-signature:cancel\")" - } - ], - "type": "DocumentVersionSignature", - "abstractKey": null -}; - -(node as any).hash = "59bdf4434147c77415ed636a9b78e154"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentSignatureListItem_cancelSignatureMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentSignatureListItem_cancelSignatureMutation.graphql.ts deleted file mode 100644 index 3dd8f01d0..000000000 --- a/apps/console/src/__generated__/core/DocumentSignatureListItem_cancelSignatureMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CancelSignatureRequestInput = { - documentVersionSignatureId: string; -}; -export type DocumentSignatureListItem_cancelSignatureMutation$variables = { - connections: ReadonlyArray; - input: CancelSignatureRequestInput; -}; -export type DocumentSignatureListItem_cancelSignatureMutation$data = { - readonly cancelSignatureRequest: { - readonly deletedDocumentVersionSignatureId: string; - }; -}; -export type DocumentSignatureListItem_cancelSignatureMutation = { - response: DocumentSignatureListItem_cancelSignatureMutation$data; - variables: DocumentSignatureListItem_cancelSignatureMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedDocumentVersionSignatureId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentSignatureListItem_cancelSignatureMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CancelSignatureRequestPayload", - "kind": "LinkedField", - "name": "cancelSignatureRequest", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "DocumentSignatureListItem_cancelSignatureMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CancelSignatureRequestPayload", - "kind": "LinkedField", - "name": "cancelSignatureRequest", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedDocumentVersionSignatureId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "494afd972f44f534cf6f728196717a82", - "id": null, - "metadata": {}, - "name": "DocumentSignatureListItem_cancelSignatureMutation", - "operationKind": "mutation", - "text": "mutation DocumentSignatureListItem_cancelSignatureMutation(\n $input: CancelSignatureRequestInput!\n) {\n cancelSignatureRequest(input: $input) {\n deletedDocumentVersionSignatureId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "1a98d7aee9dc6758f186e915e1abe073"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentSignatureListQuery.graphql.ts b/apps/console/src/__generated__/core/DocumentSignatureListQuery.graphql.ts deleted file mode 100644 index b6aaa235e..000000000 --- a/apps/console/src/__generated__/core/DocumentSignatureListQuery.graphql.ts +++ /dev/null @@ -1,337 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentVersionSignatureState = "REQUESTED" | "SIGNED"; -export type DocumentVersionSignatureFilter = { - activeContract?: boolean | null | undefined; - states?: ReadonlyArray | null | undefined; -}; -export type DocumentSignatureListQuery$variables = { - count?: number | null | undefined; - cursor?: string | null | undefined; - id: string; - signatureFilter?: DocumentVersionSignatureFilter | null | undefined; -}; -export type DocumentSignatureListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignatureList_versionFragment">; - }; -}; -export type DocumentSignatureListQuery = { - response: DocumentSignatureListQuery$data; - variables: DocumentSignatureListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": 1000, - "kind": "LocalArgument", - "name": "count" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "cursor" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "signatureFilter" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v7 = [ - { - "kind": "Variable", - "name": "after", - "variableName": "cursor" - }, - { - "kind": "Variable", - "name": "filter", - "variableName": "signatureFilter" - }, - { - "kind": "Variable", - "name": "first", - "variableName": "count" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentSignatureListQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - { - "kind": "Variable", - "name": "count", - "variableName": "count" - }, - { - "kind": "Variable", - "name": "cursor", - "variableName": "cursor" - }, - { - "kind": "Variable", - "name": "signatureFilter", - "variableName": "signatureFilter" - } - ], - "kind": "FragmentSpread", - "name": "DocumentSignatureList_versionFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "DocumentSignatureListQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - (v6/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignatureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignature", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v6/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "signedBy", - "plural": false, - "selections": [ - (v6/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestedAt", - "storageKey": null - }, - { - "alias": "canCancel", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version-signature:cancel" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version-signature:cancel\")" - }, - (v5/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v7/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "DocumentSignaturesTab_signatures", - "kind": "LinkedHandle", - "name": "signatures" - } - ], - "type": "DocumentVersion", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "25f679c343e22278c8a3d5e2db9bb3d0", - "id": null, - "metadata": {}, - "name": "DocumentSignatureListQuery", - "operationKind": "query", - "text": "query DocumentSignatureListQuery(\n $count: Int = 1000\n $cursor: CursorKey\n $signatureFilter: DocumentVersionSignatureFilter\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...DocumentSignatureList_versionFragment_1vp7QE\n id\n }\n}\n\nfragment DocumentSignatureListItemFragment on DocumentVersionSignature {\n id\n signedBy {\n fullName\n id\n }\n state\n signedAt\n requestedAt\n canCancel: permission(action: \"core:document-version-signature:cancel\")\n}\n\nfragment DocumentSignatureList_versionFragment_1vp7QE on DocumentVersion {\n ...DocumentSignaturePlaceholder_versionFragment\n signatures(first: $count, after: $cursor, filter: $signatureFilter) {\n edges {\n node {\n id\n signedBy {\n id\n }\n ...DocumentSignatureListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n}\n\nfragment DocumentSignaturePlaceholder_versionFragment on DocumentVersion {\n id\n status\n}\n" - } -}; -})(); - -(node as any).hash = "cc402c3b46eacfb04db1186bbd744f67"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentSignatureList_peopleFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentSignatureList_peopleFragment.graphql.ts deleted file mode 100644 index 58ee4cfe8..000000000 --- a/apps/console/src/__generated__/core/DocumentSignatureList_peopleFragment.graphql.ts +++ /dev/null @@ -1,118 +0,0 @@ -/** - * @generated SignedSource<<9d5bb5c52a22efeea7cc554200a7a153>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentSignatureList_peopleFragment$data = { - readonly profiles: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignaturePlaceholder_personFragment">; - }; - }>; - }; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignaturePlaceholder_organizationFragment">; - readonly " $fragmentType": "DocumentSignatureList_peopleFragment"; -}; -export type DocumentSignatureList_peopleFragment$key = { - readonly " $data"?: DocumentSignatureList_peopleFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignatureList_peopleFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" - } - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentSignatureList_peopleFragment", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentSignaturePlaceholder_organizationFragment" - }, - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "filter", - "variableName": "filter" - }, - { - "kind": "Literal", - "name": "first", - "value": 1000 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "FULL_NAME" - } - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "profiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentSignaturePlaceholder_personFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "cf9788ef7f8667bb436ef3776618d3f3"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentSignatureList_versionFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentSignatureList_versionFragment.graphql.ts deleted file mode 100644 index ed97447e0..000000000 --- a/apps/console/src/__generated__/core/DocumentSignatureList_versionFragment.graphql.ts +++ /dev/null @@ -1,219 +0,0 @@ -/** - * @generated SignedSource<<628394c29c246b6018084f14b3c0000b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentSignatureList_versionFragment$data = { - readonly id: string; - readonly signatures: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly signedBy: { - readonly id: string; - }; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignatureListItemFragment">; - }; - }>; - }; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignaturePlaceholder_versionFragment">; - readonly " $fragmentType": "DocumentSignatureList_versionFragment"; -}; -export type DocumentSignatureList_versionFragment$key = { - readonly " $data"?: DocumentSignatureList_versionFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignatureList_versionFragment">; -}; - -import DocumentSignatureListQuery_graphql from './DocumentSignatureListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "signatures" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": 1000, - "kind": "LocalArgument", - "name": "count" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "cursor" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "signatureFilter" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "count", - "cursor": "cursor", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "count", - "cursor": "cursor" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": DocumentSignatureListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "DocumentSignatureList_versionFragment", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentSignaturePlaceholder_versionFragment" - }, - { - "alias": "signatures", - "args": [ - { - "kind": "Variable", - "name": "filter", - "variableName": "signatureFilter" - } - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "__DocumentSignaturesTab_signatures_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignatureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignature", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "signedBy", - "plural": false, - "selections": [ - (v1/*: any*/) - ], - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentSignatureListItemFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "DocumentVersion", - "abstractKey": null -}; -})(); - -(node as any).hash = "cc402c3b46eacfb04db1186bbd744f67"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_organizationFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_organizationFragment.graphql.ts deleted file mode 100644 index 6a7ca2949..000000000 --- a/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_organizationFragment.graphql.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentSignaturePlaceholder_organizationFragment$data = { - readonly canRequestSignature: boolean; - readonly " $fragmentType": "DocumentSignaturePlaceholder_organizationFragment"; -}; -export type DocumentSignaturePlaceholder_organizationFragment$key = { - readonly " $data"?: DocumentSignaturePlaceholder_organizationFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignaturePlaceholder_organizationFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentSignaturePlaceholder_organizationFragment", - "selections": [ - { - "alias": "canRequestSignature", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version:request-signature" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version:request-signature\")" - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "4bb0c71b4b90f335c9938b0283639f36"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_personFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_personFragment.graphql.ts deleted file mode 100644 index af43dcc55..000000000 --- a/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_personFragment.graphql.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @generated SignedSource<<10302f020070a7ab64ab93115a4b916b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentSignaturePlaceholder_personFragment$data = { - readonly emailAddress: string; - readonly fullName: string; - readonly id: string; - readonly " $fragmentType": "DocumentSignaturePlaceholder_personFragment"; -}; -export type DocumentSignaturePlaceholder_personFragment$key = { - readonly " $data"?: DocumentSignaturePlaceholder_personFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignaturePlaceholder_personFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentSignaturePlaceholder_personFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - } - ], - "type": "Profile", - "abstractKey": null -}; - -(node as any).hash = "cbbb481145654dbf42e18ca46ec040fb"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_requestSignatureMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_requestSignatureMutation.graphql.ts deleted file mode 100644 index 7108039aa..000000000 --- a/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_requestSignatureMutation.graphql.ts +++ /dev/null @@ -1,184 +0,0 @@ -/** - * @generated SignedSource<<617f61c937eec7639e3c1c25884f1911>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentVersionSignatureState = "REQUESTED" | "SIGNED"; -export type RequestSignatureInput = { - documentVersionId: string; - signatoryId: string; -}; -export type DocumentSignaturePlaceholder_requestSignatureMutation$variables = { - connections: ReadonlyArray; - input: RequestSignatureInput; -}; -export type DocumentSignaturePlaceholder_requestSignatureMutation$data = { - readonly requestSignature: { - readonly documentVersionSignatureEdge: { - readonly node: { - readonly id: string; - readonly signedBy: { - readonly id: string; - }; - readonly state: DocumentVersionSignatureState; - }; - }; - }; -}; -export type DocumentSignaturePlaceholder_requestSignatureMutation = { - response: DocumentSignaturePlaceholder_requestSignatureMutation$data; - variables: DocumentSignaturePlaceholder_requestSignatureMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignatureEdge", - "kind": "LinkedField", - "name": "documentVersionSignatureEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignature", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "signedBy", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentSignaturePlaceholder_requestSignatureMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "RequestSignaturePayload", - "kind": "LinkedField", - "name": "requestSignature", - "plural": false, - "selections": [ - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "DocumentSignaturePlaceholder_requestSignatureMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "RequestSignaturePayload", - "kind": "LinkedField", - "name": "requestSignature", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "documentVersionSignatureEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "e1c767d2441f84b783ed4d3824e2f0e8", - "id": null, - "metadata": {}, - "name": "DocumentSignaturePlaceholder_requestSignatureMutation", - "operationKind": "mutation", - "text": "mutation DocumentSignaturePlaceholder_requestSignatureMutation(\n $input: RequestSignatureInput!\n) {\n requestSignature(input: $input) {\n documentVersionSignatureEdge {\n node {\n id\n state\n signedBy {\n id\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "9a5d20aef93c6bf4b83f88851a13b9c9"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_versionFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_versionFragment.graphql.ts deleted file mode 100644 index f5819a9b7..000000000 --- a/apps/console/src/__generated__/core/DocumentSignaturePlaceholder_versionFragment.graphql.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @generated SignedSource<<34ec1be8ec1087ce5163f0642009d71a>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentStatus = "DRAFT" | "PUBLISHED"; -import { FragmentRefs } from "relay-runtime"; -export type DocumentSignaturePlaceholder_versionFragment$data = { - readonly id: string; - readonly status: DocumentStatus; - readonly " $fragmentType": "DocumentSignaturePlaceholder_versionFragment"; -}; -export type DocumentSignaturePlaceholder_versionFragment$key = { - readonly " $data"?: DocumentSignaturePlaceholder_versionFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignaturePlaceholder_versionFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentSignaturePlaceholder_versionFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "type": "DocumentVersion", - "abstractKey": null -}; - -(node as any).hash = "935a86ea9eb392eedff1c0d0558f4aac"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentSignaturesPageQuery.graphql.ts b/apps/console/src/__generated__/core/DocumentSignaturesPageQuery.graphql.ts deleted file mode 100644 index 81a8078a0..000000000 --- a/apps/console/src/__generated__/core/DocumentSignaturesPageQuery.graphql.ts +++ /dev/null @@ -1,603 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentSignaturesPageQuery$variables = { - documentId: string; - organizationId: string; - versionId: string; - versionSpecified: boolean; -}; -export type DocumentSignaturesPageQuery$data = { - readonly document?: { - readonly __typename: "Document"; - readonly lastVersion: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignatureList_versionFragment">; - }; - }>; - }; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; - readonly organization: { - readonly __typename: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignatureList_peopleFragment">; - }; - readonly version?: { - readonly __typename: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentSignatureList_versionFragment">; - }; -}; -export type DocumentSignaturesPageQuery = { - response: DocumentSignaturesPageQuery$data; - variables: DocumentSignaturesPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "documentId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "versionId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "versionSpecified" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "kind": "Literal", - "name": "filter", - "value": { - "excludeContractEnded": true - } -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "documentId" - } -], -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } -], -v6 = { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentSignatureList_versionFragment" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "versionId" - } -], -v8 = { - "kind": "Literal", - "name": "first", - "value": 1000 -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}, -v12 = [ - (v8/*: any*/) -], -v13 = { - "alias": null, - "args": (v12/*: any*/), - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignatureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignature", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "signedBy", - "plural": false, - "selections": [ - (v9/*: any*/), - (v10/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestedAt", - "storageKey": null - }, - { - "alias": "canCancel", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version-signature:cancel" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version-signature:cancel\")" - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "signatures(first:1000)" -}, -v14 = { - "alias": null, - "args": (v12/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "DocumentSignaturesTab_signatures", - "kind": "LinkedHandle", - "name": "signatures" -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentSignaturesPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": [ - (v3/*: any*/) - ], - "kind": "FragmentSpread", - "name": "DocumentSignatureList_peopleFragment" - } - ], - "storageKey": null - }, - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": false, - "selections": [ - { - "alias": "document", - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "lastVersion", - "args": (v5/*: any*/), - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v6/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "type": "Document", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": true, - "selections": [ - { - "alias": "version", - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v6/*: any*/) - ], - "storageKey": null - } - ] - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentSignaturesPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canRequestSignature", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version:request-signature" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version:request-signature\")" - }, - { - "alias": null, - "args": [ - (v3/*: any*/), - (v8/*: any*/), - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "FULL_NAME" - } - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "profiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - (v10/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "profiles(filter:{\"excludeContractEnded\":true},first:1000,orderBy:{\"direction\":\"ASC\",\"field\":\"FULL_NAME\"})" - } - ], - "type": "Organization", - "abstractKey": null - }, - (v9/*: any*/) - ], - "storageKey": null - }, - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": false, - "selections": [ - { - "alias": "document", - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "lastVersion", - "args": (v5/*: any*/), - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - (v11/*: any*/), - (v13/*: any*/), - (v14/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "type": "Document", - "abstractKey": null - }, - (v9/*: any*/) - ], - "storageKey": null - } - ] - }, - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": true, - "selections": [ - { - "alias": "version", - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v9/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v11/*: any*/), - (v13/*: any*/), - (v14/*: any*/) - ], - "type": "DocumentVersion", - "abstractKey": null - } - ], - "storageKey": null - } - ] - } - ] - }, - "params": { - "cacheID": "7aa234078557c0ee417530dcbebba110", - "id": null, - "metadata": {}, - "name": "DocumentSignaturesPageQuery", - "operationKind": "query", - "text": "query DocumentSignaturesPageQuery(\n $documentId: ID!\n $organizationId: ID!\n $versionId: ID!\n $versionSpecified: Boolean!\n) {\n organization: node(id: $organizationId) {\n __typename\n ...DocumentSignatureList_peopleFragment_4oWXMW\n id\n }\n document: node(id: $documentId) @skip(if: $versionSpecified) {\n __typename\n ... on Document {\n lastVersion: versions(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n ...DocumentSignatureList_versionFragment\n id\n }\n }\n }\n }\n id\n }\n version: node(id: $versionId) @include(if: $versionSpecified) {\n __typename\n ...DocumentSignatureList_versionFragment\n id\n }\n}\n\nfragment DocumentSignatureListItemFragment on DocumentVersionSignature {\n id\n signedBy {\n fullName\n id\n }\n state\n signedAt\n requestedAt\n canCancel: permission(action: \"core:document-version-signature:cancel\")\n}\n\nfragment DocumentSignatureList_peopleFragment_4oWXMW on Organization {\n ...DocumentSignaturePlaceholder_organizationFragment\n profiles(first: 1000, orderBy: {direction: ASC, field: FULL_NAME}, filter: {excludeContractEnded: true}) {\n edges {\n node {\n id\n ...DocumentSignaturePlaceholder_personFragment\n }\n }\n }\n}\n\nfragment DocumentSignatureList_versionFragment on DocumentVersion {\n ...DocumentSignaturePlaceholder_versionFragment\n signatures(first: 1000) {\n edges {\n node {\n id\n signedBy {\n id\n }\n ...DocumentSignatureListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n}\n\nfragment DocumentSignaturePlaceholder_organizationFragment on Organization {\n canRequestSignature: permission(action: \"core:document-version:request-signature\")\n}\n\nfragment DocumentSignaturePlaceholder_personFragment on Profile {\n id\n fullName\n emailAddress\n}\n\nfragment DocumentSignaturePlaceholder_versionFragment on DocumentVersion {\n id\n status\n}\n" - } -}; -})(); - -(node as any).hash = "2468bd3b1b46b19f6f7a35e9b69beab6"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentTitleFormFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentTitleFormFragment.graphql.ts deleted file mode 100644 index 8111072b0..000000000 --- a/apps/console/src/__generated__/core/DocumentTitleFormFragment.graphql.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentTitleFormFragment$data = { - readonly canUpdate: boolean; - readonly id: string; - readonly title: string; - readonly " $fragmentType": "DocumentTitleFormFragment"; -}; -export type DocumentTitleFormFragment$key = { - readonly " $data"?: DocumentTitleFormFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentTitleFormFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentTitleFormFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:update\")" - } - ], - "type": "Document", - "abstractKey": null -}; - -(node as any).hash = "5fa870524b66e0b68c0f898982e56ce0"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentTitleFormMutation.graphql.ts b/apps/console/src/__generated__/core/DocumentTitleFormMutation.graphql.ts deleted file mode 100644 index 8f67c8dc4..000000000 --- a/apps/console/src/__generated__/core/DocumentTitleFormMutation.graphql.ts +++ /dev/null @@ -1,163 +0,0 @@ -/** - * @generated SignedSource<<5e613b9c850d6b80e1f133ee1d190845>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentClassification = "CONFIDENTIAL" | "INTERNAL" | "PUBLIC" | "SECRET"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -export type UpdateDocumentInput = { - approverIds?: ReadonlyArray | null | undefined; - classification?: DocumentClassification | null | undefined; - content?: string | null | undefined; - documentType?: DocumentType | null | undefined; - id: string; - title?: string | null | undefined; - trustCenterVisibility?: TrustCenterVisibility | null | undefined; -}; -export type DocumentTitleFormMutation$variables = { - input: UpdateDocumentInput; -}; -export type DocumentTitleFormMutation$data = { - readonly updateDocument: { - readonly document: { - readonly " $fragmentSpreads": FragmentRefs<"DocumentTitleFormFragment">; - }; - }; -}; -export type DocumentTitleFormMutation = { - response: DocumentTitleFormMutation$data; - variables: DocumentTitleFormMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentTitleFormMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateDocumentPayload", - "kind": "LinkedField", - "name": "updateDocument", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentTitleFormFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentTitleFormMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateDocumentPayload", - "kind": "LinkedField", - "name": "updateDocument", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:update\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f3a48357b051c3b8d7fa74d57a495b63", - "id": null, - "metadata": {}, - "name": "DocumentTitleFormMutation", - "operationKind": "mutation", - "text": "mutation DocumentTitleFormMutation(\n $input: UpdateDocumentInput!\n) {\n updateDocument(input: $input) {\n document {\n ...DocumentTitleFormFragment\n id\n }\n }\n}\n\nfragment DocumentTitleFormFragment on Document {\n id\n title\n canUpdate: permission(action: \"core:document:update\")\n}\n" - } -}; -})(); - -(node as any).hash = "25241f7d6938767f77c8d415ca5e2187"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentVersionsDropdownItemFragment.graphql.ts b/apps/console/src/__generated__/core/DocumentVersionsDropdownItemFragment.graphql.ts deleted file mode 100644 index f29703dd9..000000000 --- a/apps/console/src/__generated__/core/DocumentVersionsDropdownItemFragment.graphql.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentStatus = "DRAFT" | "PUBLISHED"; -import { FragmentRefs } from "relay-runtime"; -export type DocumentVersionsDropdownItemFragment$data = { - readonly id: string; - readonly publishedAt: string | null | undefined; - readonly status: DocumentStatus; - readonly updatedAt: string; - readonly version: number; - readonly " $fragmentType": "DocumentVersionsDropdownItemFragment"; -}; -export type DocumentVersionsDropdownItemFragment$key = { - readonly " $data"?: DocumentVersionsDropdownItemFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentVersionsDropdownItemFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentVersionsDropdownItemFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "publishedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "type": "DocumentVersion", - "abstractKey": null -}; - -(node as any).hash = "923dfbcf3e171fed5ea6509a43c1b4ce"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentVersionsDropdownMenuQuery.graphql.ts b/apps/console/src/__generated__/core/DocumentVersionsDropdownMenuQuery.graphql.ts deleted file mode 100644 index 34bde8a8c..000000000 --- a/apps/console/src/__generated__/core/DocumentVersionsDropdownMenuQuery.graphql.ts +++ /dev/null @@ -1,383 +0,0 @@ -/** - * @generated SignedSource<<369fa1f3218710cdc3fedb7e161f4e13>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentVersionsDropdownMenuQuery$variables = { - documentId: string; - versionId: string; - versionSpecified: boolean; -}; -export type DocumentVersionsDropdownMenuQuery$data = { - readonly document: { - readonly __typename: "Document"; - readonly lastVersion?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - }; - }>; - }; - readonly versions: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentVersionsDropdownItemFragment">; - }; - }>; - }; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; - readonly version?: { - readonly __typename: "DocumentVersion"; - readonly id: string; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type DocumentVersionsDropdownMenuQuery = { - response: DocumentVersionsDropdownMenuQuery$data; - variables: DocumentVersionsDropdownMenuQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "documentId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "versionId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "versionSpecified" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "documentId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -], -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v5 = [ - (v4/*: any*/) -], -v6 = { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": false, - "selections": [ - { - "alias": "lastVersion", - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": (v5/*: any*/), - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ] -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "versionId" - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentVersionsDropdownMenuQuery", - "selections": [ - { - "alias": "document", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v3/*: any*/), - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentVersionsDropdownItemFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:20)" - }, - (v6/*: any*/) - ], - "type": "Document", - "abstractKey": null - } - ], - "storageKey": null - }, - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": true, - "selections": [ - { - "alias": "version", - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": (v5/*: any*/), - "type": "DocumentVersion", - "abstractKey": null - } - ], - "storageKey": null - } - ] - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentVersionsDropdownMenuQuery", - "selections": [ - { - "alias": "document", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v3/*: any*/), - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "publishedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:20)" - }, - (v6/*: any*/) - ], - "type": "Document", - "abstractKey": null - }, - (v4/*: any*/) - ], - "storageKey": null - }, - { - "condition": "versionSpecified", - "kind": "Condition", - "passingValue": true, - "selections": [ - { - "alias": "version", - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - } - ] - } - ] - }, - "params": { - "cacheID": "f940f62593d1a96d898b128a11e8cf3b", - "id": null, - "metadata": {}, - "name": "DocumentVersionsDropdownMenuQuery", - "operationKind": "query", - "text": "query DocumentVersionsDropdownMenuQuery(\n $documentId: ID!\n $versionId: ID!\n $versionSpecified: Boolean!\n) {\n document: node(id: $documentId) {\n __typename\n ... on Document {\n versions(first: 20) {\n edges {\n node {\n id\n ...DocumentVersionsDropdownItemFragment\n }\n }\n }\n lastVersion: versions(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) @skip(if: $versionSpecified) {\n edges {\n node {\n id\n }\n }\n }\n }\n id\n }\n version: node(id: $versionId) @include(if: $versionSpecified) {\n __typename\n ... on DocumentVersion {\n id\n }\n id\n }\n}\n\nfragment DocumentVersionsDropdownItemFragment on DocumentVersion {\n id\n version\n status\n publishedAt\n updatedAt\n}\n" - } -}; -})(); - -(node as any).hash = "33baa920362db3aef46644b80477d78a"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentsListQuery.graphql.ts b/apps/console/src/__generated__/core/DocumentsListQuery.graphql.ts deleted file mode 100644 index aa3958cd5..000000000 --- a/apps/console/src/__generated__/core/DocumentsListQuery.graphql.ts +++ /dev/null @@ -1,550 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentOrderField = "CREATED_AT" | "DOCUMENT_TYPE" | "TITLE"; -export type OrderDirection = "ASC" | "DESC"; -export type DocumentOrder = { - direction: OrderDirection; - field: DocumentOrderField; -}; -export type DocumentsListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: DocumentOrder | null | undefined; -}; -export type DocumentsListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"DocumentListFragment">; - }; -}; -export type DocumentsListQuery = { - response: DocumentsListQuery$data; - variables: DocumentsListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": { - "direction": "ASC", - "field": "TITLE" - }, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -], -v14 = { - "kind": "Literal", - "name": "first", - "value": 0 -}, -v15 = [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "DocumentsListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "DocumentListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "DocumentsListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:delete\")" - }, - { - "alias": "canRequestSignatures", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version:request-signature" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version:request-signature\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "classification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "approvers", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "approvers(first:100)" - }, - { - "alias": "lastVersion", - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true - } - }, - (v14/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v15/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true},first:0)" - }, - { - "alias": "signedSignatures", - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true, - "states": [ - "SIGNED" - ] - } - }, - (v14/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v15/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true,\"states\":[\"SIGNED\"]},first:0)" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "DocumentsListQuery_documents", - "kind": "LinkedHandle", - "name": "documents" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "232b7e2c41d7603f54a3de844506ce08", - "id": null, - "metadata": {}, - "name": "DocumentsListQuery", - "operationKind": "query", - "text": "query DocumentsListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: DocumentOrder = {field: TITLE, direction: ASC}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...DocumentListFragment_16fISc\n id\n }\n}\n\nfragment DocumentListFragment_16fISc on Organization {\n documents(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n canUpdate: permission(action: \"core:document:update\")\n canDelete: permission(action: \"core:document:delete\")\n canRequestSignatures: permission(action: \"core:document-version:request-signature\")\n ...DocumentListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment DocumentListItemFragment on Document {\n id\n title\n documentType\n classification\n updatedAt\n canDelete: permission(action: \"core:document:delete\")\n approvers(first: 100) {\n edges {\n node {\n id\n fullName\n }\n }\n }\n lastVersion: versions(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n id\n status\n version\n signatures(first: 0, filter: {activeContract: true}) {\n totalCount\n }\n signedSignatures: signatures(first: 0, filter: {states: [SIGNED], activeContract: true}) {\n totalCount\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "496614376a52d4557bcb06057863554e"; - -export default node; diff --git a/apps/console/src/__generated__/core/DocumentsPageQuery.graphql.ts b/apps/console/src/__generated__/core/DocumentsPageQuery.graphql.ts deleted file mode 100644 index b8c0fd6e0..000000000 --- a/apps/console/src/__generated__/core/DocumentsPageQuery.graphql.ts +++ /dev/null @@ -1,566 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentsPageQuery$variables = { - organizationId: string; -}; -export type DocumentsPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly canCreateDocument: boolean; - readonly documents: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canSendSigningNotifications: boolean; - }; - }>; - }; - readonly " $fragmentSpreads": FragmentRefs<"DocumentListFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type DocumentsPageQuery = { - response: DocumentsPageQuery$data; - variables: DocumentsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": "canCreateDocument", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:create\")" -}, -v4 = { - "kind": "Literal", - "name": "first", - "value": 50 -}, -v5 = { - "direction": "ASC", - "field": "TITLE" -}, -v6 = [ - (v4/*: any*/), - { - "kind": "Literal", - "name": "orderBy", - "value": (v5/*: any*/) - } -], -v7 = { - "alias": "canSendSigningNotifications", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:send-signing-notifications" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:send-signing-notifications\")" -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v9 = { - "kind": "Literal", - "name": "first", - "value": 0 -}, -v10 = [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "args": [ - (v4/*: any*/), - { - "kind": "Literal", - "name": "order", - "value": (v5/*: any*/) - } - ], - "kind": "FragmentSpread", - "name": "DocumentListFragment" - }, - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v7/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "documents(first:50,orderBy:{\"direction\":\"ASC\",\"field\":\"TITLE\"})" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v8/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:delete\")" - }, - { - "alias": "canRequestSignatures", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document-version:request-signature" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document-version:request-signature\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "classification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "approvers", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "approvers(first:100)" - }, - { - "alias": "lastVersion", - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true - } - }, - (v9/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v10/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true},first:0)" - }, - { - "alias": "signedSignatures", - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true, - "states": [ - "SIGNED" - ] - } - }, - (v9/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v10/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true,\"states\":[\"SIGNED\"]},first:0)" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - (v2/*: any*/), - (v7/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "documents(first:50,orderBy:{\"direction\":\"ASC\",\"field\":\"TITLE\"})" - }, - { - "alias": null, - "args": (v6/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "DocumentsListQuery_documents", - "kind": "LinkedHandle", - "name": "documents" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "638d1d0f41916e750ecb5ac9312b0c8c", - "id": null, - "metadata": {}, - "name": "DocumentsPageQuery", - "operationKind": "query", - "text": "query DocumentsPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateDocument: permission(action: \"core:document:create\")\n ...DocumentListFragment_1WMmEg\n documents(first: 50, orderBy: {field: TITLE, direction: ASC}) {\n edges {\n node {\n canSendSigningNotifications: permission(action: \"core:document:send-signing-notifications\")\n id\n }\n }\n }\n }\n id\n }\n}\n\nfragment DocumentListFragment_1WMmEg on Organization {\n documents(first: 50, orderBy: {field: TITLE, direction: ASC}) {\n edges {\n node {\n id\n canUpdate: permission(action: \"core:document:update\")\n canDelete: permission(action: \"core:document:delete\")\n canRequestSignatures: permission(action: \"core:document-version:request-signature\")\n ...DocumentListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment DocumentListItemFragment on Document {\n id\n title\n documentType\n classification\n updatedAt\n canDelete: permission(action: \"core:document:delete\")\n approvers(first: 100) {\n edges {\n node {\n id\n fullName\n }\n }\n }\n lastVersion: versions(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n id\n status\n version\n signatures(first: 0, filter: {activeContract: true}) {\n totalCount\n }\n signedSignatures: signatures(first: 0, filter: {states: [SIGNED], activeContract: true}) {\n totalCount\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "03658a05617ef4f971ed6b0c2758fa87"; - -export default node; diff --git a/apps/console/src/__generated__/core/EditBusinessAssociateAgreementDialogMutation.graphql.ts b/apps/console/src/__generated__/core/EditBusinessAssociateAgreementDialogMutation.graphql.ts deleted file mode 100644 index e5495ba71..000000000 --- a/apps/console/src/__generated__/core/EditBusinessAssociateAgreementDialogMutation.graphql.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * @generated SignedSource<<803ae28abdfda756e8e4cdfba1e580c0>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateVendorBusinessAssociateAgreementInput = { - validFrom?: string | null | undefined; - validUntil?: string | null | undefined; - vendorId: string; -}; -export type EditBusinessAssociateAgreementDialogMutation$variables = { - input: UpdateVendorBusinessAssociateAgreementInput; -}; -export type EditBusinessAssociateAgreementDialogMutation$data = { - readonly updateVendorBusinessAssociateAgreement: { - readonly vendorBusinessAssociateAgreement: { - readonly createdAt: string; - readonly fileUrl: string; - readonly id: string; - readonly validFrom: string | null | undefined; - readonly validUntil: string | null | undefined; - }; - }; -}; -export type EditBusinessAssociateAgreementDialogMutation = { - response: EditBusinessAssociateAgreementDialogMutation$data; - variables: EditBusinessAssociateAgreementDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateVendorBusinessAssociateAgreementPayload", - "kind": "LinkedField", - "name": "updateVendorBusinessAssociateAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorBusinessAssociateAgreement", - "kind": "LinkedField", - "name": "vendorBusinessAssociateAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EditBusinessAssociateAgreementDialogMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EditBusinessAssociateAgreementDialogMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "2e50e54d255a9bea661d82188913ed9c", - "id": null, - "metadata": {}, - "name": "EditBusinessAssociateAgreementDialogMutation", - "operationKind": "mutation", - "text": "mutation EditBusinessAssociateAgreementDialogMutation(\n $input: UpdateVendorBusinessAssociateAgreementInput!\n) {\n updateVendorBusinessAssociateAgreement(input: $input) {\n vendorBusinessAssociateAgreement {\n id\n fileUrl\n validFrom\n validUntil\n createdAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "10b614dbbdee430ed650b94051be4bbc"; - -export default node; diff --git a/apps/console/src/__generated__/core/EditCompliancePageFileDialogMutation.graphql.ts b/apps/console/src/__generated__/core/EditCompliancePageFileDialogMutation.graphql.ts deleted file mode 100644 index 6561cd911..000000000 --- a/apps/console/src/__generated__/core/EditCompliancePageFileDialogMutation.graphql.ts +++ /dev/null @@ -1,199 +0,0 @@ -/** - * @generated SignedSource<<4b69c7a9c52b20ca2556b68e16e87cc1>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -export type UpdateTrustCenterFileInput = { - category?: string | null | undefined; - id: string; - name?: string | null | undefined; - trustCenterVisibility?: TrustCenterVisibility | null | undefined; -}; -export type EditCompliancePageFileDialogMutation$variables = { - input: UpdateTrustCenterFileInput; -}; -export type EditCompliancePageFileDialogMutation$data = { - readonly updateTrustCenterFile: { - readonly trustCenterFile: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFileListItem_fileFragment">; - }; - }; -}; -export type EditCompliancePageFileDialogMutation = { - response: EditCompliancePageFileDialogMutation$data; - variables: EditCompliancePageFileDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EditCompliancePageFileDialogMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateTrustCenterFilePayload", - "kind": "LinkedField", - "name": "updateTrustCenterFile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "trustCenterFile", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageFileListItem_fileFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EditCompliancePageFileDialogMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateTrustCenterFilePayload", - "kind": "LinkedField", - "name": "updateTrustCenterFile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "trustCenterFile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "7870997778d7b97e32afa90f4fd94e37", - "id": null, - "metadata": {}, - "name": "EditCompliancePageFileDialogMutation", - "operationKind": "mutation", - "text": "mutation EditCompliancePageFileDialogMutation(\n $input: UpdateTrustCenterFileInput!\n) {\n updateTrustCenterFile(input: $input) {\n trustCenterFile {\n ...CompliancePageFileListItem_fileFragment\n id\n }\n }\n}\n\nfragment CompliancePageFileListItem_fileFragment on TrustCenterFile {\n id\n name\n category\n fileUrl\n trustCenterVisibility\n createdAt\n canUpdate: permission(action: \"core:trust-center-file:update\")\n canDelete: permission(action: \"core:trust-center-file:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "c49b56acdfa7d0764ced16a9f0b39c69"; - -export default node; diff --git a/apps/console/src/__generated__/core/EditContactDialogUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/EditContactDialogUpdateMutation.graphql.ts deleted file mode 100644 index 396ba0d2b..000000000 --- a/apps/console/src/__generated__/core/EditContactDialogUpdateMutation.graphql.ts +++ /dev/null @@ -1,192 +0,0 @@ -/** - * @generated SignedSource<<388d0c9151e7eafaac39b71bf93133a2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type UpdateVendorContactInput = { - email?: string | null | undefined; - fullName?: string | null | undefined; - id: string; - phone?: string | null | undefined; - role?: string | null | undefined; -}; -export type EditContactDialogUpdateMutation$variables = { - input: UpdateVendorContactInput; -}; -export type EditContactDialogUpdateMutation$data = { - readonly updateVendorContact: { - readonly vendorContact: { - readonly " $fragmentSpreads": FragmentRefs<"VendorContactsTabFragment_contact">; - }; - }; -}; -export type EditContactDialogUpdateMutation = { - response: EditContactDialogUpdateMutation$data; - variables: EditContactDialogUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EditContactDialogUpdateMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateVendorContactPayload", - "kind": "LinkedField", - "name": "updateVendorContact", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContact", - "kind": "LinkedField", - "name": "vendorContact", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorContactsTabFragment_contact" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EditContactDialogUpdateMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateVendorContactPayload", - "kind": "LinkedField", - "name": "updateVendorContact", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContact", - "kind": "LinkedField", - "name": "vendorContact", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "phone", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "b5bcb3884fa972284be60164760a2ad1", - "id": null, - "metadata": {}, - "name": "EditContactDialogUpdateMutation", - "operationKind": "mutation", - "text": "mutation EditContactDialogUpdateMutation(\n $input: UpdateVendorContactInput!\n) {\n updateVendorContact(input: $input) {\n vendorContact {\n ...VendorContactsTabFragment_contact\n id\n }\n }\n}\n\nfragment VendorContactsTabFragment_contact on VendorContact {\n id\n fullName\n email\n phone\n role\n canUpdate: permission(action: \"core:vendor-contact:update\")\n canDelete: permission(action: \"core:vendor-contact:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "845750bb920bd01ed91bbae1531aaaf0"; - -export default node; diff --git a/apps/console/src/__generated__/core/EditControlDialogUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/EditControlDialogUpdateMutation.graphql.ts deleted file mode 100644 index 887d99b4f..000000000 --- a/apps/console/src/__generated__/core/EditControlDialogUpdateMutation.graphql.ts +++ /dev/null @@ -1,123 +0,0 @@ -/** - * @generated SignedSource<<9a29546b80fe0ae4776de8cf81d600a3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateApplicabilityStatementInput = { - applicability: boolean; - applicabilityStatementId: string; - justification?: string | null | undefined; -}; -export type EditControlDialogUpdateMutation$variables = { - input: UpdateApplicabilityStatementInput; -}; -export type EditControlDialogUpdateMutation$data = { - readonly updateApplicabilityStatement: { - readonly applicabilityStatement: { - readonly applicability: boolean; - readonly id: string; - readonly justification: string; - }; - }; -}; -export type EditControlDialogUpdateMutation = { - response: EditControlDialogUpdateMutation$data; - variables: EditControlDialogUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateApplicabilityStatementPayload", - "kind": "LinkedField", - "name": "updateApplicabilityStatement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatement", - "kind": "LinkedField", - "name": "applicabilityStatement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "applicability", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "justification", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EditControlDialogUpdateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EditControlDialogUpdateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "eaddaf695c16db04636c4d8a79ce6346", - "id": null, - "metadata": {}, - "name": "EditControlDialogUpdateMutation", - "operationKind": "mutation", - "text": "mutation EditControlDialogUpdateMutation(\n $input: UpdateApplicabilityStatementInput!\n) {\n updateApplicabilityStatement(input: $input) {\n applicabilityStatement {\n id\n applicability\n justification\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "51acae7db47e2eac1afd6a677abca126"; - -export default node; diff --git a/apps/console/src/__generated__/core/EditDataPrivacyAgreementDialogMutation.graphql.ts b/apps/console/src/__generated__/core/EditDataPrivacyAgreementDialogMutation.graphql.ts deleted file mode 100644 index 4854e8686..000000000 --- a/apps/console/src/__generated__/core/EditDataPrivacyAgreementDialogMutation.graphql.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * @generated SignedSource<<12863d17356b3d0f16a9c377cd95eb5b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateVendorDataPrivacyAgreementInput = { - validFrom?: string | null | undefined; - validUntil?: string | null | undefined; - vendorId: string; -}; -export type EditDataPrivacyAgreementDialogMutation$variables = { - input: UpdateVendorDataPrivacyAgreementInput; -}; -export type EditDataPrivacyAgreementDialogMutation$data = { - readonly updateVendorDataPrivacyAgreement: { - readonly vendorDataPrivacyAgreement: { - readonly createdAt: string; - readonly fileUrl: string; - readonly id: string; - readonly validFrom: string | null | undefined; - readonly validUntil: string | null | undefined; - }; - }; -}; -export type EditDataPrivacyAgreementDialogMutation = { - response: EditDataPrivacyAgreementDialogMutation$data; - variables: EditDataPrivacyAgreementDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateVendorDataPrivacyAgreementPayload", - "kind": "LinkedField", - "name": "updateVendorDataPrivacyAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorDataPrivacyAgreement", - "kind": "LinkedField", - "name": "vendorDataPrivacyAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EditDataPrivacyAgreementDialogMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EditDataPrivacyAgreementDialogMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "e84e9f9457d6e4dc295578e540aa3e64", - "id": null, - "metadata": {}, - "name": "EditDataPrivacyAgreementDialogMutation", - "operationKind": "mutation", - "text": "mutation EditDataPrivacyAgreementDialogMutation(\n $input: UpdateVendorDataPrivacyAgreementInput!\n) {\n updateVendorDataPrivacyAgreement(input: $input) {\n vendorDataPrivacyAgreement {\n id\n fileUrl\n validFrom\n validUntil\n createdAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b2caa3bc89953896a848ee77fd96a767"; - -export default node; diff --git a/apps/console/src/__generated__/core/EditServiceDialogUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/EditServiceDialogUpdateMutation.graphql.ts deleted file mode 100644 index cd722c312..000000000 --- a/apps/console/src/__generated__/core/EditServiceDialogUpdateMutation.graphql.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * @generated SignedSource<<858e7c26ec2dffad19b6d194cbc9eb06>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type UpdateVendorServiceInput = { - description?: string | null | undefined; - id: string; - name?: string | null | undefined; - type?: string | null | undefined; - url?: string | null | undefined; -}; -export type EditServiceDialogUpdateMutation$variables = { - input: UpdateVendorServiceInput; -}; -export type EditServiceDialogUpdateMutation$data = { - readonly updateVendorService: { - readonly vendorService: { - readonly " $fragmentSpreads": FragmentRefs<"VendorServicesTabFragment_service">; - }; - }; -}; -export type EditServiceDialogUpdateMutation = { - response: EditServiceDialogUpdateMutation$data; - variables: EditServiceDialogUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EditServiceDialogUpdateMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateVendorServicePayload", - "kind": "LinkedField", - "name": "updateVendorService", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorService", - "kind": "LinkedField", - "name": "vendorService", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorServicesTabFragment_service" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EditServiceDialogUpdateMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateVendorServicePayload", - "kind": "LinkedField", - "name": "updateVendorService", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorService", - "kind": "LinkedField", - "name": "vendorService", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "47b79dfb623481aba4ba9330ce4fb560", - "id": null, - "metadata": {}, - "name": "EditServiceDialogUpdateMutation", - "operationKind": "mutation", - "text": "mutation EditServiceDialogUpdateMutation(\n $input: UpdateVendorServiceInput!\n) {\n updateVendorService(input: $input) {\n vendorService {\n ...VendorServicesTabFragment_service\n id\n }\n }\n}\n\nfragment VendorServicesTabFragment_service on VendorService {\n id\n name\n description\n canUpdate: permission(action: \"core:vendor-service:update\")\n canDelete: permission(action: \"core:vendor-service:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "8a34720f5ae7e1f5c619518d4e0db460"; - -export default node; diff --git a/apps/console/src/__generated__/core/ElectronicSignatureSectionFragment.graphql.ts b/apps/console/src/__generated__/core/ElectronicSignatureSectionFragment.graphql.ts deleted file mode 100644 index ca282c8af..000000000 --- a/apps/console/src/__generated__/core/ElectronicSignatureSectionFragment.graphql.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * @generated SignedSource<<8ef79d0009e7493acec0b0dd749911a2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type ElectronicSignatureEventType = "CERTIFICATE_GENERATED" | "CONSENT_GIVEN" | "DOCUMENT_VIEWED" | "FULL_NAME_TYPED" | "PROCESSING_ERROR" | "SEAL_COMPUTED" | "SIGNATURE_ACCEPTED" | "SIGNATURE_COMPLETED" | "TIMESTAMP_REQUESTED"; -export type ElectronicSignatureStatus = "ACCEPTED" | "COMPLETED" | "FAILED" | "PENDING" | "PROCESSING"; -import { FragmentRefs } from "relay-runtime"; -export type ElectronicSignatureSectionFragment$data = { - readonly certificateFileUrl: string | null | undefined; - readonly events: ReadonlyArray<{ - readonly actorEmail: string; - readonly eventType: ElectronicSignatureEventType; - readonly id: string; - readonly occurredAt: string; - }>; - readonly signedAt: string | null | undefined; - readonly status: ElectronicSignatureStatus; - readonly " $fragmentType": "ElectronicSignatureSectionFragment"; -}; -export type ElectronicSignatureSectionFragment$key = { - readonly " $data"?: ElectronicSignatureSectionFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"ElectronicSignatureSectionFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "ElectronicSignatureSectionFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "certificateFileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignatureEvent", - "kind": "LinkedField", - "name": "events", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "eventType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "actorEmail", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "occurredAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "ElectronicSignature", - "abstractKey": null -}; - -(node as any).hash = "70f3c5dd8a387d419c5ebdf752908162"; - -export default node; diff --git a/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageDocumentFragment.graphql.ts b/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageDocumentFragment.graphql.ts deleted file mode 100644 index 6202b5a5d..000000000 --- a/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageDocumentFragment.graphql.ts +++ /dev/null @@ -1,139 +0,0 @@ -/** - * @generated SignedSource<<30cf9ee1e00a276d2719e8d7d5ea0949>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type EmployeeDocumentSignaturePageDocumentFragment$data = { - readonly id: string; - readonly signed: boolean; - readonly title: string; - readonly versions: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"VersionActionsFragment" | "VersionRowFragment">; - }; - }>; - }; - readonly " $fragmentType": "EmployeeDocumentSignaturePageDocumentFragment"; -}; -export type EmployeeDocumentSignaturePageDocumentFragment$key = { - readonly " $data"?: EmployeeDocumentSignaturePageDocumentFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"EmployeeDocumentSignaturePageDocumentFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "EmployeeDocumentSignaturePageDocumentFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signed", - "storageKey": null - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "VersionActionsFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VersionRowFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": "versions(first:100,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - "action": "THROW" - } - ], - "type": "SignableDocument", - "abstractKey": null -}; -})(); - -(node as any).hash = "aaa20cc1293a2b1ce5d760631c30804c"; - -export default node; diff --git a/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageExportSignablePDFMutation.graphql.ts b/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageExportSignablePDFMutation.graphql.ts deleted file mode 100644 index 214d581bb..000000000 --- a/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageExportSignablePDFMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ExportSignableDocumentVersionPDFInput = { - documentVersionId: string; -}; -export type EmployeeDocumentSignaturePageExportSignablePDFMutation$variables = { - input: ExportSignableDocumentVersionPDFInput; -}; -export type EmployeeDocumentSignaturePageExportSignablePDFMutation$data = { - readonly exportSignableVersionDocumentPDF: { - readonly data: string; - }; -}; -export type EmployeeDocumentSignaturePageExportSignablePDFMutation = { - response: EmployeeDocumentSignaturePageExportSignablePDFMutation$data; - variables: EmployeeDocumentSignaturePageExportSignablePDFMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ExportSignableDocumentVersionPDFPayload", - "kind": "LinkedField", - "name": "exportSignableVersionDocumentPDF", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "data", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EmployeeDocumentSignaturePageExportSignablePDFMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EmployeeDocumentSignaturePageExportSignablePDFMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "1bbeaaac843ecd06e9f7ee662aa11fc2", - "id": null, - "metadata": {}, - "name": "EmployeeDocumentSignaturePageExportSignablePDFMutation", - "operationKind": "mutation", - "text": "mutation EmployeeDocumentSignaturePageExportSignablePDFMutation(\n $input: ExportSignableDocumentVersionPDFInput!\n) {\n exportSignableVersionDocumentPDF(input: $input) {\n data\n }\n}\n" - } -}; -})(); - -(node as any).hash = "39a1e34d4b4f8c98d262dd3a737ebb7c"; - -export default node; diff --git a/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageQuery.graphql.ts b/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageQuery.graphql.ts deleted file mode 100644 index d4c4adf8a..000000000 --- a/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageQuery.graphql.ts +++ /dev/null @@ -1,217 +0,0 @@ -/** - * @generated SignedSource<<92e104374ca160bd4ce96fe2c60aecc6>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type EmployeeDocumentSignaturePageQuery$variables = { - documentId: string; -}; -export type EmployeeDocumentSignaturePageQuery$data = { - readonly viewer: { - readonly signableDocument: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"EmployeeDocumentSignaturePageDocumentFragment">; - } | null | undefined; - }; -}; -export type EmployeeDocumentSignaturePageQuery = { - response: EmployeeDocumentSignaturePageQuery$data; - variables: EmployeeDocumentSignaturePageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "documentId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "documentId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signed", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EmployeeDocumentSignaturePageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Viewer", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "SignableDocument", - "kind": "LinkedField", - "name": "signableDocument", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "EmployeeDocumentSignaturePageDocumentFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EmployeeDocumentSignaturePageQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Viewer", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "SignableDocument", - "kind": "LinkedField", - "name": "signableDocument", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - (v3/*: any*/), - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "publishedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:100,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6ae29e4a10d7e0eb4afa03eef60d6762", - "id": null, - "metadata": {}, - "name": "EmployeeDocumentSignaturePageQuery", - "operationKind": "query", - "text": "query EmployeeDocumentSignaturePageQuery(\n $documentId: ID!\n) {\n viewer {\n signableDocument(id: $documentId) {\n id\n ...EmployeeDocumentSignaturePageDocumentFragment\n }\n id\n }\n}\n\nfragment EmployeeDocumentSignaturePageDocumentFragment on SignableDocument {\n id\n title\n signed\n versions(first: 100, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n id\n ...VersionActionsFragment\n ...VersionRowFragment\n }\n }\n }\n}\n\nfragment VersionActionsFragment on DocumentVersion {\n id\n signed\n}\n\nfragment VersionRowFragment on DocumentVersion {\n id\n version\n signed\n publishedAt\n}\n" - } -}; -})(); - -(node as any).hash = "4b2db4d00f02f0826166b729e61e4e5d"; - -export default node; diff --git a/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageSignMutation.graphql.ts b/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageSignMutation.graphql.ts deleted file mode 100644 index 84f2d8090..000000000 --- a/apps/console/src/__generated__/core/EmployeeDocumentSignaturePageSignMutation.graphql.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentVersionSignatureState = "REQUESTED" | "SIGNED"; -export type SignDocumentInput = { - documentVersionId: string; -}; -export type EmployeeDocumentSignaturePageSignMutation$variables = { - input: SignDocumentInput; -}; -export type EmployeeDocumentSignaturePageSignMutation$data = { - readonly signDocument: { - readonly documentVersionSignature: { - readonly id: string; - readonly state: DocumentVersionSignatureState; - }; - }; -}; -export type EmployeeDocumentSignaturePageSignMutation = { - response: EmployeeDocumentSignaturePageSignMutation$data; - variables: EmployeeDocumentSignaturePageSignMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "SignDocumentPayload", - "kind": "LinkedField", - "name": "signDocument", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignature", - "kind": "LinkedField", - "name": "documentVersionSignature", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EmployeeDocumentSignaturePageSignMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EmployeeDocumentSignaturePageSignMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "dfdd778fc4b0cfc9c007e4c29258ea96", - "id": null, - "metadata": {}, - "name": "EmployeeDocumentSignaturePageSignMutation", - "operationKind": "mutation", - "text": "mutation EmployeeDocumentSignaturePageSignMutation(\n $input: SignDocumentInput!\n) {\n signDocument(input: $input) {\n documentVersionSignature {\n id\n state\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b91674332a1914e270e4fb811ccfd479"; - -export default node; diff --git a/apps/console/src/__generated__/core/EmployeeDocumentsPageQuery.graphql.ts b/apps/console/src/__generated__/core/EmployeeDocumentsPageQuery.graphql.ts deleted file mode 100644 index 4784bde55..000000000 --- a/apps/console/src/__generated__/core/EmployeeDocumentsPageQuery.graphql.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * @generated SignedSource<<7bf19a133f9a98ea87492298d98312fa>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type EmployeeDocumentsPageQuery$variables = { - organizationId: string; -}; -export type EmployeeDocumentsPageQuery$data = { - readonly viewer: { - readonly signableDocuments: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentRowFragment">; - }; - }>; - }; - }; -}; -export type EmployeeDocumentsPageQuery = { - response: EmployeeDocumentsPageQuery$data; - variables: EmployeeDocumentsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Literal", - "name": "first", - "value": 1000 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - }, - { - "kind": "Variable", - "name": "organizationId", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EmployeeDocumentsPageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Viewer", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "SignableDocumentConnection", - "kind": "LinkedField", - "name": "signableDocuments", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "SignableDocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "SignableDocument", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentRowFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EmployeeDocumentsPageQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Viewer", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "SignableDocumentConnection", - "kind": "LinkedField", - "name": "signableDocuments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SignableDocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SignableDocument", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "classification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signed", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6b86b68f881b9cce5eb16c3d02efba06", - "id": null, - "metadata": {}, - "name": "EmployeeDocumentsPageQuery", - "operationKind": "query", - "text": "query EmployeeDocumentsPageQuery(\n $organizationId: ID!\n) {\n viewer {\n signableDocuments(organizationId: $organizationId, first: 1000, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n id\n ...DocumentRowFragment\n }\n }\n }\n id\n }\n}\n\nfragment DocumentRowFragment on SignableDocument {\n id\n title\n documentType\n classification\n signed\n updatedAt\n}\n" - } -}; -})(); - -(node as any).hash = "df39499ecf83f117576ac2456aeb094a"; - -export default node; diff --git a/apps/console/src/__generated__/core/EvidenceGraphFileQuery.graphql.ts b/apps/console/src/__generated__/core/EvidenceGraphFileQuery.graphql.ts deleted file mode 100644 index 336d3a1f8..000000000 --- a/apps/console/src/__generated__/core/EvidenceGraphFileQuery.graphql.ts +++ /dev/null @@ -1,189 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type EvidenceGraphFileQuery$variables = { - evidenceId: string; -}; -export type EvidenceGraphFileQuery$data = { - readonly node: { - readonly file?: { - readonly downloadUrl: string; - readonly fileName: string; - readonly mimeType: string; - readonly size: number; - } | null | undefined; - readonly id?: string; - }; -}; -export type EvidenceGraphFileQuery = { - response: EvidenceGraphFileQuery$data; - variables: EvidenceGraphFileQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "evidenceId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "evidenceId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mimeType", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "downloadUrl", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EvidenceGraphFileQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "storageKey": null - } - ], - "type": "Evidence", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EvidenceGraphFileQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ], - "type": "Evidence", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "780e108a52d2fcbde6653de5d2ee058b", - "id": null, - "metadata": {}, - "name": "EvidenceGraphFileQuery", - "operationKind": "query", - "text": "query EvidenceGraphFileQuery(\n $evidenceId: ID!\n) {\n node(id: $evidenceId) {\n __typename\n ... on Evidence {\n id\n file {\n mimeType\n fileName\n size\n downloadUrl\n id\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "186386e82f82feb9c5b5a54f9d937903"; - -export default node; diff --git a/apps/console/src/__generated__/core/FormRiskDialogMutation.graphql.ts b/apps/console/src/__generated__/core/FormRiskDialogMutation.graphql.ts deleted file mode 100644 index 4a3d58269..000000000 --- a/apps/console/src/__generated__/core/FormRiskDialogMutation.graphql.ts +++ /dev/null @@ -1,271 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RiskTreatment = "ACCEPTED" | "AVOIDED" | "MITIGATED" | "TRANSFERRED"; -export type CreateRiskInput = { - category: string; - description?: string | null | undefined; - inherentImpact: number; - inherentLikelihood: number; - name: string; - note?: string | null | undefined; - organizationId: string; - ownerId?: string | null | undefined; - residualImpact?: number | null | undefined; - residualLikelihood?: number | null | undefined; - treatment: RiskTreatment; -}; -export type FormRiskDialogMutation$variables = { - connections: ReadonlyArray; - input: CreateRiskInput; -}; -export type FormRiskDialogMutation$data = { - readonly createRisk: { - readonly riskEdge: { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"useRiskFormFragment">; - }; - }; - }; -}; -export type FormRiskDialogMutation = { - response: FormRiskDialogMutation$data; - variables: FormRiskDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FormRiskDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRiskPayload", - "kind": "LinkedField", - "name": "createRisk", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RiskEdge", - "kind": "LinkedField", - "name": "riskEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "useRiskFormFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FormRiskDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRiskPayload", - "kind": "LinkedField", - "name": "createRisk", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RiskEdge", - "kind": "LinkedField", - "name": "riskEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "treatment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "note", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "riskEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "e2131409b62d6cd6bd8a6d008f2ac1f5", - "id": null, - "metadata": {}, - "name": "FormRiskDialogMutation", - "operationKind": "mutation", - "text": "mutation FormRiskDialogMutation(\n $input: CreateRiskInput!\n) {\n createRisk(input: $input) {\n riskEdge {\n node {\n ...useRiskFormFragment\n id\n }\n }\n }\n}\n\nfragment useRiskFormFragment on Risk {\n id\n name\n category\n description\n treatment\n inherentLikelihood\n inherentImpact\n residualLikelihood\n residualImpact\n note\n owner {\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0429ad2b3af194de47f4b5af4231e22b"; - -export default node; diff --git a/apps/console/src/__generated__/core/FormRiskDialogUpdateRiskMutation.graphql.ts b/apps/console/src/__generated__/core/FormRiskDialogUpdateRiskMutation.graphql.ts deleted file mode 100644 index 34c5dc0a7..000000000 --- a/apps/console/src/__generated__/core/FormRiskDialogUpdateRiskMutation.graphql.ts +++ /dev/null @@ -1,221 +0,0 @@ -/** - * @generated SignedSource<<869dffd68397003d545ac294239152eb>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RiskTreatment = "ACCEPTED" | "AVOIDED" | "MITIGATED" | "TRANSFERRED"; -export type UpdateRiskInput = { - category?: string | null | undefined; - description?: string | null | undefined; - id: string; - inherentImpact?: number | null | undefined; - inherentLikelihood?: number | null | undefined; - name?: string | null | undefined; - note?: string | null | undefined; - ownerId?: string | null | undefined; - residualImpact?: number | null | undefined; - residualLikelihood?: number | null | undefined; - treatment?: RiskTreatment | null | undefined; -}; -export type FormRiskDialogUpdateRiskMutation$variables = { - input: UpdateRiskInput; -}; -export type FormRiskDialogUpdateRiskMutation$data = { - readonly updateRisk: { - readonly risk: { - readonly " $fragmentSpreads": FragmentRefs<"useRiskFormFragment">; - }; - }; -}; -export type FormRiskDialogUpdateRiskMutation = { - response: FormRiskDialogUpdateRiskMutation$data; - variables: FormRiskDialogUpdateRiskMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "FormRiskDialogUpdateRiskMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateRiskPayload", - "kind": "LinkedField", - "name": "updateRisk", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "risk", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "useRiskFormFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "FormRiskDialogUpdateRiskMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateRiskPayload", - "kind": "LinkedField", - "name": "updateRisk", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "risk", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "treatment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "note", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "546b1e60a2e87bf71a1851ca76485767", - "id": null, - "metadata": {}, - "name": "FormRiskDialogUpdateRiskMutation", - "operationKind": "mutation", - "text": "mutation FormRiskDialogUpdateRiskMutation(\n $input: UpdateRiskInput!\n) {\n updateRisk(input: $input) {\n risk {\n ...useRiskFormFragment\n id\n }\n }\n}\n\nfragment useRiskFormFragment on Risk {\n id\n name\n category\n description\n treatment\n inherentLikelihood\n inherentImpact\n residualLikelihood\n residualImpact\n note\n owner {\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0299493042b2b5e7e464c991bab94375"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlDialogCreateMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlDialogCreateMutation.graphql.ts deleted file mode 100644 index 390ce7ce0..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlDialogCreateMutation.graphql.ts +++ /dev/null @@ -1,216 +0,0 @@ -/** - * @generated SignedSource<<10bdb7f9b009009a66d93605d3d671c4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateControlInput = { - bestPractice: boolean; - description?: string | null | undefined; - frameworkId: string; - name: string; - sectionTitle: string; -}; -export type FrameworkControlDialogCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateControlInput; -}; -export type FrameworkControlDialogCreateMutation$data = { - readonly createControl: { - readonly controlEdge: { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"FrameworkControlDialogFragment">; - }; - }; - }; -}; -export type FrameworkControlDialogCreateMutation = { - response: FrameworkControlDialogCreateMutation$data; - variables: FrameworkControlDialogCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlPayload", - "kind": "LinkedField", - "name": "createControl", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "controlEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "FrameworkControlDialogFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlPayload", - "kind": "LinkedField", - "name": "createControl", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "controlEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "bestPractice", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "controlEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "51536092f1e2e37d1499182357306138", - "id": null, - "metadata": {}, - "name": "FrameworkControlDialogCreateMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlDialogCreateMutation(\n $input: CreateControlInput!\n) {\n createControl(input: $input) {\n controlEdge {\n node {\n ...FrameworkControlDialogFragment\n id\n }\n }\n }\n}\n\nfragment FrameworkControlDialogFragment on Control {\n id\n name\n description\n sectionTitle\n bestPractice\n}\n" - } -}; -})(); - -(node as any).hash = "a64e6fd936555c0dd2cb4148cde736b6"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlDialogFragment.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlDialogFragment.graphql.ts deleted file mode 100644 index 9c56dc90d..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlDialogFragment.graphql.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * @generated SignedSource<<43181b3f35ce7df5f54b19bf82eeaad0>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type FrameworkControlDialogFragment$data = { - readonly bestPractice: boolean; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - readonly sectionTitle: string; - readonly " $fragmentType": "FrameworkControlDialogFragment"; -}; -export type FrameworkControlDialogFragment$key = { - readonly " $data"?: FrameworkControlDialogFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"FrameworkControlDialogFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlDialogFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "bestPractice", - "storageKey": null - } - ], - "type": "Control", - "abstractKey": null -}; - -(node as any).hash = "3ca9ebd60cc24f1080a594bf4ca0b928"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlDialogUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlDialogUpdateMutation.graphql.ts deleted file mode 100644 index 023383e79..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlDialogUpdateMutation.graphql.ts +++ /dev/null @@ -1,166 +0,0 @@ -/** - * @generated SignedSource<<791e18651a3911865d78b730f268f489>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type UpdateControlInput = { - bestPractice?: boolean | null | undefined; - description?: string | null | undefined; - id: string; - name?: string | null | undefined; - sectionTitle?: string | null | undefined; -}; -export type FrameworkControlDialogUpdateMutation$variables = { - input: UpdateControlInput; -}; -export type FrameworkControlDialogUpdateMutation$data = { - readonly updateControl: { - readonly control: { - readonly " $fragmentSpreads": FragmentRefs<"FrameworkControlDialogFragment">; - }; - }; -}; -export type FrameworkControlDialogUpdateMutation = { - response: FrameworkControlDialogUpdateMutation$data; - variables: FrameworkControlDialogUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlDialogUpdateMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateControlPayload", - "kind": "LinkedField", - "name": "updateControl", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "control", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "FrameworkControlDialogFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "FrameworkControlDialogUpdateMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateControlPayload", - "kind": "LinkedField", - "name": "updateControl", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "control", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "bestPractice", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "a44a5055f8167fa3754f4f389cee598f", - "id": null, - "metadata": {}, - "name": "FrameworkControlDialogUpdateMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlDialogUpdateMutation(\n $input: UpdateControlInput!\n) {\n updateControl(input: $input) {\n control {\n ...FrameworkControlDialogFragment\n id\n }\n }\n}\n\nfragment FrameworkControlDialogFragment on Control {\n id\n name\n description\n sectionTitle\n bestPractice\n}\n" - } -}; -})(); - -(node as any).hash = "0f070ad6868861c25e409d3777c247dd"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageAttachAuditMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageAttachAuditMutation.graphql.ts deleted file mode 100644 index 387f084d2..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageAttachAuditMutation.graphql.ts +++ /dev/null @@ -1,216 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateControlAuditMappingInput = { - auditId: string; - controlId: string; -}; -export type FrameworkControlPageAttachAuditMutation$variables = { - connections: ReadonlyArray; - input: CreateControlAuditMappingInput; -}; -export type FrameworkControlPageAttachAuditMutation$data = { - readonly createControlAuditMapping: { - readonly auditEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedAuditsCardFragment">; - }; - }; - }; -}; -export type FrameworkControlPageAttachAuditMutation = { - response: FrameworkControlPageAttachAuditMutation$data; - variables: FrameworkControlPageAttachAuditMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageAttachAuditMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlAuditMappingPayload", - "kind": "LinkedField", - "name": "createControlAuditMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "auditEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedAuditsCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageAttachAuditMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlAuditMappingPayload", - "kind": "LinkedField", - "name": "createControlAuditMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "auditEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "auditEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "458e59fda450fe6d728544e82d229399", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageAttachAuditMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageAttachAuditMutation(\n $input: CreateControlAuditMappingInput!\n) {\n createControlAuditMapping(input: $input) {\n auditEdge {\n node {\n id\n ...LinkedAuditsCardFragment\n }\n }\n }\n}\n\nfragment LinkedAuditsCardFragment on Audit {\n id\n name\n state\n framework {\n id\n name\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0a9f52be5fb551ec55667b7d777391de"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageAttachDocumentMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageAttachDocumentMutation.graphql.ts deleted file mode 100644 index 57b9afb0b..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageAttachDocumentMutation.graphql.ts +++ /dev/null @@ -1,249 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateControlDocumentMappingInput = { - controlId: string; - documentId: string; -}; -export type FrameworkControlPageAttachDocumentMutation$variables = { - connections: ReadonlyArray; - input: CreateControlDocumentMappingInput; -}; -export type FrameworkControlPageAttachDocumentMutation$data = { - readonly createControlDocumentMapping: { - readonly documentEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedDocumentsCardFragment">; - }; - }; - }; -}; -export type FrameworkControlPageAttachDocumentMutation = { - response: FrameworkControlPageAttachDocumentMutation$data; - variables: FrameworkControlPageAttachDocumentMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageAttachDocumentMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlDocumentMappingPayload", - "kind": "LinkedField", - "name": "createControlDocumentMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "documentEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedDocumentsCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageAttachDocumentMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlDocumentMappingPayload", - "kind": "LinkedField", - "name": "createControlDocumentMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "documentEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1)" - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "documentEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "3b0eb8fb0cfe690b0d0801126cd9866b", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageAttachDocumentMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageAttachDocumentMutation(\n $input: CreateControlDocumentMappingInput!\n) {\n createControlDocumentMapping(input: $input) {\n documentEdge {\n node {\n id\n ...LinkedDocumentsCardFragment\n }\n }\n }\n}\n\nfragment LinkedDocumentsCardFragment on Document {\n id\n title\n documentType\n versions(first: 1) {\n edges {\n node {\n id\n status\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "6f019fa6bdfccc4cddd80f0de770440f"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageAttachMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageAttachMutation.graphql.ts deleted file mode 100644 index c11a2064a..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageAttachMutation.graphql.ts +++ /dev/null @@ -1,202 +0,0 @@ -/** - * @generated SignedSource<<1d23c8e1a8e16a9811d75d208ade0889>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateControlMeasureMappingInput = { - controlId: string; - measureId: string; -}; -export type FrameworkControlPageAttachMutation$variables = { - connections: ReadonlyArray; - input: CreateControlMeasureMappingInput; -}; -export type FrameworkControlPageAttachMutation$data = { - readonly createControlMeasureMapping: { - readonly measureEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedMeasuresCardFragment">; - }; - }; - }; -}; -export type FrameworkControlPageAttachMutation = { - response: FrameworkControlPageAttachMutation$data; - variables: FrameworkControlPageAttachMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageAttachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlMeasureMappingPayload", - "kind": "LinkedField", - "name": "createControlMeasureMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "measureEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedMeasuresCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageAttachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlMeasureMappingPayload", - "kind": "LinkedField", - "name": "createControlMeasureMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "measureEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "measureEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "85f870b18745fcd28bac3a52c404e98f", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageAttachMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageAttachMutation(\n $input: CreateControlMeasureMappingInput!\n) {\n createControlMeasureMapping(input: $input) {\n measureEdge {\n node {\n id\n ...LinkedMeasuresCardFragment\n }\n }\n }\n}\n\nfragment LinkedMeasuresCardFragment on Measure {\n id\n name\n state\n}\n" - } -}; -})(); - -(node as any).hash = "e52f26e6906aa014ad020bd6f23a75d6"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageAttachObligationMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageAttachObligationMutation.graphql.ts deleted file mode 100644 index d9dfd21a0..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageAttachObligationMutation.graphql.ts +++ /dev/null @@ -1,228 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateControlObligationMappingInput = { - controlId: string; - obligationId: string; -}; -export type FrameworkControlPageAttachObligationMutation$variables = { - connections: ReadonlyArray; - input: CreateControlObligationMappingInput; -}; -export type FrameworkControlPageAttachObligationMutation$data = { - readonly createControlObligationMapping: { - readonly obligationEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedObligationsCardFragment">; - }; - }; - }; -}; -export type FrameworkControlPageAttachObligationMutation = { - response: FrameworkControlPageAttachObligationMutation$data; - variables: FrameworkControlPageAttachObligationMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageAttachObligationMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlObligationMappingPayload", - "kind": "LinkedField", - "name": "createControlObligationMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "obligationEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedObligationsCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageAttachObligationMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlObligationMappingPayload", - "kind": "LinkedField", - "name": "createControlObligationMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "obligationEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "obligationEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "846f67341abc63baebe66dc9a2f0b1cd", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageAttachObligationMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageAttachObligationMutation(\n $input: CreateControlObligationMappingInput!\n) {\n createControlObligationMapping(input: $input) {\n obligationEdge {\n node {\n id\n ...LinkedObligationsCardFragment\n }\n }\n }\n}\n\nfragment LinkedObligationsCardFragment on Obligation {\n id\n area\n source\n status\n owner {\n fullName\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3c4bfe48fd9db37ce70cecd890d7248a"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageAttachSnapshotMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageAttachSnapshotMutation.graphql.ts deleted file mode 100644 index 2cb72b588..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageAttachSnapshotMutation.graphql.ts +++ /dev/null @@ -1,216 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateControlSnapshotMappingInput = { - controlId: string; - snapshotId: string; -}; -export type FrameworkControlPageAttachSnapshotMutation$variables = { - connections: ReadonlyArray; - input: CreateControlSnapshotMappingInput; -}; -export type FrameworkControlPageAttachSnapshotMutation$data = { - readonly createControlSnapshotMapping: { - readonly snapshotEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedSnapshotsCardFragment">; - }; - }; - }; -}; -export type FrameworkControlPageAttachSnapshotMutation = { - response: FrameworkControlPageAttachSnapshotMutation$data; - variables: FrameworkControlPageAttachSnapshotMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageAttachSnapshotMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlSnapshotMappingPayload", - "kind": "LinkedField", - "name": "createControlSnapshotMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "snapshotEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedSnapshotsCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageAttachSnapshotMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlSnapshotMappingPayload", - "kind": "LinkedField", - "name": "createControlSnapshotMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "snapshotEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "snapshotEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "52c76e336bb7f38dc2d2f6620817100a", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageAttachSnapshotMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageAttachSnapshotMutation(\n $input: CreateControlSnapshotMappingInput!\n) {\n createControlSnapshotMapping(input: $input) {\n snapshotEdge {\n node {\n id\n ...LinkedSnapshotsCardFragment\n }\n }\n }\n}\n\nfragment LinkedSnapshotsCardFragment on Snapshot {\n id\n name\n description\n type\n createdAt\n}\n" - } -}; -})(); - -(node as any).hash = "9e8ad62cc8d9f3672e1f785c31a91624"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageDeleteControlMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageDeleteControlMutation.graphql.ts deleted file mode 100644 index c549c68c1..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageDeleteControlMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<87a74ac3a3c2523bd65512703dc2246e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteControlInput = { - controlId: string; -}; -export type FrameworkControlPageDeleteControlMutation$variables = { - connections: ReadonlyArray; - input: DeleteControlInput; -}; -export type FrameworkControlPageDeleteControlMutation$data = { - readonly deleteControl: { - readonly deletedControlId: string; - }; -}; -export type FrameworkControlPageDeleteControlMutation = { - response: FrameworkControlPageDeleteControlMutation$data; - variables: FrameworkControlPageDeleteControlMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedControlId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageDeleteControlMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlPayload", - "kind": "LinkedField", - "name": "deleteControl", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageDeleteControlMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlPayload", - "kind": "LinkedField", - "name": "deleteControl", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedControlId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f5559c3bf33da22ba6cb83fc408426e0", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageDeleteControlMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageDeleteControlMutation(\n $input: DeleteControlInput!\n) {\n deleteControl(input: $input) {\n deletedControlId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "c92c75d0666d2a60d3a2fcfb2959b2e9"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageDetachAuditMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageDetachAuditMutation.graphql.ts deleted file mode 100644 index 7c49bb0f7..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageDetachAuditMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteControlAuditMappingInput = { - auditId: string; - controlId: string; -}; -export type FrameworkControlPageDetachAuditMutation$variables = { - connections: ReadonlyArray; - input: DeleteControlAuditMappingInput; -}; -export type FrameworkControlPageDetachAuditMutation$data = { - readonly deleteControlAuditMapping: { - readonly deletedAuditId: string; - }; -}; -export type FrameworkControlPageDetachAuditMutation = { - response: FrameworkControlPageDetachAuditMutation$data; - variables: FrameworkControlPageDetachAuditMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedAuditId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageDetachAuditMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlAuditMappingPayload", - "kind": "LinkedField", - "name": "deleteControlAuditMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageDetachAuditMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlAuditMappingPayload", - "kind": "LinkedField", - "name": "deleteControlAuditMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedAuditId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "0ec6a285e6ffd0057602e30ef8411e16", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageDetachAuditMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageDetachAuditMutation(\n $input: DeleteControlAuditMappingInput!\n) {\n deleteControlAuditMapping(input: $input) {\n deletedAuditId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3c800764c7d5801bd228e8a61625bd75"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageDetachDocumentMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageDetachDocumentMutation.graphql.ts deleted file mode 100644 index 14d1fe584..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageDetachDocumentMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<<61b6714faa71bf0afe54a1984b719a55>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteControlDocumentMappingInput = { - controlId: string; - documentId: string; -}; -export type FrameworkControlPageDetachDocumentMutation$variables = { - connections: ReadonlyArray; - input: DeleteControlDocumentMappingInput; -}; -export type FrameworkControlPageDetachDocumentMutation$data = { - readonly deleteControlDocumentMapping: { - readonly deletedDocumentId: string; - }; -}; -export type FrameworkControlPageDetachDocumentMutation = { - response: FrameworkControlPageDetachDocumentMutation$data; - variables: FrameworkControlPageDetachDocumentMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedDocumentId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageDetachDocumentMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlDocumentMappingPayload", - "kind": "LinkedField", - "name": "deleteControlDocumentMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageDetachDocumentMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlDocumentMappingPayload", - "kind": "LinkedField", - "name": "deleteControlDocumentMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedDocumentId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f442693991b055c11609fb7bc326f1da", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageDetachDocumentMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageDetachDocumentMutation(\n $input: DeleteControlDocumentMappingInput!\n) {\n deleteControlDocumentMapping(input: $input) {\n deletedDocumentId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "8c20b51090f69e932bc4801d88a6eaa6"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageDetachMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageDetachMutation.graphql.ts deleted file mode 100644 index 632e7040b..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageDetachMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<<40a72ad7f2eb9fc26bf12c7f4ce731d7>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteControlMeasureMappingInput = { - controlId: string; - measureId: string; -}; -export type FrameworkControlPageDetachMutation$variables = { - connections: ReadonlyArray; - input: DeleteControlMeasureMappingInput; -}; -export type FrameworkControlPageDetachMutation$data = { - readonly deleteControlMeasureMapping: { - readonly deletedMeasureId: string; - }; -}; -export type FrameworkControlPageDetachMutation = { - response: FrameworkControlPageDetachMutation$data; - variables: FrameworkControlPageDetachMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedMeasureId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlMeasureMappingPayload", - "kind": "LinkedField", - "name": "deleteControlMeasureMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlMeasureMappingPayload", - "kind": "LinkedField", - "name": "deleteControlMeasureMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedMeasureId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "ce39a8bbb51cd7437dbc08612b60a214", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageDetachMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageDetachMutation(\n $input: DeleteControlMeasureMappingInput!\n) {\n deleteControlMeasureMapping(input: $input) {\n deletedMeasureId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "c62748aaf06f0050732be91ae341ae73"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageDetachObligationMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageDetachObligationMutation.graphql.ts deleted file mode 100644 index c6a8fca24..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageDetachObligationMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteControlObligationMappingInput = { - controlId: string; - obligationId: string; -}; -export type FrameworkControlPageDetachObligationMutation$variables = { - connections: ReadonlyArray; - input: DeleteControlObligationMappingInput; -}; -export type FrameworkControlPageDetachObligationMutation$data = { - readonly deleteControlObligationMapping: { - readonly deletedObligationId: string; - }; -}; -export type FrameworkControlPageDetachObligationMutation = { - response: FrameworkControlPageDetachObligationMutation$data; - variables: FrameworkControlPageDetachObligationMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedObligationId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageDetachObligationMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlObligationMappingPayload", - "kind": "LinkedField", - "name": "deleteControlObligationMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageDetachObligationMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlObligationMappingPayload", - "kind": "LinkedField", - "name": "deleteControlObligationMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedObligationId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "90f4a67d3a22217cc62841266c5a0450", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageDetachObligationMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageDetachObligationMutation(\n $input: DeleteControlObligationMappingInput!\n) {\n deleteControlObligationMapping(input: $input) {\n deletedObligationId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "92da0169c3d421a658aa560b4e5ba1c8"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkControlPageDetachSnapshotMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkControlPageDetachSnapshotMutation.graphql.ts deleted file mode 100644 index 5ea859a02..000000000 --- a/apps/console/src/__generated__/core/FrameworkControlPageDetachSnapshotMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteControlSnapshotMappingInput = { - controlId: string; - snapshotId: string; -}; -export type FrameworkControlPageDetachSnapshotMutation$variables = { - connections: ReadonlyArray; - input: DeleteControlSnapshotMappingInput; -}; -export type FrameworkControlPageDetachSnapshotMutation$data = { - readonly deleteControlSnapshotMapping: { - readonly deletedSnapshotId: string; - }; -}; -export type FrameworkControlPageDetachSnapshotMutation = { - response: FrameworkControlPageDetachSnapshotMutation$data; - variables: FrameworkControlPageDetachSnapshotMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedSnapshotId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkControlPageDetachSnapshotMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlSnapshotMappingPayload", - "kind": "LinkedField", - "name": "deleteControlSnapshotMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkControlPageDetachSnapshotMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlSnapshotMappingPayload", - "kind": "LinkedField", - "name": "deleteControlSnapshotMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedSnapshotId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "610636745f2c0441c54bd0028fc52cf0", - "id": null, - "metadata": {}, - "name": "FrameworkControlPageDetachSnapshotMutation", - "operationKind": "mutation", - "text": "mutation FrameworkControlPageDetachSnapshotMutation(\n $input: DeleteControlSnapshotMappingInput!\n) {\n deleteControlSnapshotMapping(input: $input) {\n deletedSnapshotId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "be8d40beadabe60d8c9bee4d99b885b7"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkDetailPageExportFrameworkMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkDetailPageExportFrameworkMutation.graphql.ts deleted file mode 100644 index 1399513b2..000000000 --- a/apps/console/src/__generated__/core/FrameworkDetailPageExportFrameworkMutation.graphql.ts +++ /dev/null @@ -1,95 +0,0 @@ -/** - * @generated SignedSource<<05766c7969f5e78f91ca5121d2c30db8>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type FrameworkDetailPageExportFrameworkMutation$variables = { - frameworkId: string; -}; -export type FrameworkDetailPageExportFrameworkMutation$data = { - readonly exportFramework: { - readonly exportJobId: string; - }; -}; -export type FrameworkDetailPageExportFrameworkMutation = { - response: FrameworkDetailPageExportFrameworkMutation$data; - variables: FrameworkDetailPageExportFrameworkMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "frameworkId" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "frameworkId", - "variableName": "frameworkId" - } - ], - "kind": "ObjectValue", - "name": "input" - } - ], - "concreteType": "ExportFrameworkPayload", - "kind": "LinkedField", - "name": "exportFramework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "exportJobId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "FrameworkDetailPageExportFrameworkMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "FrameworkDetailPageExportFrameworkMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "d6fdd2bb2dacfc88248ccfc6f671eb4a", - "id": null, - "metadata": {}, - "name": "FrameworkDetailPageExportFrameworkMutation", - "operationKind": "mutation", - "text": "mutation FrameworkDetailPageExportFrameworkMutation(\n $frameworkId: ID!\n) {\n exportFramework(input: {frameworkId: $frameworkId}) {\n exportJobId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3866a75fb0aeaaa6cdf97934508116c1"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkDetailPageFragment.graphql.ts b/apps/console/src/__generated__/core/FrameworkDetailPageFragment.graphql.ts deleted file mode 100644 index 8e71ccb0b..000000000 --- a/apps/console/src/__generated__/core/FrameworkDetailPageFragment.graphql.ts +++ /dev/null @@ -1,212 +0,0 @@ -/** - * @generated SignedSource<<45d53306abdcc9df7a3a4aa3dbab97f7>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type FrameworkDetailPageFragment$data = { - readonly canCreateControl: boolean; - readonly canDelete: boolean; - readonly canExport: boolean; - readonly canUpdate: boolean; - readonly controls: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly sectionTitle: string; - }; - }>; - }; - readonly darkLogoURL: string | null | undefined; - readonly description: string | null | undefined; - readonly id: string; - readonly lightLogoURL: string | null | undefined; - readonly name: string; - readonly " $fragmentType": "FrameworkDetailPageFragment"; -}; -export type FrameworkDetailPageFragment$key = { - readonly " $data"?: FrameworkDetailPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"FrameworkDetailPageFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkDetailPageFragment", - "selections": [ - (v0/*: any*/), - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - }, - { - "alias": "canExport", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:franework:export" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:franework:export\")" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:delete\")" - }, - { - "alias": "canCreateControl", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:create\")" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 250 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "SECTION_TITLE" - } - } - ], - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v1/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "controls(first:250,orderBy:{\"direction\":\"ASC\",\"field\":\"SECTION_TITLE\"})" - } - ], - "type": "Framework", - "abstractKey": null -}; -})(); - -(node as any).hash = "760fb461ecc85b5c3b394f6c86327958"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkFormDialogMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkFormDialogMutation.graphql.ts deleted file mode 100644 index 710a7b805..000000000 --- a/apps/console/src/__generated__/core/FrameworkFormDialogMutation.graphql.ts +++ /dev/null @@ -1,243 +0,0 @@ -/** - * @generated SignedSource<<3e99dde71cf9c37ef1ec401a9e76bb6c>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateFrameworkInput = { - description?: string | null | undefined; - name: string; - organizationId: string; -}; -export type FrameworkFormDialogMutation$variables = { - connections: ReadonlyArray; - input: CreateFrameworkInput; -}; -export type FrameworkFormDialogMutation$data = { - readonly createFramework: { - readonly frameworkEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"FrameworksPageCardFragment">; - }; - }; - }; -}; -export type FrameworkFormDialogMutation = { - response: FrameworkFormDialogMutation$data; - variables: FrameworkFormDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkFormDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateFrameworkPayload", - "kind": "LinkedField", - "name": "createFramework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "FrameworkEdge", - "kind": "LinkedField", - "name": "frameworkEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "FrameworksPageCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkFormDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateFrameworkPayload", - "kind": "LinkedField", - "name": "createFramework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "FrameworkEdge", - "kind": "LinkedField", - "name": "frameworkEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "frameworkEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "a26c4f5b9c310055da331176905fc712", - "id": null, - "metadata": {}, - "name": "FrameworkFormDialogMutation", - "operationKind": "mutation", - "text": "mutation FrameworkFormDialogMutation(\n $input: CreateFrameworkInput!\n) {\n createFramework(input: $input) {\n frameworkEdge {\n node {\n id\n ...FrameworksPageCardFragment\n }\n }\n }\n}\n\nfragment FrameworksPageCardFragment on Framework {\n id\n name\n description\n lightLogoURL\n darkLogoURL\n canUpdate: permission(action: \"core:framework:update\")\n canDelete: permission(action: \"core:framework:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "efed7b4ef49eea43e0bf9c0a8839c4ee"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkFormDialogUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkFormDialogUpdateMutation.graphql.ts deleted file mode 100644 index 0280bccc8..000000000 --- a/apps/console/src/__generated__/core/FrameworkFormDialogUpdateMutation.graphql.ts +++ /dev/null @@ -1,123 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateFrameworkInput = { - description?: string | null | undefined; - id: string; - name?: string | null | undefined; -}; -export type FrameworkFormDialogUpdateMutation$variables = { - input: UpdateFrameworkInput; -}; -export type FrameworkFormDialogUpdateMutation$data = { - readonly updateFramework: { - readonly framework: { - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - }; - }; -}; -export type FrameworkFormDialogUpdateMutation = { - response: FrameworkFormDialogUpdateMutation$data; - variables: FrameworkFormDialogUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateFrameworkPayload", - "kind": "LinkedField", - "name": "updateFramework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "FrameworkFormDialogUpdateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "FrameworkFormDialogUpdateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "54eaea672c9f7a7ddc3c6ba2b0655fc7", - "id": null, - "metadata": {}, - "name": "FrameworkFormDialogUpdateMutation", - "operationKind": "mutation", - "text": "mutation FrameworkFormDialogUpdateMutation(\n $input: UpdateFrameworkInput!\n) {\n updateFramework(input: $input) {\n framework {\n id\n name\n description\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b8e9b44f6fa1cb437d7fae09133d97f0"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkGraphControlNodeQuery.graphql.ts b/apps/console/src/__generated__/core/FrameworkGraphControlNodeQuery.graphql.ts deleted file mode 100644 index c610503d5..000000000 --- a/apps/console/src/__generated__/core/FrameworkGraphControlNodeQuery.graphql.ts +++ /dev/null @@ -1,1091 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type FrameworkGraphControlNodeQuery$variables = { - controlId: string; -}; -export type FrameworkGraphControlNodeQuery$data = { - readonly node: { - readonly audits?: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedAuditsCardFragment">; - }; - }>; - }; - readonly canCreateAuditMapping?: boolean; - readonly canCreateDocumentMapping?: boolean; - readonly canCreateMeasureMapping?: boolean; - readonly canCreateObligationMapping?: boolean; - readonly canCreateSnapshotMapping?: boolean; - readonly canDelete?: boolean; - readonly canDeleteAuditMapping?: boolean; - readonly canDeleteDocumentMapping?: boolean; - readonly canDeleteMeasureMapping?: boolean; - readonly canDeleteObligationMapping?: boolean; - readonly canDeleteSnapshotMapping?: boolean; - readonly canUpdate?: boolean; - readonly description?: string | null | undefined; - readonly documents?: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedDocumentsCardFragment">; - }; - }>; - }; - readonly id?: string; - readonly measures?: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedMeasuresCardFragment">; - }; - }>; - }; - readonly name?: string; - readonly obligations?: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedObligationsCardFragment">; - }; - }>; - }; - readonly sectionTitle?: string; - readonly snapshots?: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedSnapshotsCardFragment">; - }; - }>; - }; - readonly " $fragmentSpreads": FragmentRefs<"FrameworkControlDialogFragment">; - }; -}; -export type FrameworkGraphControlNodeQuery = { - response: FrameworkGraphControlNodeQuery$data; - variables: FrameworkGraphControlNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "controlId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "controlId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null -}, -v6 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:update\")" -}, -v7 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:delete\")" -}, -v8 = { - "alias": "canCreateMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:create-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:create-measure-mapping\")" -}, -v9 = { - "alias": "canDeleteMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:delete-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:delete-measure-mapping\")" -}, -v10 = { - "alias": "canCreateDocumentMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:create-document-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:create-document-mapping\")" -}, -v11 = { - "alias": "canDeleteDocumentMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:delete-document-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:delete-document-mapping\")" -}, -v12 = { - "alias": "canCreateAuditMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:create-audit-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:create-audit-mapping\")" -}, -v13 = { - "alias": "canDeleteAuditMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:delete-audit-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:delete-audit-mapping\")" -}, -v14 = { - "alias": "canCreateSnapshotMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:create-snapshot-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:create-snapshot-mapping\")" -}, -v15 = { - "alias": "canDeleteSnapshotMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:delete-snapshot-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:delete-snapshot-mapping\")" -}, -v16 = { - "alias": "canCreateObligationMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:create-obligation-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:create-obligation-mapping\")" -}, -v17 = { - "alias": "canDeleteObligationMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:delete-obligation-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:delete-obligation-mapping\")" -}, -v18 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v19 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v20 = { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null -}, -v21 = { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] -}, -v22 = [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } -], -v23 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null -}, -v24 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "FrameworkGraphControlNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/), - (v17/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "FrameworkControlDialogFragment" - }, - { - "alias": "measures", - "args": null, - "concreteType": "MeasureConnection", - "kind": "LinkedField", - "name": "__FrameworkGraphControl_measures_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedMeasuresCardFragment" - }, - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/), - (v21/*: any*/) - ], - "storageKey": null - }, - { - "alias": "documents", - "args": null, - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "__FrameworkGraphControl_documents_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedDocumentsCardFragment" - }, - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/), - (v21/*: any*/) - ], - "storageKey": null - }, - { - "alias": "audits", - "args": null, - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "__FrameworkGraphControl_audits_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedAuditsCardFragment" - }, - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/), - (v21/*: any*/) - ], - "storageKey": null - }, - { - "alias": "obligations", - "args": null, - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "__FrameworkGraphControl_obligations_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedObligationsCardFragment" - }, - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/), - (v21/*: any*/) - ], - "storageKey": null - }, - { - "alias": "snapshots", - "args": null, - "concreteType": "SnapshotConnection", - "kind": "LinkedField", - "name": "__FrameworkGraphControl_snapshots_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedSnapshotsCardFragment" - }, - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/), - (v21/*: any*/) - ], - "storageKey": null - } - ], - "type": "Control", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "FrameworkGraphControlNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v18/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/), - (v17/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "bestPractice", - "storageKey": null - }, - { - "alias": null, - "args": (v22/*: any*/), - "concreteType": "MeasureConnection", - "kind": "LinkedField", - "name": "measures", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v23/*: any*/), - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/), - (v21/*: any*/) - ], - "storageKey": "measures(first:100)" - }, - { - "alias": null, - "args": (v22/*: any*/), - "filters": null, - "handle": "connection", - "key": "FrameworkGraphControl_measures", - "kind": "LinkedHandle", - "name": "measures" - }, - { - "alias": null, - "args": (v22/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v24/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1)" - }, - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/), - (v21/*: any*/) - ], - "storageKey": "documents(first:100)" - }, - { - "alias": null, - "args": (v22/*: any*/), - "filters": null, - "handle": "connection", - "key": "FrameworkGraphControl_documents", - "kind": "LinkedHandle", - "name": "documents" - }, - { - "alias": null, - "args": (v22/*: any*/), - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "audits", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v23/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/) - ], - "storageKey": null - }, - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/), - (v21/*: any*/) - ], - "storageKey": "audits(first:100)" - }, - { - "alias": null, - "args": (v22/*: any*/), - "filters": null, - "handle": "connection", - "key": "FrameworkGraphControl_audits", - "kind": "LinkedHandle", - "name": "audits" - }, - { - "alias": null, - "args": (v22/*: any*/), - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "obligations", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - (v24/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/), - (v21/*: any*/) - ], - "storageKey": "obligations(first:100)" - }, - { - "alias": null, - "args": (v22/*: any*/), - "filters": null, - "handle": "connection", - "key": "FrameworkGraphControl_obligations", - "kind": "LinkedHandle", - "name": "obligations" - }, - { - "alias": null, - "args": (v22/*: any*/), - "concreteType": "SnapshotConnection", - "kind": "LinkedField", - "name": "snapshots", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/), - (v21/*: any*/) - ], - "storageKey": "snapshots(first:100)" - }, - { - "alias": null, - "args": (v22/*: any*/), - "filters": null, - "handle": "connection", - "key": "FrameworkGraphControl_snapshots", - "kind": "LinkedHandle", - "name": "snapshots" - } - ], - "type": "Control", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "998df2157721c875b49d5b5b9c2b4155", - "id": null, - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "node", - "measures" - ] - }, - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "node", - "documents" - ] - }, - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "node", - "audits" - ] - }, - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "node", - "obligations" - ] - }, - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "node", - "snapshots" - ] - } - ] - }, - "name": "FrameworkGraphControlNodeQuery", - "operationKind": "query", - "text": "query FrameworkGraphControlNodeQuery(\n $controlId: ID!\n) {\n node(id: $controlId) {\n __typename\n ... on Control {\n id\n name\n sectionTitle\n description\n canUpdate: permission(action: \"core:control:update\")\n canDelete: permission(action: \"core:control:delete\")\n canCreateMeasureMapping: permission(action: \"core:control:create-measure-mapping\")\n canDeleteMeasureMapping: permission(action: \"core:control:delete-measure-mapping\")\n canCreateDocumentMapping: permission(action: \"core:control:create-document-mapping\")\n canDeleteDocumentMapping: permission(action: \"core:control:delete-document-mapping\")\n canCreateAuditMapping: permission(action: \"core:control:create-audit-mapping\")\n canDeleteAuditMapping: permission(action: \"core:control:delete-audit-mapping\")\n canCreateSnapshotMapping: permission(action: \"core:control:create-snapshot-mapping\")\n canDeleteSnapshotMapping: permission(action: \"core:control:delete-snapshot-mapping\")\n canCreateObligationMapping: permission(action: \"core:control:create-obligation-mapping\")\n canDeleteObligationMapping: permission(action: \"core:control:delete-obligation-mapping\")\n ...FrameworkControlDialogFragment\n measures(first: 100) {\n edges {\n node {\n id\n ...LinkedMeasuresCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n documents(first: 100) {\n edges {\n node {\n id\n ...LinkedDocumentsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n audits(first: 100) {\n edges {\n node {\n id\n ...LinkedAuditsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n obligations(first: 100) {\n edges {\n node {\n id\n ...LinkedObligationsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n snapshots(first: 100) {\n edges {\n node {\n id\n ...LinkedSnapshotsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n id\n }\n}\n\nfragment FrameworkControlDialogFragment on Control {\n id\n name\n description\n sectionTitle\n bestPractice\n}\n\nfragment LinkedAuditsCardFragment on Audit {\n id\n name\n state\n framework {\n id\n name\n }\n}\n\nfragment LinkedDocumentsCardFragment on Document {\n id\n title\n documentType\n versions(first: 1) {\n edges {\n node {\n id\n status\n }\n }\n }\n}\n\nfragment LinkedMeasuresCardFragment on Measure {\n id\n name\n state\n}\n\nfragment LinkedObligationsCardFragment on Obligation {\n id\n area\n source\n status\n owner {\n fullName\n id\n }\n}\n\nfragment LinkedSnapshotsCardFragment on Snapshot {\n id\n name\n description\n type\n createdAt\n}\n" - } -}; -})(); - -(node as any).hash = "c5a03208206812d371f5133c8963a710"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworkGraphDeleteMutation.graphql.ts deleted file mode 100644 index 040bd7711..000000000 --- a/apps/console/src/__generated__/core/FrameworkGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<05d197ce59adad67cfb89dff4c502c58>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteFrameworkInput = { - frameworkId: string; -}; -export type FrameworkGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteFrameworkInput; -}; -export type FrameworkGraphDeleteMutation$data = { - readonly deleteFramework: { - readonly deletedFrameworkId: string; - }; -}; -export type FrameworkGraphDeleteMutation = { - response: FrameworkGraphDeleteMutation$data; - variables: FrameworkGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedFrameworkId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteFrameworkPayload", - "kind": "LinkedField", - "name": "deleteFramework", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworkGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteFrameworkPayload", - "kind": "LinkedField", - "name": "deleteFramework", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedFrameworkId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "761a391f497aa0e2e03d0db958089712", - "id": null, - "metadata": {}, - "name": "FrameworkGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation FrameworkGraphDeleteMutation(\n $input: DeleteFrameworkInput!\n) {\n deleteFramework(input: $input) {\n deletedFrameworkId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "6ebefeb003ce3a27bd134651e1b5c94b"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/FrameworkGraphListQuery.graphql.ts deleted file mode 100644 index 4fa9695f2..000000000 --- a/apps/console/src/__generated__/core/FrameworkGraphListQuery.graphql.ts +++ /dev/null @@ -1,364 +0,0 @@ -/** - * @generated SignedSource<<063d92802621a02aff6b40a9cb2266c2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type FrameworkGraphListQuery$variables = { - organizationId: string; -}; -export type FrameworkGraphListQuery$data = { - readonly organization: { - readonly canCreateFramework?: boolean; - readonly frameworks?: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"FrameworksPageCardFragment">; - }; - }>; - }; - readonly id?: string; - }; -}; -export type FrameworkGraphListQuery = { - response: FrameworkGraphListQuery$data; - variables: FrameworkGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": "canCreateFramework", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:create\")" -}, -v4 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:update\")" -}, -v5 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:delete\")" -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null -}, -v9 = { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] -}, -v10 = [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "FrameworkGraphListQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "alias": "frameworks", - "args": null, - "concreteType": "FrameworkConnection", - "kind": "LinkedField", - "name": "__FrameworksListQuery_frameworks_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "FrameworkEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "FrameworksPageCardFragment" - }, - (v6/*: any*/) - ], - "storageKey": null - }, - (v7/*: any*/) - ], - "storageKey": null - }, - (v8/*: any*/), - (v9/*: any*/) - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "FrameworkGraphListQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v6/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": (v10/*: any*/), - "concreteType": "FrameworkConnection", - "kind": "LinkedField", - "name": "frameworks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "FrameworkEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - }, - (v6/*: any*/) - ], - "storageKey": null - }, - (v7/*: any*/) - ], - "storageKey": null - }, - (v8/*: any*/), - (v9/*: any*/) - ], - "storageKey": "frameworks(first:100)" - }, - { - "alias": null, - "args": (v10/*: any*/), - "filters": null, - "handle": "connection", - "key": "FrameworksListQuery_frameworks", - "kind": "LinkedHandle", - "name": "frameworks" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "2d16147e68885223a69b3597e96d694b", - "id": null, - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "organization", - "frameworks" - ] - } - ] - }, - "name": "FrameworkGraphListQuery", - "operationKind": "query", - "text": "query FrameworkGraphListQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n canCreateFramework: permission(action: \"core:framework:create\")\n frameworks(first: 100) {\n edges {\n node {\n id\n canUpdate: permission(action: \"core:framework:update\")\n canDelete: permission(action: \"core:framework:delete\")\n ...FrameworksPageCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n id\n }\n}\n\nfragment FrameworksPageCardFragment on Framework {\n id\n name\n description\n lightLogoURL\n darkLogoURL\n canUpdate: permission(action: \"core:framework:update\")\n canDelete: permission(action: \"core:framework:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "f8d3a38faddf4285b8f495f54f3d988e"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworkGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/FrameworkGraphNodeQuery.graphql.ts deleted file mode 100644 index 8b35b11c3..000000000 --- a/apps/console/src/__generated__/core/FrameworkGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,282 +0,0 @@ -/** - * @generated SignedSource<<28e7d6bf94f2233025c7cfcb9d6e52bc>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type FrameworkGraphNodeQuery$variables = { - frameworkId: string; -}; -export type FrameworkGraphNodeQuery$data = { - readonly node: { - readonly id?: string; - readonly name?: string; - readonly " $fragmentSpreads": FragmentRefs<"FrameworkDetailPageFragment">; - }; -}; -export type FrameworkGraphNodeQuery = { - response: FrameworkGraphNodeQuery$data; - variables: FrameworkGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "frameworkId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "frameworkId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "FrameworkGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "FrameworkDetailPageFragment" - } - ], - "type": "Framework", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "FrameworkGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - }, - { - "alias": "canExport", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:franework:export" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:franework:export\")" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:delete\")" - }, - { - "alias": "canCreateControl", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:create\")" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 250 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "SECTION_TITLE" - } - } - ], - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "controls(first:250,orderBy:{\"direction\":\"ASC\",\"field\":\"SECTION_TITLE\"})" - } - ], - "type": "Framework", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "b81384926dda85938c39f810f7d10309", - "id": null, - "metadata": {}, - "name": "FrameworkGraphNodeQuery", - "operationKind": "query", - "text": "query FrameworkGraphNodeQuery(\n $frameworkId: ID!\n) {\n node(id: $frameworkId) {\n __typename\n ... on Framework {\n id\n name\n ...FrameworkDetailPageFragment\n }\n id\n }\n}\n\nfragment FrameworkDetailPageFragment on Framework {\n id\n name\n description\n lightLogoURL\n darkLogoURL\n canExport: permission(action: \"core:franework:export\")\n canUpdate: permission(action: \"core:framework:update\")\n canDelete: permission(action: \"core:framework:delete\")\n canCreateControl: permission(action: \"core:control:create\")\n controls(first: 250, orderBy: {field: SECTION_TITLE, direction: ASC}) {\n edges {\n node {\n id\n sectionTitle\n name\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "69a32dc8fbcaefbbaeb02dd2b89752c4"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworksPageCardFragment.graphql.ts b/apps/console/src/__generated__/core/FrameworksPageCardFragment.graphql.ts deleted file mode 100644 index 7198defb9..000000000 --- a/apps/console/src/__generated__/core/FrameworksPageCardFragment.graphql.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type FrameworksPageCardFragment$data = { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly darkLogoURL: string | null | undefined; - readonly description: string | null | undefined; - readonly id: string; - readonly lightLogoURL: string | null | undefined; - readonly name: string; - readonly " $fragmentType": "FrameworksPageCardFragment"; -}; -export type FrameworksPageCardFragment$key = { - readonly " $data"?: FrameworksPageCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"FrameworksPageCardFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "FrameworksPageCardFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:delete\")" - } - ], - "type": "Framework", - "abstractKey": null -}; - -(node as any).hash = "dfb64192cedec377c8df8a6d8251e815"; - -export default node; diff --git a/apps/console/src/__generated__/core/FrameworksPageImportMutation.graphql.ts b/apps/console/src/__generated__/core/FrameworksPageImportMutation.graphql.ts deleted file mode 100644 index 6919d5b2d..000000000 --- a/apps/console/src/__generated__/core/FrameworksPageImportMutation.graphql.ts +++ /dev/null @@ -1,242 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ImportFrameworkInput = { - file: any; - organizationId: string; -}; -export type FrameworksPageImportMutation$variables = { - connections: ReadonlyArray; - input: ImportFrameworkInput; -}; -export type FrameworksPageImportMutation$data = { - readonly importFramework: { - readonly frameworkEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"FrameworksPageCardFragment">; - }; - }; - }; -}; -export type FrameworksPageImportMutation = { - response: FrameworksPageImportMutation$data; - variables: FrameworksPageImportMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "FrameworksPageImportMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "ImportFrameworkPayload", - "kind": "LinkedField", - "name": "importFramework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "FrameworkEdge", - "kind": "LinkedField", - "name": "frameworkEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "FrameworksPageCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "FrameworksPageImportMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "ImportFrameworkPayload", - "kind": "LinkedField", - "name": "importFramework", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "FrameworkEdge", - "kind": "LinkedField", - "name": "frameworkEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "frameworkEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6521d91ba0bd6d9d59567cd2a05d0f35", - "id": null, - "metadata": {}, - "name": "FrameworksPageImportMutation", - "operationKind": "mutation", - "text": "mutation FrameworksPageImportMutation(\n $input: ImportFrameworkInput!\n) {\n importFramework(input: $input) {\n frameworkEdge {\n node {\n id\n ...FrameworksPageCardFragment\n }\n }\n }\n}\n\nfragment FrameworksPageCardFragment on Framework {\n id\n name\n description\n lightLogoURL\n darkLogoURL\n canUpdate: permission(action: \"core:framework:update\")\n canDelete: permission(action: \"core:framework:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "e2ff0f6d6780cf967a021a093542dab9"; - -export default node; diff --git a/apps/console/src/__generated__/core/ImportAssessmentDialogMutation.graphql.ts b/apps/console/src/__generated__/core/ImportAssessmentDialogMutation.graphql.ts deleted file mode 100644 index e82c8da2d..000000000 --- a/apps/console/src/__generated__/core/ImportAssessmentDialogMutation.graphql.ts +++ /dev/null @@ -1,570 +0,0 @@ -/** - * @generated SignedSource<<3226619fa9261bcc8a67d72c6c170a50>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type AssessVendorInput = { - id: string; - websiteUrl: string; -}; -export type ImportAssessmentDialogMutation$variables = { - input: AssessVendorInput; -}; -export type ImportAssessmentDialogMutation$data = { - readonly assessVendor: { - readonly vendor: { - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - readonly " $fragmentSpreads": FragmentRefs<"VendorComplianceTabFragment" | "VendorRiskAssessmentTabFragment" | "useVendorFormFragment">; - }; - }; -}; -export type ImportAssessmentDialogMutation = { - response: ImportAssessmentDialogMutation$data; - variables: ImportAssessmentDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null -}, -v5 = [ - (v2/*: any*/) -], -v6 = [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } -], -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null -}, -v13 = { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] -}, -v14 = [ - "orderBy" -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ImportAssessmentDialogMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "AssessVendorPayload", - "kind": "LinkedField", - "name": "assessVendor", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "vendor", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "useVendorFormFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorComplianceTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorRiskAssessmentTabFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ImportAssessmentDialogMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "AssessVendorPayload", - "kind": "LinkedField", - "name": "assessVendor", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "vendor", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "statusPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "termsOfServiceUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "privacyPolicyUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "serviceLevelAgreementUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataProcessingAgreementUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "legalName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "headquarterAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "certifications", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "countries", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "securityPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "businessOwner", - "plural": false, - "selections": (v5/*: any*/), - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "securityOwner", - "plural": false, - "selections": (v5/*: any*/), - "storageKey": null - }, - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "VendorComplianceReportConnection", - "kind": "LinkedField", - "name": "complianceReports", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReportEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReport", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-compliance-report:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-compliance-report:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "downloadUrl", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - (v7/*: any*/) - ], - "storageKey": null - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/) - ], - "storageKey": null - }, - (v13/*: any*/) - ], - "storageKey": "complianceReports(first:50)" - }, - { - "alias": null, - "args": (v6/*: any*/), - "filters": (v14/*: any*/), - "handle": "connection", - "key": "VendorComplianceTabFragment_complianceReports", - "kind": "LinkedHandle", - "name": "complianceReports" - }, - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "VendorRiskAssessmentConnection", - "kind": "LinkedField", - "name": "riskAssessments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSensitivity", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "businessImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "notes", - "storageKey": null - }, - (v7/*: any*/) - ], - "storageKey": null - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v10/*: any*/), - (v9/*: any*/), - (v11/*: any*/), - (v12/*: any*/) - ], - "storageKey": null - }, - (v13/*: any*/) - ], - "storageKey": "riskAssessments(first:50)" - }, - { - "alias": null, - "args": (v6/*: any*/), - "filters": (v14/*: any*/), - "handle": "connection", - "key": "VendorRiskAssessmentTabFragment_riskAssessments", - "kind": "LinkedHandle", - "name": "riskAssessments" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "36c18604b32b26fc717c56ae45790982", - "id": null, - "metadata": {}, - "name": "ImportAssessmentDialogMutation", - "operationKind": "mutation", - "text": "mutation ImportAssessmentDialogMutation(\n $input: AssessVendorInput!\n) {\n assessVendor(input: $input) {\n vendor {\n id\n name\n websiteUrl\n ...useVendorFormFragment\n ...VendorComplianceTabFragment\n ...VendorRiskAssessmentTabFragment\n }\n }\n}\n\nfragment VendorComplianceTabFragment on Vendor {\n complianceReports(first: 50) {\n edges {\n node {\n id\n canDelete: permission(action: \"core:vendor-compliance-report:delete\")\n ...VendorComplianceTabFragment_report\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorComplianceTabFragment_report on VendorComplianceReport {\n id\n reportDate\n validUntil\n reportName\n file {\n fileName\n size\n downloadUrl\n id\n }\n canDelete: permission(action: \"core:vendor-compliance-report:delete\")\n}\n\nfragment VendorRiskAssessmentTabFragment on Vendor {\n id\n riskAssessments(first: 50) {\n edges {\n node {\n id\n ...VendorRiskAssessmentTabFragment_assessment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n\nfragment useVendorFormFragment on Vendor {\n id\n name\n description\n category\n statusPageUrl\n termsOfServiceUrl\n privacyPolicyUrl\n serviceLevelAgreementUrl\n dataProcessingAgreementUrl\n websiteUrl\n legalName\n headquarterAddress\n certifications\n countries\n securityPageUrl\n trustPageUrl\n businessOwner {\n id\n }\n securityOwner {\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d740639450b37e427fad42d04c4aef70"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkControlDialogLinkMutation.graphql.ts b/apps/console/src/__generated__/core/LinkControlDialogLinkMutation.graphql.ts deleted file mode 100644 index 2fea2d357..000000000 --- a/apps/console/src/__generated__/core/LinkControlDialogLinkMutation.graphql.ts +++ /dev/null @@ -1,153 +0,0 @@ -/** - * @generated SignedSource<<594acd2efe2323614220c1898b2e2cc9>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateApplicabilityStatementInput = { - applicability: boolean; - controlId: string; - justification?: string | null | undefined; - stateOfApplicabilityId: string; -}; -export type LinkControlDialogLinkMutation$variables = { - input: CreateApplicabilityStatementInput; -}; -export type LinkControlDialogLinkMutation$data = { - readonly createApplicabilityStatement: { - readonly applicabilityStatementEdge: { - readonly node: { - readonly applicability: boolean; - readonly control: { - readonly id: string; - }; - readonly id: string; - readonly justification: string; - }; - }; - }; -}; -export type LinkControlDialogLinkMutation = { - response: LinkControlDialogLinkMutation$data; - variables: LinkControlDialogLinkMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "CreateApplicabilityStatementPayload", - "kind": "LinkedField", - "name": "createApplicabilityStatement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatementEdge", - "kind": "LinkedField", - "name": "applicabilityStatementEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "applicability", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "justification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "control", - "plural": false, - "selections": [ - (v1/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "LinkControlDialogLinkMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "LinkControlDialogLinkMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "bc215d6cb4d4aa2b0396f06797f6fbfe", - "id": null, - "metadata": {}, - "name": "LinkControlDialogLinkMutation", - "operationKind": "mutation", - "text": "mutation LinkControlDialogLinkMutation(\n $input: CreateApplicabilityStatementInput!\n) {\n createApplicabilityStatement(input: $input) {\n applicabilityStatementEdge {\n node {\n id\n applicability\n justification\n control {\n id\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0d4c01841f5e34d1c0d5517770486985"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkControlDialogQuery.graphql.ts b/apps/console/src/__generated__/core/LinkControlDialogQuery.graphql.ts deleted file mode 100644 index 93c775ec8..000000000 --- a/apps/console/src/__generated__/core/LinkControlDialogQuery.graphql.ts +++ /dev/null @@ -1,352 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type LinkControlDialogQuery$variables = { - organizationId: string; - stateOfApplicabilityId: string; -}; -export type LinkControlDialogQuery$data = { - readonly organization: { - readonly controls?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string; - readonly sectionTitle: string; - }; - }>; - }; - readonly id?: string; - }; - readonly stateOfApplicability: { - readonly applicabilityStatements?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly applicability: boolean; - readonly control: { - readonly id: string; - }; - readonly id: string; - readonly justification: string; - }; - }>; - }; - readonly id?: string; - }; -}; -export type LinkControlDialogQuery = { - response: LinkControlDialogQuery$data; - variables: LinkControlDialogQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "stateOfApplicabilityId" -}, -v2 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "stateOfApplicabilityId" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "kind": "Literal", - "name": "first", - "value": 10000 -}, -v5 = { - "alias": null, - "args": [ - (v4/*: any*/) - ], - "concreteType": "ApplicabilityStatementConnection", - "kind": "LinkedField", - "name": "applicabilityStatements", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatementEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "applicability", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "justification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "control", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "applicabilityStatements(first:10000)" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v8 = { - "alias": null, - "args": [ - (v4/*: any*/), - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v7/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v7/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "controls(first:10000,orderBy:{\"direction\":\"ASC\",\"field\":\"CREATED_AT\"})" -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "LinkControlDialogQuery", - "selections": [ - { - "alias": "stateOfApplicability", - "args": (v2/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v5/*: any*/) - ], - "type": "StateOfApplicability", - "abstractKey": null - } - ], - "storageKey": null - }, - { - "alias": "organization", - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v8/*: any*/) - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "LinkControlDialogQuery", - "selections": [ - { - "alias": "stateOfApplicability", - "args": (v2/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v5/*: any*/) - ], - "type": "StateOfApplicability", - "abstractKey": null - } - ], - "storageKey": null - }, - { - "alias": "organization", - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v8/*: any*/) - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c8285ce8c2d39a2ac658d411b2fdc0db", - "id": null, - "metadata": {}, - "name": "LinkControlDialogQuery", - "operationKind": "query", - "text": "query LinkControlDialogQuery(\n $stateOfApplicabilityId: ID!\n $organizationId: ID!\n) {\n stateOfApplicability: node(id: $stateOfApplicabilityId) {\n __typename\n ... on StateOfApplicability {\n id\n applicabilityStatements(first: 10000) {\n edges {\n node {\n id\n applicability\n justification\n control {\n id\n }\n }\n }\n }\n }\n id\n }\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n controls(first: 10000, orderBy: {direction: ASC, field: CREATED_AT}) {\n edges {\n node {\n id\n sectionTitle\n name\n framework {\n id\n name\n }\n }\n }\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "768c1d7c983124ca25e74d7378f83097"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkControlDialogUnlinkMutation.graphql.ts b/apps/console/src/__generated__/core/LinkControlDialogUnlinkMutation.graphql.ts deleted file mode 100644 index 7432158b9..000000000 --- a/apps/console/src/__generated__/core/LinkControlDialogUnlinkMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteApplicabilityStatementInput = { - applicabilityStatementId: string; -}; -export type LinkControlDialogUnlinkMutation$variables = { - input: DeleteApplicabilityStatementInput; -}; -export type LinkControlDialogUnlinkMutation$data = { - readonly deleteApplicabilityStatement: { - readonly deletedApplicabilityStatementId: string; - }; -}; -export type LinkControlDialogUnlinkMutation = { - response: LinkControlDialogUnlinkMutation$data; - variables: LinkControlDialogUnlinkMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteApplicabilityStatementPayload", - "kind": "LinkedField", - "name": "deleteApplicabilityStatement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedApplicabilityStatementId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "LinkControlDialogUnlinkMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "LinkControlDialogUnlinkMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "560cb4342a2a277881705e91b5b6a17c", - "id": null, - "metadata": {}, - "name": "LinkControlDialogUnlinkMutation", - "operationKind": "mutation", - "text": "mutation LinkControlDialogUnlinkMutation(\n $input: DeleteApplicabilityStatementInput!\n) {\n deleteApplicabilityStatement(input: $input) {\n deletedApplicabilityStatementId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "80dd4efb13f7b677ad62792150ca70d9"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedAuditsCardFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedAuditsCardFragment.graphql.ts deleted file mode 100644 index c42b533d2..000000000 --- a/apps/console/src/__generated__/core/LinkedAuditsCardFragment.graphql.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED"; -import { FragmentRefs } from "relay-runtime"; -export type LinkedAuditsCardFragment$data = { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string | null | undefined; - readonly state: AuditState; - readonly " $fragmentType": "LinkedAuditsCardFragment"; -}; -export type LinkedAuditsCardFragment$key = { - readonly " $data"?: LinkedAuditsCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedAuditsCardFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "LinkedAuditsCardFragment", - "selections": [ - (v0/*: any*/), - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "storageKey": null - } - ], - "type": "Audit", - "abstractKey": null -}; -})(); - -(node as any).hash = "8a8cefa204a3afde548d70c072bd3b57"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedAuditsDialogFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedAuditsDialogFragment.graphql.ts deleted file mode 100644 index 9635ccfee..000000000 --- a/apps/console/src/__generated__/core/LinkedAuditsDialogFragment.graphql.ts +++ /dev/null @@ -1,241 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type AuditState = "COMPLETED" | "IN_PROGRESS" | "NOT_STARTED" | "OUTDATED" | "REJECTED"; -import { FragmentRefs } from "relay-runtime"; -export type LinkedAuditsDialogFragment$data = { - readonly audits: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string | null | undefined; - readonly state: AuditState; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "LinkedAuditsDialogFragment"; -}; -export type LinkedAuditsDialogFragment$key = { - readonly " $data"?: LinkedAuditsDialogFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedAuditsDialogFragment">; -}; - -import LinkedAuditsDialogQuery_fragment_graphql from './LinkedAuditsDialogQuery_fragment.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "audits" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": LinkedAuditsDialogQuery_fragment_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "LinkedAuditsDialogFragment", - "selections": [ - { - "alias": "audits", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "__LinkedAuditsDialogQuery_audits_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "028ca07cee48d4b7487aa20f57f11062"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedAuditsDialogQuery.graphql.ts b/apps/console/src/__generated__/core/LinkedAuditsDialogQuery.graphql.ts deleted file mode 100644 index 142f0606f..000000000 --- a/apps/console/src/__generated__/core/LinkedAuditsDialogQuery.graphql.ts +++ /dev/null @@ -1,259 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type LinkedAuditsDialogQuery$variables = { - organizationId: string; -}; -export type LinkedAuditsDialogQuery$data = { - readonly organization: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedAuditsDialogFragment">; - }; -}; -export type LinkedAuditsDialogQuery = { - response: LinkedAuditsDialogQuery$data; - variables: LinkedAuditsDialogQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "LinkedAuditsDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedAuditsDialogFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "LinkedAuditsDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "audits", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v2/*: any*/), - (v5/*: any*/) - ], - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "audits(first:20)" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "LinkedAuditsDialogQuery_audits", - "kind": "LinkedHandle", - "name": "audits" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "24a2aafd0b99755c64d7c0315ae1dad1", - "id": null, - "metadata": {}, - "name": "LinkedAuditsDialogQuery", - "operationKind": "query", - "text": "query LinkedAuditsDialogQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n ...LinkedAuditsDialogFragment\n }\n }\n}\n\nfragment LinkedAuditsDialogFragment on Organization {\n audits(first: 20) {\n edges {\n node {\n id\n name\n state\n framework {\n id\n name\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "a6f87b771862cc24fee101cc924a57b2"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedAuditsDialogQuery_fragment.graphql.ts b/apps/console/src/__generated__/core/LinkedAuditsDialogQuery_fragment.graphql.ts deleted file mode 100644 index c078efcba..000000000 --- a/apps/console/src/__generated__/core/LinkedAuditsDialogQuery_fragment.graphql.ts +++ /dev/null @@ -1,332 +0,0 @@ -/** - * @generated SignedSource<<5551d4d153d23284c55acd9d37cee1e4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type AuditOrderField = "CREATED_AT" | "STATE" | "VALID_FROM" | "VALID_UNTIL"; -export type OrderDirection = "ASC" | "DESC"; -export type AuditOrder = { - direction: OrderDirection; - field: AuditOrderField; -}; -export type LinkedAuditsDialogQuery_fragment$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: AuditOrder | null | undefined; -}; -export type LinkedAuditsDialogQuery_fragment$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"LinkedAuditsDialogFragment">; - }; -}; -export type LinkedAuditsDialogQuery_fragment = { - response: LinkedAuditsDialogQuery_fragment$data; - variables: LinkedAuditsDialogQuery_fragment$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -], -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "LinkedAuditsDialogQuery_fragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "LinkedAuditsDialogFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "LinkedAuditsDialogQuery_fragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "audits", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - (v14/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v12/*: any*/), - (v14/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "LinkedAuditsDialogQuery_audits", - "kind": "LinkedHandle", - "name": "audits" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "218e27744e117a9a9417796d5e28ac00", - "id": null, - "metadata": {}, - "name": "LinkedAuditsDialogQuery_fragment", - "operationKind": "query", - "text": "query LinkedAuditsDialogQuery_fragment(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $order: AuditOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...LinkedAuditsDialogFragment_16fISc\n id\n }\n}\n\nfragment LinkedAuditsDialogFragment_16fISc on Organization {\n audits(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n name\n state\n framework {\n id\n name\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "028ca07cee48d4b7487aa20f57f11062"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedControlsCardFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedControlsCardFragment.graphql.ts deleted file mode 100644 index e4a620a85..000000000 --- a/apps/console/src/__generated__/core/LinkedControlsCardFragment.graphql.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @generated SignedSource<<780834b432440afd9363100bb20f2529>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type LinkedControlsCardFragment$data = { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string; - readonly sectionTitle: string; - readonly " $fragmentType": "LinkedControlsCardFragment"; -}; -export type LinkedControlsCardFragment$key = { - readonly " $data"?: LinkedControlsCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedControlsCardFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "LinkedControlsCardFragment", - "selections": [ - (v0/*: any*/), - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "storageKey": null - } - ], - "type": "Control", - "abstractKey": null -}; -})(); - -(node as any).hash = "741820c65c4317cac48693023c3f9bcc"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedControlsDialogControlsQuery.graphql.ts b/apps/console/src/__generated__/core/LinkedControlsDialogControlsQuery.graphql.ts deleted file mode 100644 index 18b144d97..000000000 --- a/apps/console/src/__generated__/core/LinkedControlsDialogControlsQuery.graphql.ts +++ /dev/null @@ -1,351 +0,0 @@ -/** - * @generated SignedSource<<22d3ddb8ba270ff44f043ccdd8bbdd7d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ControlOrderField = "CREATED_AT" | "SECTION_TITLE"; -export type OrderDirection = "ASC" | "DESC"; -export type ControlFilter = { - query?: string | null | undefined; -}; -export type ControlOrder = { - direction: OrderDirection; - field: ControlOrderField; -}; -export type LinkedControlsDialogControlsQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - filter?: ControlFilter | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: ControlOrder | null | undefined; -}; -export type LinkedControlsDialogControlsQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"LinkedControlsDialogFragment">; - }; -}; -export type LinkedControlsDialogControlsQuery = { - response: LinkedControlsDialogControlsQuery$data; - variables: LinkedControlsDialogControlsQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" -}, -v3 = { - "defaultValue": 1, - "kind": "LocalArgument", - "name": "first" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v6 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v8 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v9 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v10 = { - "kind": "Variable", - "name": "filter", - "variableName": "filter" -}, -v11 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v12 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v15 = [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -], -v16 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "LinkedControlsDialogControlsQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "LinkedControlsDialogFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v4/*: any*/) - ], - "kind": "Operation", - "name": "LinkedControlsDialogControlsQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v13/*: any*/), - (v14/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v15/*: any*/), - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - (v16/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v16/*: any*/), - (v14/*: any*/) - ], - "storageKey": null - }, - (v13/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v15/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "LinkedControlsDialogControlsQuery_controls", - "kind": "LinkedHandle", - "name": "controls" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "e9bcdc36129e6a05c59f344433459b66", - "id": null, - "metadata": {}, - "name": "LinkedControlsDialogControlsQuery", - "operationKind": "query", - "text": "query LinkedControlsDialogControlsQuery(\n $after: CursorKey\n $before: CursorKey = null\n $filter: ControlFilter = null\n $first: Int = 1\n $last: Int = null\n $order: ControlOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...LinkedControlsDialogFragment_4cFWzS\n id\n }\n}\n\nfragment LinkedControlsDialogFragment_4cFWzS on Organization {\n controls(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: $filter) {\n edges {\n node {\n id\n name\n sectionTitle\n framework {\n name\n id\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "9fc0bfbfc461d56748750b180bc232fc"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedControlsDialogFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedControlsDialogFragment.graphql.ts deleted file mode 100644 index da0419ae8..000000000 --- a/apps/console/src/__generated__/core/LinkedControlsDialogFragment.graphql.ts +++ /dev/null @@ -1,248 +0,0 @@ -/** - * @generated SignedSource<<06b39b49e82019064bd42a03c903fd93>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type LinkedControlsDialogFragment$data = { - readonly controls: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly framework: { - readonly name: string; - }; - readonly id: string; - readonly name: string; - readonly sectionTitle: string; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "LinkedControlsDialogFragment"; -}; -export type LinkedControlsDialogFragment$key = { - readonly " $data"?: LinkedControlsDialogFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedControlsDialogFragment">; -}; - -import LinkedControlsDialogControlsQuery_graphql from './LinkedControlsDialogControlsQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "controls" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" - }, - { - "defaultValue": 1, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": LinkedControlsDialogControlsQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "LinkedControlsDialogFragment", - "selections": [ - { - "alias": "controls", - "args": [ - { - "kind": "Variable", - "name": "filter", - "variableName": "filter" - }, - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "__LinkedControlsDialogControlsQuery_controls_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "9fc0bfbfc461d56748750b180bc232fc"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedControlsDialogQuery.graphql.ts b/apps/console/src/__generated__/core/LinkedControlsDialogQuery.graphql.ts deleted file mode 100644 index 5d245c2aa..000000000 --- a/apps/console/src/__generated__/core/LinkedControlsDialogQuery.graphql.ts +++ /dev/null @@ -1,253 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type LinkedControlsDialogQuery$variables = { - organizationId: string; -}; -export type LinkedControlsDialogQuery$data = { - readonly organization: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedControlsDialogFragment">; - }; -}; -export type LinkedControlsDialogQuery = { - response: LinkedControlsDialogQuery$data; - variables: LinkedControlsDialogQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 1 - } -], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "LinkedControlsDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedControlsDialogFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "LinkedControlsDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v5/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "controls(first:1)" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "LinkedControlsDialogControlsQuery_controls", - "kind": "LinkedHandle", - "name": "controls" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "a36d424a3b8a087dbb40149bdbc2b6a2", - "id": null, - "metadata": {}, - "name": "LinkedControlsDialogQuery", - "operationKind": "query", - "text": "query LinkedControlsDialogQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ...LinkedControlsDialogFragment\n }\n}\n\nfragment LinkedControlsDialogFragment on Organization {\n controls(first: 1) {\n edges {\n node {\n id\n name\n sectionTitle\n framework {\n name\n id\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "1be60a2dc1efbd8992472862ca32910e"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedDocumentsCardFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedDocumentsCardFragment.graphql.ts deleted file mode 100644 index 6ab3c129f..000000000 --- a/apps/console/src/__generated__/core/LinkedDocumentsCardFragment.graphql.ts +++ /dev/null @@ -1,118 +0,0 @@ -/** - * @generated SignedSource<<305ae03cd5ebcd67ec61f910c26fbf76>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentStatus = "DRAFT" | "PUBLISHED"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -import { FragmentRefs } from "relay-runtime"; -export type LinkedDocumentsCardFragment$data = { - readonly documentType: DocumentType; - readonly id: string; - readonly title: string; - readonly versions: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly status: DocumentStatus; - }; - }>; - }; - readonly " $fragmentType": "LinkedDocumentsCardFragment"; -}; -export type LinkedDocumentsCardFragment$key = { - readonly " $data"?: LinkedDocumentsCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedDocumentsCardFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "LinkedDocumentsCardFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1)" - } - ], - "type": "Document", - "abstractKey": null -}; -})(); - -(node as any).hash = "9ec284ec5b5268f11515d94f3f5306d4"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedDocumentsDialogFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedDocumentsDialogFragment.graphql.ts deleted file mode 100644 index 1a451f958..000000000 --- a/apps/console/src/__generated__/core/LinkedDocumentsDialogFragment.graphql.ts +++ /dev/null @@ -1,223 +0,0 @@ -/** - * @generated SignedSource<<096eea04ea39ac931b8627aee0ebb26c>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -import { FragmentRefs } from "relay-runtime"; -export type LinkedDocumentsDialogFragment$data = { - readonly documents: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly documentType: DocumentType; - readonly id: string; - readonly title: string; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "LinkedDocumentsDialogFragment"; -}; -export type LinkedDocumentsDialogFragment$key = { - readonly " $data"?: LinkedDocumentsDialogFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedDocumentsDialogFragment">; -}; - -import LinkedDocumentsDialogQuery_fragment_graphql from './LinkedDocumentsDialogQuery_fragment.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "documents" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": LinkedDocumentsDialogQuery_fragment_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "LinkedDocumentsDialogFragment", - "selections": [ - { - "alias": "documents", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "__LinkedDocumentsDialogQuery_documents_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "392d33b379a58cb3da08ab783c1cda5d"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedDocumentsDialogQuery.graphql.ts b/apps/console/src/__generated__/core/LinkedDocumentsDialogQuery.graphql.ts deleted file mode 100644 index 25b076fc5..000000000 --- a/apps/console/src/__generated__/core/LinkedDocumentsDialogQuery.graphql.ts +++ /dev/null @@ -1,245 +0,0 @@ -/** - * @generated SignedSource<<6316cd819a27efb5989750b5f8de0444>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type LinkedDocumentsDialogQuery$variables = { - organizationId: string; -}; -export type LinkedDocumentsDialogQuery$data = { - readonly organization: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedDocumentsDialogFragment">; - }; -}; -export type LinkedDocumentsDialogQuery = { - response: LinkedDocumentsDialogQuery$data; - variables: LinkedDocumentsDialogQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "LinkedDocumentsDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedDocumentsDialogFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "LinkedDocumentsDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "documents(first:20)" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "LinkedDocumentsDialogQuery_documents", - "kind": "LinkedHandle", - "name": "documents" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "fd4ab41131ead5f74dceb4610ef3f2c5", - "id": null, - "metadata": {}, - "name": "LinkedDocumentsDialogQuery", - "operationKind": "query", - "text": "query LinkedDocumentsDialogQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n ...LinkedDocumentsDialogFragment\n }\n }\n}\n\nfragment LinkedDocumentsDialogFragment on Organization {\n documents(first: 20) {\n edges {\n node {\n id\n title\n documentType\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "f97a3016285b1a39cc6925ac39d82acc"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedDocumentsDialogQuery_fragment.graphql.ts b/apps/console/src/__generated__/core/LinkedDocumentsDialogQuery_fragment.graphql.ts deleted file mode 100644 index 1eb47b4c9..000000000 --- a/apps/console/src/__generated__/core/LinkedDocumentsDialogQuery_fragment.graphql.ts +++ /dev/null @@ -1,318 +0,0 @@ -/** - * @generated SignedSource<<54810545432d02fdcd0b3b02f47bf489>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentOrderField = "CREATED_AT" | "DOCUMENT_TYPE" | "TITLE"; -export type OrderDirection = "ASC" | "DESC"; -export type DocumentOrder = { - direction: OrderDirection; - field: DocumentOrderField; -}; -export type LinkedDocumentsDialogQuery_fragment$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: DocumentOrder | null | undefined; -}; -export type LinkedDocumentsDialogQuery_fragment$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"LinkedDocumentsDialogFragment">; - }; -}; -export type LinkedDocumentsDialogQuery_fragment = { - response: LinkedDocumentsDialogQuery_fragment$data; - variables: LinkedDocumentsDialogQuery_fragment$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "LinkedDocumentsDialogQuery_fragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "LinkedDocumentsDialogFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "LinkedDocumentsDialogQuery_fragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "LinkedDocumentsDialogQuery_documents", - "kind": "LinkedHandle", - "name": "documents" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "e72639ede26aa4300b69ba3181de482b", - "id": null, - "metadata": {}, - "name": "LinkedDocumentsDialogQuery_fragment", - "operationKind": "query", - "text": "query LinkedDocumentsDialogQuery_fragment(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $order: DocumentOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...LinkedDocumentsDialogFragment_16fISc\n id\n }\n}\n\nfragment LinkedDocumentsDialogFragment_16fISc on Organization {\n documents(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n title\n documentType\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "392d33b379a58cb3da08ab783c1cda5d"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedMeasuresCardFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedMeasuresCardFragment.graphql.ts deleted file mode 100644 index c4fb8097d..000000000 --- a/apps/console/src/__generated__/core/LinkedMeasuresCardFragment.graphql.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type MeasureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED"; -import { FragmentRefs } from "relay-runtime"; -export type LinkedMeasuresCardFragment$data = { - readonly id: string; - readonly name: string; - readonly state: MeasureState; - readonly " $fragmentType": "LinkedMeasuresCardFragment"; -}; -export type LinkedMeasuresCardFragment$key = { - readonly " $data"?: LinkedMeasuresCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedMeasuresCardFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "LinkedMeasuresCardFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "type": "Measure", - "abstractKey": null -}; - -(node as any).hash = "741a216c02732c1ff97b265ac8dbf39b"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedObligationsCardFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedObligationsCardFragment.graphql.ts deleted file mode 100644 index ea214d7b5..000000000 --- a/apps/console/src/__generated__/core/LinkedObligationsCardFragment.graphql.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * @generated SignedSource<<9cd6e4f71ffa86acc1195f307912451d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type ObligationStatus = "COMPLIANT" | "NON_COMPLIANT" | "PARTIALLY_COMPLIANT"; -import { FragmentRefs } from "relay-runtime"; -export type LinkedObligationsCardFragment$data = { - readonly area: string | null | undefined; - readonly id: string; - readonly owner: { - readonly fullName: string; - }; - readonly source: string | null | undefined; - readonly status: ObligationStatus; - readonly " $fragmentType": "LinkedObligationsCardFragment"; -}; -export type LinkedObligationsCardFragment$key = { - readonly " $data"?: LinkedObligationsCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedObligationsCardFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "LinkedObligationsCardFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Obligation", - "abstractKey": null -}; - -(node as any).hash = "48a0dbc9d3794cc3d8e7f108d6748c94"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedObligationsDialogFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedObligationsDialogFragment.graphql.ts deleted file mode 100644 index 28860412e..000000000 --- a/apps/console/src/__generated__/core/LinkedObligationsDialogFragment.graphql.ts +++ /dev/null @@ -1,252 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type ObligationStatus = "COMPLIANT" | "NON_COMPLIANT" | "PARTIALLY_COMPLIANT"; -import { FragmentRefs } from "relay-runtime"; -export type LinkedObligationsDialogFragment$data = { - readonly id: string; - readonly obligations: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly area: string | null | undefined; - readonly id: string; - readonly owner: { - readonly fullName: string; - }; - readonly source: string | null | undefined; - readonly status: ObligationStatus; - }; - }>; - }; - readonly " $fragmentType": "LinkedObligationsDialogFragment"; -}; -export type LinkedObligationsDialogFragment$key = { - readonly " $data"?: LinkedObligationsDialogFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedObligationsDialogFragment">; -}; - -import LinkedObligationsDialogQuery_fragment_graphql from './LinkedObligationsDialogQuery_fragment.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "obligations" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": LinkedObligationsDialogQuery_fragment_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "LinkedObligationsDialogFragment", - "selections": [ - { - "alias": "obligations", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "__LinkedObligationsDialogQuery_obligations_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "eca4553b6bec6e92ef7a6cdef86fcce3"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedObligationsDialogQuery.graphql.ts b/apps/console/src/__generated__/core/LinkedObligationsDialogQuery.graphql.ts deleted file mode 100644 index d06e04e13..000000000 --- a/apps/console/src/__generated__/core/LinkedObligationsDialogQuery.graphql.ts +++ /dev/null @@ -1,271 +0,0 @@ -/** - * @generated SignedSource<<793fb7cbbcba6ab5302591b6cd6c6b6e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type LinkedObligationsDialogQuery$variables = { - organizationId: string; -}; -export type LinkedObligationsDialogQuery$data = { - readonly organization: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedObligationsDialogFragment">; - }; -}; -export type LinkedObligationsDialogQuery = { - response: LinkedObligationsDialogQuery$data; - variables: LinkedObligationsDialogQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "LinkedObligationsDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedObligationsDialogFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "LinkedObligationsDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "obligations", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "obligations(first:20)" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "LinkedObligationsDialogQuery_obligations", - "kind": "LinkedHandle", - "name": "obligations" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "0cf16ed27ea9e223c6ec271971c08326", - "id": null, - "metadata": {}, - "name": "LinkedObligationsDialogQuery", - "operationKind": "query", - "text": "query LinkedObligationsDialogQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n ...LinkedObligationsDialogFragment\n }\n }\n}\n\nfragment LinkedObligationsDialogFragment on Organization {\n obligations(first: 20) {\n edges {\n node {\n id\n area\n source\n status\n owner {\n fullName\n id\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "afd36a8a7dbe29044d2aefc3e3820fc8"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedObligationsDialogQuery_fragment.graphql.ts b/apps/console/src/__generated__/core/LinkedObligationsDialogQuery_fragment.graphql.ts deleted file mode 100644 index 671b55ae0..000000000 --- a/apps/console/src/__generated__/core/LinkedObligationsDialogQuery_fragment.graphql.ts +++ /dev/null @@ -1,344 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ObligationOrderField = "CREATED_AT" | "DUE_DATE" | "LAST_REVIEW_DATE" | "STATUS"; -export type OrderDirection = "ASC" | "DESC"; -export type ObligationOrder = { - direction: OrderDirection; - field: ObligationOrderField; -}; -export type LinkedObligationsDialogQuery_fragment$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: ObligationOrder | null | undefined; -}; -export type LinkedObligationsDialogQuery_fragment$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"LinkedObligationsDialogFragment">; - }; -}; -export type LinkedObligationsDialogQuery_fragment = { - response: LinkedObligationsDialogQuery_fragment$data; - variables: LinkedObligationsDialogQuery_fragment$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "LinkedObligationsDialogQuery_fragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "LinkedObligationsDialogFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "LinkedObligationsDialogQuery_fragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "obligations", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - (v12/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "LinkedObligationsDialogQuery_obligations", - "kind": "LinkedHandle", - "name": "obligations" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1d7c16a3d028e014310a7b94371eddb6", - "id": null, - "metadata": {}, - "name": "LinkedObligationsDialogQuery_fragment", - "operationKind": "query", - "text": "query LinkedObligationsDialogQuery_fragment(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $order: ObligationOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...LinkedObligationsDialogFragment_16fISc\n id\n }\n}\n\nfragment LinkedObligationsDialogFragment_16fISc on Organization {\n obligations(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n area\n source\n status\n owner {\n fullName\n id\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "eca4553b6bec6e92ef7a6cdef86fcce3"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedRisksCardFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedRisksCardFragment.graphql.ts deleted file mode 100644 index 262289f0b..000000000 --- a/apps/console/src/__generated__/core/LinkedRisksCardFragment.graphql.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * @generated SignedSource<<6e092be20526b76ee767836880803c34>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type LinkedRisksCardFragment$data = { - readonly id: string; - readonly inherentRiskScore: number; - readonly name: string; - readonly residualRiskScore: number; - readonly " $fragmentType": "LinkedRisksCardFragment"; -}; -export type LinkedRisksCardFragment$key = { - readonly " $data"?: LinkedRisksCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedRisksCardFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "LinkedRisksCardFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentRiskScore", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRiskScore", - "storageKey": null - } - ], - "type": "Risk", - "abstractKey": null -}; - -(node as any).hash = "32a84445ae1cc071f56139fa44d67690"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedRisksDialogQuery.graphql.ts b/apps/console/src/__generated__/core/LinkedRisksDialogQuery.graphql.ts deleted file mode 100644 index 932d00b6d..000000000 --- a/apps/console/src/__generated__/core/LinkedRisksDialogQuery.graphql.ts +++ /dev/null @@ -1,190 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type LinkedRisksDialogQuery$variables = { - organizationId: string; -}; -export type LinkedRisksDialogQuery$data = { - readonly organization: { - readonly id: string; - readonly risks?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly category: string; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - }; - }>; - }; - }; -}; -export type LinkedRisksDialogQuery = { - response: LinkedRisksDialogQuery$data; - variables: LinkedRisksDialogQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "RiskConnection", - "kind": "LinkedField", - "name": "risks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RiskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "risks(first:100)" - } - ], - "type": "Organization", - "abstractKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "LinkedRisksDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "LinkedRisksDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - (v3/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "7079c690d46e271892f6ed9d8e1f2605", - "id": null, - "metadata": {}, - "name": "LinkedRisksDialogQuery", - "operationKind": "query", - "text": "query LinkedRisksDialogQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n risks(first: 100) {\n edges {\n node {\n id\n name\n category\n description\n }\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "ac354cb9ccbba3ab141268b978026aea"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedSnapshotsCardFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedSnapshotsCardFragment.graphql.ts deleted file mode 100644 index 71afbe682..000000000 --- a/apps/console/src/__generated__/core/LinkedSnapshotsCardFragment.graphql.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @generated SignedSource<<659b07d2d3bf4c7527c44c7d1e830138>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "STATES_OF_APPLICABILITY" | "VENDORS"; -import { FragmentRefs } from "relay-runtime"; -export type LinkedSnapshotsCardFragment$data = { - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - readonly type: SnapshotsType; - readonly " $fragmentType": "LinkedSnapshotsCardFragment"; -}; -export type LinkedSnapshotsCardFragment$key = { - readonly " $data"?: LinkedSnapshotsCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedSnapshotsCardFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "LinkedSnapshotsCardFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "type": "Snapshot", - "abstractKey": null -}; - -(node as any).hash = "b9b682f8e57082c98d8b0460155757fb"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedSnapshotsDialogFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedSnapshotsDialogFragment.graphql.ts deleted file mode 100644 index 23493b874..000000000 --- a/apps/console/src/__generated__/core/LinkedSnapshotsDialogFragment.graphql.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "STATES_OF_APPLICABILITY" | "VENDORS"; -import { FragmentRefs } from "relay-runtime"; -export type LinkedSnapshotsDialogFragment$data = { - readonly id: string; - readonly snapshots: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - readonly type: SnapshotsType; - }; - }>; - }; - readonly " $fragmentType": "LinkedSnapshotsDialogFragment"; -}; -export type LinkedSnapshotsDialogFragment$key = { - readonly " $data"?: LinkedSnapshotsDialogFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedSnapshotsDialogFragment">; -}; - -import LinkedSnapshotsDialogQuery_fragment_graphql from './LinkedSnapshotsDialogQuery_fragment.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "snapshots" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": LinkedSnapshotsDialogQuery_fragment_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "LinkedSnapshotsDialogFragment", - "selections": [ - { - "alias": "snapshots", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "SnapshotConnection", - "kind": "LinkedField", - "name": "__LinkedSnapshotsDialogQuery_snapshots_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "bdc77ee756ac59c099caa8765403cd22"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedSnapshotsDialogQuery.graphql.ts b/apps/console/src/__generated__/core/LinkedSnapshotsDialogQuery.graphql.ts deleted file mode 100644 index 2898d4fcc..000000000 --- a/apps/console/src/__generated__/core/LinkedSnapshotsDialogQuery.graphql.ts +++ /dev/null @@ -1,259 +0,0 @@ -/** - * @generated SignedSource<<78d7f0f48f20187e9eef7744a19d8e1e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type LinkedSnapshotsDialogQuery$variables = { - organizationId: string; -}; -export type LinkedSnapshotsDialogQuery$data = { - readonly organization: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedSnapshotsDialogFragment">; - }; -}; -export type LinkedSnapshotsDialogQuery = { - response: LinkedSnapshotsDialogQuery$data; - variables: LinkedSnapshotsDialogQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "LinkedSnapshotsDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedSnapshotsDialogFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "LinkedSnapshotsDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "SnapshotConnection", - "kind": "LinkedField", - "name": "snapshots", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "snapshots(first:20)" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "LinkedSnapshotsDialogQuery_snapshots", - "kind": "LinkedHandle", - "name": "snapshots" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "200a82b795d348f0d8a63a3b2b779d7c", - "id": null, - "metadata": {}, - "name": "LinkedSnapshotsDialogQuery", - "operationKind": "query", - "text": "query LinkedSnapshotsDialogQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n ...LinkedSnapshotsDialogFragment\n }\n }\n}\n\nfragment LinkedSnapshotsDialogFragment on Organization {\n snapshots(first: 20) {\n edges {\n node {\n id\n name\n description\n type\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "b91ff32883e1f6e83d9b43251fc83001"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedSnapshotsDialogQuery_fragment.graphql.ts b/apps/console/src/__generated__/core/LinkedSnapshotsDialogQuery_fragment.graphql.ts deleted file mode 100644 index 8b9935048..000000000 --- a/apps/console/src/__generated__/core/LinkedSnapshotsDialogQuery_fragment.graphql.ts +++ /dev/null @@ -1,332 +0,0 @@ -/** - * @generated SignedSource<<23f3f100c0665c79a15c78ddbe5284af>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type SnapshotOrderField = "CREATED_AT" | "NAME" | "TYPE"; -export type SnapshotOrder = { - direction: OrderDirection; - field: SnapshotOrderField; -}; -export type LinkedSnapshotsDialogQuery_fragment$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: SnapshotOrder | null | undefined; -}; -export type LinkedSnapshotsDialogQuery_fragment$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"LinkedSnapshotsDialogFragment">; - }; -}; -export type LinkedSnapshotsDialogQuery_fragment = { - response: LinkedSnapshotsDialogQuery_fragment$data; - variables: LinkedSnapshotsDialogQuery_fragment$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "LinkedSnapshotsDialogQuery_fragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "LinkedSnapshotsDialogFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "LinkedSnapshotsDialogQuery_fragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "SnapshotConnection", - "kind": "LinkedField", - "name": "snapshots", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "LinkedSnapshotsDialogQuery_snapshots", - "kind": "LinkedHandle", - "name": "snapshots" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "e4c40c765a5b6ef4ba63a6343c76e6e0", - "id": null, - "metadata": {}, - "name": "LinkedSnapshotsDialogQuery_fragment", - "operationKind": "query", - "text": "query LinkedSnapshotsDialogQuery_fragment(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $order: SnapshotOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...LinkedSnapshotsDialogFragment_16fISc\n id\n }\n}\n\nfragment LinkedSnapshotsDialogFragment_16fISc on Organization {\n snapshots(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n name\n description\n type\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "bdc77ee756ac59c099caa8765403cd22"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedStatesOfApplicabilityCardFragment.graphql.ts b/apps/console/src/__generated__/core/LinkedStatesOfApplicabilityCardFragment.graphql.ts deleted file mode 100644 index eafb497d2..000000000 --- a/apps/console/src/__generated__/core/LinkedStatesOfApplicabilityCardFragment.graphql.ts +++ /dev/null @@ -1,99 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type LinkedStatesOfApplicabilityCardFragment$data = { - readonly applicability: boolean; - readonly control: { - readonly id: string; - }; - readonly id: string; - readonly justification: string; - readonly stateOfApplicability: { - readonly id: string; - readonly name: string; - }; - readonly " $fragmentType": "LinkedStatesOfApplicabilityCardFragment"; -}; -export type LinkedStatesOfApplicabilityCardFragment$key = { - readonly " $data"?: LinkedStatesOfApplicabilityCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"LinkedStatesOfApplicabilityCardFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "LinkedStatesOfApplicabilityCardFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicability", - "kind": "LinkedField", - "name": "stateOfApplicability", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "control", - "plural": false, - "selections": [ - (v0/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "applicability", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "justification", - "storageKey": null - } - ], - "type": "ApplicabilityStatement", - "abstractKey": null -}; -})(); - -(node as any).hash = "92dc33d1e220b3433508e55cb05ea39a"; - -export default node; diff --git a/apps/console/src/__generated__/core/LinkedStatesOfApplicabilityDialogQuery.graphql.ts b/apps/console/src/__generated__/core/LinkedStatesOfApplicabilityDialogQuery.graphql.ts deleted file mode 100644 index 766977433..000000000 --- a/apps/console/src/__generated__/core/LinkedStatesOfApplicabilityDialogQuery.graphql.ts +++ /dev/null @@ -1,172 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type LinkedStatesOfApplicabilityDialogQuery$variables = { - organizationId: string; -}; -export type LinkedStatesOfApplicabilityDialogQuery$data = { - readonly organization: { - readonly statesOfApplicability?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - }; - }>; - }; - }; -}; -export type LinkedStatesOfApplicabilityDialogQuery = { - response: LinkedStatesOfApplicabilityDialogQuery$data; - variables: LinkedStatesOfApplicabilityDialogQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "StateOfApplicabilityConnection", - "kind": "LinkedField", - "name": "statesOfApplicability", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicabilityEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicability", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "statesOfApplicability(first:100)" - } - ], - "type": "Organization", - "abstractKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "LinkedStatesOfApplicabilityDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "LinkedStatesOfApplicabilityDialogQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "b36c3216f309865885892fce0d52eac9", - "id": null, - "metadata": {}, - "name": "LinkedStatesOfApplicabilityDialogQuery", - "operationKind": "query", - "text": "query LinkedStatesOfApplicabilityDialogQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n statesOfApplicability(first: 100) {\n edges {\n node {\n id\n name\n }\n }\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a6ed2cd0171d834480319779e11fce99"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureControlsTabAttachMutation.graphql.ts b/apps/console/src/__generated__/core/MeasureControlsTabAttachMutation.graphql.ts deleted file mode 100644 index 838040060..000000000 --- a/apps/console/src/__generated__/core/MeasureControlsTabAttachMutation.graphql.ts +++ /dev/null @@ -1,216 +0,0 @@ -/** - * @generated SignedSource<<957f5a27f6ad551be453f1c2b9e6b94d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateControlMeasureMappingInput = { - controlId: string; - measureId: string; -}; -export type MeasureControlsTabAttachMutation$variables = { - connections: ReadonlyArray; - input: CreateControlMeasureMappingInput; -}; -export type MeasureControlsTabAttachMutation$data = { - readonly createControlMeasureMapping: { - readonly controlEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedControlsCardFragment">; - }; - }; - }; -}; -export type MeasureControlsTabAttachMutation = { - response: MeasureControlsTabAttachMutation$data; - variables: MeasureControlsTabAttachMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeasureControlsTabAttachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlMeasureMappingPayload", - "kind": "LinkedField", - "name": "createControlMeasureMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "controlEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedControlsCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "MeasureControlsTabAttachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateControlMeasureMappingPayload", - "kind": "LinkedField", - "name": "createControlMeasureMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "controlEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "controlEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "4cb037f0d6be0338fb838653d7460d59", - "id": null, - "metadata": {}, - "name": "MeasureControlsTabAttachMutation", - "operationKind": "mutation", - "text": "mutation MeasureControlsTabAttachMutation(\n $input: CreateControlMeasureMappingInput!\n) {\n createControlMeasureMapping(input: $input) {\n controlEdge {\n node {\n id\n ...LinkedControlsCardFragment\n }\n }\n }\n}\n\nfragment LinkedControlsCardFragment on Control {\n id\n name\n sectionTitle\n framework {\n id\n name\n }\n}\n" - } -}; -})(); - -(node as any).hash = "010619cccaa46b2e02738bb0148341c0"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureControlsTabControlsQuery.graphql.ts b/apps/console/src/__generated__/core/MeasureControlsTabControlsQuery.graphql.ts deleted file mode 100644 index d420bcc2f..000000000 --- a/apps/console/src/__generated__/core/MeasureControlsTabControlsQuery.graphql.ts +++ /dev/null @@ -1,389 +0,0 @@ -/** - * @generated SignedSource<<7a85ed904a58646c75806d80ef39fe3d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ControlOrderField = "CREATED_AT" | "SECTION_TITLE"; -export type OrderDirection = "ASC" | "DESC"; -export type ControlFilter = { - query?: string | null | undefined; -}; -export type ControlOrder = { - direction: OrderDirection; - field: ControlOrderField; -}; -export type MeasureControlsTabControlsQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - filter?: ControlFilter | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: ControlOrder | null | undefined; -}; -export type MeasureControlsTabControlsQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"MeasureControlsTabFragment">; - }; -}; -export type MeasureControlsTabControlsQuery = { - response: MeasureControlsTabControlsQuery$data; - variables: MeasureControlsTabControlsQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" -}, -v3 = { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v6 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v8 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v9 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v10 = { - "kind": "Variable", - "name": "filter", - "variableName": "filter" -}, -v11 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v12 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v15 = [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -], -v16 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeasureControlsTabControlsQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "MeasureControlsTabFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v4/*: any*/) - ], - "kind": "Operation", - "name": "MeasureControlsTabControlsQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v13/*: any*/), - (v14/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canCreateControlMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:create-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:create-measure-mapping\")" - }, - { - "alias": "canDeleteControlMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:delete-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:delete-measure-mapping\")" - }, - { - "alias": null, - "args": (v15/*: any*/), - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - (v16/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v14/*: any*/), - (v16/*: any*/) - ], - "storageKey": null - }, - (v13/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v15/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "MeasureControlsTab_controls", - "kind": "LinkedHandle", - "name": "controls" - } - ], - "type": "Measure", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f70203cc76e2ffe7c817cba8aa3942a3", - "id": null, - "metadata": {}, - "name": "MeasureControlsTabControlsQuery", - "operationKind": "query", - "text": "query MeasureControlsTabControlsQuery(\n $after: CursorKey\n $before: CursorKey = null\n $filter: ControlFilter = null\n $first: Int = 20\n $last: Int = null\n $order: ControlOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...MeasureControlsTabFragment_4cFWzS\n id\n }\n}\n\nfragment LinkedControlsCardFragment on Control {\n id\n name\n sectionTitle\n framework {\n id\n name\n }\n}\n\nfragment MeasureControlsTabFragment_4cFWzS on Measure {\n id\n canCreateControlMeasureMapping: permission(action: \"core:control:create-measure-mapping\")\n canDeleteControlMeasureMapping: permission(action: \"core:control:delete-measure-mapping\")\n controls(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: $filter) {\n edges {\n node {\n id\n ...LinkedControlsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "f1553367470d92ddfc910b2eea87109f"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureControlsTabDetachMutation.graphql.ts b/apps/console/src/__generated__/core/MeasureControlsTabDetachMutation.graphql.ts deleted file mode 100644 index 768848944..000000000 --- a/apps/console/src/__generated__/core/MeasureControlsTabDetachMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<<63367052d20bc149e2d4f86adbf3c735>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteControlMeasureMappingInput = { - controlId: string; - measureId: string; -}; -export type MeasureControlsTabDetachMutation$variables = { - connections: ReadonlyArray; - input: DeleteControlMeasureMappingInput; -}; -export type MeasureControlsTabDetachMutation$data = { - readonly deleteControlMeasureMapping: { - readonly deletedControlId: string; - }; -}; -export type MeasureControlsTabDetachMutation = { - response: MeasureControlsTabDetachMutation$data; - variables: MeasureControlsTabDetachMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedControlId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeasureControlsTabDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlMeasureMappingPayload", - "kind": "LinkedField", - "name": "deleteControlMeasureMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "MeasureControlsTabDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteControlMeasureMappingPayload", - "kind": "LinkedField", - "name": "deleteControlMeasureMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedControlId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "158225e40cb2e95be134e59a4647ff69", - "id": null, - "metadata": {}, - "name": "MeasureControlsTabDetachMutation", - "operationKind": "mutation", - "text": "mutation MeasureControlsTabDetachMutation(\n $input: DeleteControlMeasureMappingInput!\n) {\n deleteControlMeasureMapping(input: $input) {\n deletedControlId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d800ddbcf4b4c24ae945447d710be209"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureControlsTabFragment.graphql.ts b/apps/console/src/__generated__/core/MeasureControlsTabFragment.graphql.ts deleted file mode 100644 index 9169d7523..000000000 --- a/apps/console/src/__generated__/core/MeasureControlsTabFragment.graphql.ts +++ /dev/null @@ -1,263 +0,0 @@ -/** - * @generated SignedSource<<54f7a965dd1b0943e08bbec66c11200d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeasureControlsTabFragment$data = { - readonly canCreateControlMeasureMapping: boolean; - readonly canDeleteControlMeasureMapping: boolean; - readonly controls: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedControlsCardFragment">; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "MeasureControlsTabFragment"; -}; -export type MeasureControlsTabFragment$key = { - readonly " $data"?: MeasureControlsTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MeasureControlsTabFragment">; -}; - -import MeasureControlsTabControlsQuery_graphql from './MeasureControlsTabControlsQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "controls" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": MeasureControlsTabControlsQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "MeasureControlsTabFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "canCreateControlMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:create-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:create-measure-mapping\")" - }, - { - "alias": "canDeleteControlMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:delete-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:delete-measure-mapping\")" - }, - { - "alias": "controls", - "args": [ - { - "kind": "Variable", - "name": "filter", - "variableName": "filter" - }, - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "__MeasureControlsTab_controls_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedControlsCardFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Measure", - "abstractKey": null -}; -})(); - -(node as any).hash = "f1553367470d92ddfc910b2eea87109f"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureDetailPageTasksCountQuery.graphql.ts b/apps/console/src/__generated__/core/MeasureDetailPageTasksCountQuery.graphql.ts deleted file mode 100644 index 51e021349..000000000 --- a/apps/console/src/__generated__/core/MeasureDetailPageTasksCountQuery.graphql.ts +++ /dev/null @@ -1,143 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type MeasureDetailPageTasksCountQuery$variables = { - measureId: string; -}; -export type MeasureDetailPageTasksCountQuery$data = { - readonly node: { - readonly tasks?: { - readonly totalCount: number; - }; - }; -}; -export type MeasureDetailPageTasksCountQuery = { - response: MeasureDetailPageTasksCountQuery$data; - variables: MeasureDetailPageTasksCountQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "measureId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "measureId" - } -], -v2 = { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 0 - } - ], - "concreteType": "TaskConnection", - "kind": "LinkedField", - "name": "tasks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } - ], - "storageKey": "tasks(first:0)" - } - ], - "type": "Measure", - "abstractKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "MeasureDetailPageTasksCountQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "MeasureDetailPageTasksCountQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "36a1d5cf32d07ed5d76e5e64e7f19005", - "id": null, - "metadata": {}, - "name": "MeasureDetailPageTasksCountQuery", - "operationKind": "query", - "text": "query MeasureDetailPageTasksCountQuery(\n $measureId: ID!\n) {\n node(id: $measureId) {\n __typename\n ... on Measure {\n tasks(first: 0) {\n totalCount\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "f0a8dde53529b525f3fe9aa35dee9e8a"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureEvidencesTabDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/MeasureEvidencesTabDeleteMutation.graphql.ts deleted file mode 100644 index 3bfa141bb..000000000 --- a/apps/console/src/__generated__/core/MeasureEvidencesTabDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<1123080dba735de72e2440f5dec008b5>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteEvidenceInput = { - evidenceId: string; -}; -export type MeasureEvidencesTabDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteEvidenceInput; -}; -export type MeasureEvidencesTabDeleteMutation$data = { - readonly deleteEvidence: { - readonly deletedEvidenceId: string; - }; -}; -export type MeasureEvidencesTabDeleteMutation = { - response: MeasureEvidencesTabDeleteMutation$data; - variables: MeasureEvidencesTabDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedEvidenceId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeasureEvidencesTabDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteEvidencePayload", - "kind": "LinkedField", - "name": "deleteEvidence", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "MeasureEvidencesTabDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteEvidencePayload", - "kind": "LinkedField", - "name": "deleteEvidence", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedEvidenceId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "7c9ea7e14d3a342d9108026da877a854", - "id": null, - "metadata": {}, - "name": "MeasureEvidencesTabDeleteMutation", - "operationKind": "mutation", - "text": "mutation MeasureEvidencesTabDeleteMutation(\n $input: DeleteEvidenceInput!\n) {\n deleteEvidence(input: $input) {\n deletedEvidenceId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "5b78978395d1b8a165a078f60f6aa001"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureEvidencesTabFragment.graphql.ts b/apps/console/src/__generated__/core/MeasureEvidencesTabFragment.graphql.ts deleted file mode 100644 index 77a0454d1..000000000 --- a/apps/console/src/__generated__/core/MeasureEvidencesTabFragment.graphql.ts +++ /dev/null @@ -1,276 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeasureEvidencesTabFragment$data = { - readonly canUploadEvidence: boolean; - readonly evidences: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly file: { - readonly fileName: string; - readonly mimeType: string; - readonly size: number; - } | null | undefined; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"MeasureEvidencesTabFragment_evidence">; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "MeasureEvidencesTabFragment"; -}; -export type MeasureEvidencesTabFragment$key = { - readonly " $data"?: MeasureEvidencesTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MeasureEvidencesTabFragment">; -}; - -import MeasureEvidencesTabQuery_graphql from './MeasureEvidencesTabQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "evidences" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": MeasureEvidencesTabQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "MeasureEvidencesTabFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "canUploadEvidence", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:upload-evidence" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:upload-evidence\")" - }, - { - "alias": "evidences", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "EvidenceConnection", - "kind": "LinkedField", - "name": "__MeasureEvidencesTabFragment_evidences_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "EvidenceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Evidence", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mimeType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null - } - ], - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "MeasureEvidencesTabFragment_evidence" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Measure", - "abstractKey": null -}; -})(); - -(node as any).hash = "b281a36db45b03e86ec56097b6b9b296"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureEvidencesTabFragment_evidence.graphql.ts b/apps/console/src/__generated__/core/MeasureEvidencesTabFragment_evidence.graphql.ts deleted file mode 100644 index 838596c0a..000000000 --- a/apps/console/src/__generated__/core/MeasureEvidencesTabFragment_evidence.graphql.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type EvidenceType = "FILE" | "LINK"; -import { FragmentRefs } from "relay-runtime"; -export type MeasureEvidencesTabFragment_evidence$data = { - readonly canDelete: boolean; - readonly createdAt: string; - readonly file: { - readonly fileName: string; - readonly mimeType: string; - readonly size: number; - } | null | undefined; - readonly id: string; - readonly type: EvidenceType; - readonly " $fragmentType": "MeasureEvidencesTabFragment_evidence"; -}; -export type MeasureEvidencesTabFragment_evidence$key = { - readonly " $data"?: MeasureEvidencesTabFragment_evidence$data; - readonly " $fragmentSpreads": FragmentRefs<"MeasureEvidencesTabFragment_evidence">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MeasureEvidencesTabFragment_evidence", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mimeType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:evidence:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:evidence:delete\")" - } - ], - "type": "Evidence", - "abstractKey": null -}; - -(node as any).hash = "af214cdfe077ad77326c65f33ce3ca1f"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureEvidencesTabQuery.graphql.ts b/apps/console/src/__generated__/core/MeasureEvidencesTabQuery.graphql.ts deleted file mode 100644 index 869a33ab9..000000000 --- a/apps/console/src/__generated__/core/MeasureEvidencesTabQuery.graphql.ts +++ /dev/null @@ -1,389 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type EvidenceOrderField = "CREATED_AT"; -export type OrderDirection = "ASC" | "DESC"; -export type EvidenceOrder = { - direction: OrderDirection; - field: EvidenceOrderField; -}; -export type MeasureEvidencesTabQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: EvidenceOrder | null | undefined; -}; -export type MeasureEvidencesTabQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"MeasureEvidencesTabFragment">; - }; -}; -export type MeasureEvidencesTabQuery = { - response: MeasureEvidencesTabQuery$data; - variables: MeasureEvidencesTabQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeasureEvidencesTabQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "MeasureEvidencesTabFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "MeasureEvidencesTabQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canUploadEvidence", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:upload-evidence" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:upload-evidence\")" - }, - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "EvidenceConnection", - "kind": "LinkedField", - "name": "evidences", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "EvidenceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Evidence", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mimeType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null - }, - (v12/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:evidence:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:evidence:delete\")" - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "MeasureEvidencesTabFragment_evidences", - "kind": "LinkedHandle", - "name": "evidences" - } - ], - "type": "Measure", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "61235868d1100317d143c9510c047558", - "id": null, - "metadata": {}, - "name": "MeasureEvidencesTabQuery", - "operationKind": "query", - "text": "query MeasureEvidencesTabQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: EvidenceOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...MeasureEvidencesTabFragment_16fISc\n id\n }\n}\n\nfragment MeasureEvidencesTabFragment_16fISc on Measure {\n id\n canUploadEvidence: permission(action: \"core:measure:upload-evidence\")\n evidences(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n file {\n fileName\n mimeType\n size\n id\n }\n ...MeasureEvidencesTabFragment_evidence\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment MeasureEvidencesTabFragment_evidence on Evidence {\n id\n file {\n fileName\n mimeType\n size\n id\n }\n type\n createdAt\n canDelete: permission(action: \"core:evidence:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "b281a36db45b03e86ec56097b6b9b296"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureFormDialogCreateMutation.graphql.ts b/apps/console/src/__generated__/core/MeasureFormDialogCreateMutation.graphql.ts deleted file mode 100644 index 47509bd2c..000000000 --- a/apps/console/src/__generated__/core/MeasureFormDialogCreateMutation.graphql.ts +++ /dev/null @@ -1,215 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateMeasureInput = { - category: string; - description?: string | null | undefined; - name: string; - organizationId: string; -}; -export type MeasureFormDialogCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateMeasureInput; -}; -export type MeasureFormDialogCreateMutation$data = { - readonly createMeasure: { - readonly measureEdge: { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"MeasureFormDialogMeasureFragment">; - }; - }; - }; -}; -export type MeasureFormDialogCreateMutation = { - response: MeasureFormDialogCreateMutation$data; - variables: MeasureFormDialogCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeasureFormDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateMeasurePayload", - "kind": "LinkedField", - "name": "createMeasure", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "measureEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "MeasureFormDialogMeasureFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "MeasureFormDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateMeasurePayload", - "kind": "LinkedField", - "name": "createMeasure", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "measureEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "measureEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6ee48b7249e180aafe2f40c120ec1195", - "id": null, - "metadata": {}, - "name": "MeasureFormDialogCreateMutation", - "operationKind": "mutation", - "text": "mutation MeasureFormDialogCreateMutation(\n $input: CreateMeasureInput!\n) {\n createMeasure(input: $input) {\n measureEdge {\n node {\n ...MeasureFormDialogMeasureFragment\n id\n }\n }\n }\n}\n\nfragment MeasureFormDialogMeasureFragment on Measure {\n id\n description\n name\n category\n state\n}\n" - } -}; -})(); - -(node as any).hash = "242f974b9926705919bf030281363dfc"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureFormDialogMeasureFragment.graphql.ts b/apps/console/src/__generated__/core/MeasureFormDialogMeasureFragment.graphql.ts deleted file mode 100644 index 71a1d89d2..000000000 --- a/apps/console/src/__generated__/core/MeasureFormDialogMeasureFragment.graphql.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type MeasureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED"; -import { FragmentRefs } from "relay-runtime"; -export type MeasureFormDialogMeasureFragment$data = { - readonly category: string; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - readonly state: MeasureState; - readonly " $fragmentType": "MeasureFormDialogMeasureFragment"; -}; -export type MeasureFormDialogMeasureFragment$key = { - readonly " $data"?: MeasureFormDialogMeasureFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MeasureFormDialogMeasureFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MeasureFormDialogMeasureFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "type": "Measure", - "abstractKey": null -}; - -(node as any).hash = "4266d43b90952814d68b5425f65c10be"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/MeasureGraphDeleteMutation.graphql.ts deleted file mode 100644 index 869c4fcb3..000000000 --- a/apps/console/src/__generated__/core/MeasureGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteMeasureInput = { - measureId: string; -}; -export type MeasureGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteMeasureInput; -}; -export type MeasureGraphDeleteMutation$data = { - readonly deleteMeasure: { - readonly deletedMeasureId: string; - }; -}; -export type MeasureGraphDeleteMutation = { - response: MeasureGraphDeleteMutation$data; - variables: MeasureGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedMeasureId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeasureGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteMeasurePayload", - "kind": "LinkedField", - "name": "deleteMeasure", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "MeasureGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteMeasurePayload", - "kind": "LinkedField", - "name": "deleteMeasure", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedMeasureId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "415f19e622fe431330deca8d3d10f121", - "id": null, - "metadata": {}, - "name": "MeasureGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation MeasureGraphDeleteMutation(\n $input: DeleteMeasureInput!\n) {\n deleteMeasure(input: $input) {\n deletedMeasureId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "867f5fe6142e2900147cb2f7492b22d3"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/MeasureGraphListQuery.graphql.ts deleted file mode 100644 index 7a6d99dbe..000000000 --- a/apps/console/src/__generated__/core/MeasureGraphListQuery.graphql.ts +++ /dev/null @@ -1,307 +0,0 @@ -/** - * @generated SignedSource<<587b1edc25e82b42dd300f9fe7424bc3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeasureGraphListQuery$variables = { - organizationId: string; -}; -export type MeasureGraphListQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly canCreateMeasure: boolean; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"MeasuresPageFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type MeasureGraphListQuery = { - response: MeasureGraphListQuery$data; - variables: MeasureGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": "canCreateMeasure", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:create\")" -}, -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 500 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "MeasureGraphListQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "MeasuresPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "MeasureGraphListQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "MeasureConnection", - "kind": "LinkedField", - "name": "measures", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "measures(first:500)" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": null, - "handle": "connection", - "key": "MeasuresGraphListQuery__measures", - "kind": "LinkedHandle", - "name": "measures" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "28d1efc46af83ac0b77b4bbf254ead9f", - "id": null, - "metadata": {}, - "name": "MeasureGraphListQuery", - "operationKind": "query", - "text": "query MeasureGraphListQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n canCreateMeasure: permission(action: \"core:measure:create\")\n ...MeasuresPageFragment\n }\n id\n }\n}\n\nfragment MeasureFormDialogMeasureFragment on Measure {\n id\n description\n name\n category\n state\n}\n\nfragment MeasuresPageFragment on Organization {\n measures(first: 500) {\n edges {\n node {\n id\n name\n category\n state\n canUpdate: permission(action: \"core:measure:update\")\n canDelete: permission(action: \"core:measure:delete\")\n ...MeasureFormDialogMeasureFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "291184a9b739da290f087db35714ba6b"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/MeasureGraphNodeQuery.graphql.ts deleted file mode 100644 index 9acca02dd..000000000 --- a/apps/console/src/__generated__/core/MeasureGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,697 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeasureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED"; -export type MeasureGraphNodeQuery$variables = { - measureId: string; -}; -export type MeasureGraphNodeQuery$data = { - readonly node: { - readonly canDelete?: boolean; - readonly canListTasks?: boolean; - readonly canUpdate?: boolean; - readonly category?: string; - readonly controlsInfos?: { - readonly totalCount: number; - }; - readonly description?: string | null | undefined; - readonly evidencesInfos?: { - readonly totalCount: number; - }; - readonly id?: string; - readonly name?: string; - readonly risksInfos?: { - readonly totalCount: number; - }; - readonly state?: MeasureState; - readonly " $fragmentSpreads": FragmentRefs<"MeasureControlsTabFragment" | "MeasureEvidencesTabFragment" | "MeasureFormDialogMeasureFragment" | "MeasureRisksTabFragment">; - }; -}; -export type MeasureGraphNodeQuery = { - response: MeasureGraphNodeQuery$data; - variables: MeasureGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "measureId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "measureId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null -}, -v7 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:update\")" -}, -v8 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:delete\")" -}, -v9 = { - "alias": "canListTasks", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:list\")" -}, -v10 = [ - { - "kind": "Literal", - "name": "first", - "value": 0 - } -], -v11 = [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } -], -v12 = { - "alias": "evidencesInfos", - "args": (v10/*: any*/), - "concreteType": "EvidenceConnection", - "kind": "LinkedField", - "name": "evidences", - "plural": false, - "selections": (v11/*: any*/), - "storageKey": "evidences(first:0)" -}, -v13 = { - "alias": "risksInfos", - "args": (v10/*: any*/), - "concreteType": "RiskConnection", - "kind": "LinkedField", - "name": "risks", - "plural": false, - "selections": (v11/*: any*/), - "storageKey": "risks(first:0)" -}, -v14 = { - "alias": "controlsInfos", - "args": (v10/*: any*/), - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": (v11/*: any*/), - "storageKey": "controls(first:0)" -}, -v15 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v16 = [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } -], -v17 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v18 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null -}, -v19 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null -}, -v20 = { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] -}, -v21 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -], -v22 = { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v18/*: any*/), - (v19/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null -}, -v23 = [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "MeasureGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "MeasureRisksTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "MeasureControlsTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "MeasureFormDialogMeasureFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "MeasureEvidencesTabFragment" - } - ], - "type": "Measure", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "MeasureGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v15/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - { - "alias": "canCreateRiskMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:create-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:create-measure-mapping\")" - }, - { - "alias": "canDeleteRiskMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:delete-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:delete-measure-mapping\")" - }, - { - "alias": null, - "args": (v16/*: any*/), - "concreteType": "RiskConnection", - "kind": "LinkedField", - "name": "risks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RiskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentRiskScore", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRiskScore", - "storageKey": null - }, - (v15/*: any*/) - ], - "storageKey": null - }, - (v17/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v18/*: any*/), - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/) - ], - "storageKey": "risks(first:100)" - }, - { - "alias": null, - "args": (v16/*: any*/), - "filters": null, - "handle": "connection", - "key": "Measure__risks", - "kind": "LinkedHandle", - "name": "risks" - }, - { - "alias": "canCreateControlMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:create-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:create-measure-mapping\")" - }, - { - "alias": "canDeleteControlMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:control:delete-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:control:delete-measure-mapping\")" - }, - { - "alias": null, - "args": (v21/*: any*/), - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/) - ], - "storageKey": null - }, - (v15/*: any*/) - ], - "storageKey": null - }, - (v17/*: any*/) - ], - "storageKey": null - }, - (v22/*: any*/), - (v20/*: any*/) - ], - "storageKey": "controls(first:20)" - }, - { - "alias": null, - "args": (v21/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "MeasureControlsTab_controls", - "kind": "LinkedHandle", - "name": "controls" - }, - { - "alias": "canUploadEvidence", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:upload-evidence" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:upload-evidence\")" - }, - { - "alias": null, - "args": (v23/*: any*/), - "concreteType": "EvidenceConnection", - "kind": "LinkedField", - "name": "evidences", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "EvidenceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Evidence", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mimeType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:evidence:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:evidence:delete\")" - }, - (v15/*: any*/) - ], - "storageKey": null - }, - (v17/*: any*/) - ], - "storageKey": null - }, - (v22/*: any*/), - (v20/*: any*/) - ], - "storageKey": "evidences(first:50)" - }, - { - "alias": null, - "args": (v23/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "MeasureEvidencesTabFragment_evidences", - "kind": "LinkedHandle", - "name": "evidences" - } - ], - "type": "Measure", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "76cc28f60f7911b5b452f8384fe70fcb", - "id": null, - "metadata": {}, - "name": "MeasureGraphNodeQuery", - "operationKind": "query", - "text": "query MeasureGraphNodeQuery(\n $measureId: ID!\n) {\n node(id: $measureId) {\n __typename\n ... on Measure {\n id\n name\n description\n state\n category\n canUpdate: permission(action: \"core:measure:update\")\n canDelete: permission(action: \"core:measure:delete\")\n canListTasks: permission(action: \"core:task:list\")\n evidencesInfos: evidences(first: 0) {\n totalCount\n }\n risksInfos: risks(first: 0) {\n totalCount\n }\n controlsInfos: controls(first: 0) {\n totalCount\n }\n ...MeasureRisksTabFragment\n ...MeasureControlsTabFragment\n ...MeasureFormDialogMeasureFragment\n ...MeasureEvidencesTabFragment\n }\n id\n }\n}\n\nfragment LinkedControlsCardFragment on Control {\n id\n name\n sectionTitle\n framework {\n id\n name\n }\n}\n\nfragment LinkedRisksCardFragment on Risk {\n id\n name\n inherentRiskScore\n residualRiskScore\n}\n\nfragment MeasureControlsTabFragment on Measure {\n id\n canCreateControlMeasureMapping: permission(action: \"core:control:create-measure-mapping\")\n canDeleteControlMeasureMapping: permission(action: \"core:control:delete-measure-mapping\")\n controls(first: 20) {\n edges {\n node {\n id\n ...LinkedControlsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment MeasureEvidencesTabFragment on Measure {\n id\n canUploadEvidence: permission(action: \"core:measure:upload-evidence\")\n evidences(first: 50) {\n edges {\n node {\n id\n file {\n fileName\n mimeType\n size\n id\n }\n ...MeasureEvidencesTabFragment_evidence\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment MeasureEvidencesTabFragment_evidence on Evidence {\n id\n file {\n fileName\n mimeType\n size\n id\n }\n type\n createdAt\n canDelete: permission(action: \"core:evidence:delete\")\n}\n\nfragment MeasureFormDialogMeasureFragment on Measure {\n id\n description\n name\n category\n state\n}\n\nfragment MeasureRisksTabFragment on Measure {\n id\n canCreateRiskMeasureMapping: permission(action: \"core:risk:create-measure-mapping\")\n canDeleteRiskMeasureMapping: permission(action: \"core:risk:delete-measure-mapping\")\n risks(first: 100) {\n edges {\n node {\n id\n ...LinkedRisksCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0d55da2c159f16130dd3aaf232103b0f"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/MeasureGraphUpdateMutation.graphql.ts deleted file mode 100644 index 3a8aed82a..000000000 --- a/apps/console/src/__generated__/core/MeasureGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,167 +0,0 @@ -/** - * @generated SignedSource<<0568c40c0caa32ce6daf11d414e2cc72>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeasureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED"; -export type UpdateMeasureInput = { - category?: string | null | undefined; - description?: string | null | undefined; - id: string; - name?: string | null | undefined; - state?: MeasureState | null | undefined; -}; -export type MeasureGraphUpdateMutation$variables = { - input: UpdateMeasureInput; -}; -export type MeasureGraphUpdateMutation$data = { - readonly updateMeasure: { - readonly measure: { - readonly " $fragmentSpreads": FragmentRefs<"MeasureFormDialogMeasureFragment">; - }; - }; -}; -export type MeasureGraphUpdateMutation = { - response: MeasureGraphUpdateMutation$data; - variables: MeasureGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "MeasureGraphUpdateMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateMeasurePayload", - "kind": "LinkedField", - "name": "updateMeasure", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "measure", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "MeasureFormDialogMeasureFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "MeasureGraphUpdateMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateMeasurePayload", - "kind": "LinkedField", - "name": "updateMeasure", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "measure", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "17d35db59a42796407f7f0d6bb4798ba", - "id": null, - "metadata": {}, - "name": "MeasureGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation MeasureGraphUpdateMutation(\n $input: UpdateMeasureInput!\n) {\n updateMeasure(input: $input) {\n measure {\n ...MeasureFormDialogMeasureFragment\n id\n }\n }\n}\n\nfragment MeasureFormDialogMeasureFragment on Measure {\n id\n description\n name\n category\n state\n}\n" - } -}; -})(); - -(node as any).hash = "9f74c8c6cea82050d077d26e6b7547f6"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureRisksTabCreateMutation.graphql.ts b/apps/console/src/__generated__/core/MeasureRisksTabCreateMutation.graphql.ts deleted file mode 100644 index 5373192f6..000000000 --- a/apps/console/src/__generated__/core/MeasureRisksTabCreateMutation.graphql.ts +++ /dev/null @@ -1,209 +0,0 @@ -/** - * @generated SignedSource<<9af67842ec7b635682d0c10d86385b88>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateRiskMeasureMappingInput = { - measureId: string; - riskId: string; -}; -export type MeasureRisksTabCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateRiskMeasureMappingInput; -}; -export type MeasureRisksTabCreateMutation$data = { - readonly createRiskMeasureMapping: { - readonly riskEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedRisksCardFragment">; - }; - }; - }; -}; -export type MeasureRisksTabCreateMutation = { - response: MeasureRisksTabCreateMutation$data; - variables: MeasureRisksTabCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeasureRisksTabCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRiskMeasureMappingPayload", - "kind": "LinkedField", - "name": "createRiskMeasureMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RiskEdge", - "kind": "LinkedField", - "name": "riskEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedRisksCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "MeasureRisksTabCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRiskMeasureMappingPayload", - "kind": "LinkedField", - "name": "createRiskMeasureMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RiskEdge", - "kind": "LinkedField", - "name": "riskEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentRiskScore", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRiskScore", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "riskEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "53097378652dfdfc8505535921234ade", - "id": null, - "metadata": {}, - "name": "MeasureRisksTabCreateMutation", - "operationKind": "mutation", - "text": "mutation MeasureRisksTabCreateMutation(\n $input: CreateRiskMeasureMappingInput!\n) {\n createRiskMeasureMapping(input: $input) {\n riskEdge {\n node {\n id\n ...LinkedRisksCardFragment\n }\n }\n }\n}\n\nfragment LinkedRisksCardFragment on Risk {\n id\n name\n inherentRiskScore\n residualRiskScore\n}\n" - } -}; -})(); - -(node as any).hash = "c167b300964866d886760968abaa014f"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureRisksTabDetachMutation.graphql.ts b/apps/console/src/__generated__/core/MeasureRisksTabDetachMutation.graphql.ts deleted file mode 100644 index db61974fe..000000000 --- a/apps/console/src/__generated__/core/MeasureRisksTabDetachMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteRiskMeasureMappingInput = { - measureId: string; - riskId: string; -}; -export type MeasureRisksTabDetachMutation$variables = { - connections: ReadonlyArray; - input: DeleteRiskMeasureMappingInput; -}; -export type MeasureRisksTabDetachMutation$data = { - readonly deleteRiskMeasureMapping: { - readonly deletedRiskId: string; - }; -}; -export type MeasureRisksTabDetachMutation = { - response: MeasureRisksTabDetachMutation$data; - variables: MeasureRisksTabDetachMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedRiskId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeasureRisksTabDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRiskMeasureMappingPayload", - "kind": "LinkedField", - "name": "deleteRiskMeasureMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "MeasureRisksTabDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRiskMeasureMappingPayload", - "kind": "LinkedField", - "name": "deleteRiskMeasureMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedRiskId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "ac75591b5e166b2ee994bd99a0afc29a", - "id": null, - "metadata": {}, - "name": "MeasureRisksTabDetachMutation", - "operationKind": "mutation", - "text": "mutation MeasureRisksTabDetachMutation(\n $input: DeleteRiskMeasureMappingInput!\n) {\n deleteRiskMeasureMapping(input: $input) {\n deletedRiskId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "5b42a2d7e8a78ff4c674ce6612df537c"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureRisksTabFragment.graphql.ts b/apps/console/src/__generated__/core/MeasureRisksTabFragment.graphql.ts deleted file mode 100644 index ea2c56131..000000000 --- a/apps/console/src/__generated__/core/MeasureRisksTabFragment.graphql.ts +++ /dev/null @@ -1,183 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeasureRisksTabFragment$data = { - readonly canCreateRiskMeasureMapping: boolean; - readonly canDeleteRiskMeasureMapping: boolean; - readonly id: string; - readonly risks: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedRisksCardFragment">; - }; - }>; - }; - readonly " $fragmentType": "MeasureRisksTabFragment"; -}; -export type MeasureRisksTabFragment$key = { - readonly " $data"?: MeasureRisksTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MeasureRisksTabFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "risks" - ] - } - ] - }, - "name": "MeasureRisksTabFragment", - "selections": [ - (v0/*: any*/), - { - "alias": "canCreateRiskMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:create-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:create-measure-mapping\")" - }, - { - "alias": "canDeleteRiskMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:delete-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:delete-measure-mapping\")" - }, - { - "alias": "risks", - "args": null, - "concreteType": "RiskConnection", - "kind": "LinkedField", - "name": "__Measure__risks_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RiskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedRisksCardFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Measure", - "abstractKey": null -}; -})(); - -(node as any).hash = "abab542141a748635126f652c0d79761"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasureTasksTabQuery.graphql.ts b/apps/console/src/__generated__/core/MeasureTasksTabQuery.graphql.ts deleted file mode 100644 index d262903b2..000000000 --- a/apps/console/src/__generated__/core/MeasureTasksTabQuery.graphql.ts +++ /dev/null @@ -1,425 +0,0 @@ -/** - * @generated SignedSource<<762a47bad27e4d68dbc150a47c41c362>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type TaskState = "DONE" | "TODO"; -export type MeasureTasksTabQuery$variables = { - measureId: string; -}; -export type MeasureTasksTabQuery$data = { - readonly node: { - readonly __typename: "Measure"; - readonly canCreateTask: boolean; - readonly id: string; - readonly tasks: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly state: TaskState; - readonly " $fragmentSpreads": FragmentRefs<"TaskFormDialogFragment" | "TasksCard_TaskRowFragment">; - }; - }>; - }; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type MeasureTasksTabQuery = { - response: MeasureTasksTabQuery$data; - variables: MeasureTasksTabQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "measureId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "measureId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": "canCreateTask", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:create\")" -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null -}, -v8 = { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] -}, -v9 = [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } -], -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "MeasureTasksTabQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "kind": "RequiredField", - "field": { - "alias": "tasks", - "args": null, - "concreteType": "TaskConnection", - "kind": "LinkedField", - "name": "__Measure__tasks_connection", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "TaskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Task", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v5/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "TaskFormDialogFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "TasksCard_TaskRowFragment" - }, - (v2/*: any*/) - ], - "storageKey": null - }, - (v6/*: any*/) - ], - "storageKey": null - }, - "action": "THROW" - }, - (v7/*: any*/), - (v8/*: any*/) - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Measure", - "abstractKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "MeasureTasksTabQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": (v9/*: any*/), - "concreteType": "TaskConnection", - "kind": "LinkedField", - "name": "tasks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TaskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Task", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - (v10/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "timeEstimate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "assignedTo", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "measure", - "plural": false, - "selections": [ - (v3/*: any*/), - (v10/*: any*/) - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:delete\")" - }, - (v2/*: any*/) - ], - "storageKey": null - }, - (v6/*: any*/) - ], - "storageKey": null - }, - (v7/*: any*/), - (v8/*: any*/) - ], - "storageKey": "tasks(first:100)" - }, - { - "alias": null, - "args": (v9/*: any*/), - "filters": null, - "handle": "connection", - "key": "Measure__tasks", - "kind": "LinkedHandle", - "name": "tasks" - } - ], - "type": "Measure", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "45dadcc414507aa7ccaab436cd5081c7", - "id": null, - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "node", - "tasks" - ] - } - ] - }, - "name": "MeasureTasksTabQuery", - "operationKind": "query", - "text": "query MeasureTasksTabQuery(\n $measureId: ID!\n) {\n node(id: $measureId) {\n __typename\n ... on Measure {\n id\n canCreateTask: permission(action: \"core:task:create\")\n tasks(first: 100) {\n edges {\n node {\n id\n state\n ...TaskFormDialogFragment\n ...TasksCard_TaskRowFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n id\n }\n}\n\nfragment TaskFormDialogFragment on Task {\n id\n description\n name\n state\n timeEstimate\n deadline\n assignedTo {\n id\n }\n measure {\n id\n }\n}\n\nfragment TasksCard_TaskRowFragment on Task {\n id\n name\n state\n description\n timeEstimate\n deadline\n canUpdate: permission(action: \"core:task:update\")\n canDelete: permission(action: \"core:task:delete\")\n assignedTo {\n id\n fullName\n }\n measure {\n id\n name\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a2dcb46b0d6a1a26b4e23db5c44c5d65"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasuresPageFragment.graphql.ts b/apps/console/src/__generated__/core/MeasuresPageFragment.graphql.ts deleted file mode 100644 index 4ac966c33..000000000 --- a/apps/console/src/__generated__/core/MeasuresPageFragment.graphql.ts +++ /dev/null @@ -1,203 +0,0 @@ -/** - * @generated SignedSource<<2332fd6939942a5ee3d32511feffa42e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type MeasureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED"; -import { FragmentRefs } from "relay-runtime"; -export type MeasuresPageFragment$data = { - readonly measures: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly category: string; - readonly id: string; - readonly name: string; - readonly state: MeasureState; - readonly " $fragmentSpreads": FragmentRefs<"MeasureFormDialogMeasureFragment">; - }; - }>; - }; - readonly " $fragmentType": "MeasuresPageFragment"; -}; -export type MeasuresPageFragment$key = { - readonly " $data"?: MeasuresPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MeasuresPageFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "measures" - ] - } - ] - }, - "name": "MeasuresPageFragment", - "selections": [ - { - "alias": "measures", - "args": null, - "concreteType": "MeasureConnection", - "kind": "LinkedField", - "name": "__MeasuresGraphListQuery__measures_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:delete\")" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "MeasureFormDialogMeasureFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "e9d543c6f68f5c205ba55f6d77206091"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeasuresPageImportMutation.graphql.ts b/apps/console/src/__generated__/core/MeasuresPageImportMutation.graphql.ts deleted file mode 100644 index 65721978c..000000000 --- a/apps/console/src/__generated__/core/MeasuresPageImportMutation.graphql.ts +++ /dev/null @@ -1,184 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type MeasureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED"; -export type ImportMeasureInput = { - file: any; - organizationId: string; -}; -export type MeasuresPageImportMutation$variables = { - connections: ReadonlyArray; - input: ImportMeasureInput; -}; -export type MeasuresPageImportMutation$data = { - readonly importMeasure: { - readonly measureEdges: ReadonlyArray<{ - readonly node: { - readonly category: string; - readonly id: string; - readonly name: string; - readonly state: MeasureState; - }; - }>; - }; -}; -export type MeasuresPageImportMutation = { - response: MeasuresPageImportMutation$data; - variables: MeasuresPageImportMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "measureEdges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeasuresPageImportMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "ImportMeasurePayload", - "kind": "LinkedField", - "name": "importMeasure", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "MeasuresPageImportMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "ImportMeasurePayload", - "kind": "LinkedField", - "name": "importMeasure", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "appendEdge", - "key": "", - "kind": "LinkedHandle", - "name": "measureEdges", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "13a5799ca6febcfb85294f75456deffb", - "id": null, - "metadata": {}, - "name": "MeasuresPageImportMutation", - "operationKind": "mutation", - "text": "mutation MeasuresPageImportMutation(\n $input: ImportMeasureInput!\n) {\n importMeasure(input: $input) {\n measureEdges {\n node {\n id\n name\n category\n state\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "6419f51d00f273c824038e7f2d4c65ba"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeetingDetailPageMeetingFragment.graphql.ts b/apps/console/src/__generated__/core/MeetingDetailPageMeetingFragment.graphql.ts deleted file mode 100644 index f82ccc365..000000000 --- a/apps/console/src/__generated__/core/MeetingDetailPageMeetingFragment.graphql.ts +++ /dev/null @@ -1,120 +0,0 @@ -/** - * @generated SignedSource<<6804811557c4369cfc98c1d18ce6a668>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeetingDetailPageMeetingFragment$data = { - readonly attendees: ReadonlyArray<{ - readonly fullName: string; - readonly id: string; - }>; - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly date: string; - readonly id: string; - readonly minutes: string | null | undefined; - readonly name: string; - readonly " $fragmentType": "MeetingDetailPageMeetingFragment"; -}; -export type MeetingDetailPageMeetingFragment$key = { - readonly " $data"?: MeetingDetailPageMeetingFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MeetingDetailPageMeetingFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MeetingDetailPageMeetingFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "date", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "minutes", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:delete\")" - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "attendees", - "plural": true, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Meeting", - "abstractKey": null -}; -})(); - -(node as any).hash = "16fcd4d8cc7dbe80bc7fd37ac5e824e8"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeetingGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/MeetingGraphCreateMutation.graphql.ts deleted file mode 100644 index 2a3646155..000000000 --- a/apps/console/src/__generated__/core/MeetingGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,210 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateMeetingInput = { - attendeeIds?: ReadonlyArray | null | undefined; - date: string; - minutes?: string | null | undefined; - name: string; - organizationId: string; -}; -export type MeetingGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateMeetingInput; -}; -export type MeetingGraphCreateMutation$data = { - readonly createMeeting: { - readonly meetingEdge: { - readonly node: { - readonly attendees: ReadonlyArray<{ - readonly fullName: string; - readonly id: string; - }>; - readonly date: string; - readonly id: string; - readonly minutes: string | null | undefined; - readonly name: string; - }; - }; - }; -}; -export type MeetingGraphCreateMutation = { - response: MeetingGraphCreateMutation$data; - variables: MeetingGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "concreteType": "MeetingEdge", - "kind": "LinkedField", - "name": "meetingEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Meeting", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "date", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "minutes", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "attendees", - "plural": true, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeetingGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateMeetingPayload", - "kind": "LinkedField", - "name": "createMeeting", - "plural": false, - "selections": [ - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "MeetingGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateMeetingPayload", - "kind": "LinkedField", - "name": "createMeeting", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "meetingEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1d0c66e942482f999e3b986af16df678", - "id": null, - "metadata": {}, - "name": "MeetingGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation MeetingGraphCreateMutation(\n $input: CreateMeetingInput!\n) {\n createMeeting(input: $input) {\n meetingEdge {\n node {\n id\n name\n date\n minutes\n attendees {\n id\n fullName\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "27fd6781022144fe6fd247b7e2ce1aaf"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeetingGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/MeetingGraphDeleteMutation.graphql.ts deleted file mode 100644 index d344fc4ac..000000000 --- a/apps/console/src/__generated__/core/MeetingGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteMeetingInput = { - meetingId: string; -}; -export type MeetingGraphDeleteMutation$variables = { - input: DeleteMeetingInput; -}; -export type MeetingGraphDeleteMutation$data = { - readonly deleteMeeting: { - readonly deletedMeetingId: string; - }; -}; -export type MeetingGraphDeleteMutation = { - response: MeetingGraphDeleteMutation$data; - variables: MeetingGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedMeetingId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "MeetingGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "DeleteMeetingPayload", - "kind": "LinkedField", - "name": "deleteMeeting", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "MeetingGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "DeleteMeetingPayload", - "kind": "LinkedField", - "name": "deleteMeeting", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteRecord", - "key": "", - "kind": "ScalarHandle", - "name": "deletedMeetingId" - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f88bdc6e79cef363e7c2aaf91dce1d16", - "id": null, - "metadata": {}, - "name": "MeetingGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation MeetingGraphDeleteMutation(\n $input: DeleteMeetingInput!\n) {\n deleteMeeting(input: $input) {\n deletedMeetingId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "4d70861c6a4d4b06c753863cba054fc8"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeetingGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/MeetingGraphListQuery.graphql.ts deleted file mode 100644 index 03cf62ade..000000000 --- a/apps/console/src/__generated__/core/MeetingGraphListQuery.graphql.ts +++ /dev/null @@ -1,331 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeetingGraphListQuery$variables = { - organizationId: string; -}; -export type MeetingGraphListQuery$data = { - readonly organization: { - readonly canCreateMeeting?: boolean; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"MeetingsPageListFragment">; - }; -}; -export type MeetingGraphListQuery = { - response: MeetingGraphListQuery$data; - variables: MeetingGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": "canCreateMeeting", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:create\")" -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 50 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "DATE" - } - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "MeetingGraphListQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/) - ], - "type": "Organization", - "abstractKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "MeetingsPageListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "MeetingGraphListQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "OrganizationContext", - "kind": "LinkedField", - "name": "context", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "summary", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "MeetingConnection", - "kind": "LinkedField", - "name": "meetings", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeetingEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Meeting", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "date", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "attendees", - "plural": true, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:delete\")" - }, - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "meetings(first:50,orderBy:{\"direction\":\"DESC\",\"field\":\"DATE\"})" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "MeetingsListQuery_meetings", - "kind": "LinkedHandle", - "name": "meetings" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "68a020e412baf691d3ce96eff5817190", - "id": null, - "metadata": {}, - "name": "MeetingGraphListQuery", - "operationKind": "query", - "text": "query MeetingGraphListQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n canCreateMeeting: permission(action: \"core:meeting:create\")\n }\n ...MeetingsPageListFragment\n }\n}\n\nfragment MeetingsPageListFragment on Organization {\n id\n context {\n summary\n }\n meetings(first: 50, orderBy: {field: DATE, direction: DESC}) {\n edges {\n node {\n id\n ...MeetingsPageRowFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment MeetingsPageRowFragment on Meeting {\n id\n name\n date\n attendees {\n id\n fullName\n }\n canDelete: permission(action: \"core:meeting:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "3ec4cedaa00b3109b79df0425db7f094"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeetingGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/MeetingGraphNodeQuery.graphql.ts deleted file mode 100644 index 67c373a6e..000000000 --- a/apps/console/src/__generated__/core/MeetingGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,188 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeetingGraphNodeQuery$variables = { - meetingId: string; -}; -export type MeetingGraphNodeQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"MeetingDetailPageMeetingFragment">; - }; -}; -export type MeetingGraphNodeQuery = { - response: MeetingGraphNodeQuery$data; - variables: MeetingGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "meetingId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "meetingId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "MeetingGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "MeetingDetailPageMeetingFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "MeetingGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "date", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "minutes", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:delete\")" - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "attendees", - "plural": true, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Meeting", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "efaa301fdd6d05385d7858d182d4b2ec", - "id": null, - "metadata": {}, - "name": "MeetingGraphNodeQuery", - "operationKind": "query", - "text": "query MeetingGraphNodeQuery(\n $meetingId: ID!\n) {\n node(id: $meetingId) {\n __typename\n ...MeetingDetailPageMeetingFragment\n id\n }\n}\n\nfragment MeetingDetailPageMeetingFragment on Meeting {\n id\n name\n date\n minutes\n canUpdate: permission(action: \"core:meeting:update\")\n canDelete: permission(action: \"core:meeting:delete\")\n attendees {\n id\n fullName\n }\n}\n" - } -}; -})(); - -(node as any).hash = "08844ea87fd5de5c7fe55583373e0468"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeetingGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/MeetingGraphUpdateMutation.graphql.ts deleted file mode 100644 index cd562726b..000000000 --- a/apps/console/src/__generated__/core/MeetingGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,157 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateMeetingInput = { - attendeeIds?: ReadonlyArray | null | undefined; - date?: string | null | undefined; - meetingId: string; - minutes?: string | null | undefined; - name?: string | null | undefined; -}; -export type MeetingGraphUpdateMutation$variables = { - input: UpdateMeetingInput; -}; -export type MeetingGraphUpdateMutation$data = { - readonly updateMeeting: { - readonly meeting: { - readonly attendees: ReadonlyArray<{ - readonly fullName: string; - readonly id: string; - }>; - readonly date: string; - readonly id: string; - readonly minutes: string | null | undefined; - readonly name: string; - }; - }; -}; -export type MeetingGraphUpdateMutation = { - response: MeetingGraphUpdateMutation$data; - variables: MeetingGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateMeetingPayload", - "kind": "LinkedField", - "name": "updateMeeting", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Meeting", - "kind": "LinkedField", - "name": "meeting", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "date", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "minutes", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "attendees", - "plural": true, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "MeetingGraphUpdateMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "MeetingGraphUpdateMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "e40a6b6cf200c6c90ca61a21c15452c1", - "id": null, - "metadata": {}, - "name": "MeetingGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation MeetingGraphUpdateMutation(\n $input: UpdateMeetingInput!\n) {\n updateMeeting(input: $input) {\n meeting {\n id\n name\n date\n minutes\n attendees {\n id\n fullName\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b3d9ca4361201376b0d5ab78ec1ef316"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeetingsListQuery.graphql.ts b/apps/console/src/__generated__/core/MeetingsListQuery.graphql.ts deleted file mode 100644 index f049c10b5..000000000 --- a/apps/console/src/__generated__/core/MeetingsListQuery.graphql.ts +++ /dev/null @@ -1,383 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeetingOrderField = "CREATED_AT" | "DATE" | "NAME"; -export type OrderDirection = "ASC" | "DESC"; -export type MeetingOrder = { - direction: OrderDirection; - field: MeetingOrderField; -}; -export type MeetingsListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: MeetingOrder | null | undefined; -}; -export type MeetingsListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"MeetingsPageListFragment">; - }; -}; -export type MeetingsListQuery = { - response: MeetingsListQuery$data; - variables: MeetingsListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": { - "direction": "DESC", - "field": "DATE" - }, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "MeetingsListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "MeetingsPageListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "MeetingsListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "OrganizationContext", - "kind": "LinkedField", - "name": "context", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "summary", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "MeetingConnection", - "kind": "LinkedField", - "name": "meetings", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeetingEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Meeting", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "date", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "attendees", - "plural": true, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:delete\")" - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "MeetingsListQuery_meetings", - "kind": "LinkedHandle", - "name": "meetings" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f4135654e654bbaa31192269ff567752", - "id": null, - "metadata": {}, - "name": "MeetingsListQuery", - "operationKind": "query", - "text": "query MeetingsListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: MeetingOrder = {field: DATE, direction: DESC}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...MeetingsPageListFragment_16fISc\n id\n }\n}\n\nfragment MeetingsPageListFragment_16fISc on Organization {\n id\n context {\n summary\n }\n meetings(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n ...MeetingsPageRowFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment MeetingsPageRowFragment on Meeting {\n id\n name\n date\n attendees {\n id\n fullName\n }\n canDelete: permission(action: \"core:meeting:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "2fe5f058a857ddd4566169d220fb3310"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeetingsPageListFragment.graphql.ts b/apps/console/src/__generated__/core/MeetingsPageListFragment.graphql.ts deleted file mode 100644 index 7f18f4893..000000000 --- a/apps/console/src/__generated__/core/MeetingsPageListFragment.graphql.ts +++ /dev/null @@ -1,249 +0,0 @@ -/** - * @generated SignedSource<<5609ac7dd3b3fb18c95cfa91381582cf>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeetingsPageListFragment$data = { - readonly context: { - readonly summary: string | null | undefined; - } | null | undefined; - readonly id: string; - readonly meetings: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"MeetingsPageRowFragment">; - }; - }>; - }; - readonly " $fragmentType": "MeetingsPageListFragment"; -}; -export type MeetingsPageListFragment$key = { - readonly " $data"?: MeetingsPageListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MeetingsPageListFragment">; -}; - -import MeetingsListQuery_graphql from './MeetingsListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "meetings" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": { - "direction": "DESC", - "field": "DATE" - }, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": MeetingsListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "MeetingsPageListFragment", - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "OrganizationContext", - "kind": "LinkedField", - "name": "context", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "summary", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "meetings", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "MeetingConnection", - "kind": "LinkedField", - "name": "__MeetingsListQuery_meetings_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeetingEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Meeting", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "MeetingsPageRowFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "2fe5f058a857ddd4566169d220fb3310"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeetingsPageRowFragment.graphql.ts b/apps/console/src/__generated__/core/MeetingsPageRowFragment.graphql.ts deleted file mode 100644 index 7c697aa5a..000000000 --- a/apps/console/src/__generated__/core/MeetingsPageRowFragment.graphql.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @generated SignedSource<<81e8e025976a7d356fa1da47465d8ad0>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeetingsPageRowFragment$data = { - readonly attendees: ReadonlyArray<{ - readonly fullName: string; - readonly id: string; - }>; - readonly canDelete: boolean; - readonly date: string; - readonly id: string; - readonly name: string; - readonly " $fragmentType": "MeetingsPageRowFragment"; -}; -export type MeetingsPageRowFragment$key = { - readonly " $data"?: MeetingsPageRowFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MeetingsPageRowFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MeetingsPageRowFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "date", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "attendees", - "plural": true, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:delete\")" - } - ], - "type": "Meeting", - "abstractKey": null -}; -})(); - -(node as any).hash = "22a8c7132716408a17d39ea5ff36a38d"; - -export default node; diff --git a/apps/console/src/__generated__/core/MeetingsPage_UpdateSummaryMutation.graphql.ts b/apps/console/src/__generated__/core/MeetingsPage_UpdateSummaryMutation.graphql.ts deleted file mode 100644 index 63a0187d9..000000000 --- a/apps/console/src/__generated__/core/MeetingsPage_UpdateSummaryMutation.graphql.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @generated SignedSource<<1fff8c5cca1610284185c485630e84de>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateOrganizationContextInput = { - organizationId: string; - summary?: string | null | undefined; -}; -export type MeetingsPage_UpdateSummaryMutation$variables = { - input: UpdateOrganizationContextInput; -}; -export type MeetingsPage_UpdateSummaryMutation$data = { - readonly updateOrganizationContext: { - readonly context: { - readonly organizationId: string; - readonly summary: string | null | undefined; - }; - }; -}; -export type MeetingsPage_UpdateSummaryMutation = { - response: MeetingsPage_UpdateSummaryMutation$data; - variables: MeetingsPage_UpdateSummaryMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateOrganizationContextPayload", - "kind": "LinkedField", - "name": "updateOrganizationContext", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "OrganizationContext", - "kind": "LinkedField", - "name": "context", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "organizationId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "summary", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "MeetingsPage_UpdateSummaryMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "MeetingsPage_UpdateSummaryMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "cb37cdde6dc5ac655a7cefc63d9e72e7", - "id": null, - "metadata": {}, - "name": "MeetingsPage_UpdateSummaryMutation", - "operationKind": "mutation", - "text": "mutation MeetingsPage_UpdateSummaryMutation(\n $input: UpdateOrganizationContextInput!\n) {\n updateOrganizationContext(input: $input) {\n context {\n organizationId\n summary\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "8bfa5b636dbc3535dbed22e1869bc941"; - -export default node; diff --git a/apps/console/src/__generated__/core/NewCompliancePageDomainDialogMutation.graphql.ts b/apps/console/src/__generated__/core/NewCompliancePageDomainDialogMutation.graphql.ts deleted file mode 100644 index 37aa4b313..000000000 --- a/apps/console/src/__generated__/core/NewCompliancePageDomainDialogMutation.graphql.ts +++ /dev/null @@ -1,214 +0,0 @@ -/** - * @generated SignedSource<<2884e6469123701242f24cd275f8551b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SSLStatus = "ACTIVE" | "EXPIRED" | "FAILED" | "PENDING" | "PROVISIONING" | "RENEWING"; -export type CreateCustomDomainInput = { - domain: string; - organizationId: string; -}; -export type NewCompliancePageDomainDialogMutation$variables = { - input: CreateCustomDomainInput; -}; -export type NewCompliancePageDomainDialogMutation$data = { - readonly createCustomDomain: { - readonly customDomain: { - readonly canDelete: boolean; - readonly createdAt: string; - readonly dnsRecords: ReadonlyArray<{ - readonly name: string; - readonly purpose: string; - readonly ttl: number; - readonly type: string; - readonly value: string; - }>; - readonly domain: string; - readonly id: string; - readonly sslExpiresAt: string | null | undefined; - readonly sslStatus: SSLStatus; - readonly updatedAt: string; - }; - }; -}; -export type NewCompliancePageDomainDialogMutation = { - response: NewCompliancePageDomainDialogMutation$data; - variables: NewCompliancePageDomainDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "CreateCustomDomainPayload", - "kind": "LinkedField", - "name": "createCustomDomain", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "CustomDomain", - "kind": "LinkedField", - "name": "customDomain", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domain", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sslStatus", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "DNSRecordInstruction", - "kind": "LinkedField", - "name": "dnsRecords", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "value", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ttl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "purpose", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sslExpiresAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:custom-domain:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:custom-domain:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "NewCompliancePageDomainDialogMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "NewCompliancePageDomainDialogMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "6f012080388b3c7dfd3bfc8c69b5d549", - "id": null, - "metadata": {}, - "name": "NewCompliancePageDomainDialogMutation", - "operationKind": "mutation", - "text": "mutation NewCompliancePageDomainDialogMutation(\n $input: CreateCustomDomainInput!\n) {\n createCustomDomain(input: $input) {\n customDomain {\n id\n domain\n sslStatus\n dnsRecords {\n type\n name\n value\n ttl\n purpose\n }\n createdAt\n updatedAt\n sslExpiresAt\n canDelete: permission(action: \"core:custom-domain:delete\")\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "7a1b76dbca18a3a0dbd2b1123e324b99"; - -export default node; diff --git a/apps/console/src/__generated__/core/NewCompliancePageFileDialog_createMutation.graphql.ts b/apps/console/src/__generated__/core/NewCompliancePageFileDialog_createMutation.graphql.ts deleted file mode 100644 index 403be1636..000000000 --- a/apps/console/src/__generated__/core/NewCompliancePageFileDialog_createMutation.graphql.ts +++ /dev/null @@ -1,250 +0,0 @@ -/** - * @generated SignedSource<<50c909a6a1d81679625acf045c6ca1c2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; -export type CreateTrustCenterFileInput = { - category: string; - file: any; - name: string; - organizationId: string; - trustCenterVisibility: TrustCenterVisibility; -}; -export type NewCompliancePageFileDialog_createMutation$variables = { - connections: ReadonlyArray; - input: CreateTrustCenterFileInput; -}; -export type NewCompliancePageFileDialog_createMutation$data = { - readonly createTrustCenterFile: { - readonly trustCenterFileEdge: { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"CompliancePageFileListItem_fileFragment">; - }; - }; - }; -}; -export type NewCompliancePageFileDialog_createMutation = { - response: NewCompliancePageFileDialog_createMutation$data; - variables: NewCompliancePageFileDialog_createMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "NewCompliancePageFileDialog_createMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateTrustCenterFilePayload", - "kind": "LinkedField", - "name": "createTrustCenterFile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFileEdge", - "kind": "LinkedField", - "name": "trustCenterFileEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "CompliancePageFileListItem_fileFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "NewCompliancePageFileDialog_createMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateTrustCenterFilePayload", - "kind": "LinkedField", - "name": "createTrustCenterFile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFileEdge", - "kind": "LinkedField", - "name": "trustCenterFileEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustCenterVisibility", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-file:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-file:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "trustCenterFileEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "337ae413f581adb0256b0b47f0514f43", - "id": null, - "metadata": {}, - "name": "NewCompliancePageFileDialog_createMutation", - "operationKind": "mutation", - "text": "mutation NewCompliancePageFileDialog_createMutation(\n $input: CreateTrustCenterFileInput!\n) {\n createTrustCenterFile(input: $input) {\n trustCenterFileEdge {\n node {\n ...CompliancePageFileListItem_fileFragment\n id\n }\n }\n }\n}\n\nfragment CompliancePageFileListItem_fileFragment on TrustCenterFile {\n id\n name\n category\n fileUrl\n trustCenterVisibility\n createdAt\n canUpdate: permission(action: \"core:trust-center-file:update\")\n canDelete: permission(action: \"core:trust-center-file:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "826c457285dd9890c39b9c11e600316f"; - -export default node; diff --git a/apps/console/src/__generated__/core/NewCompliancePageSubscriberDialogMutation.graphql.ts b/apps/console/src/__generated__/core/NewCompliancePageSubscriberDialogMutation.graphql.ts deleted file mode 100644 index 8ca24f89e..000000000 --- a/apps/console/src/__generated__/core/NewCompliancePageSubscriberDialogMutation.graphql.ts +++ /dev/null @@ -1,201 +0,0 @@ -/** - * @generated SignedSource<<61ab320d87e6fb43d245dc070871a160>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type MailingListSubscriberStatus = "CONFIRMED" | "PENDING"; -export type CreateMailingListSubscriberInput = { - email: string; - fullName: string; - mailingListId: string; -}; -export type NewCompliancePageSubscriberDialogMutation$variables = { - connections: ReadonlyArray; - input: CreateMailingListSubscriberInput; -}; -export type NewCompliancePageSubscriberDialogMutation$data = { - readonly createMailingListSubscriber: { - readonly mailingListSubscriberEdge: { - readonly cursor: string; - readonly node: { - readonly createdAt: string; - readonly email: string; - readonly fullName: string; - readonly id: string; - readonly status: MailingListSubscriberStatus; - }; - }; - }; -}; -export type NewCompliancePageSubscriberDialogMutation = { - response: NewCompliancePageSubscriberDialogMutation$data; - variables: NewCompliancePageSubscriberDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "MailingListSubscriberEdge", - "kind": "LinkedField", - "name": "mailingListSubscriberEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "MailingListSubscriber", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "NewCompliancePageSubscriberDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateMailingListSubscriberPayload", - "kind": "LinkedField", - "name": "createMailingListSubscriber", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "NewCompliancePageSubscriberDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateMailingListSubscriberPayload", - "kind": "LinkedField", - "name": "createMailingListSubscriber", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "mailingListSubscriberEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6029b34056e1e0477db8bec0080b4ad1", - "id": null, - "metadata": {}, - "name": "NewCompliancePageSubscriberDialogMutation", - "operationKind": "mutation", - "text": "mutation NewCompliancePageSubscriberDialogMutation(\n $input: CreateMailingListSubscriberInput!\n) {\n createMailingListSubscriber(input: $input) {\n mailingListSubscriberEdge {\n cursor\n node {\n id\n fullName\n email\n status\n createdAt\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "fae262a9df20589ff2923f631692a6ce"; - -export default node; diff --git a/apps/console/src/__generated__/core/NonconformitiesPageFragment.graphql.ts b/apps/console/src/__generated__/core/NonconformitiesPageFragment.graphql.ts deleted file mode 100644 index 3a57481d3..000000000 --- a/apps/console/src/__generated__/core/NonconformitiesPageFragment.graphql.ts +++ /dev/null @@ -1,322 +0,0 @@ -/** - * @generated SignedSource<<23e288c247b9f73855e4f8b0c75ec1b1>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type NonconformityStatus = "CLOSED" | "IN_PROGRESS" | "OPEN"; -import { FragmentRefs } from "relay-runtime"; -export type NonconformitiesPageFragment$data = { - readonly id: string; - readonly nonconformities: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly audit: { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string | null | undefined; - } | null | undefined; - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly description: string | null | undefined; - readonly dueDate: string | null | undefined; - readonly id: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly referenceId: string; - readonly snapshotId: string | null | undefined; - readonly status: NonconformityStatus; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - }; - readonly " $fragmentType": "NonconformitiesPageFragment"; -}; -export type NonconformitiesPageFragment$key = { - readonly " $data"?: NonconformitiesPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"NonconformitiesPageFragment">; -}; - -import NonconformitiesPageRefetchQuery_graphql from './NonconformitiesPageRefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "nonconformities" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": NonconformitiesPageRefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "NonconformitiesPageFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "nonconformities", - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } - ], - "kind": "ObjectValue", - "name": "filter" - } - ], - "concreteType": "NonconformityConnection", - "kind": "LinkedField", - "name": "__NonconformitiesPage_nonconformities_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "NonconformityEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Nonconformity", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "c0f4da1e4b02d401b1db7f8a595d3c49"; - -export default node; diff --git a/apps/console/src/__generated__/core/NonconformitiesPageRefetchQuery.graphql.ts b/apps/console/src/__generated__/core/NonconformitiesPageRefetchQuery.graphql.ts deleted file mode 100644 index 014d026d8..000000000 --- a/apps/console/src/__generated__/core/NonconformitiesPageRefetchQuery.graphql.ts +++ /dev/null @@ -1,370 +0,0 @@ -/** - * @generated SignedSource<<9c59d2a09bb917fed2b6d8f452abbc02>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type NonconformitiesPageRefetchQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; - snapshotId?: string | null | undefined; -}; -export type NonconformitiesPageRefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"NonconformitiesPageFragment">; - }; -}; -export type NonconformitiesPageRefetchQuery = { - response: NonconformitiesPageRefetchQuery$data; - variables: NonconformitiesPageRefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v6 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v7 = { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v10 = [ - (v5/*: any*/), - { - "fields": [ - (v7/*: any*/) - ], - "kind": "ObjectValue", - "name": "filter" - }, - (v6/*: any*/) -], -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "NonconformitiesPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/) - ], - "kind": "FragmentSpread", - "name": "NonconformitiesPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "NonconformitiesPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - (v9/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v10/*: any*/), - "concreteType": "NonconformityConnection", - "kind": "LinkedField", - "name": "nonconformities", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "NonconformityEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Nonconformity", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v9/*: any*/), - (v11/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v9/*: any*/), - (v11/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:delete\")" - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v10/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "NonconformitiesPage_nonconformities", - "kind": "LinkedHandle", - "name": "nonconformities" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "3c586c2b8fe556de552db1ef3f073193", - "id": null, - "metadata": {}, - "name": "NonconformitiesPageRefetchQuery", - "operationKind": "query", - "text": "query NonconformitiesPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...NonconformitiesPageFragment_35e0S5\n id\n }\n}\n\nfragment NonconformitiesPageFragment_35e0S5 on Organization {\n id\n nonconformities(first: $first, after: $after, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n referenceId\n snapshotId\n description\n status\n dueDate\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n canUpdate: permission(action: \"core:nonconformity:update\")\n canDelete: permission(action: \"core:nonconformity:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "c0f4da1e4b02d401b1db7f8a595d3c49"; - -export default node; diff --git a/apps/console/src/__generated__/core/NonconformityGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/NonconformityGraphCreateMutation.graphql.ts deleted file mode 100644 index 31ec6d88d..000000000 --- a/apps/console/src/__generated__/core/NonconformityGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,380 +0,0 @@ -/** - * @generated SignedSource<<1c0b47ff7df79ff30d8f4c3a6138d972>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type NonconformityStatus = "CLOSED" | "IN_PROGRESS" | "OPEN"; -export type CreateNonconformityInput = { - auditId?: string | null | undefined; - correctiveAction?: string | null | undefined; - dateIdentified?: string | null | undefined; - description?: string | null | undefined; - dueDate?: string | null | undefined; - effectivenessCheck?: string | null | undefined; - organizationId: string; - ownerId: string; - referenceId: string; - rootCause: string; - status: NonconformityStatus; -}; -export type NonconformityGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateNonconformityInput; -}; -export type NonconformityGraphCreateMutation$data = { - readonly createNonconformity: { - readonly nonconformityEdge: { - readonly node: { - readonly audit: { - readonly framework: { - readonly name: string; - }; - readonly id: string; - } | null | undefined; - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly dateIdentified: string | null | undefined; - readonly description: string | null | undefined; - readonly dueDate: string | null | undefined; - readonly id: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly referenceId: string; - readonly rootCause: string; - readonly status: NonconformityStatus; - }; - }; - }; -}; -export type NonconformityGraphCreateMutation = { - response: NonconformityGraphCreateMutation$data; - variables: NonconformityGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dateIdentified", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rootCause", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v13 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:update\")" -}, -v14 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "NonconformityGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateNonconformityPayload", - "kind": "LinkedField", - "name": "createNonconformity", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "NonconformityEdge", - "kind": "LinkedField", - "name": "nonconformityEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Nonconformity", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v10/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "NonconformityGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateNonconformityPayload", - "kind": "LinkedField", - "name": "createNonconformity", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "NonconformityEdge", - "kind": "LinkedField", - "name": "nonconformityEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Nonconformity", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v10/*: any*/), - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "nonconformityEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "a6643ead6aba7ef0e9e25dcf889c51e5", - "id": null, - "metadata": {}, - "name": "NonconformityGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation NonconformityGraphCreateMutation(\n $input: CreateNonconformityInput!\n) {\n createNonconformity(input: $input) {\n nonconformityEdge {\n node {\n id\n referenceId\n description\n status\n dateIdentified\n dueDate\n rootCause\n audit {\n id\n framework {\n name\n id\n }\n }\n owner {\n id\n fullName\n }\n createdAt\n canUpdate: permission(action: \"core:nonconformity:update\")\n canDelete: permission(action: \"core:nonconformity:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "198593806928185e34490d5c656e70ca"; - -export default node; diff --git a/apps/console/src/__generated__/core/NonconformityGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/NonconformityGraphDeleteMutation.graphql.ts deleted file mode 100644 index 8363d5eb2..000000000 --- a/apps/console/src/__generated__/core/NonconformityGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<5b430cf79f9527c247a0262d039f9603>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteNonconformityInput = { - nonconformityId: string; -}; -export type NonconformityGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteNonconformityInput; -}; -export type NonconformityGraphDeleteMutation$data = { - readonly deleteNonconformity: { - readonly deletedNonconformityId: string; - }; -}; -export type NonconformityGraphDeleteMutation = { - response: NonconformityGraphDeleteMutation$data; - variables: NonconformityGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedNonconformityId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "NonconformityGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteNonconformityPayload", - "kind": "LinkedField", - "name": "deleteNonconformity", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "NonconformityGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteNonconformityPayload", - "kind": "LinkedField", - "name": "deleteNonconformity", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedNonconformityId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "2e421cc7eb59884d8eeb7b8856f36142", - "id": null, - "metadata": {}, - "name": "NonconformityGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation NonconformityGraphDeleteMutation(\n $input: DeleteNonconformityInput!\n) {\n deleteNonconformity(input: $input) {\n deletedNonconformityId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d9d2303a4235301061e976771043d18a"; - -export default node; diff --git a/apps/console/src/__generated__/core/NonconformityGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/NonconformityGraphListQuery.graphql.ts deleted file mode 100644 index cb489444e..000000000 --- a/apps/console/src/__generated__/core/NonconformityGraphListQuery.graphql.ts +++ /dev/null @@ -1,362 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type NonconformityGraphListQuery$variables = { - organizationId: string; - snapshotId?: string | null | undefined; -}; -export type NonconformityGraphListQuery$data = { - readonly node: { - readonly canCreateNonconformity?: boolean; - readonly " $fragmentSpreads": FragmentRefs<"NonconformitiesPageFragment">; - }; -}; -export type NonconformityGraphListQuery = { - response: NonconformityGraphListQuery$data; - variables: NonconformityGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canCreateNonconformity", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:create\")" -}, -v3 = [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } -], -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v6 = [ - { - "fields": (v3/*: any*/), - "kind": "ObjectValue", - "name": "filter" - }, - { - "kind": "Literal", - "name": "first", - "value": 10 - } -], -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "NonconformityGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "args": (v3/*: any*/), - "kind": "FragmentSpread", - "name": "NonconformitiesPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "NonconformityGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - (v5/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "NonconformityConnection", - "kind": "LinkedField", - "name": "nonconformities", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "NonconformityEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Nonconformity", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v5/*: any*/), - (v7/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v5/*: any*/), - (v7/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:delete\")" - }, - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v6/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "NonconformitiesPage_nonconformities", - "kind": "LinkedHandle", - "name": "nonconformities" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "ae2203e6e89bab79f1e9a38ab95f8576", - "id": null, - "metadata": {}, - "name": "NonconformityGraphListQuery", - "operationKind": "query", - "text": "query NonconformityGraphListQuery(\n $organizationId: ID!\n $snapshotId: ID\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateNonconformity: permission(action: \"core:nonconformity:create\")\n ...NonconformitiesPageFragment_3iomuz\n }\n id\n }\n}\n\nfragment NonconformitiesPageFragment_3iomuz on Organization {\n id\n nonconformities(first: 10, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n referenceId\n snapshotId\n description\n status\n dueDate\n audit {\n id\n name\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n canUpdate: permission(action: \"core:nonconformity:update\")\n canDelete: permission(action: \"core:nonconformity:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "535dfc28b086e0f5a0ffb2f40cac2d89"; - -export default node; diff --git a/apps/console/src/__generated__/core/NonconformityGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/NonconformityGraphNodeQuery.graphql.ts deleted file mode 100644 index 6a5bcdd97..000000000 --- a/apps/console/src/__generated__/core/NonconformityGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,349 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type NonconformityStatus = "CLOSED" | "IN_PROGRESS" | "OPEN"; -export type NonconformityGraphNodeQuery$variables = { - nonconformityId: string; -}; -export type NonconformityGraphNodeQuery$data = { - readonly node: { - readonly audit?: { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - } | null | undefined; - readonly canDelete?: boolean; - readonly canUpdate?: boolean; - readonly correctiveAction?: string | null | undefined; - readonly createdAt?: string; - readonly dateIdentified?: string | null | undefined; - readonly description?: string | null | undefined; - readonly dueDate?: string | null | undefined; - readonly effectivenessCheck?: string | null | undefined; - readonly id?: string; - readonly organization?: { - readonly id: string; - readonly name: string; - }; - readonly owner?: { - readonly fullName: string; - readonly id: string; - }; - readonly referenceId?: string; - readonly rootCause?: string; - readonly snapshotId?: string | null | undefined; - readonly status?: NonconformityStatus; - readonly updatedAt?: string; - }; -}; -export type NonconformityGraphNodeQuery = { - response: NonconformityGraphNodeQuery$data; - variables: NonconformityGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "nonconformityId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "nonconformityId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dateIdentified", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rootCause", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "correctiveAction", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "effectivenessCheck", - "storageKey": null -}, -v12 = [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } -], -v13 = { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": (v12/*: any*/), - "storageKey": null - } - ], - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null -}, -v15 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": (v12/*: any*/), - "storageKey": null -}, -v16 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v17 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v18 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:update\")" -}, -v19 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "NonconformityGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/), - (v17/*: any*/), - (v18/*: any*/), - (v19/*: any*/) - ], - "type": "Nonconformity", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "NonconformityGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/), - (v17/*: any*/), - (v18/*: any*/), - (v19/*: any*/) - ], - "type": "Nonconformity", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f917aa1ad5d7628a6193743a18c9aab9", - "id": null, - "metadata": {}, - "name": "NonconformityGraphNodeQuery", - "operationKind": "query", - "text": "query NonconformityGraphNodeQuery(\n $nonconformityId: ID!\n) {\n node(id: $nonconformityId) {\n __typename\n ... on Nonconformity {\n id\n snapshotId\n referenceId\n description\n dateIdentified\n rootCause\n correctiveAction\n dueDate\n status\n effectivenessCheck\n audit {\n id\n framework {\n id\n name\n }\n }\n owner {\n id\n fullName\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:nonconformity:update\")\n canDelete: permission(action: \"core:nonconformity:delete\")\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "6d1ecfb7df432a591c7e16461842796d"; - -export default node; diff --git a/apps/console/src/__generated__/core/NonconformityGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/NonconformityGraphUpdateMutation.graphql.ts deleted file mode 100644 index a2ddc14f1..000000000 --- a/apps/console/src/__generated__/core/NonconformityGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,250 +0,0 @@ -/** - * @generated SignedSource<<86c2716d4118ff957765ad2e0577fb05>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type NonconformityStatus = "CLOSED" | "IN_PROGRESS" | "OPEN"; -export type UpdateNonconformityInput = { - auditId?: string | null | undefined; - correctiveAction?: string | null | undefined; - dateIdentified?: string | null | undefined; - description?: string | null | undefined; - dueDate?: string | null | undefined; - effectivenessCheck?: string | null | undefined; - id: string; - ownerId?: string | null | undefined; - referenceId?: string | null | undefined; - rootCause?: string | null | undefined; - status?: NonconformityStatus | null | undefined; -}; -export type NonconformityGraphUpdateMutation$variables = { - input: UpdateNonconformityInput; -}; -export type NonconformityGraphUpdateMutation$data = { - readonly updateNonconformity: { - readonly nonconformity: { - readonly audit: { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - } | null | undefined; - readonly correctiveAction: string | null | undefined; - readonly dateIdentified: string | null | undefined; - readonly description: string | null | undefined; - readonly dueDate: string | null | undefined; - readonly effectivenessCheck: string | null | undefined; - readonly id: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly referenceId: string; - readonly rootCause: string; - readonly status: NonconformityStatus; - readonly updatedAt: string; - }; - }; -}; -export type NonconformityGraphUpdateMutation = { - response: NonconformityGraphUpdateMutation$data; - variables: NonconformityGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateNonconformityPayload", - "kind": "LinkedField", - "name": "updateNonconformity", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Nonconformity", - "kind": "LinkedField", - "name": "nonconformity", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "referenceId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dateIdentified", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rootCause", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "correctiveAction", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "effectivenessCheck", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "NonconformityGraphUpdateMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "NonconformityGraphUpdateMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "db365ab97fb067ad2e9b1daa68f64ed9", - "id": null, - "metadata": {}, - "name": "NonconformityGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation NonconformityGraphUpdateMutation(\n $input: UpdateNonconformityInput!\n) {\n updateNonconformity(input: $input) {\n nonconformity {\n id\n referenceId\n description\n dateIdentified\n rootCause\n correctiveAction\n dueDate\n status\n effectivenessCheck\n owner {\n id\n fullName\n }\n audit {\n id\n framework {\n id\n name\n }\n }\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "5803de6f6f017148cca1e3066a6b3967"; - -export default node; diff --git a/apps/console/src/__generated__/core/ObligationGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/ObligationGraphCreateMutation.graphql.ts deleted file mode 100644 index 34fc7c358..000000000 --- a/apps/console/src/__generated__/core/ObligationGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,302 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ObligationStatus = "COMPLIANT" | "NON_COMPLIANT" | "PARTIALLY_COMPLIANT"; -export type ObligationType = "CONTRACTUAL" | "LEGAL"; -export type CreateObligationInput = { - actionsToBeImplemented?: string | null | undefined; - area?: string | null | undefined; - dueDate?: string | null | undefined; - lastReviewDate?: string | null | undefined; - organizationId: string; - ownerId: string; - regulator?: string | null | undefined; - requirement?: string | null | undefined; - source?: string | null | undefined; - status: ObligationStatus; - type: ObligationType; -}; -export type ObligationGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateObligationInput; -}; -export type ObligationGraphCreateMutation$data = { - readonly createObligation: { - readonly obligationEdge: { - readonly node: { - readonly actionsToBeImplemented: string | null | undefined; - readonly area: string | null | undefined; - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly dueDate: string | null | undefined; - readonly id: string; - readonly lastReviewDate: string | null | undefined; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly regulator: string | null | undefined; - readonly requirement: string | null | undefined; - readonly source: string | null | undefined; - readonly status: ObligationStatus; - readonly type: ObligationType; - }; - }; - }; -}; -export type ObligationGraphCreateMutation = { - response: ObligationGraphCreateMutation$data; - variables: ObligationGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "obligationEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requirement", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "actionsToBeImplemented", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "regulator", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastReviewDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ObligationGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateObligationPayload", - "kind": "LinkedField", - "name": "createObligation", - "plural": false, - "selections": [ - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "ObligationGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateObligationPayload", - "kind": "LinkedField", - "name": "createObligation", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "obligationEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "07c56edca205672276a394e621181187", - "id": null, - "metadata": {}, - "name": "ObligationGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation ObligationGraphCreateMutation(\n $input: CreateObligationInput!\n) {\n createObligation(input: $input) {\n obligationEdge {\n node {\n id\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n type\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n createdAt\n canUpdate: permission(action: \"core:obligation:update\")\n canDelete: permission(action: \"core:obligation:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "c4ab18948e2f118f433530ba3be77bda"; - -export default node; diff --git a/apps/console/src/__generated__/core/ObligationGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/ObligationGraphDeleteMutation.graphql.ts deleted file mode 100644 index 4e6d430c7..000000000 --- a/apps/console/src/__generated__/core/ObligationGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<0966beeae022283847f20f63c3303ee2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteObligationInput = { - obligationId: string; -}; -export type ObligationGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteObligationInput; -}; -export type ObligationGraphDeleteMutation$data = { - readonly deleteObligation: { - readonly deletedObligationId: string; - }; -}; -export type ObligationGraphDeleteMutation = { - response: ObligationGraphDeleteMutation$data; - variables: ObligationGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedObligationId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ObligationGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteObligationPayload", - "kind": "LinkedField", - "name": "deleteObligation", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "ObligationGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteObligationPayload", - "kind": "LinkedField", - "name": "deleteObligation", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedObligationId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "d54295be0ffd5722cf2e5408a62be33d", - "id": null, - "metadata": {}, - "name": "ObligationGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation ObligationGraphDeleteMutation(\n $input: DeleteObligationInput!\n) {\n deleteObligation(input: $input) {\n deletedObligationId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "224562b4db5e07b2a11aebda97cd0732"; - -export default node; diff --git a/apps/console/src/__generated__/core/ObligationGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/ObligationGraphListQuery.graphql.ts deleted file mode 100644 index ba071a078..000000000 --- a/apps/console/src/__generated__/core/ObligationGraphListQuery.graphql.ts +++ /dev/null @@ -1,341 +0,0 @@ -/** - * @generated SignedSource<<3780718a9da1bdb1cf27000070c5543e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ObligationGraphListQuery$variables = { - organizationId: string; - snapshotId?: string | null | undefined; -}; -export type ObligationGraphListQuery$data = { - readonly node: { - readonly canCreateObligation?: boolean; - readonly " $fragmentSpreads": FragmentRefs<"ObligationsPageFragment">; - }; -}; -export type ObligationGraphListQuery = { - response: ObligationGraphListQuery$data; - variables: ObligationGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canCreateObligation", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:create\")" -}, -v3 = [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } -], -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v6 = [ - { - "fields": (v3/*: any*/), - "kind": "ObjectValue", - "name": "filter" - }, - { - "kind": "Literal", - "name": "first", - "value": 10 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ObligationGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "args": (v3/*: any*/), - "kind": "FragmentSpread", - "name": "ObligationsPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ObligationGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - (v5/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "obligations", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:delete\")" - }, - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v6/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "ObligationsPage_obligations", - "kind": "LinkedHandle", - "name": "obligations" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "4dc8e19697e49e3ee90b5c8c987db739", - "id": null, - "metadata": {}, - "name": "ObligationGraphListQuery", - "operationKind": "query", - "text": "query ObligationGraphListQuery(\n $organizationId: ID!\n $snapshotId: ID\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateObligation: permission(action: \"core:obligation:create\")\n ...ObligationsPageFragment_3iomuz\n }\n id\n }\n}\n\nfragment ObligationsPageFragment_3iomuz on Organization {\n id\n obligations(first: 10, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n area\n source\n status\n dueDate\n owner {\n id\n fullName\n }\n canUpdate: permission(action: \"core:obligation:update\")\n canDelete: permission(action: \"core:obligation:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a17041086fd110cccb96aab8026d2b4b"; - -export default node; diff --git a/apps/console/src/__generated__/core/ObligationGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/ObligationGraphNodeQuery.graphql.ts deleted file mode 100644 index 028ebc414..000000000 --- a/apps/console/src/__generated__/core/ObligationGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,338 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ObligationStatus = "COMPLIANT" | "NON_COMPLIANT" | "PARTIALLY_COMPLIANT"; -export type ObligationType = "CONTRACTUAL" | "LEGAL"; -export type ObligationGraphNodeQuery$variables = { - obligationId: string; -}; -export type ObligationGraphNodeQuery$data = { - readonly node: { - readonly actionsToBeImplemented?: string | null | undefined; - readonly area?: string | null | undefined; - readonly canDelete?: boolean; - readonly canUpdate?: boolean; - readonly createdAt?: string; - readonly dueDate?: string | null | undefined; - readonly id?: string; - readonly lastReviewDate?: string | null | undefined; - readonly organization?: { - readonly id: string; - readonly name: string; - }; - readonly owner?: { - readonly fullName: string; - readonly id: string; - }; - readonly regulator?: string | null | undefined; - readonly requirement?: string | null | undefined; - readonly snapshotId?: string | null | undefined; - readonly source?: string | null | undefined; - readonly sourceId?: string | null | undefined; - readonly status?: ObligationStatus; - readonly type?: ObligationType; - readonly updatedAt?: string; - }; -}; -export type ObligationGraphNodeQuery = { - response: ObligationGraphNodeQuery$data; - variables: ObligationGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "obligationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "obligationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sourceId", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requirement", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "actionsToBeImplemented", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "regulator", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastReviewDate", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null -}, -v15 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null -}, -v16 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v17 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v18 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:update\")" -}, -v19 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ObligationGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/), - (v17/*: any*/), - (v18/*: any*/), - (v19/*: any*/) - ], - "type": "Obligation", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ObligationGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/), - (v17/*: any*/), - (v18/*: any*/), - (v19/*: any*/) - ], - "type": "Obligation", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "0be8ac1fa76f737698c91c6a8e6cf15b", - "id": null, - "metadata": {}, - "name": "ObligationGraphNodeQuery", - "operationKind": "query", - "text": "query ObligationGraphNodeQuery(\n $obligationId: ID!\n) {\n node(id: $obligationId) {\n __typename\n ... on Obligation {\n id\n snapshotId\n sourceId\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n type\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:obligation:update\")\n canDelete: permission(action: \"core:obligation:delete\")\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "6587fcee3deaaec8581e5f495b1edadc"; - -export default node; diff --git a/apps/console/src/__generated__/core/ObligationGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/ObligationGraphUpdateMutation.graphql.ts deleted file mode 100644 index 114ceb599..000000000 --- a/apps/console/src/__generated__/core/ObligationGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,221 +0,0 @@ -/** - * @generated SignedSource<<0ef675f01e4aafdf896e61b3692f153b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ObligationStatus = "COMPLIANT" | "NON_COMPLIANT" | "PARTIALLY_COMPLIANT"; -export type ObligationType = "CONTRACTUAL" | "LEGAL"; -export type UpdateObligationInput = { - actionsToBeImplemented?: string | null | undefined; - area?: string | null | undefined; - dueDate?: string | null | undefined; - id: string; - lastReviewDate?: string | null | undefined; - ownerId?: string | null | undefined; - regulator?: string | null | undefined; - requirement?: string | null | undefined; - source?: string | null | undefined; - status?: ObligationStatus | null | undefined; - type?: ObligationType | null | undefined; -}; -export type ObligationGraphUpdateMutation$variables = { - input: UpdateObligationInput; -}; -export type ObligationGraphUpdateMutation$data = { - readonly updateObligation: { - readonly obligation: { - readonly actionsToBeImplemented: string | null | undefined; - readonly area: string | null | undefined; - readonly dueDate: string | null | undefined; - readonly id: string; - readonly lastReviewDate: string | null | undefined; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly regulator: string | null | undefined; - readonly requirement: string | null | undefined; - readonly source: string | null | undefined; - readonly status: ObligationStatus; - readonly type: ObligationType; - readonly updatedAt: string; - }; - }; -}; -export type ObligationGraphUpdateMutation = { - response: ObligationGraphUpdateMutation$data; - variables: ObligationGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateObligationPayload", - "kind": "LinkedField", - "name": "updateObligation", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "obligation", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requirement", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "actionsToBeImplemented", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "regulator", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastReviewDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ObligationGraphUpdateMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ObligationGraphUpdateMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "f9c2c73fd39c2d25eb6aa8d9e6670652", - "id": null, - "metadata": {}, - "name": "ObligationGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation ObligationGraphUpdateMutation(\n $input: UpdateObligationInput!\n) {\n updateObligation(input: $input) {\n obligation {\n id\n area\n source\n requirement\n actionsToBeImplemented\n regulator\n type\n lastReviewDate\n dueDate\n status\n owner {\n id\n fullName\n }\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "07663daac0c8341a570a0bf3a41c8b77"; - -export default node; diff --git a/apps/console/src/__generated__/core/ObligationsPageFragment.graphql.ts b/apps/console/src/__generated__/core/ObligationsPageFragment.graphql.ts deleted file mode 100644 index 7c3cb0346..000000000 --- a/apps/console/src/__generated__/core/ObligationsPageFragment.graphql.ts +++ /dev/null @@ -1,294 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type ObligationStatus = "COMPLIANT" | "NON_COMPLIANT" | "PARTIALLY_COMPLIANT"; -import { FragmentRefs } from "relay-runtime"; -export type ObligationsPageFragment$data = { - readonly id: string; - readonly obligations: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly area: string | null | undefined; - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly dueDate: string | null | undefined; - readonly id: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly snapshotId: string | null | undefined; - readonly source: string | null | undefined; - readonly status: ObligationStatus; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - }; - readonly " $fragmentType": "ObligationsPageFragment"; -}; -export type ObligationsPageFragment$key = { - readonly " $data"?: ObligationsPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"ObligationsPageFragment">; -}; - -import ObligationsPageRefetchQuery_graphql from './ObligationsPageRefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "obligations" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": ObligationsPageRefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "ObligationsPageFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "obligations", - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } - ], - "kind": "ObjectValue", - "name": "filter" - } - ], - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "__ObligationsPage_obligations_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "2c1bd9bad38a69ae4fcfe5a3ceb90536"; - -export default node; diff --git a/apps/console/src/__generated__/core/ObligationsPageRefetchQuery.graphql.ts b/apps/console/src/__generated__/core/ObligationsPageRefetchQuery.graphql.ts deleted file mode 100644 index 05bf2afc6..000000000 --- a/apps/console/src/__generated__/core/ObligationsPageRefetchQuery.graphql.ts +++ /dev/null @@ -1,349 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ObligationsPageRefetchQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; - snapshotId?: string | null | undefined; -}; -export type ObligationsPageRefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"ObligationsPageFragment">; - }; -}; -export type ObligationsPageRefetchQuery = { - response: ObligationsPageRefetchQuery$data; - variables: ObligationsPageRefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v6 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v7 = { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v10 = [ - (v5/*: any*/), - { - "fields": [ - (v7/*: any*/) - ], - "kind": "ObjectValue", - "name": "filter" - }, - (v6/*: any*/) -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ObligationsPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/) - ], - "kind": "FragmentSpread", - "name": "ObligationsPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "ObligationsPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - (v9/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v10/*: any*/), - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "obligations", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dueDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:delete\")" - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v10/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "ObligationsPage_obligations", - "kind": "LinkedHandle", - "name": "obligations" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "eecd7c8215f1ef55517653b02ef8618f", - "id": null, - "metadata": {}, - "name": "ObligationsPageRefetchQuery", - "operationKind": "query", - "text": "query ObligationsPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ObligationsPageFragment_35e0S5\n id\n }\n}\n\nfragment ObligationsPageFragment_35e0S5 on Organization {\n id\n obligations(first: $first, after: $after, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n area\n source\n status\n dueDate\n owner {\n id\n fullName\n }\n canUpdate: permission(action: \"core:obligation:update\")\n canDelete: permission(action: \"core:obligation:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "2c1bd9bad38a69ae4fcfe5a3ceb90536"; - -export default node; diff --git a/apps/console/src/__generated__/core/PeopleGraphPaginatedFragment.graphql.ts b/apps/console/src/__generated__/core/PeopleGraphPaginatedFragment.graphql.ts deleted file mode 100644 index e9feac704..000000000 --- a/apps/console/src/__generated__/core/PeopleGraphPaginatedFragment.graphql.ts +++ /dev/null @@ -1,330 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type PeopleGraphPaginatedFragment$data = { - readonly canCreatePeople: boolean; - readonly id: string; - readonly profiles: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly additionalEmailAddresses: ReadonlyArray; - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly contractEndDate: string | null | undefined; - readonly contractStartDate: string | null | undefined; - readonly emailAddress: string; - readonly fullName: string; - readonly id: string; - readonly kind: string | null | undefined; - readonly position: string | null | undefined; - }; - }>; - }; - readonly " $fragmentType": "PeopleGraphPaginatedFragment"; -}; -export type PeopleGraphPaginatedFragment$key = { - readonly " $data"?: PeopleGraphPaginatedFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"PeopleGraphPaginatedFragment">; -}; - -import PeopleListQuery_graphql from './PeopleListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "profiles" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": { - "direction": "ASC", - "field": "FULL_NAME" - }, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": PeopleListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "PeopleGraphPaginatedFragment", - "selections": [ - { - "alias": "canCreatePeople", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:create\")" - }, - { - "alias": "profiles", - "args": [ - { - "kind": "Variable", - "name": "filter", - "variableName": "filter" - }, - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "__PeopleGraphPaginatedQuery_profiles_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "kind", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "position", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "additionalEmailAddresses", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractStartDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractEndDate", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:delete\")" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:update\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "00fc3c290ab8526c36804176a79760ca"; - -export default node; diff --git a/apps/console/src/__generated__/core/PeopleGraphPaginatedQuery.graphql.ts b/apps/console/src/__generated__/core/PeopleGraphPaginatedQuery.graphql.ts deleted file mode 100644 index c7bedad7f..000000000 --- a/apps/console/src/__generated__/core/PeopleGraphPaginatedQuery.graphql.ts +++ /dev/null @@ -1,340 +0,0 @@ -/** - * @generated SignedSource<<7ad30234c2f4974391fdf96dc5647c1a>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type PeopleGraphPaginatedQuery$variables = { - organizationId: string; -}; -export type PeopleGraphPaginatedQuery$data = { - readonly organization: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"PeopleGraphPaginatedFragment">; - }; -}; -export type PeopleGraphPaginatedQuery = { - response: PeopleGraphPaginatedQuery$data; - variables: PeopleGraphPaginatedQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 50 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "FULL_NAME" - } - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "PeopleGraphPaginatedQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "PeopleGraphPaginatedFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "PeopleGraphPaginatedQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canCreatePeople", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:create\")" - }, - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "profiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "kind", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "position", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "additionalEmailAddresses", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractStartDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractEndDate", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:delete\")" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:update\")" - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "profiles(first:50,orderBy:{\"direction\":\"ASC\",\"field\":\"FULL_NAME\"})" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "PeopleGraphPaginatedQuery_profiles", - "kind": "LinkedHandle", - "name": "profiles" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "aa4bd0870eec87b1f2abc4d5e4569c81", - "id": null, - "metadata": {}, - "name": "PeopleGraphPaginatedQuery", - "operationKind": "query", - "text": "query PeopleGraphPaginatedQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n ...PeopleGraphPaginatedFragment\n }\n }\n}\n\nfragment PeopleGraphPaginatedFragment on Organization {\n canCreatePeople: permission(action: \"iam:membership-profile:create\")\n profiles(first: 50, orderBy: {direction: ASC, field: FULL_NAME}) {\n edges {\n node {\n id\n fullName\n emailAddress\n kind\n position\n additionalEmailAddresses\n contractStartDate\n contractEndDate\n canDelete: permission(action: \"iam:membership-profile:delete\")\n canUpdate: permission(action: \"iam:membership-profile:update\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "b041fe4775cf12f965d81f243549cab0"; - -export default node; diff --git a/apps/console/src/__generated__/core/PeopleGraphQuery.graphql.ts b/apps/console/src/__generated__/core/PeopleGraphQuery.graphql.ts deleted file mode 100644 index ff114592e..000000000 --- a/apps/console/src/__generated__/core/PeopleGraphQuery.graphql.ts +++ /dev/null @@ -1,206 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ProfileFilter = { - excludeContractEnded?: boolean | null | undefined; -}; -export type PeopleGraphQuery$variables = { - filter?: ProfileFilter | null | undefined; - organizationId: string; -}; -export type PeopleGraphQuery$data = { - readonly organization: { - readonly profiles?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly emailAddress: string; - readonly fullName: string; - readonly id: string; - }; - }>; - }; - }; -}; -export type PeopleGraphQuery = { - response: PeopleGraphQuery$data; - variables: PeopleGraphQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" -}, -v2 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "filter", - "variableName": "filter" - }, - { - "kind": "Literal", - "name": "first", - "value": 1000 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "FULL_NAME" - } - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "profiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "PeopleGraphQuery", - "selections": [ - { - "alias": "organization", - "args": (v2/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "PeopleGraphQuery", - "selections": [ - { - "alias": "organization", - "args": (v2/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v4/*: any*/), - (v3/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "b29f98c795b6aeaa982838ebf8084b88", - "id": null, - "metadata": {}, - "name": "PeopleGraphQuery", - "operationKind": "query", - "text": "query PeopleGraphQuery(\n $organizationId: ID!\n $filter: ProfileFilter\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n profiles(first: 1000, orderBy: {direction: ASC, field: FULL_NAME}, filter: $filter) {\n edges {\n node {\n id\n fullName\n emailAddress\n }\n }\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "412bb20f434c241e6aa675b6afa409f6"; - -export default node; diff --git a/apps/console/src/__generated__/core/PeopleListQuery.graphql.ts b/apps/console/src/__generated__/core/PeopleListQuery.graphql.ts deleted file mode 100644 index 436ec5b3b..000000000 --- a/apps/console/src/__generated__/core/PeopleListQuery.graphql.ts +++ /dev/null @@ -1,426 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type ProfileOrderField = "CREATED_AT" | "FULL_NAME" | "KIND"; -export type ProfileFilter = { - excludeContractEnded?: boolean | null | undefined; -}; -export type ProfileOrder = { - direction: OrderDirection; - field: ProfileOrderField; -}; -export type PeopleListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - filter?: ProfileFilter | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: ProfileOrder | null | undefined; -}; -export type PeopleListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"PeopleGraphPaginatedFragment">; - }; -}; -export type PeopleListQuery = { - response: PeopleListQuery$data; - variables: PeopleListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" -}, -v3 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v6 = { - "defaultValue": { - "direction": "ASC", - "field": "FULL_NAME" - }, - "kind": "LocalArgument", - "name": "order" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v8 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v9 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v10 = { - "kind": "Variable", - "name": "filter", - "variableName": "filter" -}, -v11 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v12 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v15 = [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "PeopleListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "PeopleGraphPaginatedFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v4/*: any*/) - ], - "kind": "Operation", - "name": "PeopleListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v13/*: any*/), - (v14/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canCreatePeople", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:create\")" - }, - { - "alias": null, - "args": (v15/*: any*/), - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "profiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "kind", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "position", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "additionalEmailAddresses", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractStartDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractEndDate", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:delete\")" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:update\")" - }, - (v13/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v15/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "PeopleGraphPaginatedQuery_profiles", - "kind": "LinkedHandle", - "name": "profiles" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "df38c9b5774c0ef76d632a4bc810b676", - "id": null, - "metadata": {}, - "name": "PeopleListQuery", - "operationKind": "query", - "text": "query PeopleListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $filter: ProfileFilter = null\n $first: Int = 50\n $last: Int = null\n $order: ProfileOrder = {direction: ASC, field: FULL_NAME}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...PeopleGraphPaginatedFragment_4cFWzS\n id\n }\n}\n\nfragment PeopleGraphPaginatedFragment_4cFWzS on Organization {\n canCreatePeople: permission(action: \"iam:membership-profile:create\")\n profiles(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: $filter) {\n edges {\n node {\n id\n fullName\n emailAddress\n kind\n position\n additionalEmailAddresses\n contractStartDate\n contractEndDate\n canDelete: permission(action: \"iam:membership-profile:delete\")\n canUpdate: permission(action: \"iam:membership-profile:update\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "00fc3c290ab8526c36804176a79760ca"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivitiesPageDPIAFragment.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivitiesPageDPIAFragment.graphql.ts deleted file mode 100644 index f2961f124..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivitiesPageDPIAFragment.graphql.ts +++ /dev/null @@ -1,237 +0,0 @@ -/** - * @generated SignedSource<<9d5a355f9cf2823a2fb57eff82ebb183>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DataProtectionImpactAssessmentResidualRisk = "HIGH" | "LOW" | "MEDIUM"; -import { FragmentRefs } from "relay-runtime"; -export type ProcessingActivitiesPageDPIAFragment$data = { - readonly dataProtectionImpactAssessments: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly description: string | null | undefined; - readonly id: string; - readonly potentialRisk: string | null | undefined; - readonly processingActivity: { - readonly id: string; - readonly name: string; - }; - readonly residualRisk: DataProtectionImpactAssessmentResidualRisk | null | undefined; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - }; - readonly id: string; - readonly " $fragmentType": "ProcessingActivitiesPageDPIAFragment"; -}; -export type ProcessingActivitiesPageDPIAFragment$key = { - readonly " $data"?: ProcessingActivitiesPageDPIAFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"ProcessingActivitiesPageDPIAFragment">; -}; - -import ProcessingActivitiesPageDPIARefetchQuery_graphql from './ProcessingActivitiesPageDPIARefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "dataProtectionImpactAssessments" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": ProcessingActivitiesPageDPIARefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "ProcessingActivitiesPageDPIAFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "dataProtectionImpactAssessments", - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } - ], - "kind": "ObjectValue", - "name": "filter" - } - ], - "concreteType": "DataProtectionImpactAssessmentConnection", - "kind": "LinkedField", - "name": "__ProcessingActivitiesPage_dataProtectionImpactAssessments_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DataProtectionImpactAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DataProtectionImpactAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "potentialRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "processingActivity", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "8a22db18441552dab58f4f0defabca6a"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivitiesPageDPIARefetchQuery.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivitiesPageDPIARefetchQuery.graphql.ts deleted file mode 100644 index 849cb0094..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivitiesPageDPIARefetchQuery.graphql.ts +++ /dev/null @@ -1,297 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ProcessingActivitiesPageDPIARefetchQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; - snapshotId?: string | null | undefined; -}; -export type ProcessingActivitiesPageDPIARefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"ProcessingActivitiesPageDPIAFragment">; - }; -}; -export type ProcessingActivitiesPageDPIARefetchQuery = { - response: ProcessingActivitiesPageDPIARefetchQuery$data; - variables: ProcessingActivitiesPageDPIARefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v6 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v7 = { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v10 = [ - (v5/*: any*/), - { - "fields": [ - (v7/*: any*/) - ], - "kind": "ObjectValue", - "name": "filter" - }, - (v6/*: any*/) -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivitiesPageDPIARefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/) - ], - "kind": "FragmentSpread", - "name": "ProcessingActivitiesPageDPIAFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "ProcessingActivitiesPageDPIARefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - (v9/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v10/*: any*/), - "concreteType": "DataProtectionImpactAssessmentConnection", - "kind": "LinkedField", - "name": "dataProtectionImpactAssessments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DataProtectionImpactAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DataProtectionImpactAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "potentialRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "processingActivity", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v10/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "ProcessingActivitiesPage_dataProtectionImpactAssessments", - "kind": "LinkedHandle", - "name": "dataProtectionImpactAssessments" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "16493e9fec1c43f1a1ea2023dd5a19b6", - "id": null, - "metadata": {}, - "name": "ProcessingActivitiesPageDPIARefetchQuery", - "operationKind": "query", - "text": "query ProcessingActivitiesPageDPIARefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ProcessingActivitiesPageDPIAFragment_35e0S5\n id\n }\n}\n\nfragment ProcessingActivitiesPageDPIAFragment_35e0S5 on Organization {\n id\n dataProtectionImpactAssessments(first: $first, after: $after, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n description\n potentialRisk\n residualRisk\n processingActivity {\n id\n name\n }\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "8a22db18441552dab58f4f0defabca6a"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivitiesPageExportDPIAPDFMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivitiesPageExportDPIAPDFMutation.graphql.ts deleted file mode 100644 index ce85042bb..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivitiesPageExportDPIAPDFMutation.graphql.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * @generated SignedSource<<2f43f6874d8b6d515cf244934b7b19ea>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ExportDataProtectionImpactAssessmentsPDFInput = { - filter?: DataProtectionImpactAssessmentFilter | null | undefined; - organizationId: string; -}; -export type DataProtectionImpactAssessmentFilter = { - snapshotId?: string | null | undefined; -}; -export type ProcessingActivitiesPageExportDPIAPDFMutation$variables = { - input: ExportDataProtectionImpactAssessmentsPDFInput; -}; -export type ProcessingActivitiesPageExportDPIAPDFMutation$data = { - readonly exportDataProtectionImpactAssessmentsPDF: { - readonly data: string; - }; -}; -export type ProcessingActivitiesPageExportDPIAPDFMutation = { - response: ProcessingActivitiesPageExportDPIAPDFMutation$data; - variables: ProcessingActivitiesPageExportDPIAPDFMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ExportDataProtectionImpactAssessmentsPDFPayload", - "kind": "LinkedField", - "name": "exportDataProtectionImpactAssessmentsPDF", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "data", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivitiesPageExportDPIAPDFMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivitiesPageExportDPIAPDFMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "851a1c0def7719185cf3a67954696231", - "id": null, - "metadata": {}, - "name": "ProcessingActivitiesPageExportDPIAPDFMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivitiesPageExportDPIAPDFMutation(\n $input: ExportDataProtectionImpactAssessmentsPDFInput!\n) {\n exportDataProtectionImpactAssessmentsPDF(input: $input) {\n data\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3c2a96fb29c61791e7df39c7b8174c90"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivitiesPageExportPDFMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivitiesPageExportPDFMutation.graphql.ts deleted file mode 100644 index a29c6936a..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivitiesPageExportPDFMutation.graphql.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * @generated SignedSource<<82ece1ab5e9585bfcce605e38fe9563a>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ExportProcessingActivitiesPDFInput = { - filter?: ProcessingActivityFilter | null | undefined; - organizationId: string; -}; -export type ProcessingActivityFilter = { - snapshotId?: string | null | undefined; -}; -export type ProcessingActivitiesPageExportPDFMutation$variables = { - input: ExportProcessingActivitiesPDFInput; -}; -export type ProcessingActivitiesPageExportPDFMutation$data = { - readonly exportProcessingActivitiesPDF: { - readonly data: string; - }; -}; -export type ProcessingActivitiesPageExportPDFMutation = { - response: ProcessingActivitiesPageExportPDFMutation$data; - variables: ProcessingActivitiesPageExportPDFMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ExportProcessingActivitiesPDFPayload", - "kind": "LinkedField", - "name": "exportProcessingActivitiesPDF", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "data", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivitiesPageExportPDFMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivitiesPageExportPDFMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "85140bef5e55c8ae4fdb139965375f13", - "id": null, - "metadata": {}, - "name": "ProcessingActivitiesPageExportPDFMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivitiesPageExportPDFMutation(\n $input: ExportProcessingActivitiesPDFInput!\n) {\n exportProcessingActivitiesPDF(input: $input) {\n data\n }\n}\n" - } -}; -})(); - -(node as any).hash = "cc777bb4440f6aed36c2fb92c1bc7e0b"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivitiesPageExportTIAPDFMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivitiesPageExportTIAPDFMutation.graphql.ts deleted file mode 100644 index d40e9f622..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivitiesPageExportTIAPDFMutation.graphql.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ExportTransferImpactAssessmentsPDFInput = { - filter?: TransferImpactAssessmentFilter | null | undefined; - organizationId: string; -}; -export type TransferImpactAssessmentFilter = { - snapshotId?: string | null | undefined; -}; -export type ProcessingActivitiesPageExportTIAPDFMutation$variables = { - input: ExportTransferImpactAssessmentsPDFInput; -}; -export type ProcessingActivitiesPageExportTIAPDFMutation$data = { - readonly exportTransferImpactAssessmentsPDF: { - readonly data: string; - }; -}; -export type ProcessingActivitiesPageExportTIAPDFMutation = { - response: ProcessingActivitiesPageExportTIAPDFMutation$data; - variables: ProcessingActivitiesPageExportTIAPDFMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ExportTransferImpactAssessmentsPDFPayload", - "kind": "LinkedField", - "name": "exportTransferImpactAssessmentsPDF", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "data", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivitiesPageExportTIAPDFMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivitiesPageExportTIAPDFMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "b41ab5f56ee5dc4436069c4e2a97f8d8", - "id": null, - "metadata": {}, - "name": "ProcessingActivitiesPageExportTIAPDFMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivitiesPageExportTIAPDFMutation(\n $input: ExportTransferImpactAssessmentsPDFInput!\n) {\n exportTransferImpactAssessmentsPDF(input: $input) {\n data\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3fe289d5564d0617074825d8c58f88f8"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivitiesPageFragment.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivitiesPageFragment.graphql.ts deleted file mode 100644 index aba6d0ef7..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivitiesPageFragment.graphql.ts +++ /dev/null @@ -1,274 +0,0 @@ -/** - * @generated SignedSource<<96b5ca0110cd9c2f5c35130fbd641e57>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type ProcessingActivityLawfulBasis = "CONSENT" | "CONTRACTUAL_NECESSITY" | "LEGAL_OBLIGATION" | "LEGITIMATE_INTEREST" | "PUBLIC_TASK" | "VITAL_INTERESTS"; -import { FragmentRefs } from "relay-runtime"; -export type ProcessingActivitiesPageFragment$data = { - readonly id: string; - readonly processingActivities: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly dataSubjectCategory: string | null | undefined; - readonly id: string; - readonly internationalTransfers: boolean; - readonly lawfulBasis: ProcessingActivityLawfulBasis; - readonly location: string | null | undefined; - readonly name: string; - readonly purpose: string | null | undefined; - readonly snapshotId: string | null | undefined; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - }; - readonly " $fragmentType": "ProcessingActivitiesPageFragment"; -}; -export type ProcessingActivitiesPageFragment$key = { - readonly " $data"?: ProcessingActivitiesPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"ProcessingActivitiesPageFragment">; -}; - -import ProcessingActivitiesPageRefetchQuery_graphql from './ProcessingActivitiesPageRefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "processingActivities" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": ProcessingActivitiesPageRefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "ProcessingActivitiesPageFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "processingActivities", - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } - ], - "kind": "ObjectValue", - "name": "filter" - } - ], - "concreteType": "ProcessingActivityConnection", - "kind": "LinkedField", - "name": "__ProcessingActivitiesPage_processingActivities_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivityEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "purpose", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjectCategory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lawfulBasis", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "location", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "internationalTransfers", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "192fe63a62e7a47908cdf677c8ee829d"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivitiesPageRefetchQuery.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivitiesPageRefetchQuery.graphql.ts deleted file mode 100644 index f3f65d537..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivitiesPageRefetchQuery.graphql.ts +++ /dev/null @@ -1,332 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ProcessingActivitiesPageRefetchQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; - snapshotId?: string | null | undefined; -}; -export type ProcessingActivitiesPageRefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"ProcessingActivitiesPageFragment">; - }; -}; -export type ProcessingActivitiesPageRefetchQuery = { - response: ProcessingActivitiesPageRefetchQuery$data; - variables: ProcessingActivitiesPageRefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v6 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v7 = { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v10 = [ - (v5/*: any*/), - { - "fields": [ - (v7/*: any*/) - ], - "kind": "ObjectValue", - "name": "filter" - }, - (v6/*: any*/) -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivitiesPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/) - ], - "kind": "FragmentSpread", - "name": "ProcessingActivitiesPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "ProcessingActivitiesPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - (v9/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v10/*: any*/), - "concreteType": "ProcessingActivityConnection", - "kind": "LinkedField", - "name": "processingActivities", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivityEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "purpose", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjectCategory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lawfulBasis", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "location", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "internationalTransfers", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:delete\")" - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v10/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "ProcessingActivitiesPage_processingActivities", - "kind": "LinkedHandle", - "name": "processingActivities" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "048074c4fea9a7e036ff0b62b32ae245", - "id": null, - "metadata": {}, - "name": "ProcessingActivitiesPageRefetchQuery", - "operationKind": "query", - "text": "query ProcessingActivitiesPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ProcessingActivitiesPageFragment_35e0S5\n id\n }\n}\n\nfragment ProcessingActivitiesPageFragment_35e0S5 on Organization {\n id\n processingActivities(first: $first, after: $after, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n purpose\n dataSubjectCategory\n lawfulBasis\n location\n internationalTransfers\n canUpdate: permission(action: \"core:processing-activity:update\")\n canDelete: permission(action: \"core:processing-activity:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "192fe63a62e7a47908cdf677c8ee829d"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivitiesPageTIAFragment.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivitiesPageTIAFragment.graphql.ts deleted file mode 100644 index c1e613982..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivitiesPageTIAFragment.graphql.ts +++ /dev/null @@ -1,236 +0,0 @@ -/** - * @generated SignedSource<<509754a3938cff4887884a48552d28a6>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ProcessingActivitiesPageTIAFragment$data = { - readonly id: string; - readonly transferImpactAssessments: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly dataSubjects: string | null | undefined; - readonly id: string; - readonly localLawRisk: string | null | undefined; - readonly processingActivity: { - readonly id: string; - readonly name: string; - }; - readonly transfer: string | null | undefined; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - }; - readonly " $fragmentType": "ProcessingActivitiesPageTIAFragment"; -}; -export type ProcessingActivitiesPageTIAFragment$key = { - readonly " $data"?: ProcessingActivitiesPageTIAFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"ProcessingActivitiesPageTIAFragment">; -}; - -import ProcessingActivitiesPageTIARefetchQuery_graphql from './ProcessingActivitiesPageTIARefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "transferImpactAssessments" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": ProcessingActivitiesPageTIARefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "ProcessingActivitiesPageTIAFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "transferImpactAssessments", - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } - ], - "kind": "ObjectValue", - "name": "filter" - } - ], - "concreteType": "TransferImpactAssessmentConnection", - "kind": "LinkedField", - "name": "__ProcessingActivitiesPage_transferImpactAssessments_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TransferImpactAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TransferImpactAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjects", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transfer", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "localLawRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "processingActivity", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "dfda6e9061797741ea5ae080b7027ff3"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivitiesPageTIARefetchQuery.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivitiesPageTIARefetchQuery.graphql.ts deleted file mode 100644 index 4102fda2a..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivitiesPageTIARefetchQuery.graphql.ts +++ /dev/null @@ -1,297 +0,0 @@ -/** - * @generated SignedSource<<8cbe753dc048cbf53d1b69741ab8d85c>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ProcessingActivitiesPageTIARefetchQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; - snapshotId?: string | null | undefined; -}; -export type ProcessingActivitiesPageTIARefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"ProcessingActivitiesPageTIAFragment">; - }; -}; -export type ProcessingActivitiesPageTIARefetchQuery = { - response: ProcessingActivitiesPageTIARefetchQuery$data; - variables: ProcessingActivitiesPageTIARefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" -}, -v4 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v5 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v6 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v7 = { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v10 = [ - (v5/*: any*/), - { - "fields": [ - (v7/*: any*/) - ], - "kind": "ObjectValue", - "name": "filter" - }, - (v6/*: any*/) -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivitiesPageTIARefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/) - ], - "kind": "FragmentSpread", - "name": "ProcessingActivitiesPageTIAFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v3/*: any*/), - (v2/*: any*/) - ], - "kind": "Operation", - "name": "ProcessingActivitiesPageTIARefetchQuery", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - (v9/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v10/*: any*/), - "concreteType": "TransferImpactAssessmentConnection", - "kind": "LinkedField", - "name": "transferImpactAssessments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TransferImpactAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TransferImpactAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjects", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transfer", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "localLawRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "processingActivity", - "plural": false, - "selections": [ - (v9/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null - }, - (v8/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v10/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "ProcessingActivitiesPage_transferImpactAssessments", - "kind": "LinkedHandle", - "name": "transferImpactAssessments" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "20721d3fa6f5a726d7e9842798957a51", - "id": null, - "metadata": {}, - "name": "ProcessingActivitiesPageTIARefetchQuery", - "operationKind": "query", - "text": "query ProcessingActivitiesPageTIARefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ProcessingActivitiesPageTIAFragment_35e0S5\n id\n }\n}\n\nfragment ProcessingActivitiesPageTIAFragment_35e0S5 on Organization {\n id\n transferImpactAssessments(first: $first, after: $after, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n dataSubjects\n transfer\n localLawRisk\n processingActivity {\n id\n name\n }\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "dfda6e9061797741ea5ae080b7027ff3"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphCreateDPIAMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphCreateDPIAMutation.graphql.ts deleted file mode 100644 index b75c45c65..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphCreateDPIAMutation.graphql.ts +++ /dev/null @@ -1,253 +0,0 @@ -/** - * @generated SignedSource<<85c085bec1ebdad122bbf166590c3788>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DataProtectionImpactAssessmentResidualRisk = "HIGH" | "LOW" | "MEDIUM"; -export type CreateDataProtectionImpactAssessmentInput = { - description?: string | null | undefined; - mitigations?: string | null | undefined; - necessityAndProportionality?: string | null | undefined; - potentialRisk?: string | null | undefined; - processingActivityId: string; - residualRisk?: DataProtectionImpactAssessmentResidualRisk | null | undefined; -}; -export type ProcessingActivityGraphCreateDPIAMutation$variables = { - input: CreateDataProtectionImpactAssessmentInput; -}; -export type ProcessingActivityGraphCreateDPIAMutation$data = { - readonly createDataProtectionImpactAssessment: { - readonly dataProtectionImpactAssessment: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly mitigations: string | null | undefined; - readonly necessityAndProportionality: string | null | undefined; - readonly potentialRisk: string | null | undefined; - readonly processingActivity: { - readonly dataProtectionImpactAssessment: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly mitigations: string | null | undefined; - readonly necessityAndProportionality: string | null | undefined; - readonly potentialRisk: string | null | undefined; - readonly residualRisk: DataProtectionImpactAssessmentResidualRisk | null | undefined; - readonly updatedAt: string; - } | null | undefined; - readonly id: string; - }; - readonly residualRisk: DataProtectionImpactAssessmentResidualRisk | null | undefined; - readonly updatedAt: string; - }; - }; -}; -export type ProcessingActivityGraphCreateDPIAMutation = { - response: ProcessingActivityGraphCreateDPIAMutation$data; - variables: ProcessingActivityGraphCreateDPIAMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "necessityAndProportionality", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "potentialRisk", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mitigations", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRisk", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v9 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:data-protection-impact-assessment:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:data-protection-impact-assessment:update\")" -}, -v10 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:data-protection-impact-assessment:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:data-protection-impact-assessment:delete\")" -}, -v11 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "CreateDataProtectionImpactAssessmentPayload", - "kind": "LinkedField", - "name": "createDataProtectionImpactAssessment", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DataProtectionImpactAssessment", - "kind": "LinkedField", - "name": "dataProtectionImpactAssessment", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "processingActivity", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "DataProtectionImpactAssessment", - "kind": "LinkedField", - "name": "dataProtectionImpactAssessment", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphCreateDPIAMutation", - "selections": (v11/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivityGraphCreateDPIAMutation", - "selections": (v11/*: any*/) - }, - "params": { - "cacheID": "ea459920c052d1188c193c0a7f7bf4bc", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphCreateDPIAMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivityGraphCreateDPIAMutation(\n $input: CreateDataProtectionImpactAssessmentInput!\n) {\n createDataProtectionImpactAssessment(input: $input) {\n dataProtectionImpactAssessment {\n id\n description\n necessityAndProportionality\n potentialRisk\n mitigations\n residualRisk\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:data-protection-impact-assessment:update\")\n canDelete: permission(action: \"core:data-protection-impact-assessment:delete\")\n processingActivity {\n id\n dataProtectionImpactAssessment {\n id\n description\n necessityAndProportionality\n potentialRisk\n mitigations\n residualRisk\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:data-protection-impact-assessment:update\")\n canDelete: permission(action: \"core:data-protection-impact-assessment:delete\")\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "f9a989390460f5567e3661fd7e757f66"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphCreateMutation.graphql.ts deleted file mode 100644 index 0a136389a..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,446 +0,0 @@ -/** - * @generated SignedSource<<4cd86d107988eb099fff3b496ceb4b1f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ProcessingActivityDataProtectionImpactAssessment = "NEEDED" | "NOT_NEEDED"; -export type ProcessingActivityLawfulBasis = "CONSENT" | "CONTRACTUAL_NECESSITY" | "LEGAL_OBLIGATION" | "LEGITIMATE_INTEREST" | "PUBLIC_TASK" | "VITAL_INTERESTS"; -export type ProcessingActivityRole = "CONTROLLER" | "PROCESSOR"; -export type ProcessingActivitySpecialOrCriminalDatum = "NO" | "POSSIBLE" | "YES"; -export type ProcessingActivityTransferImpactAssessment = "NEEDED" | "NOT_NEEDED"; -export type ProcessingActivityTransferSafeguard = "ADEQUACY_DECISION" | "BINDING_CORPORATE_RULES" | "CERTIFICATION_MECHANISMS" | "CODES_OF_CONDUCT" | "DEROGATIONS" | "STANDARD_CONTRACTUAL_CLAUSES"; -export type CreateProcessingActivityInput = { - consentEvidenceLink?: string | null | undefined; - dataProtectionImpactAssessmentNeeded: ProcessingActivityDataProtectionImpactAssessment; - dataProtectionOfficerId?: string | null | undefined; - dataSubjectCategory?: string | null | undefined; - internationalTransfers: boolean; - lastReviewDate?: string | null | undefined; - lawfulBasis: ProcessingActivityLawfulBasis; - location?: string | null | undefined; - name: string; - nextReviewDate?: string | null | undefined; - organizationId: string; - personalDataCategory?: string | null | undefined; - purpose?: string | null | undefined; - recipients?: string | null | undefined; - retentionPeriod?: string | null | undefined; - role: ProcessingActivityRole; - securityMeasures?: string | null | undefined; - specialOrCriminalData: ProcessingActivitySpecialOrCriminalDatum; - transferImpactAssessmentNeeded: ProcessingActivityTransferImpactAssessment; - transferSafeguards?: ProcessingActivityTransferSafeguard | null | undefined; - vendorIds?: ReadonlyArray | null | undefined; -}; -export type ProcessingActivityGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateProcessingActivityInput; -}; -export type ProcessingActivityGraphCreateMutation$data = { - readonly createProcessingActivity: { - readonly processingActivityEdge: { - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly consentEvidenceLink: string | null | undefined; - readonly createdAt: string; - readonly dataProtectionImpactAssessmentNeeded: ProcessingActivityDataProtectionImpactAssessment; - readonly dataProtectionOfficer: { - readonly fullName: string; - readonly id: string; - } | null | undefined; - readonly dataSubjectCategory: string | null | undefined; - readonly id: string; - readonly internationalTransfers: boolean; - readonly lastReviewDate: string | null | undefined; - readonly lawfulBasis: ProcessingActivityLawfulBasis; - readonly location: string | null | undefined; - readonly name: string; - readonly nextReviewDate: string | null | undefined; - readonly personalDataCategory: string | null | undefined; - readonly purpose: string | null | undefined; - readonly recipients: string | null | undefined; - readonly retentionPeriod: string | null | undefined; - readonly role: ProcessingActivityRole; - readonly securityMeasures: string | null | undefined; - readonly specialOrCriminalData: ProcessingActivitySpecialOrCriminalDatum; - readonly transferImpactAssessmentNeeded: ProcessingActivityTransferImpactAssessment; - readonly transferSafeguards: ProcessingActivityTransferSafeguard | null | undefined; - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; - }; - }; -}; -export type ProcessingActivityGraphCreateMutation = { - response: ProcessingActivityGraphCreateMutation$data; - variables: ProcessingActivityGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "concreteType": "ProcessingActivityEdge", - "kind": "LinkedField", - "name": "processingActivityEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "purpose", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjectCategory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "personalDataCategory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "specialOrCriminalData", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "consentEvidenceLink", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lawfulBasis", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "recipients", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "location", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "internationalTransfers", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transferSafeguards", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "retentionPeriod", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "securityMeasures", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataProtectionImpactAssessmentNeeded", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transferImpactAssessmentNeeded", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastReviewDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "nextReviewDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "dataProtectionOfficer", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateProcessingActivityPayload", - "kind": "LinkedField", - "name": "createProcessingActivity", - "plural": false, - "selections": [ - (v5/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "ProcessingActivityGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateProcessingActivityPayload", - "kind": "LinkedField", - "name": "createProcessingActivity", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "processingActivityEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "534bd7c442063267f6556101350e0d74", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivityGraphCreateMutation(\n $input: CreateProcessingActivityInput!\n) {\n createProcessingActivity(input: $input) {\n processingActivityEdge {\n node {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessmentNeeded\n transferImpactAssessmentNeeded\n lastReviewDate\n nextReviewDate\n role\n dataProtectionOfficer {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n createdAt\n canUpdate: permission(action: \"core:processing-activity:update\")\n canDelete: permission(action: \"core:processing-activity:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "69c155bfe5b8a028d1d72c3b57d8de98"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphCreateTIAMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphCreateTIAMutation.graphql.ts deleted file mode 100644 index 1cc0a727a..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphCreateTIAMutation.graphql.ts +++ /dev/null @@ -1,252 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateTransferImpactAssessmentInput = { - dataSubjects?: string | null | undefined; - legalMechanism?: string | null | undefined; - localLawRisk?: string | null | undefined; - processingActivityId: string; - supplementaryMeasures?: string | null | undefined; - transfer?: string | null | undefined; -}; -export type ProcessingActivityGraphCreateTIAMutation$variables = { - input: CreateTransferImpactAssessmentInput; -}; -export type ProcessingActivityGraphCreateTIAMutation$data = { - readonly createTransferImpactAssessment: { - readonly transferImpactAssessment: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly dataSubjects: string | null | undefined; - readonly id: string; - readonly legalMechanism: string | null | undefined; - readonly localLawRisk: string | null | undefined; - readonly processingActivity: { - readonly id: string; - readonly transferImpactAssessment: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly dataSubjects: string | null | undefined; - readonly id: string; - readonly legalMechanism: string | null | undefined; - readonly localLawRisk: string | null | undefined; - readonly supplementaryMeasures: string | null | undefined; - readonly transfer: string | null | undefined; - readonly updatedAt: string; - } | null | undefined; - }; - readonly supplementaryMeasures: string | null | undefined; - readonly transfer: string | null | undefined; - readonly updatedAt: string; - }; - }; -}; -export type ProcessingActivityGraphCreateTIAMutation = { - response: ProcessingActivityGraphCreateTIAMutation$data; - variables: ProcessingActivityGraphCreateTIAMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjects", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "legalMechanism", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transfer", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "localLawRisk", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "supplementaryMeasures", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v9 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:transfer-impact-assessment:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:transfer-impact-assessment:update\")" -}, -v10 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:transfer-impact-assessment:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:transfer-impact-assessment:delete\")" -}, -v11 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "CreateTransferImpactAssessmentPayload", - "kind": "LinkedField", - "name": "createTransferImpactAssessment", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TransferImpactAssessment", - "kind": "LinkedField", - "name": "transferImpactAssessment", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "processingActivity", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "TransferImpactAssessment", - "kind": "LinkedField", - "name": "transferImpactAssessment", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphCreateTIAMutation", - "selections": (v11/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivityGraphCreateTIAMutation", - "selections": (v11/*: any*/) - }, - "params": { - "cacheID": "f8ebabea46a0088051fd6f379db8b729", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphCreateTIAMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivityGraphCreateTIAMutation(\n $input: CreateTransferImpactAssessmentInput!\n) {\n createTransferImpactAssessment(input: $input) {\n transferImpactAssessment {\n id\n dataSubjects\n legalMechanism\n transfer\n localLawRisk\n supplementaryMeasures\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:transfer-impact-assessment:update\")\n canDelete: permission(action: \"core:transfer-impact-assessment:delete\")\n processingActivity {\n id\n transferImpactAssessment {\n id\n dataSubjects\n legalMechanism\n transfer\n localLawRisk\n supplementaryMeasures\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:transfer-impact-assessment:update\")\n canDelete: permission(action: \"core:transfer-impact-assessment:delete\")\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b4bca88fcf13792cf8d03ba91de4261c"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphDeleteDPIAMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphDeleteDPIAMutation.graphql.ts deleted file mode 100644 index 687e05649..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphDeleteDPIAMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<2893f55249b2548256bf21cf2eb434c3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteDataProtectionImpactAssessmentInput = { - dataProtectionImpactAssessmentId: string; -}; -export type ProcessingActivityGraphDeleteDPIAMutation$variables = { - input: DeleteDataProtectionImpactAssessmentInput; -}; -export type ProcessingActivityGraphDeleteDPIAMutation$data = { - readonly deleteDataProtectionImpactAssessment: { - readonly deletedDataProtectionImpactAssessmentId: string; - }; -}; -export type ProcessingActivityGraphDeleteDPIAMutation = { - response: ProcessingActivityGraphDeleteDPIAMutation$data; - variables: ProcessingActivityGraphDeleteDPIAMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteDataProtectionImpactAssessmentPayload", - "kind": "LinkedField", - "name": "deleteDataProtectionImpactAssessment", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedDataProtectionImpactAssessmentId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphDeleteDPIAMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivityGraphDeleteDPIAMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "6124ea356c08b9d7290082252a58c924", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphDeleteDPIAMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivityGraphDeleteDPIAMutation(\n $input: DeleteDataProtectionImpactAssessmentInput!\n) {\n deleteDataProtectionImpactAssessment(input: $input) {\n deletedDataProtectionImpactAssessmentId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d68710e18cf1c83f60e57e5c25808cf6"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphDeleteMutation.graphql.ts deleted file mode 100644 index f2df500de..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteProcessingActivityInput = { - processingActivityId: string; -}; -export type ProcessingActivityGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteProcessingActivityInput; -}; -export type ProcessingActivityGraphDeleteMutation$data = { - readonly deleteProcessingActivity: { - readonly deletedProcessingActivityId: string; - }; -}; -export type ProcessingActivityGraphDeleteMutation = { - response: ProcessingActivityGraphDeleteMutation$data; - variables: ProcessingActivityGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedProcessingActivityId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteProcessingActivityPayload", - "kind": "LinkedField", - "name": "deleteProcessingActivity", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "ProcessingActivityGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteProcessingActivityPayload", - "kind": "LinkedField", - "name": "deleteProcessingActivity", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedProcessingActivityId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "302c79f7bfa307aa484acccab48c8591", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivityGraphDeleteMutation(\n $input: DeleteProcessingActivityInput!\n) {\n deleteProcessingActivity(input: $input) {\n deletedProcessingActivityId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a8724b743deef9c8889ae937311338c3"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphDeleteTIAMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphDeleteTIAMutation.graphql.ts deleted file mode 100644 index d819f679e..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphDeleteTIAMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteTransferImpactAssessmentInput = { - transferImpactAssessmentId: string; -}; -export type ProcessingActivityGraphDeleteTIAMutation$variables = { - input: DeleteTransferImpactAssessmentInput; -}; -export type ProcessingActivityGraphDeleteTIAMutation$data = { - readonly deleteTransferImpactAssessment: { - readonly deletedTransferImpactAssessmentId: string; - }; -}; -export type ProcessingActivityGraphDeleteTIAMutation = { - response: ProcessingActivityGraphDeleteTIAMutation$data; - variables: ProcessingActivityGraphDeleteTIAMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteTransferImpactAssessmentPayload", - "kind": "LinkedField", - "name": "deleteTransferImpactAssessment", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedTransferImpactAssessmentId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphDeleteTIAMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivityGraphDeleteTIAMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "0b0fec997f13e35c70d2be48f3672546", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphDeleteTIAMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivityGraphDeleteTIAMutation(\n $input: DeleteTransferImpactAssessmentInput!\n) {\n deleteTransferImpactAssessment(input: $input) {\n deletedTransferImpactAssessmentId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "66a5fd8da4d9b70da0b39ee335cb9b6f"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphListQuery.graphql.ts deleted file mode 100644 index 919080e7b..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphListQuery.graphql.ts +++ /dev/null @@ -1,535 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ProcessingActivityGraphListQuery$variables = { - organizationId: string; - snapshotId?: string | null | undefined; -}; -export type ProcessingActivityGraphListQuery$data = { - readonly node: { - readonly canCreateProcessingActivity?: boolean; - readonly canExportDataProtectionImpactAssessments?: boolean; - readonly canExportProcessingActivities?: boolean; - readonly canExportTransferImpactAssessments?: boolean; - readonly " $fragmentSpreads": FragmentRefs<"ProcessingActivitiesPageDPIAFragment" | "ProcessingActivitiesPageFragment" | "ProcessingActivitiesPageTIAFragment">; - }; -}; -export type ProcessingActivityGraphListQuery = { - response: ProcessingActivityGraphListQuery$data; - variables: ProcessingActivityGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canCreateProcessingActivity", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:create\")" -}, -v3 = { - "alias": "canExportProcessingActivities", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:export" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:export\")" -}, -v4 = { - "alias": "canExportDataProtectionImpactAssessments", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:data-protection-impact-assessment:export" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:data-protection-impact-assessment:export\")" -}, -v5 = { - "alias": "canExportTransferImpactAssessments", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:transfer-impact-assessment:export" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:transfer-impact-assessment:export\")" -}, -v6 = [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } -], -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v9 = [ - { - "fields": (v6/*: any*/), - "kind": "ObjectValue", - "name": "filter" - }, - { - "kind": "Literal", - "name": "first", - "value": 10 - } -], -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null -}, -v13 = [ - "filter" -], -v14 = { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "processingActivity", - "plural": false, - "selections": [ - (v8/*: any*/), - (v10/*: any*/) - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - { - "args": (v6/*: any*/), - "kind": "FragmentSpread", - "name": "ProcessingActivitiesPageFragment" - }, - { - "args": (v6/*: any*/), - "kind": "FragmentSpread", - "name": "ProcessingActivitiesPageDPIAFragment" - }, - { - "args": (v6/*: any*/), - "kind": "FragmentSpread", - "name": "ProcessingActivitiesPageTIAFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivityGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v7/*: any*/), - (v8/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": (v9/*: any*/), - "concreteType": "ProcessingActivityConnection", - "kind": "LinkedField", - "name": "processingActivities", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivityEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - (v10/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "purpose", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjectCategory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lawfulBasis", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "location", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "internationalTransfers", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:delete\")" - }, - (v7/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - (v12/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": (v9/*: any*/), - "filters": (v13/*: any*/), - "handle": "connection", - "key": "ProcessingActivitiesPage_processingActivities", - "kind": "LinkedHandle", - "name": "processingActivities" - }, - { - "alias": null, - "args": (v9/*: any*/), - "concreteType": "DataProtectionImpactAssessmentConnection", - "kind": "LinkedField", - "name": "dataProtectionImpactAssessments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DataProtectionImpactAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DataProtectionImpactAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "potentialRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRisk", - "storageKey": null - }, - (v14/*: any*/), - (v7/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - (v12/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": (v9/*: any*/), - "filters": (v13/*: any*/), - "handle": "connection", - "key": "ProcessingActivitiesPage_dataProtectionImpactAssessments", - "kind": "LinkedHandle", - "name": "dataProtectionImpactAssessments" - }, - { - "alias": null, - "args": (v9/*: any*/), - "concreteType": "TransferImpactAssessmentConnection", - "kind": "LinkedField", - "name": "transferImpactAssessments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TransferImpactAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TransferImpactAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjects", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transfer", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "localLawRisk", - "storageKey": null - }, - (v14/*: any*/), - (v7/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - (v12/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": (v9/*: any*/), - "filters": (v13/*: any*/), - "handle": "connection", - "key": "ProcessingActivitiesPage_transferImpactAssessments", - "kind": "LinkedHandle", - "name": "transferImpactAssessments" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "0c7314b83ab21c0560e9421c4ac009f4", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphListQuery", - "operationKind": "query", - "text": "query ProcessingActivityGraphListQuery(\n $organizationId: ID!\n $snapshotId: ID\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateProcessingActivity: permission(action: \"core:processing-activity:create\")\n canExportProcessingActivities: permission(action: \"core:processing-activity:export\")\n canExportDataProtectionImpactAssessments: permission(action: \"core:data-protection-impact-assessment:export\")\n canExportTransferImpactAssessments: permission(action: \"core:transfer-impact-assessment:export\")\n ...ProcessingActivitiesPageFragment_3iomuz\n ...ProcessingActivitiesPageDPIAFragment_3iomuz\n ...ProcessingActivitiesPageTIAFragment_3iomuz\n }\n id\n }\n}\n\nfragment ProcessingActivitiesPageDPIAFragment_3iomuz on Organization {\n id\n dataProtectionImpactAssessments(first: 10, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n description\n potentialRisk\n residualRisk\n processingActivity {\n id\n name\n }\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n\nfragment ProcessingActivitiesPageFragment_3iomuz on Organization {\n id\n processingActivities(first: 10, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n purpose\n dataSubjectCategory\n lawfulBasis\n location\n internationalTransfers\n canUpdate: permission(action: \"core:processing-activity:update\")\n canDelete: permission(action: \"core:processing-activity:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n\nfragment ProcessingActivitiesPageTIAFragment_3iomuz on Organization {\n id\n transferImpactAssessments(first: 10, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n dataSubjects\n transfer\n localLawRisk\n processingActivity {\n id\n name\n }\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "6efb688e3142c0eceb054ded9df044de"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphNodeQuery.graphql.ts deleted file mode 100644 index 911c399fe..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,695 +0,0 @@ -/** - * @generated SignedSource<<95c0d606637cea849328f351b4d8b72b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DataProtectionImpactAssessmentResidualRisk = "HIGH" | "LOW" | "MEDIUM"; -export type ProcessingActivityDataProtectionImpactAssessment = "NEEDED" | "NOT_NEEDED"; -export type ProcessingActivityLawfulBasis = "CONSENT" | "CONTRACTUAL_NECESSITY" | "LEGAL_OBLIGATION" | "LEGITIMATE_INTEREST" | "PUBLIC_TASK" | "VITAL_INTERESTS"; -export type ProcessingActivityRole = "CONTROLLER" | "PROCESSOR"; -export type ProcessingActivitySpecialOrCriminalDatum = "NO" | "POSSIBLE" | "YES"; -export type ProcessingActivityTransferImpactAssessment = "NEEDED" | "NOT_NEEDED"; -export type ProcessingActivityTransferSafeguard = "ADEQUACY_DECISION" | "BINDING_CORPORATE_RULES" | "CERTIFICATION_MECHANISMS" | "CODES_OF_CONDUCT" | "DEROGATIONS" | "STANDARD_CONTRACTUAL_CLAUSES"; -export type VendorCategory = "ANALYTICS" | "CLOUD_MONITORING" | "CLOUD_PROVIDER" | "COLLABORATION" | "CUSTOMER_SUPPORT" | "DATA_STORAGE_AND_PROCESSING" | "DOCUMENT_MANAGEMENT" | "EMPLOYEE_MANAGEMENT" | "ENGINEERING" | "FINANCE" | "IDENTITY_PROVIDER" | "IT" | "MARKETING" | "OFFICE_OPERATIONS" | "OTHER" | "PASSWORD_MANAGEMENT" | "PRODUCT_AND_DESIGN" | "PROFESSIONAL_SERVICES" | "RECRUITING" | "SALES" | "SECURITY" | "VERSION_CONTROL"; -export type ProcessingActivityGraphNodeQuery$variables = { - processingActivityId: string; -}; -export type ProcessingActivityGraphNodeQuery$data = { - readonly node: { - readonly canCreateDPIA?: boolean; - readonly canCreateTIA?: boolean; - readonly canDelete?: boolean; - readonly canUpdate?: boolean; - readonly consentEvidenceLink?: string | null | undefined; - readonly createdAt?: string; - readonly dataProtectionImpactAssessment?: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly mitigations: string | null | undefined; - readonly necessityAndProportionality: string | null | undefined; - readonly potentialRisk: string | null | undefined; - readonly residualRisk: DataProtectionImpactAssessmentResidualRisk | null | undefined; - readonly updatedAt: string; - } | null | undefined; - readonly dataProtectionImpactAssessmentNeeded?: ProcessingActivityDataProtectionImpactAssessment; - readonly dataProtectionOfficer?: { - readonly fullName: string; - readonly id: string; - } | null | undefined; - readonly dataSubjectCategory?: string | null | undefined; - readonly id?: string; - readonly internationalTransfers?: boolean; - readonly lastReviewDate?: string | null | undefined; - readonly lawfulBasis?: ProcessingActivityLawfulBasis; - readonly location?: string | null | undefined; - readonly name?: string; - readonly nextReviewDate?: string | null | undefined; - readonly organization?: { - readonly id: string; - readonly name: string; - }; - readonly personalDataCategory?: string | null | undefined; - readonly purpose?: string | null | undefined; - readonly recipients?: string | null | undefined; - readonly retentionPeriod?: string | null | undefined; - readonly role?: ProcessingActivityRole; - readonly securityMeasures?: string | null | undefined; - readonly snapshotId?: string | null | undefined; - readonly specialOrCriminalData?: ProcessingActivitySpecialOrCriminalDatum; - readonly transferImpactAssessment?: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly dataSubjects: string | null | undefined; - readonly id: string; - readonly legalMechanism: string | null | undefined; - readonly localLawRisk: string | null | undefined; - readonly supplementaryMeasures: string | null | undefined; - readonly transfer: string | null | undefined; - readonly updatedAt: string; - } | null | undefined; - readonly transferImpactAssessmentNeeded?: ProcessingActivityTransferImpactAssessment; - readonly transferSafeguards?: ProcessingActivityTransferSafeguard | null | undefined; - readonly updatedAt?: string; - readonly vendors?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly category: VendorCategory; - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; -}; -export type ProcessingActivityGraphNodeQuery = { - response: ProcessingActivityGraphNodeQuery$data; - variables: ProcessingActivityGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "processingActivityId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "processingActivityId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "purpose", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjectCategory", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "personalDataCategory", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "specialOrCriminalData", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "consentEvidenceLink", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lawfulBasis", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "recipients", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "location", - "storageKey": null -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "internationalTransfers", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transferSafeguards", - "storageKey": null -}, -v15 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "retentionPeriod", - "storageKey": null -}, -v16 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "securityMeasures", - "storageKey": null -}, -v17 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataProtectionImpactAssessmentNeeded", - "storageKey": null -}, -v18 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transferImpactAssessmentNeeded", - "storageKey": null -}, -v19 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastReviewDate", - "storageKey": null -}, -v20 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "nextReviewDate", - "storageKey": null -}, -v21 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null -}, -v22 = { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "dataProtectionOfficer", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null -}, -v23 = { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" -}, -v24 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v25 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v26 = { - "alias": null, - "args": null, - "concreteType": "DataProtectionImpactAssessment", - "kind": "LinkedField", - "name": "dataProtectionImpactAssessment", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "necessityAndProportionality", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "potentialRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mitigations", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRisk", - "storageKey": null - }, - (v24/*: any*/), - (v25/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:data-protection-impact-assessment:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:data-protection-impact-assessment:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:data-protection-impact-assessment:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:data-protection-impact-assessment:delete\")" - } - ], - "storageKey": null -}, -v27 = { - "alias": null, - "args": null, - "concreteType": "TransferImpactAssessment", - "kind": "LinkedField", - "name": "transferImpactAssessment", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjects", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "legalMechanism", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transfer", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "localLawRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "supplementaryMeasures", - "storageKey": null - }, - (v24/*: any*/), - (v25/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:transfer-impact-assessment:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:transfer-impact-assessment:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:transfer-impact-assessment:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:transfer-impact-assessment:delete\")" - } - ], - "storageKey": null -}, -v28 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/) - ], - "storageKey": null -}, -v29 = { - "alias": "canCreateDPIA", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:data-protection-impact-assessment:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:data-protection-impact-assessment:create\")" -}, -v30 = { - "alias": "canCreateTIA", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:transfer-impact-assessment:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:transfer-impact-assessment:create\")" -}, -v31 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:update\")" -}, -v32 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/), - (v17/*: any*/), - (v18/*: any*/), - (v19/*: any*/), - (v20/*: any*/), - (v21/*: any*/), - (v22/*: any*/), - (v23/*: any*/), - (v26/*: any*/), - (v27/*: any*/), - (v28/*: any*/), - (v24/*: any*/), - (v25/*: any*/), - (v29/*: any*/), - (v30/*: any*/), - (v31/*: any*/), - (v32/*: any*/) - ], - "type": "ProcessingActivity", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivityGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/), - (v17/*: any*/), - (v18/*: any*/), - (v19/*: any*/), - (v20/*: any*/), - (v21/*: any*/), - (v22/*: any*/), - (v23/*: any*/), - (v26/*: any*/), - (v27/*: any*/), - (v28/*: any*/), - (v24/*: any*/), - (v25/*: any*/), - (v29/*: any*/), - (v30/*: any*/), - (v31/*: any*/), - (v32/*: any*/) - ], - "type": "ProcessingActivity", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "29bddd12b9399a78fb24420f11b6d56d", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphNodeQuery", - "operationKind": "query", - "text": "query ProcessingActivityGraphNodeQuery(\n $processingActivityId: ID!\n) {\n node(id: $processingActivityId) {\n __typename\n ... on ProcessingActivity {\n id\n snapshotId\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessmentNeeded\n transferImpactAssessmentNeeded\n lastReviewDate\n nextReviewDate\n role\n dataProtectionOfficer {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n category\n }\n }\n }\n dataProtectionImpactAssessment {\n id\n description\n necessityAndProportionality\n potentialRisk\n mitigations\n residualRisk\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:data-protection-impact-assessment:update\")\n canDelete: permission(action: \"core:data-protection-impact-assessment:delete\")\n }\n transferImpactAssessment {\n id\n dataSubjects\n legalMechanism\n transfer\n localLawRisk\n supplementaryMeasures\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:transfer-impact-assessment:update\")\n canDelete: permission(action: \"core:transfer-impact-assessment:delete\")\n }\n organization {\n id\n name\n }\n createdAt\n updatedAt\n canCreateDPIA: permission(action: \"core:data-protection-impact-assessment:create\")\n canCreateTIA: permission(action: \"core:transfer-impact-assessment:create\")\n canUpdate: permission(action: \"core:processing-activity:update\")\n canDelete: permission(action: \"core:processing-activity:delete\")\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d670e7ec4d612b19532332247c8c1f8f"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphUpdateDPIAMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphUpdateDPIAMutation.graphql.ts deleted file mode 100644 index 53fbc6a26..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphUpdateDPIAMutation.graphql.ts +++ /dev/null @@ -1,167 +0,0 @@ -/** - * @generated SignedSource<<9bd2a9a518e61ab378f74e7fd2521a01>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DataProtectionImpactAssessmentResidualRisk = "HIGH" | "LOW" | "MEDIUM"; -export type UpdateDataProtectionImpactAssessmentInput = { - description?: string | null | undefined; - id: string; - mitigations?: string | null | undefined; - necessityAndProportionality?: string | null | undefined; - potentialRisk?: string | null | undefined; - residualRisk?: DataProtectionImpactAssessmentResidualRisk | null | undefined; -}; -export type ProcessingActivityGraphUpdateDPIAMutation$variables = { - input: UpdateDataProtectionImpactAssessmentInput; -}; -export type ProcessingActivityGraphUpdateDPIAMutation$data = { - readonly updateDataProtectionImpactAssessment: { - readonly dataProtectionImpactAssessment: { - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly mitigations: string | null | undefined; - readonly necessityAndProportionality: string | null | undefined; - readonly potentialRisk: string | null | undefined; - readonly residualRisk: DataProtectionImpactAssessmentResidualRisk | null | undefined; - readonly updatedAt: string; - }; - }; -}; -export type ProcessingActivityGraphUpdateDPIAMutation = { - response: ProcessingActivityGraphUpdateDPIAMutation$data; - variables: ProcessingActivityGraphUpdateDPIAMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateDataProtectionImpactAssessmentPayload", - "kind": "LinkedField", - "name": "updateDataProtectionImpactAssessment", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DataProtectionImpactAssessment", - "kind": "LinkedField", - "name": "dataProtectionImpactAssessment", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "necessityAndProportionality", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "potentialRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mitigations", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphUpdateDPIAMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivityGraphUpdateDPIAMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "8209c5674c73064b76e46b67c017b5fa", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphUpdateDPIAMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivityGraphUpdateDPIAMutation(\n $input: UpdateDataProtectionImpactAssessmentInput!\n) {\n updateDataProtectionImpactAssessment(input: $input) {\n dataProtectionImpactAssessment {\n id\n description\n necessityAndProportionality\n potentialRisk\n mitigations\n residualRisk\n createdAt\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "9b03511f95fd87aafd075b66fd82184c"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphUpdateMutation.graphql.ts deleted file mode 100644 index 643510cdb..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,365 +0,0 @@ -/** - * @generated SignedSource<<39a1315d42c190fd43eeec5e06747aca>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ProcessingActivityDataProtectionImpactAssessment = "NEEDED" | "NOT_NEEDED"; -export type ProcessingActivityLawfulBasis = "CONSENT" | "CONTRACTUAL_NECESSITY" | "LEGAL_OBLIGATION" | "LEGITIMATE_INTEREST" | "PUBLIC_TASK" | "VITAL_INTERESTS"; -export type ProcessingActivityRole = "CONTROLLER" | "PROCESSOR"; -export type ProcessingActivitySpecialOrCriminalDatum = "NO" | "POSSIBLE" | "YES"; -export type ProcessingActivityTransferImpactAssessment = "NEEDED" | "NOT_NEEDED"; -export type ProcessingActivityTransferSafeguard = "ADEQUACY_DECISION" | "BINDING_CORPORATE_RULES" | "CERTIFICATION_MECHANISMS" | "CODES_OF_CONDUCT" | "DEROGATIONS" | "STANDARD_CONTRACTUAL_CLAUSES"; -export type UpdateProcessingActivityInput = { - consentEvidenceLink?: string | null | undefined; - dataProtectionImpactAssessmentNeeded?: ProcessingActivityDataProtectionImpactAssessment | null | undefined; - dataProtectionOfficerId?: string | null | undefined; - dataSubjectCategory?: string | null | undefined; - id: string; - internationalTransfers?: boolean | null | undefined; - lastReviewDate?: string | null | undefined; - lawfulBasis?: ProcessingActivityLawfulBasis | null | undefined; - location?: string | null | undefined; - name?: string | null | undefined; - nextReviewDate?: string | null | undefined; - personalDataCategory?: string | null | undefined; - purpose?: string | null | undefined; - recipients?: string | null | undefined; - retentionPeriod?: string | null | undefined; - role?: ProcessingActivityRole | null | undefined; - securityMeasures?: string | null | undefined; - specialOrCriminalData?: ProcessingActivitySpecialOrCriminalDatum | null | undefined; - transferImpactAssessmentNeeded?: ProcessingActivityTransferImpactAssessment | null | undefined; - transferSafeguards?: ProcessingActivityTransferSafeguard | null | undefined; - vendorIds?: ReadonlyArray | null | undefined; -}; -export type ProcessingActivityGraphUpdateMutation$variables = { - input: UpdateProcessingActivityInput; -}; -export type ProcessingActivityGraphUpdateMutation$data = { - readonly updateProcessingActivity: { - readonly processingActivity: { - readonly consentEvidenceLink: string | null | undefined; - readonly dataProtectionImpactAssessmentNeeded: ProcessingActivityDataProtectionImpactAssessment; - readonly dataProtectionOfficer: { - readonly fullName: string; - readonly id: string; - } | null | undefined; - readonly dataSubjectCategory: string | null | undefined; - readonly id: string; - readonly internationalTransfers: boolean; - readonly lastReviewDate: string | null | undefined; - readonly lawfulBasis: ProcessingActivityLawfulBasis; - readonly location: string | null | undefined; - readonly name: string; - readonly nextReviewDate: string | null | undefined; - readonly personalDataCategory: string | null | undefined; - readonly purpose: string | null | undefined; - readonly recipients: string | null | undefined; - readonly retentionPeriod: string | null | undefined; - readonly role: ProcessingActivityRole; - readonly securityMeasures: string | null | undefined; - readonly specialOrCriminalData: ProcessingActivitySpecialOrCriminalDatum; - readonly transferImpactAssessmentNeeded: ProcessingActivityTransferImpactAssessment; - readonly transferSafeguards: ProcessingActivityTransferSafeguard | null | undefined; - readonly updatedAt: string; - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; - }; -}; -export type ProcessingActivityGraphUpdateMutation = { - response: ProcessingActivityGraphUpdateMutation$data; - variables: ProcessingActivityGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v3 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateProcessingActivityPayload", - "kind": "LinkedField", - "name": "updateProcessingActivity", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProcessingActivity", - "kind": "LinkedField", - "name": "processingActivity", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "purpose", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjectCategory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "personalDataCategory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "specialOrCriminalData", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "consentEvidenceLink", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lawfulBasis", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "recipients", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "location", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "internationalTransfers", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transferSafeguards", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "retentionPeriod", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "securityMeasures", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataProtectionImpactAssessmentNeeded", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transferImpactAssessmentNeeded", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastReviewDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "nextReviewDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "dataProtectionOfficer", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphUpdateMutation", - "selections": (v3/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivityGraphUpdateMutation", - "selections": (v3/*: any*/) - }, - "params": { - "cacheID": "9df89e1a1b2eb8ee2b031a21c42dbea5", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivityGraphUpdateMutation(\n $input: UpdateProcessingActivityInput!\n) {\n updateProcessingActivity(input: $input) {\n processingActivity {\n id\n name\n purpose\n dataSubjectCategory\n personalDataCategory\n specialOrCriminalData\n consentEvidenceLink\n lawfulBasis\n recipients\n location\n internationalTransfers\n transferSafeguards\n retentionPeriod\n securityMeasures\n dataProtectionImpactAssessmentNeeded\n transferImpactAssessmentNeeded\n lastReviewDate\n nextReviewDate\n role\n dataProtectionOfficer {\n id\n fullName\n }\n vendors(first: 50) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b290e0aeeb96b3ca94e0002b50830611"; - -export default node; diff --git a/apps/console/src/__generated__/core/ProcessingActivityGraphUpdateTIAMutation.graphql.ts b/apps/console/src/__generated__/core/ProcessingActivityGraphUpdateTIAMutation.graphql.ts deleted file mode 100644 index a2b9fc0d8..000000000 --- a/apps/console/src/__generated__/core/ProcessingActivityGraphUpdateTIAMutation.graphql.ts +++ /dev/null @@ -1,166 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateTransferImpactAssessmentInput = { - dataSubjects?: string | null | undefined; - id: string; - legalMechanism?: string | null | undefined; - localLawRisk?: string | null | undefined; - supplementaryMeasures?: string | null | undefined; - transfer?: string | null | undefined; -}; -export type ProcessingActivityGraphUpdateTIAMutation$variables = { - input: UpdateTransferImpactAssessmentInput; -}; -export type ProcessingActivityGraphUpdateTIAMutation$data = { - readonly updateTransferImpactAssessment: { - readonly transferImpactAssessment: { - readonly createdAt: string; - readonly dataSubjects: string | null | undefined; - readonly id: string; - readonly legalMechanism: string | null | undefined; - readonly localLawRisk: string | null | undefined; - readonly supplementaryMeasures: string | null | undefined; - readonly transfer: string | null | undefined; - readonly updatedAt: string; - }; - }; -}; -export type ProcessingActivityGraphUpdateTIAMutation = { - response: ProcessingActivityGraphUpdateTIAMutation$data; - variables: ProcessingActivityGraphUpdateTIAMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateTransferImpactAssessmentPayload", - "kind": "LinkedField", - "name": "updateTransferImpactAssessment", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TransferImpactAssessment", - "kind": "LinkedField", - "name": "transferImpactAssessment", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubjects", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "legalMechanism", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "transfer", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "localLawRisk", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "supplementaryMeasures", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ProcessingActivityGraphUpdateTIAMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ProcessingActivityGraphUpdateTIAMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "bf5b4de5fd040e63ff654b41532ba6fb", - "id": null, - "metadata": {}, - "name": "ProcessingActivityGraphUpdateTIAMutation", - "operationKind": "mutation", - "text": "mutation ProcessingActivityGraphUpdateTIAMutation(\n $input: UpdateTransferImpactAssessmentInput!\n) {\n updateTransferImpactAssessment(input: $input) {\n transferImpactAssessment {\n id\n dataSubjects\n legalMechanism\n transfer\n localLawRisk\n supplementaryMeasures\n createdAt\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "2a94ca65e0c62ac9947027dfb60cc916"; - -export default node; diff --git a/apps/console/src/__generated__/core/PublishDocumentsDialogMutation.graphql.ts b/apps/console/src/__generated__/core/PublishDocumentsDialogMutation.graphql.ts deleted file mode 100644 index bf60fb3f6..000000000 --- a/apps/console/src/__generated__/core/PublishDocumentsDialogMutation.graphql.ts +++ /dev/null @@ -1,367 +0,0 @@ -/** - * @generated SignedSource<<3d906005c4507bfced1f9d7036939157>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type BulkPublishDocumentVersionsInput = { - changelog: string; - documentIds: ReadonlyArray; -}; -export type PublishDocumentsDialogMutation$variables = { - input: BulkPublishDocumentVersionsInput; -}; -export type PublishDocumentsDialogMutation$data = { - readonly bulkPublishDocumentVersions: { - readonly documentEdges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentListItemFragment">; - }; - }>; - }; -}; -export type PublishDocumentsDialogMutation = { - response: PublishDocumentsDialogMutation$data; - variables: PublishDocumentsDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "kind": "Literal", - "name": "first", - "value": 0 -}, -v4 = [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "PublishDocumentsDialogMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "BulkPublishDocumentVersionsPayload", - "kind": "LinkedField", - "name": "bulkPublishDocumentVersions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "documentEdges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentListItemFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "PublishDocumentsDialogMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "BulkPublishDocumentVersionsPayload", - "kind": "LinkedField", - "name": "bulkPublishDocumentVersions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "documentEdges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "classification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:delete\")" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "approvers", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "approvers(first:100)" - }, - { - "alias": "lastVersion", - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true - } - }, - (v3/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v4/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true},first:0)" - }, - { - "alias": "signedSignatures", - "args": [ - { - "kind": "Literal", - "name": "filter", - "value": { - "activeContract": true, - "states": [ - "SIGNED" - ] - } - }, - (v3/*: any*/) - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": (v4/*: any*/), - "storageKey": "signatures(filter:{\"activeContract\":true,\"states\":[\"SIGNED\"]},first:0)" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "a62979260c1527e43c12c1effa025815", - "id": null, - "metadata": {}, - "name": "PublishDocumentsDialogMutation", - "operationKind": "mutation", - "text": "mutation PublishDocumentsDialogMutation(\n $input: BulkPublishDocumentVersionsInput!\n) {\n bulkPublishDocumentVersions(input: $input) {\n documentEdges {\n node {\n id\n ...DocumentListItemFragment\n }\n }\n }\n}\n\nfragment DocumentListItemFragment on Document {\n id\n title\n documentType\n classification\n updatedAt\n canDelete: permission(action: \"core:document:delete\")\n approvers(first: 100) {\n edges {\n node {\n id\n fullName\n }\n }\n }\n lastVersion: versions(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n id\n status\n version\n signatures(first: 0, filter: {activeContract: true}) {\n totalCount\n }\n signedSignatures: signatures(first: 0, filter: {states: [SIGNED], activeContract: true}) {\n totalCount\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "c28e9ea550947901058300bc4ba8f7f1"; - -export default node; diff --git a/apps/console/src/__generated__/core/RightsRequestGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/RightsRequestGraphCreateMutation.graphql.ts deleted file mode 100644 index d0f06af9e..000000000 --- a/apps/console/src/__generated__/core/RightsRequestGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,259 +0,0 @@ -/** - * @generated SignedSource<<909c79c6abb5022e54ee451e7e6292be>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type RightsRequestState = "DONE" | "IN_PROGRESS" | "TODO"; -export type RightsRequestType = "ACCESS" | "DELETION" | "PORTABILITY"; -export type CreateRightsRequestInput = { - actionTaken?: string | null | undefined; - contact?: string | null | undefined; - dataSubject?: string | null | undefined; - deadline?: string | null | undefined; - details?: string | null | undefined; - organizationId: string; - requestState: RightsRequestState; - requestType: RightsRequestType; -}; -export type RightsRequestGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateRightsRequestInput; -}; -export type RightsRequestGraphCreateMutation$data = { - readonly createRightsRequest: { - readonly rightsRequestEdge: { - readonly node: { - readonly actionTaken: string | null | undefined; - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly contact: string | null | undefined; - readonly createdAt: string; - readonly dataSubject: string | null | undefined; - readonly deadline: string | null | undefined; - readonly details: string | null | undefined; - readonly id: string; - readonly requestState: RightsRequestState; - readonly requestType: RightsRequestType; - }; - }; - }; -}; -export type RightsRequestGraphCreateMutation = { - response: RightsRequestGraphCreateMutation$data; - variables: RightsRequestGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "RightsRequestEdge", - "kind": "LinkedField", - "name": "rightsRequestEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RightsRequest", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:delete\")" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:update\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestState", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubject", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "details", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "actionTaken", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RightsRequestGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRightsRequestPayload", - "kind": "LinkedField", - "name": "createRightsRequest", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "RightsRequestGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRightsRequestPayload", - "kind": "LinkedField", - "name": "createRightsRequest", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "rightsRequestEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "be9d2829a9ca6909ab3b4d23c15eb7bc", - "id": null, - "metadata": {}, - "name": "RightsRequestGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation RightsRequestGraphCreateMutation(\n $input: CreateRightsRequestInput!\n) {\n createRightsRequest(input: $input) {\n rightsRequestEdge {\n node {\n id\n canDelete: permission(action: \"core:rights-request:delete\")\n canUpdate: permission(action: \"core:rights-request:update\")\n requestType\n requestState\n dataSubject\n contact\n details\n deadline\n actionTaken\n createdAt\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "707197faed79239f374134145ccd1639"; - -export default node; diff --git a/apps/console/src/__generated__/core/RightsRequestGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/RightsRequestGraphDeleteMutation.graphql.ts deleted file mode 100644 index cd9c420da..000000000 --- a/apps/console/src/__generated__/core/RightsRequestGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<274e16758d468bf7fb911965acca3264>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteRightsRequestInput = { - rightsRequestId: string; -}; -export type RightsRequestGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteRightsRequestInput; -}; -export type RightsRequestGraphDeleteMutation$data = { - readonly deleteRightsRequest: { - readonly deletedRightsRequestId: string; - }; -}; -export type RightsRequestGraphDeleteMutation = { - response: RightsRequestGraphDeleteMutation$data; - variables: RightsRequestGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedRightsRequestId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RightsRequestGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRightsRequestPayload", - "kind": "LinkedField", - "name": "deleteRightsRequest", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "RightsRequestGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRightsRequestPayload", - "kind": "LinkedField", - "name": "deleteRightsRequest", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedRightsRequestId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c81b44380a4647a241c72fe1ca359246", - "id": null, - "metadata": {}, - "name": "RightsRequestGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation RightsRequestGraphDeleteMutation(\n $input: DeleteRightsRequestInput!\n) {\n deleteRightsRequest(input: $input) {\n deletedRightsRequestId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e657b62ad808fa4fd5902cf4eea4ca3b"; - -export default node; diff --git a/apps/console/src/__generated__/core/RightsRequestGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/RightsRequestGraphListQuery.graphql.ts deleted file mode 100644 index a24220235..000000000 --- a/apps/console/src/__generated__/core/RightsRequestGraphListQuery.graphql.ts +++ /dev/null @@ -1,290 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RightsRequestGraphListQuery$variables = { - organizationId: string; -}; -export type RightsRequestGraphListQuery$data = { - readonly node: { - readonly canCreateRightsRequest?: boolean; - readonly " $fragmentSpreads": FragmentRefs<"RightsRequestsPageFragment">; - }; -}; -export type RightsRequestGraphListQuery = { - response: RightsRequestGraphListQuery$data; - variables: RightsRequestGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canCreateRightsRequest", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:create\")" -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 10 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "RightsRequestGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "RightsRequestsPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "RightsRequestGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "RightsRequestConnection", - "kind": "LinkedField", - "name": "rightsRequests", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RightsRequestEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RightsRequest", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestState", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubject", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:delete\")" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:update\")" - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "rightsRequests(first:10)" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": null, - "handle": "connection", - "key": "RightsRequestsPage_rightsRequests", - "kind": "LinkedHandle", - "name": "rightsRequests" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "a06eb5f4adc7c55cf43252acb2203189", - "id": null, - "metadata": {}, - "name": "RightsRequestGraphListQuery", - "operationKind": "query", - "text": "query RightsRequestGraphListQuery(\n $organizationId: ID!\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateRightsRequest: permission(action: \"core:rights-request:create\")\n ...RightsRequestsPageFragment\n }\n id\n }\n}\n\nfragment RightsRequestsPageFragment on Organization {\n id\n rightsRequests(first: 10) {\n edges {\n node {\n id\n requestType\n requestState\n dataSubject\n contact\n deadline\n canDelete: permission(action: \"core:rights-request:delete\")\n canUpdate: permission(action: \"core:rights-request:update\")\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0ec5bfd82df0184daee8f615b55f9b5b"; - -export default node; diff --git a/apps/console/src/__generated__/core/RightsRequestGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/RightsRequestGraphNodeQuery.graphql.ts deleted file mode 100644 index 74e0970d4..000000000 --- a/apps/console/src/__generated__/core/RightsRequestGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,273 +0,0 @@ -/** - * @generated SignedSource<<866100731d22dd57eb0fcd571c54ee45>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type RightsRequestState = "DONE" | "IN_PROGRESS" | "TODO"; -export type RightsRequestType = "ACCESS" | "DELETION" | "PORTABILITY"; -export type RightsRequestGraphNodeQuery$variables = { - rightsRequestId: string; -}; -export type RightsRequestGraphNodeQuery$data = { - readonly node: { - readonly actionTaken?: string | null | undefined; - readonly canDelete?: boolean; - readonly canUpdate?: boolean; - readonly contact?: string | null | undefined; - readonly createdAt?: string; - readonly dataSubject?: string | null | undefined; - readonly deadline?: string | null | undefined; - readonly details?: string | null | undefined; - readonly id?: string; - readonly organization?: { - readonly id: string; - readonly name: string; - }; - readonly requestState?: RightsRequestState; - readonly requestType?: RightsRequestType; - readonly updatedAt?: string; - }; -}; -export type RightsRequestGraphNodeQuery = { - response: RightsRequestGraphNodeQuery$data; - variables: RightsRequestGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "rightsRequestId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "rightsRequestId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestType", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestState", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubject", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contact", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "details", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "actionTaken", - "storageKey": null -}, -v10 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:update\")" -}, -v11 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:delete\")" -}, -v12 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "RightsRequestGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/) - ], - "type": "RightsRequest", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "RightsRequestGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/) - ], - "type": "RightsRequest", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "ee78ca5ffa5a944254f733bfefdfbfab", - "id": null, - "metadata": {}, - "name": "RightsRequestGraphNodeQuery", - "operationKind": "query", - "text": "query RightsRequestGraphNodeQuery(\n $rightsRequestId: ID!\n) {\n node(id: $rightsRequestId) {\n __typename\n ... on RightsRequest {\n id\n requestType\n requestState\n dataSubject\n contact\n details\n deadline\n actionTaken\n canUpdate: permission(action: \"core:rights-request:update\")\n canDelete: permission(action: \"core:rights-request:delete\")\n organization {\n id\n name\n }\n createdAt\n updatedAt\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b7d363467873575acae293e30324a435"; - -export default node; diff --git a/apps/console/src/__generated__/core/RightsRequestGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/RightsRequestGraphUpdateMutation.graphql.ts deleted file mode 100644 index 8836e973c..000000000 --- a/apps/console/src/__generated__/core/RightsRequestGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type RightsRequestState = "DONE" | "IN_PROGRESS" | "TODO"; -export type RightsRequestType = "ACCESS" | "DELETION" | "PORTABILITY"; -export type UpdateRightsRequestInput = { - actionTaken?: string | null | undefined; - contact?: string | null | undefined; - dataSubject?: string | null | undefined; - deadline?: string | null | undefined; - details?: string | null | undefined; - id: string; - requestState?: RightsRequestState | null | undefined; - requestType?: RightsRequestType | null | undefined; -}; -export type RightsRequestGraphUpdateMutation$variables = { - input: UpdateRightsRequestInput; -}; -export type RightsRequestGraphUpdateMutation$data = { - readonly updateRightsRequest: { - readonly rightsRequest: { - readonly actionTaken: string | null | undefined; - readonly contact: string | null | undefined; - readonly dataSubject: string | null | undefined; - readonly deadline: string | null | undefined; - readonly details: string | null | undefined; - readonly id: string; - readonly requestState: RightsRequestState; - readonly requestType: RightsRequestType; - readonly updatedAt: string; - }; - }; -}; -export type RightsRequestGraphUpdateMutation = { - response: RightsRequestGraphUpdateMutation$data; - variables: RightsRequestGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateRightsRequestPayload", - "kind": "LinkedField", - "name": "updateRightsRequest", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RightsRequest", - "kind": "LinkedField", - "name": "rightsRequest", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestState", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubject", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "details", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "actionTaken", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "RightsRequestGraphUpdateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "RightsRequestGraphUpdateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "4b06cb49236bb946cfa333e95b80f2a8", - "id": null, - "metadata": {}, - "name": "RightsRequestGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation RightsRequestGraphUpdateMutation(\n $input: UpdateRightsRequestInput!\n) {\n updateRightsRequest(input: $input) {\n rightsRequest {\n id\n requestType\n requestState\n dataSubject\n contact\n details\n deadline\n actionTaken\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "f2f42ebc57de95ec4a760e7d701f90fa"; - -export default node; diff --git a/apps/console/src/__generated__/core/RightsRequestsPageFragment.graphql.ts b/apps/console/src/__generated__/core/RightsRequestsPageFragment.graphql.ts deleted file mode 100644 index 7bd71f83e..000000000 --- a/apps/console/src/__generated__/core/RightsRequestsPageFragment.graphql.ts +++ /dev/null @@ -1,242 +0,0 @@ -/** - * @generated SignedSource<<41b64f82e663e7ae42728a557da07ab5>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type RightsRequestState = "DONE" | "IN_PROGRESS" | "TODO"; -export type RightsRequestType = "ACCESS" | "DELETION" | "PORTABILITY"; -import { FragmentRefs } from "relay-runtime"; -export type RightsRequestsPageFragment$data = { - readonly id: string; - readonly rightsRequests: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly contact: string | null | undefined; - readonly dataSubject: string | null | undefined; - readonly deadline: string | null | undefined; - readonly id: string; - readonly requestState: RightsRequestState; - readonly requestType: RightsRequestType; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - }; - readonly " $fragmentType": "RightsRequestsPageFragment"; -}; -export type RightsRequestsPageFragment$key = { - readonly " $data"?: RightsRequestsPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"RightsRequestsPageFragment">; -}; - -import RightsRequestsPageRefetchQuery_graphql from './RightsRequestsPageRefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "rightsRequests" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": "first", - "cursor": "after", - "direction": "forward", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": null, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": RightsRequestsPageRefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "RightsRequestsPageFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "rightsRequests", - "args": null, - "concreteType": "RightsRequestConnection", - "kind": "LinkedField", - "name": "__RightsRequestsPage_rightsRequests_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RightsRequestEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RightsRequest", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestState", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubject", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:delete\")" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:update\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "4cf7e71a943108ff633fa8a91f301bb0"; - -export default node; diff --git a/apps/console/src/__generated__/core/RightsRequestsPageRefetchQuery.graphql.ts b/apps/console/src/__generated__/core/RightsRequestsPageRefetchQuery.graphql.ts deleted file mode 100644 index b9f421a87..000000000 --- a/apps/console/src/__generated__/core/RightsRequestsPageRefetchQuery.graphql.ts +++ /dev/null @@ -1,284 +0,0 @@ -/** - * @generated SignedSource<<471db3fa5ea0c9ee5847f89d574248ea>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RightsRequestsPageRefetchQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - id: string; -}; -export type RightsRequestsPageRefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"RightsRequestsPageFragment">; - }; -}; -export type RightsRequestsPageRefetchQuery = { - response: RightsRequestsPageRefetchQuery$data; - variables: RightsRequestsPageRefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": 10, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v2 = [ - { - "kind": "Variable", - "name": "after", - "variableName": "after" - }, - { - "kind": "Variable", - "name": "first", - "variableName": "first" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "RightsRequestsPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": (v2/*: any*/), - "kind": "FragmentSpread", - "name": "RightsRequestsPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "RightsRequestsPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "RightsRequestConnection", - "kind": "LinkedField", - "name": "rightsRequests", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RightsRequestEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RightsRequest", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestType", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "requestState", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSubject", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:delete\")" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:update\")" - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v2/*: any*/), - "filters": null, - "handle": "connection", - "key": "RightsRequestsPage_rightsRequests", - "kind": "LinkedHandle", - "name": "rightsRequests" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "04eaecdba489d9ac60b6e0863d1ddf62", - "id": null, - "metadata": {}, - "name": "RightsRequestsPageRefetchQuery", - "operationKind": "query", - "text": "query RightsRequestsPageRefetchQuery(\n $after: CursorKey\n $first: Int = 10\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RightsRequestsPageFragment_2HEEH6\n id\n }\n}\n\nfragment RightsRequestsPageFragment_2HEEH6 on Organization {\n id\n rightsRequests(first: $first, after: $after) {\n edges {\n node {\n id\n requestType\n requestState\n dataSubject\n contact\n deadline\n canDelete: permission(action: \"core:rights-request:delete\")\n canUpdate: permission(action: \"core:rights-request:update\")\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "4cf7e71a943108ff633fa8a91f301bb0"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskControlsTabControlsQuery.graphql.ts b/apps/console/src/__generated__/core/RiskControlsTabControlsQuery.graphql.ts deleted file mode 100644 index 5c3cbc21d..000000000 --- a/apps/console/src/__generated__/core/RiskControlsTabControlsQuery.graphql.ts +++ /dev/null @@ -1,351 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ControlOrderField = "CREATED_AT" | "SECTION_TITLE"; -export type OrderDirection = "ASC" | "DESC"; -export type ControlFilter = { - query?: string | null | undefined; -}; -export type ControlOrder = { - direction: OrderDirection; - field: ControlOrderField; -}; -export type RiskControlsTabControlsQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - filter?: ControlFilter | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: ControlOrder | null | undefined; -}; -export type RiskControlsTabControlsQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"RiskControlsTabFragment">; - }; -}; -export type RiskControlsTabControlsQuery = { - response: RiskControlsTabControlsQuery$data; - variables: RiskControlsTabControlsQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" -}, -v3 = { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v6 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v8 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v9 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v10 = { - "kind": "Variable", - "name": "filter", - "variableName": "filter" -}, -v11 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v12 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v15 = [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -], -v16 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RiskControlsTabControlsQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "RiskControlsTabFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v4/*: any*/) - ], - "kind": "Operation", - "name": "RiskControlsTabControlsQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v13/*: any*/), - (v14/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v15/*: any*/), - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v16/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v14/*: any*/), - (v16/*: any*/) - ], - "storageKey": null - }, - (v13/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v15/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "RiskControlsTab_controls", - "kind": "LinkedHandle", - "name": "controls" - } - ], - "type": "Risk", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "ea5571d7c2f47861c81f19447ff3d345", - "id": null, - "metadata": {}, - "name": "RiskControlsTabControlsQuery", - "operationKind": "query", - "text": "query RiskControlsTabControlsQuery(\n $after: CursorKey\n $before: CursorKey = null\n $filter: ControlFilter = null\n $first: Int = 20\n $last: Int = null\n $order: ControlOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RiskControlsTabFragment_4cFWzS\n id\n }\n}\n\nfragment RiskControlsTabFragment_4cFWzS on Risk {\n id\n controls(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: $filter) {\n edges {\n node {\n id\n sectionTitle\n name\n framework {\n id\n name\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "ef2896f4e53f88f6862ffef48bcccff3"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskControlsTabFragment.graphql.ts b/apps/console/src/__generated__/core/RiskControlsTabFragment.graphql.ts deleted file mode 100644 index 2877a0543..000000000 --- a/apps/console/src/__generated__/core/RiskControlsTabFragment.graphql.ts +++ /dev/null @@ -1,250 +0,0 @@ -/** - * @generated SignedSource<<5bbce08d4b9359b961b9b1b4827f5756>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RiskControlsTabFragment$data = { - readonly controls: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string; - readonly sectionTitle: string; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "RiskControlsTabFragment"; -}; -export type RiskControlsTabFragment$key = { - readonly " $data"?: RiskControlsTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"RiskControlsTabFragment">; -}; - -import RiskControlsTabControlsQuery_graphql from './RiskControlsTabControlsQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "controls" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "filter" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": RiskControlsTabControlsQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "RiskControlsTabFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "controls", - "args": [ - { - "kind": "Variable", - "name": "filter", - "variableName": "filter" - }, - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "__RiskControlsTab_controls_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v2/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Risk", - "abstractKey": null -}; -})(); - -(node as any).hash = "ef2896f4e53f88f6862ffef48bcccff3"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskDocumentsTabCreateMutation.graphql.ts b/apps/console/src/__generated__/core/RiskDocumentsTabCreateMutation.graphql.ts deleted file mode 100644 index daffb88bb..000000000 --- a/apps/console/src/__generated__/core/RiskDocumentsTabCreateMutation.graphql.ts +++ /dev/null @@ -1,249 +0,0 @@ -/** - * @generated SignedSource<<45e1f70df17f1c5bb1bc89c0332e37ff>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateRiskDocumentMappingInput = { - documentId: string; - riskId: string; -}; -export type RiskDocumentsTabCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateRiskDocumentMappingInput; -}; -export type RiskDocumentsTabCreateMutation$data = { - readonly createRiskDocumentMapping: { - readonly documentEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedDocumentsCardFragment">; - }; - }; - }; -}; -export type RiskDocumentsTabCreateMutation = { - response: RiskDocumentsTabCreateMutation$data; - variables: RiskDocumentsTabCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RiskDocumentsTabCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRiskDocumentMappingPayload", - "kind": "LinkedField", - "name": "createRiskDocumentMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "documentEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedDocumentsCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "RiskDocumentsTabCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRiskDocumentMappingPayload", - "kind": "LinkedField", - "name": "createRiskDocumentMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "documentEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1)" - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "documentEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "933b0c7093f98de227585b3234890b6e", - "id": null, - "metadata": {}, - "name": "RiskDocumentsTabCreateMutation", - "operationKind": "mutation", - "text": "mutation RiskDocumentsTabCreateMutation(\n $input: CreateRiskDocumentMappingInput!\n) {\n createRiskDocumentMapping(input: $input) {\n documentEdge {\n node {\n id\n ...LinkedDocumentsCardFragment\n }\n }\n }\n}\n\nfragment LinkedDocumentsCardFragment on Document {\n id\n title\n documentType\n versions(first: 1) {\n edges {\n node {\n id\n status\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0847d69d95edfec177a03175e227ced6"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskDocumentsTabDetachMutation.graphql.ts b/apps/console/src/__generated__/core/RiskDocumentsTabDetachMutation.graphql.ts deleted file mode 100644 index 7b4bc6d35..000000000 --- a/apps/console/src/__generated__/core/RiskDocumentsTabDetachMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteRiskDocumentMappingInput = { - documentId: string; - riskId: string; -}; -export type RiskDocumentsTabDetachMutation$variables = { - connections: ReadonlyArray; - input: DeleteRiskDocumentMappingInput; -}; -export type RiskDocumentsTabDetachMutation$data = { - readonly deleteRiskDocumentMapping: { - readonly deletedDocumentId: string; - }; -}; -export type RiskDocumentsTabDetachMutation = { - response: RiskDocumentsTabDetachMutation$data; - variables: RiskDocumentsTabDetachMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedDocumentId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RiskDocumentsTabDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRiskDocumentMappingPayload", - "kind": "LinkedField", - "name": "deleteRiskDocumentMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "RiskDocumentsTabDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRiskDocumentMappingPayload", - "kind": "LinkedField", - "name": "deleteRiskDocumentMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedDocumentId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "a8dc5064c650c498193904e16790df6e", - "id": null, - "metadata": {}, - "name": "RiskDocumentsTabDetachMutation", - "operationKind": "mutation", - "text": "mutation RiskDocumentsTabDetachMutation(\n $input: DeleteRiskDocumentMappingInput!\n) {\n deleteRiskDocumentMapping(input: $input) {\n deletedDocumentId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0aa4bf52197d033dfc3aabca9288aad4"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskDocumentsTabFragment.graphql.ts b/apps/console/src/__generated__/core/RiskDocumentsTabFragment.graphql.ts deleted file mode 100644 index 3c54831e1..000000000 --- a/apps/console/src/__generated__/core/RiskDocumentsTabFragment.graphql.ts +++ /dev/null @@ -1,155 +0,0 @@ -/** - * @generated SignedSource<<1ccd9664c4fb02eb50e1284ed64372fb>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RiskDocumentsTabFragment$data = { - readonly documents: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedDocumentsCardFragment">; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "RiskDocumentsTabFragment"; -}; -export type RiskDocumentsTabFragment$key = { - readonly " $data"?: RiskDocumentsTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"RiskDocumentsTabFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "documents" - ] - } - ] - }, - "name": "RiskDocumentsTabFragment", - "selections": [ - (v0/*: any*/), - { - "alias": "documents", - "args": null, - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "__Risk__documents_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedDocumentsCardFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Risk", - "abstractKey": null -}; -})(); - -(node as any).hash = "91792e693e6326b25ceb70c14fdc154e"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/RiskGraphDeleteMutation.graphql.ts deleted file mode 100644 index 6288dd970..000000000 --- a/apps/console/src/__generated__/core/RiskGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteRiskInput = { - riskId: string; -}; -export type RiskGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteRiskInput; -}; -export type RiskGraphDeleteMutation$data = { - readonly deleteRisk: { - readonly deletedRiskId: string; - }; -}; -export type RiskGraphDeleteMutation = { - response: RiskGraphDeleteMutation$data; - variables: RiskGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedRiskId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RiskGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRiskPayload", - "kind": "LinkedField", - "name": "deleteRisk", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "RiskGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRiskPayload", - "kind": "LinkedField", - "name": "deleteRisk", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedRiskId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "57b2b12cd623a9c0a99bc5d13284e21e", - "id": null, - "metadata": {}, - "name": "RiskGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation RiskGraphDeleteMutation(\n $input: DeleteRiskInput!\n) {\n deleteRisk(input: $input) {\n deletedRiskId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a930aa55cb8dcca220dfb26783550877"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskGraphFragment.graphql.ts b/apps/console/src/__generated__/core/RiskGraphFragment.graphql.ts deleted file mode 100644 index afdb7ee6d..000000000 --- a/apps/console/src/__generated__/core/RiskGraphFragment.graphql.ts +++ /dev/null @@ -1,385 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type RiskTreatment = "ACCEPTED" | "AVOIDED" | "MITIGATED" | "TRANSFERRED"; -import { FragmentRefs } from "relay-runtime"; -export type RiskGraphFragment$data = { - readonly canCreateRisk: boolean; - readonly id: string; - readonly risks: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly category: string; - readonly id: string; - readonly inherentImpact: number; - readonly inherentLikelihood: number; - readonly inherentRiskScore: number; - readonly name: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - } | null | undefined; - readonly residualImpact: number; - readonly residualLikelihood: number; - readonly residualRiskScore: number; - readonly snapshotId: string | null | undefined; - readonly treatment: RiskTreatment; - readonly " $fragmentSpreads": FragmentRefs<"useRiskFormFragment">; - }; - }>; - }; - readonly " $fragmentType": "RiskGraphFragment"; -}; -export type RiskGraphFragment$key = { - readonly " $data"?: RiskGraphFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"RiskGraphFragment">; -}; - -import RisksListQuery_graphql from './RisksListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "risks" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": { - "direction": "DESC", - "field": "CREATED_AT" - }, - "kind": "LocalArgument", - "name": "order" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": RisksListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "RiskGraphFragment", - "selections": [ - { - "alias": "canCreateRisk", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:create\")" - }, - { - "alias": "risks", - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } - ], - "kind": "ObjectValue", - "name": "filter" - } - ], - "concreteType": "RiskConnection", - "kind": "LinkedField", - "name": "__RisksListQuery_risks_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RiskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "treatment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentRiskScore", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRiskScore", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:delete\")" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "useRiskFormFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "41dc9e3adc5d7d9b2126a49afef685c7"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/RiskGraphListQuery.graphql.ts deleted file mode 100644 index c918cd728..000000000 --- a/apps/console/src/__generated__/core/RiskGraphListQuery.graphql.ts +++ /dev/null @@ -1,404 +0,0 @@ -/** - * @generated SignedSource<<5d0ce2441ee091a190cec08eab043229>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RiskGraphListQuery$variables = { - organizationId: string; - snapshotId?: string | null | undefined; -}; -export type RiskGraphListQuery$data = { - readonly organization: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"RiskGraphFragment">; - }; -}; -export type RiskGraphListQuery = { - response: RiskGraphListQuery$data; - variables: RiskGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } -], -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v5 = [ - { - "fields": (v3/*: any*/), - "kind": "ObjectValue", - "name": "filter" - }, - { - "kind": "Literal", - "name": "first", - "value": 50 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "RiskGraphListQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": (v3/*: any*/), - "kind": "FragmentSpread", - "name": "RiskGraphFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "RiskGraphListQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canCreateRisk", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:create\")" - }, - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "RiskConnection", - "kind": "LinkedField", - "name": "risks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RiskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "treatment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentRiskScore", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRiskScore", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "note", - "storageKey": null - }, - (v4/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "RisksListQuery_risks", - "kind": "LinkedHandle", - "name": "risks" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "20216474d5c9d24aa9431f633154d13e", - "id": null, - "metadata": {}, - "name": "RiskGraphListQuery", - "operationKind": "query", - "text": "query RiskGraphListQuery(\n $organizationId: ID!\n $snapshotId: ID\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ...RiskGraphFragment_3iomuz\n }\n}\n\nfragment RiskGraphFragment_3iomuz on Organization {\n canCreateRisk: permission(action: \"core:risk:create\")\n risks(first: 50, orderBy: {direction: DESC, field: CREATED_AT}, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n category\n treatment\n owner {\n id\n fullName\n }\n inherentLikelihood\n inherentImpact\n residualLikelihood\n residualImpact\n inherentRiskScore\n residualRiskScore\n canUpdate: permission(action: \"core:risk:update\")\n canDelete: permission(action: \"core:risk:delete\")\n ...useRiskFormFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment useRiskFormFragment on Risk {\n id\n name\n category\n description\n treatment\n inherentLikelihood\n inherentImpact\n residualLikelihood\n residualImpact\n note\n owner {\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a6e146d7d0f9d2713796935d0d615311"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/RiskGraphNodeQuery.graphql.ts deleted file mode 100644 index 167a5e2bd..000000000 --- a/apps/console/src/__generated__/core/RiskGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,888 +0,0 @@ -/** - * @generated SignedSource<<1c344e51bb9407c1a5b0f5b330ec3890>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RiskTreatment = "ACCEPTED" | "AVOIDED" | "MITIGATED" | "TRANSFERRED"; -export type RiskGraphNodeQuery$variables = { - riskId: string; -}; -export type RiskGraphNodeQuery$data = { - readonly node: { - readonly canCreateDocumentMapping?: boolean; - readonly canCreateMeasureMapping?: boolean; - readonly canCreateObligationMapping?: boolean; - readonly canDelete?: boolean; - readonly canDeleteDocumentMapping?: boolean; - readonly canDeleteMeasureMapping?: boolean; - readonly canDeleteObligationMapping?: boolean; - readonly canUpdate?: boolean; - readonly controlsInfo?: { - readonly totalCount: number; - }; - readonly description?: string | null | undefined; - readonly documentsInfo?: { - readonly totalCount: number; - }; - readonly id?: string; - readonly inherentRiskScore?: number; - readonly measuresInfo?: { - readonly totalCount: number; - }; - readonly name?: string; - readonly note?: string; - readonly obligationsInfo?: { - readonly totalCount: number; - }; - readonly owner?: { - readonly fullName: string; - readonly id: string; - } | null | undefined; - readonly residualRiskScore?: number; - readonly snapshotId?: string | null | undefined; - readonly treatment?: RiskTreatment; - readonly " $fragmentSpreads": FragmentRefs<"RiskControlsTabFragment" | "RiskDocumentsTabFragment" | "RiskMeasuresTabFragment" | "RiskObligationsTabFragment" | "RiskOverviewTabFragment" | "useRiskFormFragment">; - }; -}; -export type RiskGraphNodeQuery = { - response: RiskGraphNodeQuery$data; - variables: RiskGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "riskId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "riskId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "treatment", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v2/*: any*/), - (v7/*: any*/) - ], - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "note", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentRiskScore", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRiskScore", - "storageKey": null -}, -v12 = [ - { - "kind": "Literal", - "name": "first", - "value": 0 - } -], -v13 = [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } -], -v14 = { - "alias": "measuresInfo", - "args": (v12/*: any*/), - "concreteType": "MeasureConnection", - "kind": "LinkedField", - "name": "measures", - "plural": false, - "selections": (v13/*: any*/), - "storageKey": "measures(first:0)" -}, -v15 = { - "alias": "documentsInfo", - "args": (v12/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": (v13/*: any*/), - "storageKey": "documents(first:0)" -}, -v16 = { - "alias": "controlsInfo", - "args": (v12/*: any*/), - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": (v13/*: any*/), - "storageKey": "controls(first:0)" -}, -v17 = { - "alias": "obligationsInfo", - "args": (v12/*: any*/), - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "obligations", - "plural": false, - "selections": (v13/*: any*/), - "storageKey": "obligations(first:0)" -}, -v18 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:update\")" -}, -v19 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:delete\")" -}, -v20 = { - "alias": "canCreateDocumentMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:create-document-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:create-document-mapping\")" -}, -v21 = { - "alias": "canDeleteDocumentMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:delete-document-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:delete-document-mapping\")" -}, -v22 = { - "alias": "canCreateMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:create-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:create-measure-mapping\")" -}, -v23 = { - "alias": "canDeleteMeasureMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:delete-measure-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:delete-measure-mapping\")" -}, -v24 = { - "alias": "canCreateObligationMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:create-obligation-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:create-obligation-mapping\")" -}, -v25 = { - "alias": "canDeleteObligationMapping", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:delete-obligation-mapping" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:delete-obligation-mapping\")" -}, -v26 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v27 = [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } -], -v28 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v29 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null -}, -v30 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null -}, -v31 = { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v29/*: any*/), - (v30/*: any*/) - ], - "storageKey": null -}, -v32 = { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] -}, -v33 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}, -v34 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "RiskGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/), - (v17/*: any*/), - (v18/*: any*/), - (v19/*: any*/), - (v20/*: any*/), - (v21/*: any*/), - (v22/*: any*/), - (v23/*: any*/), - (v24/*: any*/), - (v25/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "useRiskFormFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "RiskOverviewTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "RiskMeasuresTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "RiskDocumentsTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "RiskControlsTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "RiskObligationsTabFragment" - } - ], - "type": "Risk", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "RiskGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v26/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v14/*: any*/), - (v15/*: any*/), - (v16/*: any*/), - (v17/*: any*/), - (v18/*: any*/), - (v19/*: any*/), - (v20/*: any*/), - (v21/*: any*/), - (v22/*: any*/), - (v23/*: any*/), - (v24/*: any*/), - (v25/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualImpact", - "storageKey": null - }, - { - "alias": null, - "args": (v27/*: any*/), - "concreteType": "MeasureConnection", - "kind": "LinkedField", - "name": "measures", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - (v26/*: any*/) - ], - "storageKey": null - }, - (v28/*: any*/) - ], - "storageKey": null - }, - (v31/*: any*/), - (v32/*: any*/) - ], - "storageKey": "measures(first:100)" - }, - { - "alias": null, - "args": (v27/*: any*/), - "filters": null, - "handle": "connection", - "key": "Risk__measures", - "kind": "LinkedHandle", - "name": "measures" - }, - { - "alias": null, - "args": (v27/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - } - ], - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "versions", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v33/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "versions(first:1)" - }, - (v26/*: any*/) - ], - "storageKey": null - }, - (v28/*: any*/) - ], - "storageKey": null - }, - (v31/*: any*/), - (v32/*: any*/) - ], - "storageKey": "documents(first:100)" - }, - { - "alias": null, - "args": (v27/*: any*/), - "filters": null, - "handle": "connection", - "key": "Risk__documents", - "kind": "LinkedHandle", - "name": "documents" - }, - { - "alias": null, - "args": (v34/*: any*/), - "concreteType": "ControlConnection", - "kind": "LinkedField", - "name": "controls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ControlEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v4/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v2/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - }, - (v26/*: any*/) - ], - "storageKey": null - }, - (v28/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v29/*: any*/), - (v30/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "controls(first:20)" - }, - { - "alias": null, - "args": (v34/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "RiskControlsTab_controls", - "kind": "LinkedHandle", - "name": "controls" - }, - { - "alias": null, - "args": (v27/*: any*/), - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "obligations", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - (v33/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v7/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - (v26/*: any*/) - ], - "storageKey": null - }, - (v28/*: any*/) - ], - "storageKey": null - }, - (v31/*: any*/), - (v32/*: any*/) - ], - "storageKey": "obligations(first:100)" - }, - { - "alias": null, - "args": (v27/*: any*/), - "filters": null, - "handle": "connection", - "key": "Risk__obligations", - "kind": "LinkedHandle", - "name": "obligations" - } - ], - "type": "Risk", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "58b1d69c15a32ff1c6f505760e5205e1", - "id": null, - "metadata": {}, - "name": "RiskGraphNodeQuery", - "operationKind": "query", - "text": "query RiskGraphNodeQuery(\n $riskId: ID!\n) {\n node(id: $riskId) {\n __typename\n ... on Risk {\n id\n snapshotId\n name\n description\n treatment\n owner {\n id\n fullName\n }\n note\n inherentRiskScore\n residualRiskScore\n measuresInfo: measures(first: 0) {\n totalCount\n }\n documentsInfo: documents(first: 0) {\n totalCount\n }\n controlsInfo: controls(first: 0) {\n totalCount\n }\n obligationsInfo: obligations(first: 0) {\n totalCount\n }\n canUpdate: permission(action: \"core:risk:update\")\n canDelete: permission(action: \"core:risk:delete\")\n canCreateDocumentMapping: permission(action: \"core:risk:create-document-mapping\")\n canDeleteDocumentMapping: permission(action: \"core:risk:delete-document-mapping\")\n canCreateMeasureMapping: permission(action: \"core:risk:create-measure-mapping\")\n canDeleteMeasureMapping: permission(action: \"core:risk:delete-measure-mapping\")\n canCreateObligationMapping: permission(action: \"core:risk:create-obligation-mapping\")\n canDeleteObligationMapping: permission(action: \"core:risk:delete-obligation-mapping\")\n ...useRiskFormFragment\n ...RiskOverviewTabFragment\n ...RiskMeasuresTabFragment\n ...RiskDocumentsTabFragment\n ...RiskControlsTabFragment\n ...RiskObligationsTabFragment\n }\n id\n }\n}\n\nfragment LinkedDocumentsCardFragment on Document {\n id\n title\n documentType\n versions(first: 1) {\n edges {\n node {\n id\n status\n }\n }\n }\n}\n\nfragment LinkedMeasuresCardFragment on Measure {\n id\n name\n state\n}\n\nfragment LinkedObligationsCardFragment on Obligation {\n id\n area\n source\n status\n owner {\n fullName\n id\n }\n}\n\nfragment RiskControlsTabFragment on Risk {\n id\n controls(first: 20) {\n edges {\n node {\n id\n sectionTitle\n name\n framework {\n id\n name\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment RiskDocumentsTabFragment on Risk {\n id\n documents(first: 100) {\n edges {\n node {\n id\n ...LinkedDocumentsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment RiskMeasuresTabFragment on Risk {\n id\n measures(first: 100) {\n edges {\n node {\n id\n ...LinkedMeasuresCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment RiskObligationsTabFragment on Risk {\n id\n obligations(first: 100) {\n edges {\n node {\n id\n ...LinkedObligationsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment RiskOverviewTabFragment on Risk {\n inherentLikelihood\n inherentImpact\n residualLikelihood\n residualImpact\n}\n\nfragment useRiskFormFragment on Risk {\n id\n name\n category\n description\n treatment\n inherentLikelihood\n inherentImpact\n residualLikelihood\n residualImpact\n note\n owner {\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3ea74f7158cc3634d47af761c18dbadf"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskMeasuresTabCreateMutation.graphql.ts b/apps/console/src/__generated__/core/RiskMeasuresTabCreateMutation.graphql.ts deleted file mode 100644 index 90fb0a82d..000000000 --- a/apps/console/src/__generated__/core/RiskMeasuresTabCreateMutation.graphql.ts +++ /dev/null @@ -1,202 +0,0 @@ -/** - * @generated SignedSource<<6e27a069ae5675b9c83e369566a91d01>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateRiskMeasureMappingInput = { - measureId: string; - riskId: string; -}; -export type RiskMeasuresTabCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateRiskMeasureMappingInput; -}; -export type RiskMeasuresTabCreateMutation$data = { - readonly createRiskMeasureMapping: { - readonly measureEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedMeasuresCardFragment">; - }; - }; - }; -}; -export type RiskMeasuresTabCreateMutation = { - response: RiskMeasuresTabCreateMutation$data; - variables: RiskMeasuresTabCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RiskMeasuresTabCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRiskMeasureMappingPayload", - "kind": "LinkedField", - "name": "createRiskMeasureMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "measureEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedMeasuresCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "RiskMeasuresTabCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRiskMeasureMappingPayload", - "kind": "LinkedField", - "name": "createRiskMeasureMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "measureEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "measureEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "3b141d4117959b1f6efed67e8aa655cf", - "id": null, - "metadata": {}, - "name": "RiskMeasuresTabCreateMutation", - "operationKind": "mutation", - "text": "mutation RiskMeasuresTabCreateMutation(\n $input: CreateRiskMeasureMappingInput!\n) {\n createRiskMeasureMapping(input: $input) {\n measureEdge {\n node {\n id\n ...LinkedMeasuresCardFragment\n }\n }\n }\n}\n\nfragment LinkedMeasuresCardFragment on Measure {\n id\n name\n state\n}\n" - } -}; -})(); - -(node as any).hash = "982d31266eda233518c48f1fd0cd2f46"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskMeasuresTabDetachMutation.graphql.ts b/apps/console/src/__generated__/core/RiskMeasuresTabDetachMutation.graphql.ts deleted file mode 100644 index eecc9b4d3..000000000 --- a/apps/console/src/__generated__/core/RiskMeasuresTabDetachMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteRiskMeasureMappingInput = { - measureId: string; - riskId: string; -}; -export type RiskMeasuresTabDetachMutation$variables = { - connections: ReadonlyArray; - input: DeleteRiskMeasureMappingInput; -}; -export type RiskMeasuresTabDetachMutation$data = { - readonly deleteRiskMeasureMapping: { - readonly deletedMeasureId: string; - }; -}; -export type RiskMeasuresTabDetachMutation = { - response: RiskMeasuresTabDetachMutation$data; - variables: RiskMeasuresTabDetachMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedMeasureId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RiskMeasuresTabDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRiskMeasureMappingPayload", - "kind": "LinkedField", - "name": "deleteRiskMeasureMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "RiskMeasuresTabDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRiskMeasureMappingPayload", - "kind": "LinkedField", - "name": "deleteRiskMeasureMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedMeasureId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "81260f49b2f31c4a12f87b38bab7a683", - "id": null, - "metadata": {}, - "name": "RiskMeasuresTabDetachMutation", - "operationKind": "mutation", - "text": "mutation RiskMeasuresTabDetachMutation(\n $input: DeleteRiskMeasureMappingInput!\n) {\n deleteRiskMeasureMapping(input: $input) {\n deletedMeasureId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "c5adc6d900f0da15ec3acf7db304d410"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskMeasuresTabFragment.graphql.ts b/apps/console/src/__generated__/core/RiskMeasuresTabFragment.graphql.ts deleted file mode 100644 index 847264c8c..000000000 --- a/apps/console/src/__generated__/core/RiskMeasuresTabFragment.graphql.ts +++ /dev/null @@ -1,155 +0,0 @@ -/** - * @generated SignedSource<<5a37b1ce3c0c17ce36fc3e1157eadf8e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RiskMeasuresTabFragment$data = { - readonly id: string; - readonly measures: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedMeasuresCardFragment">; - }; - }>; - }; - readonly " $fragmentType": "RiskMeasuresTabFragment"; -}; -export type RiskMeasuresTabFragment$key = { - readonly " $data"?: RiskMeasuresTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"RiskMeasuresTabFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "measures" - ] - } - ] - }, - "name": "RiskMeasuresTabFragment", - "selections": [ - (v0/*: any*/), - { - "alias": "measures", - "args": null, - "concreteType": "MeasureConnection", - "kind": "LinkedField", - "name": "__Risk__measures_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedMeasuresCardFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Risk", - "abstractKey": null -}; -})(); - -(node as any).hash = "e928c83f7fea74daa5663d6f80518419"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskObligationsTabCreateMutation.graphql.ts b/apps/console/src/__generated__/core/RiskObligationsTabCreateMutation.graphql.ts deleted file mode 100644 index 86dbcb7bd..000000000 --- a/apps/console/src/__generated__/core/RiskObligationsTabCreateMutation.graphql.ts +++ /dev/null @@ -1,228 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateRiskObligationMappingInput = { - obligationId: string; - riskId: string; -}; -export type RiskObligationsTabCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateRiskObligationMappingInput; -}; -export type RiskObligationsTabCreateMutation$data = { - readonly createRiskObligationMapping: { - readonly obligationEdge: { - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedObligationsCardFragment">; - }; - }; - }; -}; -export type RiskObligationsTabCreateMutation = { - response: RiskObligationsTabCreateMutation$data; - variables: RiskObligationsTabCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RiskObligationsTabCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRiskObligationMappingPayload", - "kind": "LinkedField", - "name": "createRiskObligationMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "obligationEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedObligationsCardFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "RiskObligationsTabCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateRiskObligationMappingPayload", - "kind": "LinkedField", - "name": "createRiskObligationMapping", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "obligationEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "area", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "obligationEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1791b6813fcc2b1e751a8791283b3f2c", - "id": null, - "metadata": {}, - "name": "RiskObligationsTabCreateMutation", - "operationKind": "mutation", - "text": "mutation RiskObligationsTabCreateMutation(\n $input: CreateRiskObligationMappingInput!\n) {\n createRiskObligationMapping(input: $input) {\n obligationEdge {\n node {\n id\n ...LinkedObligationsCardFragment\n }\n }\n }\n}\n\nfragment LinkedObligationsCardFragment on Obligation {\n id\n area\n source\n status\n owner {\n fullName\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "eee2e37b1adaae513ca23b8c82f055c9"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskObligationsTabDetachMutation.graphql.ts b/apps/console/src/__generated__/core/RiskObligationsTabDetachMutation.graphql.ts deleted file mode 100644 index af87d9554..000000000 --- a/apps/console/src/__generated__/core/RiskObligationsTabDetachMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<<58dd326af2caac72cf50ed8f289a3cac>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteRiskObligationMappingInput = { - obligationId: string; - riskId: string; -}; -export type RiskObligationsTabDetachMutation$variables = { - connections: ReadonlyArray; - input: DeleteRiskObligationMappingInput; -}; -export type RiskObligationsTabDetachMutation$data = { - readonly deleteRiskObligationMapping: { - readonly deletedObligationId: string; - }; -}; -export type RiskObligationsTabDetachMutation = { - response: RiskObligationsTabDetachMutation$data; - variables: RiskObligationsTabDetachMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedObligationId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RiskObligationsTabDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRiskObligationMappingPayload", - "kind": "LinkedField", - "name": "deleteRiskObligationMapping", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "RiskObligationsTabDetachMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteRiskObligationMappingPayload", - "kind": "LinkedField", - "name": "deleteRiskObligationMapping", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedObligationId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "97b75f003c5e9518831c9699a2fcaff0", - "id": null, - "metadata": {}, - "name": "RiskObligationsTabDetachMutation", - "operationKind": "mutation", - "text": "mutation RiskObligationsTabDetachMutation(\n $input: DeleteRiskObligationMappingInput!\n) {\n deleteRiskObligationMapping(input: $input) {\n deletedObligationId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "5923c7e9bcb08224ba1a60b0ad09642a"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskObligationsTabFragment.graphql.ts b/apps/console/src/__generated__/core/RiskObligationsTabFragment.graphql.ts deleted file mode 100644 index b7303a72b..000000000 --- a/apps/console/src/__generated__/core/RiskObligationsTabFragment.graphql.ts +++ /dev/null @@ -1,155 +0,0 @@ -/** - * @generated SignedSource<<1e3d6c1d36e2004b383479fb2e159c66>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RiskObligationsTabFragment$data = { - readonly id: string; - readonly obligations: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"LinkedObligationsCardFragment">; - }; - }>; - }; - readonly " $fragmentType": "RiskObligationsTabFragment"; -}; -export type RiskObligationsTabFragment$key = { - readonly " $data"?: RiskObligationsTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"RiskObligationsTabFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "obligations" - ] - } - ] - }, - "name": "RiskObligationsTabFragment", - "selections": [ - (v0/*: any*/), - { - "alias": "obligations", - "args": null, - "concreteType": "ObligationConnection", - "kind": "LinkedField", - "name": "__Risk__obligations_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ObligationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Obligation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "LinkedObligationsCardFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Risk", - "abstractKey": null -}; -})(); - -(node as any).hash = "e987e7c6dcfb73b71f769469b32c2b64"; - -export default node; diff --git a/apps/console/src/__generated__/core/RiskOverviewTabFragment.graphql.ts b/apps/console/src/__generated__/core/RiskOverviewTabFragment.graphql.ts deleted file mode 100644 index 664f76884..000000000 --- a/apps/console/src/__generated__/core/RiskOverviewTabFragment.graphql.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * @generated SignedSource<<365bac44d5935d4e373f6f126266584c>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type RiskOverviewTabFragment$data = { - readonly inherentImpact: number; - readonly inherentLikelihood: number; - readonly residualImpact: number; - readonly residualLikelihood: number; - readonly " $fragmentType": "RiskOverviewTabFragment"; -}; -export type RiskOverviewTabFragment$key = { - readonly " $data"?: RiskOverviewTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"RiskOverviewTabFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "RiskOverviewTabFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualImpact", - "storageKey": null - } - ], - "type": "Risk", - "abstractKey": null -}; - -(node as any).hash = "1268614eb62d89df8b8b7153d9c72082"; - -export default node; diff --git a/apps/console/src/__generated__/core/RisksListQuery.graphql.ts b/apps/console/src/__generated__/core/RisksListQuery.graphql.ts deleted file mode 100644 index 00e3676e8..000000000 --- a/apps/console/src/__generated__/core/RisksListQuery.graphql.ts +++ /dev/null @@ -1,482 +0,0 @@ -/** - * @generated SignedSource<<9e0dbdc51e36a1a2a35b9db4653c0302>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type RiskOrderField = "CATEGORY" | "CREATED_AT" | "INHERENT_RISK_SCORE" | "NAME" | "OWNER_FULL_NAME" | "RESIDUAL_RISK_SCORE" | "TREATMENT" | "UPDATED_AT"; -export type RiskOrder = { - direction: OrderDirection; - field: RiskOrderField; -}; -export type RisksListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: RiskOrder | null | undefined; - snapshotId?: string | null | undefined; -}; -export type RisksListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"RiskGraphFragment">; - }; -}; -export type RisksListQuery = { - response: RisksListQuery$data; - variables: RisksListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": { - "direction": "DESC", - "field": "CREATED_AT" - }, - "kind": "LocalArgument", - "name": "order" -}, -v6 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v8 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v9 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v10 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v11 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v12 = { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v15 = [ - (v8/*: any*/), - (v9/*: any*/), - { - "fields": [ - (v12/*: any*/) - ], - "kind": "ObjectValue", - "name": "filter" - }, - (v10/*: any*/), - (v11/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "RisksListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - }, - (v12/*: any*/) - ], - "kind": "FragmentSpread", - "name": "RiskGraphFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "RisksListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v13/*: any*/), - (v14/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canCreateRisk", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:create\")" - }, - { - "alias": null, - "args": (v15/*: any*/), - "concreteType": "RiskConnection", - "kind": "LinkedField", - "name": "risks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "RiskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Risk", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "treatment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v14/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentRiskScore", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualRiskScore", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "note", - "storageKey": null - }, - (v13/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v15/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "RisksListQuery_risks", - "kind": "LinkedHandle", - "name": "risks" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "16d76019c4b6adc33d6f3ddae18feb38", - "id": null, - "metadata": {}, - "name": "RisksListQuery", - "operationKind": "query", - "text": "query RisksListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: RiskOrder = {direction: DESC, field: CREATED_AT}\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RiskGraphFragment_25MC8O\n id\n }\n}\n\nfragment RiskGraphFragment_25MC8O on Organization {\n canCreateRisk: permission(action: \"core:risk:create\")\n risks(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n category\n treatment\n owner {\n id\n fullName\n }\n inherentLikelihood\n inherentImpact\n residualLikelihood\n residualImpact\n inherentRiskScore\n residualRiskScore\n canUpdate: permission(action: \"core:risk:update\")\n canDelete: permission(action: \"core:risk:delete\")\n ...useRiskFormFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment useRiskFormFragment on Risk {\n id\n name\n category\n description\n treatment\n inherentLikelihood\n inherentImpact\n residualLikelihood\n residualImpact\n note\n owner {\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "41dc9e3adc5d7d9b2126a49afef685c7"; - -export default node; diff --git a/apps/console/src/__generated__/core/SendUpdateDialogMutation.graphql.ts b/apps/console/src/__generated__/core/SendUpdateDialogMutation.graphql.ts deleted file mode 100644 index 8f04ae7f3..000000000 --- a/apps/console/src/__generated__/core/SendUpdateDialogMutation.graphql.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @generated SignedSource<<7eced414e0638e806b52e86afcb6cca4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type MailingListUpdateStatus = "DRAFT" | "ENQUEUED" | "PROCESSING" | "SENT"; -export type SendMailingListUpdateInput = { - id: string; -}; -export type SendUpdateDialogMutation$variables = { - input: SendMailingListUpdateInput; -}; -export type SendUpdateDialogMutation$data = { - readonly sendMailingListUpdate: { - readonly mailingListUpdate: { - readonly body: string; - readonly id: string; - readonly status: MailingListUpdateStatus; - readonly title: string; - readonly updatedAt: string; - }; - }; -}; -export type SendUpdateDialogMutation = { - response: SendUpdateDialogMutation$data; - variables: SendUpdateDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "SendMailingListUpdatePayload", - "kind": "LinkedField", - "name": "sendMailingListUpdate", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListUpdate", - "kind": "LinkedField", - "name": "mailingListUpdate", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "body", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SendUpdateDialogMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SendUpdateDialogMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "714c7cc9cdb06cb384690e17cdaa9958", - "id": null, - "metadata": {}, - "name": "SendUpdateDialogMutation", - "operationKind": "mutation", - "text": "mutation SendUpdateDialogMutation(\n $input: SendMailingListUpdateInput!\n) {\n sendMailingListUpdate(input: $input) {\n mailingListUpdate {\n id\n title\n body\n status\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "9ec6f363395b934616b97fe50b83d328"; - -export default node; diff --git a/apps/console/src/__generated__/core/SignatureDocumentsDialogMutation.graphql.ts b/apps/console/src/__generated__/core/SignatureDocumentsDialogMutation.graphql.ts deleted file mode 100644 index 651fca514..000000000 --- a/apps/console/src/__generated__/core/SignatureDocumentsDialogMutation.graphql.ts +++ /dev/null @@ -1,128 +0,0 @@ -/** - * @generated SignedSource<<14890a4f10a8862a8aaf30ee1dc6f065>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentVersionSignatureState = "REQUESTED" | "SIGNED"; -export type BulkRequestSignaturesInput = { - documentIds: ReadonlyArray; - signatoryIds: ReadonlyArray; -}; -export type SignatureDocumentsDialogMutation$variables = { - input: BulkRequestSignaturesInput; -}; -export type SignatureDocumentsDialogMutation$data = { - readonly bulkRequestSignatures: { - readonly documentVersionSignatureEdges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly state: DocumentVersionSignatureState; - }; - }>; - }; -}; -export type SignatureDocumentsDialogMutation = { - response: SignatureDocumentsDialogMutation$data; - variables: SignatureDocumentsDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "BulkRequestSignaturesPayload", - "kind": "LinkedField", - "name": "bulkRequestSignatures", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignatureEdge", - "kind": "LinkedField", - "name": "documentVersionSignatureEdges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignature", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SignatureDocumentsDialogMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SignatureDocumentsDialogMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "4426d76c855d441caab5c932c2ceb2ba", - "id": null, - "metadata": {}, - "name": "SignatureDocumentsDialogMutation", - "operationKind": "mutation", - "text": "mutation SignatureDocumentsDialogMutation(\n $input: BulkRequestSignaturesInput!\n) {\n bulkRequestSignatures(input: $input) {\n documentVersionSignatureEdges {\n node {\n id\n state\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "1dbd9a7870416bf75d0a6fe44ebde408"; - -export default node; diff --git a/apps/console/src/__generated__/core/SnapshotBannerQuery.graphql.ts b/apps/console/src/__generated__/core/SnapshotBannerQuery.graphql.ts deleted file mode 100644 index 786925808..000000000 --- a/apps/console/src/__generated__/core/SnapshotBannerQuery.graphql.ts +++ /dev/null @@ -1,155 +0,0 @@ -/** - * @generated SignedSource<<2b49935877fd64d39d0cfd649f3f01a5>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "STATES_OF_APPLICABILITY" | "VENDORS"; -export type SnapshotBannerQuery$variables = { - snapshotId: string; -}; -export type SnapshotBannerQuery$data = { - readonly node: { - readonly createdAt?: string; - readonly id?: string; - readonly name?: string; - readonly type?: SnapshotsType; - }; -}; -export type SnapshotBannerQuery = { - response: SnapshotBannerQuery$data; - variables: SnapshotBannerQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "snapshotId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SnapshotBannerQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "type": "Snapshot", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SnapshotBannerQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "type": "Snapshot", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "7e026c7c030cd116b4794260934c394f", - "id": null, - "metadata": {}, - "name": "SnapshotBannerQuery", - "operationKind": "query", - "text": "query SnapshotBannerQuery(\n $snapshotId: ID!\n) {\n node(id: $snapshotId) {\n __typename\n ... on Snapshot {\n id\n name\n type\n createdAt\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e50a4bb5133d8e918b8b2b9d2a42f1d1"; - -export default node; diff --git a/apps/console/src/__generated__/core/SnapshotFormDialogCreateMutation.graphql.ts b/apps/console/src/__generated__/core/SnapshotFormDialogCreateMutation.graphql.ts deleted file mode 100644 index a0653b247..000000000 --- a/apps/console/src/__generated__/core/SnapshotFormDialogCreateMutation.graphql.ts +++ /dev/null @@ -1,208 +0,0 @@ -/** - * @generated SignedSource<<8fe6c01dea59b2ae2d04050e3cb959d1>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "STATES_OF_APPLICABILITY" | "VENDORS"; -export type CreateSnapshotInput = { - description?: string | null | undefined; - name: string; - organizationId: string; - type: SnapshotsType; -}; -export type SnapshotFormDialogCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateSnapshotInput; -}; -export type SnapshotFormDialogCreateMutation$data = { - readonly createSnapshot: { - readonly snapshotEdge: { - readonly node: { - readonly canDelete: boolean; - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - readonly type: SnapshotsType; - }; - }; - }; -}; -export type SnapshotFormDialogCreateMutation = { - response: SnapshotFormDialogCreateMutation$data; - variables: SnapshotFormDialogCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "snapshotEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:snapshot:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:snapshot:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "SnapshotFormDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateSnapshotPayload", - "kind": "LinkedField", - "name": "createSnapshot", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "SnapshotFormDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateSnapshotPayload", - "kind": "LinkedField", - "name": "createSnapshot", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "snapshotEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "5165891e3f49f2b9e3d1a0b29a0f8bf6", - "id": null, - "metadata": {}, - "name": "SnapshotFormDialogCreateMutation", - "operationKind": "mutation", - "text": "mutation SnapshotFormDialogCreateMutation(\n $input: CreateSnapshotInput!\n) {\n createSnapshot(input: $input) {\n snapshotEdge {\n node {\n id\n name\n description\n type\n createdAt\n canDelete: permission(action: \"core:snapshot:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "1a844eb9af4ea94b194deaf65ba068a0"; - -export default node; diff --git a/apps/console/src/__generated__/core/SnapshotGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/SnapshotGraphCreateMutation.graphql.ts deleted file mode 100644 index c5e441b0f..000000000 --- a/apps/console/src/__generated__/core/SnapshotGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,194 +0,0 @@ -/** - * @generated SignedSource<<1d5ff0e0f9c52ef9b340d17be0f9895f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "STATES_OF_APPLICABILITY" | "VENDORS"; -export type CreateSnapshotInput = { - description?: string | null | undefined; - name: string; - organizationId: string; - type: SnapshotsType; -}; -export type SnapshotGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateSnapshotInput; -}; -export type SnapshotGraphCreateMutation$data = { - readonly createSnapshot: { - readonly snapshotEdge: { - readonly node: { - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - readonly type: SnapshotsType; - }; - }; - }; -}; -export type SnapshotGraphCreateMutation = { - response: SnapshotGraphCreateMutation$data; - variables: SnapshotGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "snapshotEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "SnapshotGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateSnapshotPayload", - "kind": "LinkedField", - "name": "createSnapshot", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "SnapshotGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateSnapshotPayload", - "kind": "LinkedField", - "name": "createSnapshot", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "snapshotEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "aa2e8ace42f6154271b5d035ae18cad2", - "id": null, - "metadata": {}, - "name": "SnapshotGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation SnapshotGraphCreateMutation(\n $input: CreateSnapshotInput!\n) {\n createSnapshot(input: $input) {\n snapshotEdge {\n node {\n id\n name\n description\n type\n createdAt\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "97d681687efde567b46938fc0541635f"; - -export default node; diff --git a/apps/console/src/__generated__/core/SnapshotGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/SnapshotGraphDeleteMutation.graphql.ts deleted file mode 100644 index 1b3a56713..000000000 --- a/apps/console/src/__generated__/core/SnapshotGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<6a696f2d1ebd4a2e733bd9d1b3c42017>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteSnapshotInput = { - snapshotId: string; -}; -export type SnapshotGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteSnapshotInput; -}; -export type SnapshotGraphDeleteMutation$data = { - readonly deleteSnapshot: { - readonly deletedSnapshotId: string; - }; -}; -export type SnapshotGraphDeleteMutation = { - response: SnapshotGraphDeleteMutation$data; - variables: SnapshotGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedSnapshotId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "SnapshotGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteSnapshotPayload", - "kind": "LinkedField", - "name": "deleteSnapshot", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "SnapshotGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteSnapshotPayload", - "kind": "LinkedField", - "name": "deleteSnapshot", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedSnapshotId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f5f81e50b61dbc8d5668e421cf88223f", - "id": null, - "metadata": {}, - "name": "SnapshotGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation SnapshotGraphDeleteMutation(\n $input: DeleteSnapshotInput!\n) {\n deleteSnapshot(input: $input) {\n deletedSnapshotId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "cc7cb0955bf74c611136392354ff8dcf"; - -export default node; diff --git a/apps/console/src/__generated__/core/SnapshotGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/SnapshotGraphListQuery.graphql.ts deleted file mode 100644 index 4d1f35478..000000000 --- a/apps/console/src/__generated__/core/SnapshotGraphListQuery.graphql.ts +++ /dev/null @@ -1,282 +0,0 @@ -/** - * @generated SignedSource<<55bde95f500bc2496ce224e275e49984>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type SnapshotGraphListQuery$variables = { - organizationId: string; -}; -export type SnapshotGraphListQuery$data = { - readonly organization: { - readonly canCreateSnapshot?: boolean; - readonly " $fragmentSpreads": FragmentRefs<"SnapshotsPageFragment">; - }; -}; -export type SnapshotGraphListQuery = { - response: SnapshotGraphListQuery$data; - variables: SnapshotGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": "canCreateSnapshot", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:snapshot:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:snapshot:create\")" -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } -], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SnapshotGraphListQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "SnapshotsPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SnapshotGraphListQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "SnapshotConnection", - "kind": "LinkedField", - "name": "snapshots", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:snapshot:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:snapshot:delete\")" - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "snapshots(first:100)" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": null, - "handle": "connection", - "key": "SnapshotsGraphListQuery__snapshots", - "kind": "LinkedHandle", - "name": "snapshots" - } - ], - "type": "Organization", - "abstractKey": null - }, - (v5/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "5925e1c6f87d598008baeef50bf620c7", - "id": null, - "metadata": {}, - "name": "SnapshotGraphListQuery", - "operationKind": "query", - "text": "query SnapshotGraphListQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateSnapshot: permission(action: \"core:snapshot:create\")\n ...SnapshotsPageFragment\n }\n id\n }\n}\n\nfragment SnapshotsPageFragment on Organization {\n snapshots(first: 100) {\n edges {\n node {\n id\n name\n description\n type\n createdAt\n canDelete: permission(action: \"core:snapshot:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "18d12720fafef47af62376e8461fd19f"; - -export default node; diff --git a/apps/console/src/__generated__/core/SnapshotGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/SnapshotGraphNodeQuery.graphql.ts deleted file mode 100644 index 5472b4190..000000000 --- a/apps/console/src/__generated__/core/SnapshotGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,184 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "STATES_OF_APPLICABILITY" | "VENDORS"; -export type SnapshotGraphNodeQuery$variables = { - snapshotId: string; -}; -export type SnapshotGraphNodeQuery$data = { - readonly node: { - readonly createdAt?: string; - readonly description?: string | null | undefined; - readonly id?: string; - readonly name?: string; - readonly organization?: { - readonly id: string; - readonly name: string; - }; - readonly type?: SnapshotsType; - }; -}; -export type SnapshotGraphNodeQuery = { - response: SnapshotGraphNodeQuery$data; - variables: SnapshotGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "snapshotId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/) - ], - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SnapshotGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/) - ], - "type": "Snapshot", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SnapshotGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/) - ], - "type": "Snapshot", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "8dafbbd8ecc8442fa065d19bba932ce2", - "id": null, - "metadata": {}, - "name": "SnapshotGraphNodeQuery", - "operationKind": "query", - "text": "query SnapshotGraphNodeQuery(\n $snapshotId: ID!\n) {\n node(id: $snapshotId) {\n __typename\n ... on Snapshot {\n id\n name\n description\n type\n organization {\n id\n name\n }\n createdAt\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b687d3da56dbfa333e66f4f2c9c0c824"; - -export default node; diff --git a/apps/console/src/__generated__/core/SnapshotsPageFragment.graphql.ts b/apps/console/src/__generated__/core/SnapshotsPageFragment.graphql.ts deleted file mode 100644 index d5b24f1f7..000000000 --- a/apps/console/src/__generated__/core/SnapshotsPageFragment.graphql.ts +++ /dev/null @@ -1,191 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type SnapshotsType = "ASSETS" | "CONTINUAL_IMPROVEMENTS" | "DATA" | "NONCONFORMITIES" | "OBLIGATIONS" | "PROCESSING_ACTIVITIES" | "RISKS" | "STATES_OF_APPLICABILITY" | "VENDORS"; -import { FragmentRefs } from "relay-runtime"; -export type SnapshotsPageFragment$data = { - readonly snapshots: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - readonly type: SnapshotsType; - }; - }>; - }; - readonly " $fragmentType": "SnapshotsPageFragment"; -}; -export type SnapshotsPageFragment$key = { - readonly " $data"?: SnapshotsPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"SnapshotsPageFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "snapshots" - ] - } - ] - }, - "name": "SnapshotsPageFragment", - "selections": [ - { - "alias": "snapshots", - "args": null, - "concreteType": "SnapshotConnection", - "kind": "LinkedField", - "name": "__SnapshotsGraphListQuery__snapshots_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SnapshotEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Snapshot", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "type", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:snapshot:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:snapshot:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "d924051b479e33aa7fb627e7ad8ad664"; - -export default node; diff --git a/apps/console/src/__generated__/core/StateOfApplicabilityControlsTabDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/StateOfApplicabilityControlsTabDeleteMutation.graphql.ts deleted file mode 100644 index 7146ce57d..000000000 --- a/apps/console/src/__generated__/core/StateOfApplicabilityControlsTabDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteApplicabilityStatementInput = { - applicabilityStatementId: string; -}; -export type StateOfApplicabilityControlsTabDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteApplicabilityStatementInput; -}; -export type StateOfApplicabilityControlsTabDeleteMutation$data = { - readonly deleteApplicabilityStatement: { - readonly deletedApplicabilityStatementId: string; - }; -}; -export type StateOfApplicabilityControlsTabDeleteMutation = { - response: StateOfApplicabilityControlsTabDeleteMutation$data; - variables: StateOfApplicabilityControlsTabDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedApplicabilityStatementId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "StateOfApplicabilityControlsTabDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteApplicabilityStatementPayload", - "kind": "LinkedField", - "name": "deleteApplicabilityStatement", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "StateOfApplicabilityControlsTabDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteApplicabilityStatementPayload", - "kind": "LinkedField", - "name": "deleteApplicabilityStatement", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedApplicabilityStatementId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "427051073f5e747e828d282a773e4db6", - "id": null, - "metadata": {}, - "name": "StateOfApplicabilityControlsTabDeleteMutation", - "operationKind": "mutation", - "text": "mutation StateOfApplicabilityControlsTabDeleteMutation(\n $input: DeleteApplicabilityStatementInput!\n) {\n deleteApplicabilityStatement(input: $input) {\n deletedApplicabilityStatementId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "860e6ba50b4d8cfd9dd53416d5e3b710"; - -export default node; diff --git a/apps/console/src/__generated__/core/StateOfApplicabilityControlsTabFragment.graphql.ts b/apps/console/src/__generated__/core/StateOfApplicabilityControlsTabFragment.graphql.ts deleted file mode 100644 index 32f5a5937..000000000 --- a/apps/console/src/__generated__/core/StateOfApplicabilityControlsTabFragment.graphql.ts +++ /dev/null @@ -1,317 +0,0 @@ -/** - * @generated SignedSource<<3eedb29b73b6e2c450d59f1d1ae0d88a>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type StateOfApplicabilityControlsTabFragment$data = { - readonly applicabilityStatements: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly applicability: boolean; - readonly control: { - readonly bestPractice: boolean; - readonly contractual: boolean; - readonly framework: { - readonly id: string; - readonly name: string; - }; - readonly id: string; - readonly name: string; - readonly organization: { - readonly id: string; - } | null | undefined; - readonly regulatory: boolean; - readonly riskAssessment: boolean; - readonly sectionTitle: string; - }; - readonly id: string; - readonly justification: string; - }; - }>; - }; - readonly canCreateApplicabilityStatement: boolean; - readonly canDeleteApplicabilityStatement: boolean; - readonly canUpdateApplicabilityStatement: boolean; - readonly id: string; - readonly organization: { - readonly id: string; - } | null | undefined; - readonly " $fragmentType": "StateOfApplicabilityControlsTabFragment"; -}; -export type StateOfApplicabilityControlsTabFragment$key = { - readonly " $data"?: StateOfApplicabilityControlsTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"StateOfApplicabilityControlsTabFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v0/*: any*/) - ], - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "applicabilityStatements" - ] - } - ] - }, - "name": "StateOfApplicabilityControlsTabFragment", - "selections": [ - (v0/*: any*/), - (v1/*: any*/), - { - "alias": "canCreateApplicabilityStatement", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:applicability-statement:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:applicability-statement:create\")" - }, - { - "alias": "canUpdateApplicabilityStatement", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:applicability-statement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:applicability-statement:update\")" - }, - { - "alias": "canDeleteApplicabilityStatement", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:applicability-statement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:applicability-statement:delete\")" - }, - { - "alias": "applicabilityStatements", - "args": [ - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "CONTROL_SECTION_TITLE" - } - } - ], - "concreteType": "ApplicabilityStatementConnection", - "kind": "LinkedField", - "name": "__StateOfApplicabilityControlsTab_applicabilityStatements_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatementEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "applicability", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "justification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "control", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "bestPractice", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "regulatory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractual", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "riskAssessment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v0/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "__StateOfApplicabilityControlsTab_applicabilityStatements_connection(orderBy:{\"direction\":\"ASC\",\"field\":\"CONTROL_SECTION_TITLE\"})" - } - ], - "type": "StateOfApplicability", - "abstractKey": null -}; -})(); - -(node as any).hash = "b80671ffb8f18997cb72a9beddd6cad3"; - -export default node; diff --git a/apps/console/src/__generated__/core/StateOfApplicabilityControlsTabRefetchQuery.graphql.ts b/apps/console/src/__generated__/core/StateOfApplicabilityControlsTabRefetchQuery.graphql.ts deleted file mode 100644 index ae496e514..000000000 --- a/apps/console/src/__generated__/core/StateOfApplicabilityControlsTabRefetchQuery.graphql.ts +++ /dev/null @@ -1,370 +0,0 @@ -/** - * @generated SignedSource<<6205c318cd1e934de3d61bd54de6e67d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type StateOfApplicabilityControlsTabRefetchQuery$variables = { - stateOfApplicabilityId: string; -}; -export type StateOfApplicabilityControlsTabRefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"StateOfApplicabilityControlsTabFragment">; - }; -}; -export type StateOfApplicabilityControlsTabRefetchQuery = { - response: StateOfApplicabilityControlsTabRefetchQuery$data; - variables: StateOfApplicabilityControlsTabRefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "stateOfApplicabilityId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "stateOfApplicabilityId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null -}, -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 1000 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "CONTROL_SECTION_TITLE" - } - } -], -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "StateOfApplicabilityControlsTabRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "StateOfApplicabilityControlsTabFragment" - } - ], - "type": "StateOfApplicability", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "StateOfApplicabilityControlsTabRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v4/*: any*/), - { - "alias": "canCreateApplicabilityStatement", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:applicability-statement:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:applicability-statement:create\")" - }, - { - "alias": "canUpdateApplicabilityStatement", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:applicability-statement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:applicability-statement:update\")" - }, - { - "alias": "canDeleteApplicabilityStatement", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:applicability-statement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:applicability-statement:delete\")" - }, - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "ApplicabilityStatementConnection", - "kind": "LinkedField", - "name": "applicabilityStatements", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatementEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "applicability", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "justification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "control", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v6/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "bestPractice", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "regulatory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractual", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "riskAssessment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v3/*: any*/), - (v6/*: any*/) - ], - "storageKey": null - }, - (v4/*: any*/) - ], - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "applicabilityStatements(first:1000,orderBy:{\"direction\":\"ASC\",\"field\":\"CONTROL_SECTION_TITLE\"})" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "StateOfApplicabilityControlsTab_applicabilityStatements", - "kind": "LinkedHandle", - "name": "applicabilityStatements" - } - ], - "type": "StateOfApplicability", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "33994a831b0a5b34f01e96337e1a638d", - "id": null, - "metadata": {}, - "name": "StateOfApplicabilityControlsTabRefetchQuery", - "operationKind": "query", - "text": "query StateOfApplicabilityControlsTabRefetchQuery(\n $stateOfApplicabilityId: ID!\n) {\n node(id: $stateOfApplicabilityId) {\n __typename\n ... on StateOfApplicability {\n ...StateOfApplicabilityControlsTabFragment\n }\n id\n }\n}\n\nfragment StateOfApplicabilityControlsTabFragment on StateOfApplicability {\n id\n organization {\n id\n }\n canCreateApplicabilityStatement: permission(action: \"core:applicability-statement:create\")\n canUpdateApplicabilityStatement: permission(action: \"core:applicability-statement:update\")\n canDeleteApplicabilityStatement: permission(action: \"core:applicability-statement:delete\")\n applicabilityStatements(first: 1000, orderBy: {direction: ASC, field: CONTROL_SECTION_TITLE}) {\n edges {\n node {\n id\n applicability\n justification\n control {\n id\n sectionTitle\n name\n bestPractice\n regulatory\n contractual\n riskAssessment\n framework {\n id\n name\n }\n organization {\n id\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e0895b7dc7342b7df2d310a3a316bac1"; - -export default node; diff --git a/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageDeleteMutation.graphql.ts deleted file mode 100644 index 269f9d750..000000000 --- a/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<56cf69173dcd665f19c4273ab108f383>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteStateOfApplicabilityInput = { - stateOfApplicabilityId: string; -}; -export type StateOfApplicabilityDetailPageDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteStateOfApplicabilityInput; -}; -export type StateOfApplicabilityDetailPageDeleteMutation$data = { - readonly deleteStateOfApplicability: { - readonly deletedStateOfApplicabilityId: string; - }; -}; -export type StateOfApplicabilityDetailPageDeleteMutation = { - response: StateOfApplicabilityDetailPageDeleteMutation$data; - variables: StateOfApplicabilityDetailPageDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedStateOfApplicabilityId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "StateOfApplicabilityDetailPageDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteStateOfApplicabilityPayload", - "kind": "LinkedField", - "name": "deleteStateOfApplicability", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "StateOfApplicabilityDetailPageDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteStateOfApplicabilityPayload", - "kind": "LinkedField", - "name": "deleteStateOfApplicability", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedStateOfApplicabilityId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "13f5a325289c902aca142880e1f30648", - "id": null, - "metadata": {}, - "name": "StateOfApplicabilityDetailPageDeleteMutation", - "operationKind": "mutation", - "text": "mutation StateOfApplicabilityDetailPageDeleteMutation(\n $input: DeleteStateOfApplicabilityInput!\n) {\n deleteStateOfApplicability(input: $input) {\n deletedStateOfApplicabilityId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b511cc3d55c6ebb1517687f706026333"; - -export default node; diff --git a/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageExportMutation.graphql.ts b/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageExportMutation.graphql.ts deleted file mode 100644 index 8baf70251..000000000 --- a/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageExportMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<9dc238538172b956fb81954024522ee1>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ExportStateOfApplicabilityPDFInput = { - stateOfApplicabilityId: string; -}; -export type StateOfApplicabilityDetailPageExportMutation$variables = { - input: ExportStateOfApplicabilityPDFInput; -}; -export type StateOfApplicabilityDetailPageExportMutation$data = { - readonly exportStateOfApplicabilityPDF: { - readonly data: string; - }; -}; -export type StateOfApplicabilityDetailPageExportMutation = { - response: StateOfApplicabilityDetailPageExportMutation$data; - variables: StateOfApplicabilityDetailPageExportMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ExportStateOfApplicabilityPDFPayload", - "kind": "LinkedField", - "name": "exportStateOfApplicabilityPDF", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "data", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "StateOfApplicabilityDetailPageExportMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "StateOfApplicabilityDetailPageExportMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "dbc24d23ab71abb76f95b114f86f200d", - "id": null, - "metadata": {}, - "name": "StateOfApplicabilityDetailPageExportMutation", - "operationKind": "mutation", - "text": "mutation StateOfApplicabilityDetailPageExportMutation(\n $input: ExportStateOfApplicabilityPDFInput!\n) {\n exportStateOfApplicabilityPDF(input: $input) {\n data\n }\n}\n" - } -}; -})(); - -(node as any).hash = "36be308a451ada118c2bcc9c3b0c0a2b"; - -export default node; diff --git a/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageQuery.graphql.ts b/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageQuery.graphql.ts deleted file mode 100644 index 3d00a113f..000000000 --- a/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageQuery.graphql.ts +++ /dev/null @@ -1,478 +0,0 @@ -/** - * @generated SignedSource<<4158635c34bcd324a1cf177d1df621a2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type StateOfApplicabilityDetailPageQuery$variables = { - stateOfApplicabilityId: string; -}; -export type StateOfApplicabilityDetailPageQuery$data = { - readonly node: { - readonly canDelete?: boolean; - readonly canExport?: boolean; - readonly canUpdate?: boolean; - readonly createdAt?: string; - readonly id?: string; - readonly name?: string; - readonly owner?: { - readonly fullName: string; - readonly id: string; - }; - readonly snapshotId?: string | null | undefined; - readonly updatedAt?: string; - readonly " $fragmentSpreads": FragmentRefs<"StateOfApplicabilityControlsTabFragment">; - }; -}; -export type StateOfApplicabilityDetailPageQuery = { - response: StateOfApplicabilityDetailPageQuery$data; - variables: StateOfApplicabilityDetailPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "stateOfApplicabilityId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "stateOfApplicabilityId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null -}, -v7 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:state-of-applicability:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:state-of-applicability:update\")" -}, -v8 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:state-of-applicability:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:state-of-applicability:delete\")" -}, -v9 = { - "alias": "canExport", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:state-of-applicability:export" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:state-of-applicability:export\")" -}, -v10 = { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null -}, -v13 = [ - { - "kind": "Literal", - "name": "first", - "value": 1000 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "CONTROL_SECTION_TITLE" - } - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "StateOfApplicabilityDetailPageQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "StateOfApplicabilityControlsTabFragment" - } - ], - "type": "StateOfApplicability", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "StateOfApplicabilityDetailPageQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v12/*: any*/), - { - "alias": "canCreateApplicabilityStatement", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:applicability-statement:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:applicability-statement:create\")" - }, - { - "alias": "canUpdateApplicabilityStatement", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:applicability-statement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:applicability-statement:update\")" - }, - { - "alias": "canDeleteApplicabilityStatement", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:applicability-statement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:applicability-statement:delete\")" - }, - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "ApplicabilityStatementConnection", - "kind": "LinkedField", - "name": "applicabilityStatements", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatementEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ApplicabilityStatement", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "applicability", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "justification", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Control", - "kind": "LinkedField", - "name": "control", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sectionTitle", - "storageKey": null - }, - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "bestPractice", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "regulatory", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractual", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "riskAssessment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/) - ], - "storageKey": null - }, - (v12/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "applicabilityStatements(first:1000,orderBy:{\"direction\":\"ASC\",\"field\":\"CONTROL_SECTION_TITLE\"})" - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "StateOfApplicabilityControlsTab_applicabilityStatements", - "kind": "LinkedHandle", - "name": "applicabilityStatements" - } - ], - "type": "StateOfApplicability", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "5246dad7efe3eceb0aba4ad7731a49e6", - "id": null, - "metadata": {}, - "name": "StateOfApplicabilityDetailPageQuery", - "operationKind": "query", - "text": "query StateOfApplicabilityDetailPageQuery(\n $stateOfApplicabilityId: ID!\n) {\n node(id: $stateOfApplicabilityId) {\n __typename\n ... on StateOfApplicability {\n id\n name\n snapshotId\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:state-of-applicability:update\")\n canDelete: permission(action: \"core:state-of-applicability:delete\")\n canExport: permission(action: \"core:state-of-applicability:export\")\n owner {\n id\n fullName\n }\n ...StateOfApplicabilityControlsTabFragment\n }\n id\n }\n}\n\nfragment StateOfApplicabilityControlsTabFragment on StateOfApplicability {\n id\n organization {\n id\n }\n canCreateApplicabilityStatement: permission(action: \"core:applicability-statement:create\")\n canUpdateApplicabilityStatement: permission(action: \"core:applicability-statement:update\")\n canDeleteApplicabilityStatement: permission(action: \"core:applicability-statement:delete\")\n applicabilityStatements(first: 1000, orderBy: {direction: ASC, field: CONTROL_SECTION_TITLE}) {\n edges {\n node {\n id\n applicability\n justification\n control {\n id\n sectionTitle\n name\n bestPractice\n regulatory\n contractual\n riskAssessment\n framework {\n id\n name\n }\n organization {\n id\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b5e212f940b788cc7a7f1647ed95c785"; - -export default node; diff --git a/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageUpdateMutation.graphql.ts deleted file mode 100644 index 10f562ccc..000000000 --- a/apps/console/src/__generated__/core/StateOfApplicabilityDetailPageUpdateMutation.graphql.ts +++ /dev/null @@ -1,171 +0,0 @@ -/** - * @generated SignedSource<<4df3ee17d608eabfe5b51673786b5d8d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateStateOfApplicabilityInput = { - id: string; - name?: string | null | undefined; - ownerId?: string | null | undefined; -}; -export type StateOfApplicabilityDetailPageUpdateMutation$variables = { - input: UpdateStateOfApplicabilityInput; -}; -export type StateOfApplicabilityDetailPageUpdateMutation$data = { - readonly updateStateOfApplicability: { - readonly stateOfApplicability: { - readonly createdAt: string; - readonly id: string; - readonly name: string; - readonly owner: { - readonly fullName: string; - readonly id: string; - }; - readonly snapshotId: string | null | undefined; - readonly sourceId: string | null | undefined; - readonly updatedAt: string; - }; - }; -}; -export type StateOfApplicabilityDetailPageUpdateMutation = { - response: StateOfApplicabilityDetailPageUpdateMutation$data; - variables: StateOfApplicabilityDetailPageUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateStateOfApplicabilityPayload", - "kind": "LinkedField", - "name": "updateStateOfApplicability", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicability", - "kind": "LinkedField", - "name": "stateOfApplicability", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "sourceId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "StateOfApplicabilityDetailPageUpdateMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "StateOfApplicabilityDetailPageUpdateMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "0236ac567b08f60ca0773d91fb1b2155", - "id": null, - "metadata": {}, - "name": "StateOfApplicabilityDetailPageUpdateMutation", - "operationKind": "mutation", - "text": "mutation StateOfApplicabilityDetailPageUpdateMutation(\n $input: UpdateStateOfApplicabilityInput!\n) {\n updateStateOfApplicability(input: $input) {\n stateOfApplicability {\n id\n name\n sourceId\n snapshotId\n createdAt\n updatedAt\n owner {\n id\n fullName\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0213db8aa925819738cea45aa8603d6d"; - -export default node; diff --git a/apps/console/src/__generated__/core/StateOfApplicabilityRowDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/StateOfApplicabilityRowDeleteMutation.graphql.ts deleted file mode 100644 index 2ed35322f..000000000 --- a/apps/console/src/__generated__/core/StateOfApplicabilityRowDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<74458c1ec95a320a91f42f0c5cdb0925>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteStateOfApplicabilityInput = { - stateOfApplicabilityId: string; -}; -export type StateOfApplicabilityRowDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteStateOfApplicabilityInput; -}; -export type StateOfApplicabilityRowDeleteMutation$data = { - readonly deleteStateOfApplicability: { - readonly deletedStateOfApplicabilityId: string; - }; -}; -export type StateOfApplicabilityRowDeleteMutation = { - response: StateOfApplicabilityRowDeleteMutation$data; - variables: StateOfApplicabilityRowDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedStateOfApplicabilityId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "StateOfApplicabilityRowDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteStateOfApplicabilityPayload", - "kind": "LinkedField", - "name": "deleteStateOfApplicability", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "StateOfApplicabilityRowDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteStateOfApplicabilityPayload", - "kind": "LinkedField", - "name": "deleteStateOfApplicability", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedStateOfApplicabilityId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "be77dc47292c3864174f008adb45f910", - "id": null, - "metadata": {}, - "name": "StateOfApplicabilityRowDeleteMutation", - "operationKind": "mutation", - "text": "mutation StateOfApplicabilityRowDeleteMutation(\n $input: DeleteStateOfApplicabilityInput!\n) {\n deleteStateOfApplicability(input: $input) {\n deletedStateOfApplicabilityId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "c580dcff6800cb372932ec5ed9201417"; - -export default node; diff --git a/apps/console/src/__generated__/core/StateOfApplicabilityRowFragment.graphql.ts b/apps/console/src/__generated__/core/StateOfApplicabilityRowFragment.graphql.ts deleted file mode 100644 index 347f1b455..000000000 --- a/apps/console/src/__generated__/core/StateOfApplicabilityRowFragment.graphql.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type StateOfApplicabilityRowFragment$data = { - readonly canDelete: boolean; - readonly createdAt: string; - readonly id: string; - readonly name: string; - readonly statementsInfo: { - readonly totalCount: number; - }; - readonly " $fragmentType": "StateOfApplicabilityRowFragment"; -}; -export type StateOfApplicabilityRowFragment$key = { - readonly " $data"?: StateOfApplicabilityRowFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"StateOfApplicabilityRowFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "StateOfApplicabilityRowFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:state-of-applicability:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:state-of-applicability:delete\")" - }, - { - "alias": "statementsInfo", - "args": null, - "concreteType": "ApplicabilityStatementConnection", - "kind": "LinkedField", - "name": "applicabilityStatements", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "StateOfApplicability", - "abstractKey": null -}; - -(node as any).hash = "4f393828b72d1b7a4417a8eb2a5415b7"; - -export default node; diff --git a/apps/console/src/__generated__/core/StatesOfApplicabilityPageFragment.graphql.ts b/apps/console/src/__generated__/core/StatesOfApplicabilityPageFragment.graphql.ts deleted file mode 100644 index e5a9a9476..000000000 --- a/apps/console/src/__generated__/core/StatesOfApplicabilityPageFragment.graphql.ts +++ /dev/null @@ -1,235 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type StatesOfApplicabilityPageFragment$data = { - readonly id: string; - readonly statesOfApplicability: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"StateOfApplicabilityRowFragment">; - }; - }>; - }; - readonly " $fragmentType": "StatesOfApplicabilityPageFragment"; -}; -export type StatesOfApplicabilityPageFragment$key = { - readonly " $data"?: StatesOfApplicabilityPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"StatesOfApplicabilityPageFragment">; -}; - -import StatesOfApplicabilityPagePaginationQuery_graphql from './StatesOfApplicabilityPagePaginationQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "statesOfApplicability" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": { - "snapshotId": null - }, - "kind": "LocalArgument", - "name": "filter" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": { - "direction": "DESC", - "field": "CREATED_AT" - }, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": StatesOfApplicabilityPagePaginationQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "StatesOfApplicabilityPageFragment", - "selections": [ - { - "alias": "statesOfApplicability", - "args": [ - { - "kind": "Variable", - "name": "filter", - "variableName": "filter" - } - ], - "concreteType": "StateOfApplicabilityConnection", - "kind": "LinkedField", - "name": "__StatesOfApplicabilityPage_statesOfApplicability_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicabilityEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicability", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "StateOfApplicabilityRowFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "30ea5e415eca53b251933d1ce086a9b7"; - -export default node; diff --git a/apps/console/src/__generated__/core/StatesOfApplicabilityPagePaginationQuery.graphql.ts b/apps/console/src/__generated__/core/StatesOfApplicabilityPagePaginationQuery.graphql.ts deleted file mode 100644 index d3db81b5f..000000000 --- a/apps/console/src/__generated__/core/StatesOfApplicabilityPagePaginationQuery.graphql.ts +++ /dev/null @@ -1,384 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type StateOfApplicabilityOrderField = "CREATED_AT" | "NAME"; -export type StateOfApplicabilityFilter = { - snapshotId?: string | null | undefined; -}; -export type StateOfApplicabilityOrder = { - direction: OrderDirection; - field: StateOfApplicabilityOrderField; -}; -export type StatesOfApplicabilityPagePaginationQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - filter?: StateOfApplicabilityFilter | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: StateOfApplicabilityOrder | null | undefined; -}; -export type StatesOfApplicabilityPagePaginationQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"StatesOfApplicabilityPageFragment">; - }; -}; -export type StatesOfApplicabilityPagePaginationQuery = { - response: StatesOfApplicabilityPagePaginationQuery$data; - variables: StatesOfApplicabilityPagePaginationQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": { - "snapshotId": null - }, - "kind": "LocalArgument", - "name": "filter" -}, -v3 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v6 = { - "defaultValue": { - "direction": "DESC", - "field": "CREATED_AT" - }, - "kind": "LocalArgument", - "name": "order" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v8 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v9 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v10 = { - "kind": "Variable", - "name": "filter", - "variableName": "filter" -}, -v11 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v12 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v15 = [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "StatesOfApplicabilityPagePaginationQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "StatesOfApplicabilityPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v4/*: any*/) - ], - "kind": "Operation", - "name": "StatesOfApplicabilityPagePaginationQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v13/*: any*/), - (v14/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v15/*: any*/), - "concreteType": "StateOfApplicabilityConnection", - "kind": "LinkedField", - "name": "statesOfApplicability", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicabilityEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicability", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:state-of-applicability:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:state-of-applicability:delete\")" - }, - { - "alias": "statementsInfo", - "args": null, - "concreteType": "ApplicabilityStatementConnection", - "kind": "LinkedField", - "name": "applicabilityStatements", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } - ], - "storageKey": null - }, - (v13/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v15/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "StatesOfApplicabilityPage_statesOfApplicability", - "kind": "LinkedHandle", - "name": "statesOfApplicability" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "812dcba28ad3fb441e49e281a199fd62", - "id": null, - "metadata": {}, - "name": "StatesOfApplicabilityPagePaginationQuery", - "operationKind": "query", - "text": "query StatesOfApplicabilityPagePaginationQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $filter: StateOfApplicabilityFilter = {snapshotId: null}\n $first: Int = 50\n $last: Int = null\n $order: StateOfApplicabilityOrder = {direction: DESC, field: CREATED_AT}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...StatesOfApplicabilityPageFragment_4cFWzS\n id\n }\n}\n\nfragment StateOfApplicabilityRowFragment on StateOfApplicability {\n id\n name\n createdAt\n canDelete: permission(action: \"core:state-of-applicability:delete\")\n statementsInfo: applicabilityStatements {\n totalCount\n }\n}\n\nfragment StatesOfApplicabilityPageFragment_4cFWzS on Organization {\n statesOfApplicability(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: $filter) {\n edges {\n node {\n id\n ...StateOfApplicabilityRowFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "30ea5e415eca53b251933d1ce086a9b7"; - -export default node; diff --git a/apps/console/src/__generated__/core/StatesOfApplicabilityPageQuery.graphql.ts b/apps/console/src/__generated__/core/StatesOfApplicabilityPageQuery.graphql.ts deleted file mode 100644 index 8cfc32d43..000000000 --- a/apps/console/src/__generated__/core/StatesOfApplicabilityPageQuery.graphql.ts +++ /dev/null @@ -1,325 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type StatesOfApplicabilityPageQuery$variables = { - organizationId: string; -}; -export type StatesOfApplicabilityPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly canCreateStateOfApplicability: boolean; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"StatesOfApplicabilityPageFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type StatesOfApplicabilityPageQuery = { - response: StatesOfApplicabilityPageQuery$data; - variables: StatesOfApplicabilityPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": "canCreateStateOfApplicability", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:state-of-applicability:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:state-of-applicability:create\")" -}, -v5 = [ - { - "kind": "Literal", - "name": "filter", - "value": { - "snapshotId": null - } - }, - { - "kind": "Literal", - "name": "first", - "value": 50 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "StatesOfApplicabilityPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "StatesOfApplicabilityPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "StatesOfApplicabilityPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "StateOfApplicabilityConnection", - "kind": "LinkedField", - "name": "statesOfApplicability", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicabilityEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "StateOfApplicability", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:state-of-applicability:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:state-of-applicability:delete\")" - }, - { - "alias": "statementsInfo", - "args": null, - "concreteType": "ApplicabilityStatementConnection", - "kind": "LinkedField", - "name": "applicabilityStatements", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } - ], - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "statesOfApplicability(filter:{\"snapshotId\":null},first:50,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "StatesOfApplicabilityPage_statesOfApplicability", - "kind": "LinkedHandle", - "name": "statesOfApplicability" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "d0baef050f4750119d752ca5e17b134a", - "id": null, - "metadata": {}, - "name": "StatesOfApplicabilityPageQuery", - "operationKind": "query", - "text": "query StatesOfApplicabilityPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n canCreateStateOfApplicability: permission(action: \"core:state-of-applicability:create\")\n ...StatesOfApplicabilityPageFragment\n }\n id\n }\n}\n\nfragment StateOfApplicabilityRowFragment on StateOfApplicability {\n id\n name\n createdAt\n canDelete: permission(action: \"core:state-of-applicability:delete\")\n statementsInfo: applicabilityStatements {\n totalCount\n }\n}\n\nfragment StatesOfApplicabilityPageFragment on Organization {\n statesOfApplicability(first: 50, orderBy: {direction: DESC, field: CREATED_AT}, filter: {snapshotId: null}) {\n edges {\n node {\n id\n ...StateOfApplicabilityRowFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "10fd3ffd276b002b98c3b9aa437ccbed"; - -export default node; diff --git a/apps/console/src/__generated__/core/TaskFormDialogCreateMutation.graphql.ts b/apps/console/src/__generated__/core/TaskFormDialogCreateMutation.graphql.ts deleted file mode 100644 index 6209fc248..000000000 --- a/apps/console/src/__generated__/core/TaskFormDialogCreateMutation.graphql.ts +++ /dev/null @@ -1,249 +0,0 @@ -/** - * @generated SignedSource<<4674036c51beaed9448452b4e5d78667>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CreateTaskInput = { - assignedToId?: string | null | undefined; - deadline?: string | null | undefined; - description?: string | null | undefined; - measureId?: string | null | undefined; - name: string; - organizationId: string; - timeEstimate?: string | null | undefined; -}; -export type TaskFormDialogCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateTaskInput; -}; -export type TaskFormDialogCreateMutation$data = { - readonly createTask: { - readonly taskEdge: { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"TaskFormDialogFragment">; - }; - }; - }; -}; -export type TaskFormDialogCreateMutation = { - response: TaskFormDialogCreateMutation$data; - variables: TaskFormDialogCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = [ - (v3/*: any*/) -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "TaskFormDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateTaskPayload", - "kind": "LinkedField", - "name": "createTask", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TaskEdge", - "kind": "LinkedField", - "name": "taskEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Task", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "TaskFormDialogFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "TaskFormDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateTaskPayload", - "kind": "LinkedField", - "name": "createTask", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TaskEdge", - "kind": "LinkedField", - "name": "taskEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Task", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "timeEstimate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "assignedTo", - "plural": false, - "selections": (v4/*: any*/), - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "measure", - "plural": false, - "selections": (v4/*: any*/), - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "taskEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f605aed8a6f83a622d32e9b42f52f524", - "id": null, - "metadata": {}, - "name": "TaskFormDialogCreateMutation", - "operationKind": "mutation", - "text": "mutation TaskFormDialogCreateMutation(\n $input: CreateTaskInput!\n) {\n createTask(input: $input) {\n taskEdge {\n node {\n ...TaskFormDialogFragment\n id\n }\n }\n }\n}\n\nfragment TaskFormDialogFragment on Task {\n id\n description\n name\n state\n timeEstimate\n deadline\n assignedTo {\n id\n }\n measure {\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3a5194da3b1d57be836ca5e3405b2c3a"; - -export default node; diff --git a/apps/console/src/__generated__/core/TaskFormDialogFragment.graphql.ts b/apps/console/src/__generated__/core/TaskFormDialogFragment.graphql.ts deleted file mode 100644 index 73bb024f8..000000000 --- a/apps/console/src/__generated__/core/TaskFormDialogFragment.graphql.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type TaskState = "DONE" | "TODO"; -import { FragmentRefs } from "relay-runtime"; -export type TaskFormDialogFragment$data = { - readonly assignedTo: { - readonly id: string; - } | null | undefined; - readonly deadline: string | null | undefined; - readonly description: string | null | undefined; - readonly id: string; - readonly measure: { - readonly id: string; - } | null | undefined; - readonly name: string; - readonly state: TaskState; - readonly timeEstimate: string | null | undefined; - readonly " $fragmentType": "TaskFormDialogFragment"; -}; -export type TaskFormDialogFragment$key = { - readonly " $data"?: TaskFormDialogFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"TaskFormDialogFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = [ - (v0/*: any*/) -]; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "TaskFormDialogFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "timeEstimate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "assignedTo", - "plural": false, - "selections": (v1/*: any*/), - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "measure", - "plural": false, - "selections": (v1/*: any*/), - "storageKey": null - } - ], - "type": "Task", - "abstractKey": null -}; -})(); - -(node as any).hash = "3a4bede2199df797a20a6d87358d41cf"; - -export default node; diff --git a/apps/console/src/__generated__/core/TaskFormDialogUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/TaskFormDialogUpdateMutation.graphql.ts deleted file mode 100644 index 601ab7bc0..000000000 --- a/apps/console/src/__generated__/core/TaskFormDialogUpdateMutation.graphql.ts +++ /dev/null @@ -1,201 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type TaskState = "DONE" | "TODO"; -export type UpdateTaskInput = { - assignedToId?: string | null | undefined; - deadline?: string | null | undefined; - description?: string | null | undefined; - measureId?: string | null | undefined; - name?: string | null | undefined; - state?: TaskState | null | undefined; - taskId: string; - timeEstimate?: string | null | undefined; -}; -export type TaskFormDialogUpdateMutation$variables = { - input: UpdateTaskInput; -}; -export type TaskFormDialogUpdateMutation$data = { - readonly updateTask: { - readonly task: { - readonly " $fragmentSpreads": FragmentRefs<"TaskFormDialogFragment">; - }; - }; -}; -export type TaskFormDialogUpdateMutation = { - response: TaskFormDialogUpdateMutation$data; - variables: TaskFormDialogUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = [ - (v2/*: any*/) -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "TaskFormDialogUpdateMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateTaskPayload", - "kind": "LinkedField", - "name": "updateTask", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Task", - "kind": "LinkedField", - "name": "task", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "TaskFormDialogFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "TaskFormDialogUpdateMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateTaskPayload", - "kind": "LinkedField", - "name": "updateTask", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Task", - "kind": "LinkedField", - "name": "task", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "timeEstimate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "assignedTo", - "plural": false, - "selections": (v3/*: any*/), - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "measure", - "plural": false, - "selections": (v3/*: any*/), - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "bfcbdf0470627b6f7b9a98a1722f7dca", - "id": null, - "metadata": {}, - "name": "TaskFormDialogUpdateMutation", - "operationKind": "mutation", - "text": "mutation TaskFormDialogUpdateMutation(\n $input: UpdateTaskInput!\n) {\n updateTask(input: $input) {\n task {\n ...TaskFormDialogFragment\n id\n }\n }\n}\n\nfragment TaskFormDialogFragment on Task {\n id\n description\n name\n state\n timeEstimate\n deadline\n assignedTo {\n id\n }\n measure {\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "7c174671b0235b09cfe0fa98d4b3e629"; - -export default node; diff --git a/apps/console/src/__generated__/core/TaskGraphQuery.graphql.ts b/apps/console/src/__generated__/core/TaskGraphQuery.graphql.ts deleted file mode 100644 index dbc194830..000000000 --- a/apps/console/src/__generated__/core/TaskGraphQuery.graphql.ts +++ /dev/null @@ -1,350 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type TaskGraphQuery$variables = { - organizationId: string; -}; -export type TaskGraphQuery$data = { - readonly organization: { - readonly id?: string; - readonly " $fragmentSpreads": FragmentRefs<"TasksPageFragment">; - }; -}; -export type TaskGraphQuery = { - response: TaskGraphQuery$data; - variables: TaskGraphQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 500 - } -], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "TaskGraphQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "TasksPageFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "TaskGraphQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canCreateTask", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:create\")" - }, - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "TaskConnection", - "kind": "LinkedField", - "name": "tasks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TaskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Task", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "timeEstimate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "assignedTo", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "measure", - "plural": false, - "selections": [ - (v2/*: any*/), - (v5/*: any*/) - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:delete\")" - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "tasks(first:500)" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "TasksPageFragment_tasks", - "kind": "LinkedHandle", - "name": "tasks" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "9932d2887bfde054e02b14404a5ec7f8", - "id": null, - "metadata": {}, - "name": "TaskGraphQuery", - "operationKind": "query", - "text": "query TaskGraphQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n ...TasksPageFragment\n }\n id\n }\n}\n\nfragment TaskFormDialogFragment on Task {\n id\n description\n name\n state\n timeEstimate\n deadline\n assignedTo {\n id\n }\n measure {\n id\n }\n}\n\nfragment TasksCard_TaskRowFragment on Task {\n id\n name\n state\n description\n timeEstimate\n deadline\n canUpdate: permission(action: \"core:task:update\")\n canDelete: permission(action: \"core:task:delete\")\n assignedTo {\n id\n fullName\n }\n measure {\n id\n name\n }\n}\n\nfragment TasksPageFragment on Organization {\n canCreateTask: permission(action: \"core:task:create\")\n tasks(first: 500) {\n edges {\n node {\n id\n state\n ...TaskFormDialogFragment\n ...TasksCard_TaskRowFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "86e37392ce0e0766dc2a083c64b2467e"; - -export default node; diff --git a/apps/console/src/__generated__/core/TasksCardDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/TasksCardDeleteMutation.graphql.ts deleted file mode 100644 index 809a5adec..000000000 --- a/apps/console/src/__generated__/core/TasksCardDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<2866738fc7aeb6abd91cf4ed4ae72727>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteTaskInput = { - taskId: string; -}; -export type TasksCardDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteTaskInput; -}; -export type TasksCardDeleteMutation$data = { - readonly deleteTask: { - readonly deletedTaskId: string; - }; -}; -export type TasksCardDeleteMutation = { - response: TasksCardDeleteMutation$data; - variables: TasksCardDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedTaskId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "TasksCardDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteTaskPayload", - "kind": "LinkedField", - "name": "deleteTask", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "TasksCardDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteTaskPayload", - "kind": "LinkedField", - "name": "deleteTask", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedTaskId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1ab085f9650841990644d2c106effac7", - "id": null, - "metadata": {}, - "name": "TasksCardDeleteMutation", - "operationKind": "mutation", - "text": "mutation TasksCardDeleteMutation(\n $input: DeleteTaskInput!\n) {\n deleteTask(input: $input) {\n deletedTaskId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "803ffe0cb54f7fa5c840f6d3e4f2592b"; - -export default node; diff --git a/apps/console/src/__generated__/core/TasksCard_TaskRowFragment.graphql.ts b/apps/console/src/__generated__/core/TasksCard_TaskRowFragment.graphql.ts deleted file mode 100644 index 61b0c7b7c..000000000 --- a/apps/console/src/__generated__/core/TasksCard_TaskRowFragment.graphql.ts +++ /dev/null @@ -1,155 +0,0 @@ -/** - * @generated SignedSource<<45b471f2a1fc7d6acb2b3066d0027163>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type TaskState = "DONE" | "TODO"; -import { FragmentRefs } from "relay-runtime"; -export type TasksCard_TaskRowFragment$data = { - readonly assignedTo: { - readonly fullName: string; - readonly id: string; - } | null | undefined; - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly deadline: string | null | undefined; - readonly description: string | null | undefined; - readonly id: string; - readonly measure: { - readonly id: string; - readonly name: string; - } | null | undefined; - readonly name: string; - readonly state: TaskState; - readonly timeEstimate: string | null | undefined; - readonly " $fragmentType": "TasksCard_TaskRowFragment"; -}; -export type TasksCard_TaskRowFragment$key = { - readonly " $data"?: TasksCard_TaskRowFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"TasksCard_TaskRowFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "TasksCard_TaskRowFragment", - "selections": [ - (v0/*: any*/), - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "timeEstimate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:delete\")" - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "assignedTo", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "measure", - "plural": false, - "selections": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "storageKey": null - } - ], - "type": "Task", - "abstractKey": null -}; -})(); - -(node as any).hash = "34df57ab7cc88c1fbf84f42b4024d50b"; - -export default node; diff --git a/apps/console/src/__generated__/core/TasksPageFragment.graphql.ts b/apps/console/src/__generated__/core/TasksPageFragment.graphql.ts deleted file mode 100644 index 8d2421ffd..000000000 --- a/apps/console/src/__generated__/core/TasksPageFragment.graphql.ts +++ /dev/null @@ -1,261 +0,0 @@ -/** - * @generated SignedSource<<08f448295bd6530904bfbcfc19b1764d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type TaskState = "DONE" | "TODO"; -import { FragmentRefs } from "relay-runtime"; -export type TasksPageFragment$data = { - readonly canCreateTask: boolean; - readonly id: string; - readonly tasks: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly state: TaskState; - readonly " $fragmentSpreads": FragmentRefs<"TaskFormDialogFragment" | "TasksCard_TaskRowFragment">; - }; - }>; - }; - readonly " $fragmentType": "TasksPageFragment"; -}; -export type TasksPageFragment$key = { - readonly " $data"?: TasksPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"TasksPageFragment">; -}; - -import TasksPageFragment_query_graphql from './TasksPageFragment_query.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "tasks" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 500, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": TasksPageFragment_query_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "TasksPageFragment", - "selections": [ - { - "alias": "canCreateTask", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:create\")" - }, - { - "kind": "RequiredField", - "field": { - "alias": "tasks", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "TaskConnection", - "kind": "LinkedField", - "name": "__TasksPageFragment_tasks_connection", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "TaskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Task", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "TaskFormDialogFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "TasksCard_TaskRowFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - "action": "THROW" - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "6c9522af3e0782b9f919b76572ba6225"; - -export default node; diff --git a/apps/console/src/__generated__/core/TasksPageFragment_query.graphql.ts b/apps/console/src/__generated__/core/TasksPageFragment_query.graphql.ts deleted file mode 100644 index 3b2c00046..000000000 --- a/apps/console/src/__generated__/core/TasksPageFragment_query.graphql.ts +++ /dev/null @@ -1,423 +0,0 @@ -/** - * @generated SignedSource<<2844fe03a4dfc0248a429000cc7eb484>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type TaskOrderField = "CREATED_AT"; -export type TaskOrder = { - direction: OrderDirection; - field: TaskOrderField; -}; -export type TasksPageFragment_query$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: TaskOrder | null | undefined; -}; -export type TasksPageFragment_query$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"TasksPageFragment">; - }; -}; -export type TasksPageFragment_query = { - response: TasksPageFragment_query$data; - variables: TasksPageFragment_query$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 500, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -], -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "TasksPageFragment_query", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "TasksPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "TasksPageFragment_query", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": "canCreateTask", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:create\")" - }, - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "TaskConnection", - "kind": "LinkedField", - "name": "tasks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TaskEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Task", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - (v14/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "timeEstimate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deadline", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "assignedTo", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "measure", - "plural": false, - "selections": [ - (v12/*: any*/), - (v14/*: any*/) - ], - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:delete\")" - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "TasksPageFragment_tasks", - "kind": "LinkedHandle", - "name": "tasks" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "8fadc4428353d6ef3444f63b913dc695", - "id": null, - "metadata": {}, - "name": "TasksPageFragment_query", - "operationKind": "query", - "text": "query TasksPageFragment_query(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 500\n $last: Int = null\n $order: TaskOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...TasksPageFragment_16fISc\n id\n }\n}\n\nfragment TaskFormDialogFragment on Task {\n id\n description\n name\n state\n timeEstimate\n deadline\n assignedTo {\n id\n }\n measure {\n id\n }\n}\n\nfragment TasksCard_TaskRowFragment on Task {\n id\n name\n state\n description\n timeEstimate\n deadline\n canUpdate: permission(action: \"core:task:update\")\n canDelete: permission(action: \"core:task:delete\")\n assignedTo {\n id\n fullName\n }\n measure {\n id\n name\n }\n}\n\nfragment TasksPageFragment_16fISc on Organization {\n canCreateTask: permission(action: \"core:task:create\")\n tasks(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n state\n ...TaskFormDialogFragment\n ...TasksCard_TaskRowFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "6c9522af3e0782b9f919b76572ba6225"; - -export default node; diff --git a/apps/console/src/__generated__/core/TrustCenterAccessTokenGraphQuery.graphql.ts b/apps/console/src/__generated__/core/TrustCenterAccessTokenGraphQuery.graphql.ts deleted file mode 100644 index c0a6a85cc..000000000 --- a/apps/console/src/__generated__/core/TrustCenterAccessTokenGraphQuery.graphql.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * @generated SignedSource<<04ca9566a32dd6c4ec830303d27040b3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type TrustCenterAccessTokenGraphQuery$variables = { - trustCenterId: string; -}; -export type TrustCenterAccessTokenGraphQuery$data = { - readonly node: { - readonly active?: boolean; - readonly id?: string; - readonly organization?: { - readonly id: string; - readonly name: string; - }; - }; -}; -export type TrustCenterAccessTokenGraphQuery = { - response: TrustCenterAccessTokenGraphQuery$data; - variables: TrustCenterAccessTokenGraphQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "trustCenterId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "trustCenterId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "active", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterAccessTokenGraphQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/) - ], - "type": "TrustCenter", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "TrustCenterAccessTokenGraphQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/) - ], - "type": "TrustCenter", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "3149be57889b4ab4716cf9a8cce2ab8c", - "id": null, - "metadata": {}, - "name": "TrustCenterAccessTokenGraphQuery", - "operationKind": "query", - "text": "query TrustCenterAccessTokenGraphQuery(\n $trustCenterId: ID!\n) {\n node(id: $trustCenterId) {\n __typename\n ... on TrustCenter {\n id\n active\n organization {\n id\n name\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0eff39cd61d08eeff978f26d88a52edf"; - -export default node; diff --git a/apps/console/src/__generated__/core/TrustCenterGraphDeleteNDAMutation.graphql.ts b/apps/console/src/__generated__/core/TrustCenterGraphDeleteNDAMutation.graphql.ts deleted file mode 100644 index 52cb4d437..000000000 --- a/apps/console/src/__generated__/core/TrustCenterGraphDeleteNDAMutation.graphql.ts +++ /dev/null @@ -1,121 +0,0 @@ -/** - * @generated SignedSource<<3220ac89d535b383bbb99661dc296183>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteTrustCenterNDAInput = { - trustCenterId: string; -}; -export type TrustCenterGraphDeleteNDAMutation$variables = { - input: DeleteTrustCenterNDAInput; -}; -export type TrustCenterGraphDeleteNDAMutation$data = { - readonly deleteTrustCenterNDA: { - readonly trustCenter: { - readonly id: string; - readonly ndaFileName: string | null | undefined; - readonly updatedAt: string; - }; - }; -}; -export type TrustCenterGraphDeleteNDAMutation = { - response: TrustCenterGraphDeleteNDAMutation$data; - variables: TrustCenterGraphDeleteNDAMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteTrustCenterNDAPayload", - "kind": "LinkedField", - "name": "deleteTrustCenterNDA", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ndaFileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterGraphDeleteNDAMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "TrustCenterGraphDeleteNDAMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "fa3ebf3593c396bf05819d357d9f909f", - "id": null, - "metadata": {}, - "name": "TrustCenterGraphDeleteNDAMutation", - "operationKind": "mutation", - "text": "mutation TrustCenterGraphDeleteNDAMutation(\n $input: DeleteTrustCenterNDAInput!\n) {\n deleteTrustCenterNDA(input: $input) {\n trustCenter {\n id\n ndaFileName\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "9c055069b9e2e7432fed7509f6578a07"; - -export default node; diff --git a/apps/console/src/__generated__/core/TrustCenterGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/TrustCenterGraphUpdateMutation.graphql.ts deleted file mode 100644 index b85822c79..000000000 --- a/apps/console/src/__generated__/core/TrustCenterGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,122 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateTrustCenterInput = { - active?: boolean | null | undefined; - trustCenterId: string; -}; -export type TrustCenterGraphUpdateMutation$variables = { - input: UpdateTrustCenterInput; -}; -export type TrustCenterGraphUpdateMutation$data = { - readonly updateTrustCenter: { - readonly trustCenter: { - readonly active: boolean; - readonly id: string; - readonly updatedAt: string; - }; - }; -}; -export type TrustCenterGraphUpdateMutation = { - response: TrustCenterGraphUpdateMutation$data; - variables: TrustCenterGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateTrustCenterPayload", - "kind": "LinkedField", - "name": "updateTrustCenter", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "active", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterGraphUpdateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "TrustCenterGraphUpdateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "4d56330e76f63430b88de2deac6d73ff", - "id": null, - "metadata": {}, - "name": "TrustCenterGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation TrustCenterGraphUpdateMutation(\n $input: UpdateTrustCenterInput!\n) {\n updateTrustCenter(input: $input) {\n trustCenter {\n id\n active\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e5db4ea1986315fc8103885fee2ede5b"; - -export default node; diff --git a/apps/console/src/__generated__/core/TrustCenterGraphUploadNDAMutation.graphql.ts b/apps/console/src/__generated__/core/TrustCenterGraphUploadNDAMutation.graphql.ts deleted file mode 100644 index 9ec8d3581..000000000 --- a/apps/console/src/__generated__/core/TrustCenterGraphUploadNDAMutation.graphql.ts +++ /dev/null @@ -1,123 +0,0 @@ -/** - * @generated SignedSource<<4bc817c960234139f5aeedfed5b2fe8b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UploadTrustCenterNDAInput = { - file: any; - fileName: string; - trustCenterId: string; -}; -export type TrustCenterGraphUploadNDAMutation$variables = { - input: UploadTrustCenterNDAInput; -}; -export type TrustCenterGraphUploadNDAMutation$data = { - readonly uploadTrustCenterNDA: { - readonly trustCenter: { - readonly id: string; - readonly ndaFileName: string | null | undefined; - readonly updatedAt: string; - }; - }; -}; -export type TrustCenterGraphUploadNDAMutation = { - response: TrustCenterGraphUploadNDAMutation$data; - variables: TrustCenterGraphUploadNDAMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UploadTrustCenterNDAPayload", - "kind": "LinkedField", - "name": "uploadTrustCenterNDA", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "trustCenter", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ndaFileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterGraphUploadNDAMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "TrustCenterGraphUploadNDAMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "09a5dbf73f3e279173691b235f9da2e2", - "id": null, - "metadata": {}, - "name": "TrustCenterGraphUploadNDAMutation", - "operationKind": "mutation", - "text": "mutation TrustCenterGraphUploadNDAMutation(\n $input: UploadTrustCenterNDAInput!\n) {\n uploadTrustCenterNDA(input: $input) {\n trustCenter {\n id\n ndaFileName\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b9877f8a5b9c2c12addeb939360719f1"; - -export default node; diff --git a/apps/console/src/__generated__/core/TrustCenterReferenceGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/TrustCenterReferenceGraphCreateMutation.graphql.ts deleted file mode 100644 index 9e312c7dc..000000000 --- a/apps/console/src/__generated__/core/TrustCenterReferenceGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,254 +0,0 @@ -/** - * @generated SignedSource<<9d8cd7c4e9e9c2217dce89750390f2d7>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateTrustCenterReferenceInput = { - description?: string | null | undefined; - logoFile: any; - name: string; - trustCenterId: string; - websiteUrl: string; -}; -export type TrustCenterReferenceGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateTrustCenterReferenceInput; -}; -export type TrustCenterReferenceGraphCreateMutation$data = { - readonly createTrustCenterReference: { - readonly trustCenterReferenceEdge: { - readonly cursor: string; - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly logoUrl: string; - readonly name: string; - readonly rank: number; - readonly updatedAt: string; - readonly websiteUrl: string; - }; - }; - }; -}; -export type TrustCenterReferenceGraphCreateMutation = { - response: TrustCenterReferenceGraphCreateMutation$data; - variables: TrustCenterReferenceGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "TrustCenterReferenceEdge", - "kind": "LinkedField", - "name": "trustCenterReferenceEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReference", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterReferenceGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateTrustCenterReferencePayload", - "kind": "LinkedField", - "name": "createTrustCenterReference", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "TrustCenterReferenceGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateTrustCenterReferencePayload", - "kind": "LinkedField", - "name": "createTrustCenterReference", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "appendEdge", - "key": "", - "kind": "LinkedHandle", - "name": "trustCenterReferenceEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "4cffbce769a3af5a0b95188c5fdb1ab1", - "id": null, - "metadata": {}, - "name": "TrustCenterReferenceGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation TrustCenterReferenceGraphCreateMutation(\n $input: CreateTrustCenterReferenceInput!\n) {\n createTrustCenterReference(input: $input) {\n trustCenterReferenceEdge {\n cursor\n node {\n id\n name\n description\n websiteUrl\n logoUrl\n rank\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:trust-center-reference:update\")\n canDelete: permission(action: \"core:trust-center-reference:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "2235fdf1f63c55b4a6670eaa0f32fe20"; - -export default node; diff --git a/apps/console/src/__generated__/core/TrustCenterReferenceGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/TrustCenterReferenceGraphDeleteMutation.graphql.ts deleted file mode 100644 index 1c9607dc9..000000000 --- a/apps/console/src/__generated__/core/TrustCenterReferenceGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<1f4c8af006c90496e08b285944c83eac>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteTrustCenterReferenceInput = { - id: string; -}; -export type TrustCenterReferenceGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteTrustCenterReferenceInput; -}; -export type TrustCenterReferenceGraphDeleteMutation$data = { - readonly deleteTrustCenterReference: { - readonly deletedTrustCenterReferenceId: string; - }; -}; -export type TrustCenterReferenceGraphDeleteMutation = { - response: TrustCenterReferenceGraphDeleteMutation$data; - variables: TrustCenterReferenceGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedTrustCenterReferenceId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterReferenceGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteTrustCenterReferencePayload", - "kind": "LinkedField", - "name": "deleteTrustCenterReference", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "TrustCenterReferenceGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteTrustCenterReferencePayload", - "kind": "LinkedField", - "name": "deleteTrustCenterReference", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedTrustCenterReferenceId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6d22b36eb6ce9b568bfc091741a63ea8", - "id": null, - "metadata": {}, - "name": "TrustCenterReferenceGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation TrustCenterReferenceGraphDeleteMutation(\n $input: DeleteTrustCenterReferenceInput!\n) {\n deleteTrustCenterReference(input: $input) {\n deletedTrustCenterReferenceId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "31a0fcb302daa8f42bc5ecb74fadfd0b"; - -export default node; diff --git a/apps/console/src/__generated__/core/TrustCenterReferenceGraphUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/TrustCenterReferenceGraphUpdateMutation.graphql.ts deleted file mode 100644 index e02ee7e0f..000000000 --- a/apps/console/src/__generated__/core/TrustCenterReferenceGraphUpdateMutation.graphql.ts +++ /dev/null @@ -1,194 +0,0 @@ -/** - * @generated SignedSource<<2bb2430e2a2e063fc21f4f2c7c19910f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateTrustCenterReferenceInput = { - description?: string | null | undefined; - id: string; - logoFile?: any | null | undefined; - name?: string | null | undefined; - rank?: number | null | undefined; - websiteUrl?: string | null | undefined; -}; -export type TrustCenterReferenceGraphUpdateMutation$variables = { - input: UpdateTrustCenterReferenceInput; -}; -export type TrustCenterReferenceGraphUpdateMutation$data = { - readonly updateTrustCenterReference: { - readonly trustCenterReference: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly logoUrl: string; - readonly name: string; - readonly rank: number; - readonly updatedAt: string; - readonly websiteUrl: string; - }; - }; -}; -export type TrustCenterReferenceGraphUpdateMutation = { - response: TrustCenterReferenceGraphUpdateMutation$data; - variables: TrustCenterReferenceGraphUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateTrustCenterReferencePayload", - "kind": "LinkedField", - "name": "updateTrustCenterReference", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReference", - "kind": "LinkedField", - "name": "trustCenterReference", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center-reference:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center-reference:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterReferenceGraphUpdateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "TrustCenterReferenceGraphUpdateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "7c0e441a6e51c68b72f3dc0b74079da1", - "id": null, - "metadata": {}, - "name": "TrustCenterReferenceGraphUpdateMutation", - "operationKind": "mutation", - "text": "mutation TrustCenterReferenceGraphUpdateMutation(\n $input: UpdateTrustCenterReferenceInput!\n) {\n updateTrustCenterReference(input: $input) {\n trustCenterReference {\n id\n name\n description\n websiteUrl\n logoUrl\n rank\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:trust-center-reference:update\")\n canDelete: permission(action: \"core:trust-center-reference:delete\")\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "f6add85271c2b048654bf586745252fc"; - -export default node; diff --git a/apps/console/src/__generated__/core/TrustCenterReferenceGraphUpdateRankMutation.graphql.ts b/apps/console/src/__generated__/core/TrustCenterReferenceGraphUpdateRankMutation.graphql.ts deleted file mode 100644 index d915e8934..000000000 --- a/apps/console/src/__generated__/core/TrustCenterReferenceGraphUpdateRankMutation.graphql.ts +++ /dev/null @@ -1,118 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateTrustCenterReferenceInput = { - description?: string | null | undefined; - id: string; - logoFile?: any | null | undefined; - name?: string | null | undefined; - rank?: number | null | undefined; - websiteUrl?: string | null | undefined; -}; -export type TrustCenterReferenceGraphUpdateRankMutation$variables = { - input: UpdateTrustCenterReferenceInput; -}; -export type TrustCenterReferenceGraphUpdateRankMutation$data = { - readonly updateTrustCenterReference: { - readonly trustCenterReference: { - readonly id: string; - readonly rank: number; - }; - }; -}; -export type TrustCenterReferenceGraphUpdateRankMutation = { - response: TrustCenterReferenceGraphUpdateRankMutation$data; - variables: TrustCenterReferenceGraphUpdateRankMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateTrustCenterReferencePayload", - "kind": "LinkedField", - "name": "updateTrustCenterReference", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReference", - "kind": "LinkedField", - "name": "trustCenterReference", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "rank", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterReferenceGraphUpdateRankMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "TrustCenterReferenceGraphUpdateRankMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "9e3d186eff2bff3d66482ab88f27aead", - "id": null, - "metadata": {}, - "name": "TrustCenterReferenceGraphUpdateRankMutation", - "operationKind": "mutation", - "text": "mutation TrustCenterReferenceGraphUpdateRankMutation(\n $input: UpdateTrustCenterReferenceInput!\n) {\n updateTrustCenterReference(input: $input) {\n trustCenterReference {\n id\n rank\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "72d23bac1e404137890be27bf98bc59e"; - -export default node; diff --git a/apps/console/src/__generated__/core/UpdateVersionDialogCreateMutation.graphql.ts b/apps/console/src/__generated__/core/UpdateVersionDialogCreateMutation.graphql.ts deleted file mode 100644 index e42ce62b7..000000000 --- a/apps/console/src/__generated__/core/UpdateVersionDialogCreateMutation.graphql.ts +++ /dev/null @@ -1,256 +0,0 @@ -/** - * @generated SignedSource<<19fb3f18c8abfaf933f77514a1800538>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentStatus = "DRAFT" | "PUBLISHED"; -export type DocumentVersionSignatureState = "REQUESTED" | "SIGNED"; -export type CreateDraftDocumentVersionInput = { - documentID: string; -}; -export type UpdateVersionDialogCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateDraftDocumentVersionInput; -}; -export type UpdateVersionDialogCreateMutation$data = { - readonly createDraftDocumentVersion: { - readonly documentVersionEdge: { - readonly node: { - readonly content: string; - readonly id: string; - readonly publishedAt: string | null | undefined; - readonly signatures: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly state: DocumentVersionSignatureState; - }; - }>; - }; - readonly status: DocumentStatus; - readonly updatedAt: string; - readonly version: number; - }; - }; - }; -}; -export type UpdateVersionDialogCreateMutation = { - response: UpdateVersionDialogCreateMutation$data; - variables: UpdateVersionDialogCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "documentVersionEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "content", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "publishedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - } - ], - "concreteType": "DocumentVersionSignatureConnection", - "kind": "LinkedField", - "name": "signatures", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignatureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionSignature", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "signatures(first:100)" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "UpdateVersionDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateDraftDocumentVersionPayload", - "kind": "LinkedField", - "name": "createDraftDocumentVersion", - "plural": false, - "selections": [ - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "UpdateVersionDialogCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateDraftDocumentVersionPayload", - "kind": "LinkedField", - "name": "createDraftDocumentVersion", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "documentVersionEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1a0f515ea5c0ca4fd3ab1ae969025ca0", - "id": null, - "metadata": {}, - "name": "UpdateVersionDialogCreateMutation", - "operationKind": "mutation", - "text": "mutation UpdateVersionDialogCreateMutation(\n $input: CreateDraftDocumentVersionInput!\n) {\n createDraftDocumentVersion(input: $input) {\n documentVersionEdge {\n node {\n id\n content\n status\n publishedAt\n version\n updatedAt\n signatures(first: 100) {\n edges {\n node {\n id\n state\n }\n }\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a78a88558effc43ceab6746d8a4fea46"; - -export default node; diff --git a/apps/console/src/__generated__/core/UpdateVersionDialogFragment.graphql.ts b/apps/console/src/__generated__/core/UpdateVersionDialogFragment.graphql.ts deleted file mode 100644 index 9f028583a..000000000 --- a/apps/console/src/__generated__/core/UpdateVersionDialogFragment.graphql.ts +++ /dev/null @@ -1,166 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentStatus = "DRAFT" | "PUBLISHED"; -import { FragmentRefs } from "relay-runtime"; -export type UpdateVersionDialogFragment$data = { - readonly id: string; - readonly versions: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly content: string; - readonly id: string; - readonly status: DocumentStatus; - }; - }>; - }; - readonly " $fragmentType": "UpdateVersionDialogFragment"; -}; -export type UpdateVersionDialogFragment$key = { - readonly " $data"?: UpdateVersionDialogFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"UpdateVersionDialogFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "versions" - ] - } - ] - }, - "name": "UpdateVersionDialogFragment", - "selections": [ - (v0/*: any*/), - { - "alias": "versions", - "args": null, - "concreteType": "DocumentVersionConnection", - "kind": "LinkedField", - "name": "__DocumentLayout_versions_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "content", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Document", - "abstractKey": null -}; -})(); - -(node as any).hash = "0d3c09ff97434f6ce034801e7a22fd22"; - -export default node; diff --git a/apps/console/src/__generated__/core/UpdateVersionDialogUpdateMutation.graphql.ts b/apps/console/src/__generated__/core/UpdateVersionDialogUpdateMutation.graphql.ts deleted file mode 100644 index 11877c0a4..000000000 --- a/apps/console/src/__generated__/core/UpdateVersionDialogUpdateMutation.graphql.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @generated SignedSource<<2b90fd4d14e86e5547d7b790a20242c9>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateDocumentVersionInput = { - content: string; - documentVersionId: string; -}; -export type UpdateVersionDialogUpdateMutation$variables = { - input: UpdateDocumentVersionInput; -}; -export type UpdateVersionDialogUpdateMutation$data = { - readonly updateDocumentVersion: { - readonly documentVersion: { - readonly content: string; - readonly id: string; - }; - }; -}; -export type UpdateVersionDialogUpdateMutation = { - response: UpdateVersionDialogUpdateMutation$data; - variables: UpdateVersionDialogUpdateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateDocumentVersionPayload", - "kind": "LinkedField", - "name": "updateDocumentVersion", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentVersion", - "kind": "LinkedField", - "name": "documentVersion", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "content", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "UpdateVersionDialogUpdateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "UpdateVersionDialogUpdateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "527e45a341f2f991e30e8689ac24403c", - "id": null, - "metadata": {}, - "name": "UpdateVersionDialogUpdateMutation", - "operationKind": "mutation", - "text": "mutation UpdateVersionDialogUpdateMutation(\n $input: UpdateDocumentVersionInput!\n) {\n updateDocumentVersion(input: $input) {\n documentVersion {\n id\n content\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "ffd885c021e9fd91522a494e16e6830d"; - -export default node; diff --git a/apps/console/src/__generated__/core/UploadBusinessAssociateAgreementDialogMutation.graphql.ts b/apps/console/src/__generated__/core/UploadBusinessAssociateAgreementDialogMutation.graphql.ts deleted file mode 100644 index ebcda9ae2..000000000 --- a/apps/console/src/__generated__/core/UploadBusinessAssociateAgreementDialogMutation.graphql.ts +++ /dev/null @@ -1,149 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UploadVendorBusinessAssociateAgreementInput = { - file: any; - fileName: string; - validFrom?: string | null | undefined; - validUntil?: string | null | undefined; - vendorId: string; -}; -export type UploadBusinessAssociateAgreementDialogMutation$variables = { - input: UploadVendorBusinessAssociateAgreementInput; -}; -export type UploadBusinessAssociateAgreementDialogMutation$data = { - readonly uploadVendorBusinessAssociateAgreement: { - readonly vendorBusinessAssociateAgreement: { - readonly createdAt: string; - readonly fileName: string; - readonly fileUrl: string; - readonly id: string; - readonly validFrom: string | null | undefined; - readonly validUntil: string | null | undefined; - }; - }; -}; -export type UploadBusinessAssociateAgreementDialogMutation = { - response: UploadBusinessAssociateAgreementDialogMutation$data; - variables: UploadBusinessAssociateAgreementDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UploadVendorBusinessAssociateAgreementPayload", - "kind": "LinkedField", - "name": "uploadVendorBusinessAssociateAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorBusinessAssociateAgreement", - "kind": "LinkedField", - "name": "vendorBusinessAssociateAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "UploadBusinessAssociateAgreementDialogMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "UploadBusinessAssociateAgreementDialogMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "bb7a0f67773da5b3916d08fdeaa2dc8d", - "id": null, - "metadata": {}, - "name": "UploadBusinessAssociateAgreementDialogMutation", - "operationKind": "mutation", - "text": "mutation UploadBusinessAssociateAgreementDialogMutation(\n $input: UploadVendorBusinessAssociateAgreementInput!\n) {\n uploadVendorBusinessAssociateAgreement(input: $input) {\n vendorBusinessAssociateAgreement {\n id\n fileName\n fileUrl\n validFrom\n validUntil\n createdAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e3fce209e1a4006a31996903e4c6cbae"; - -export default node; diff --git a/apps/console/src/__generated__/core/UploadComplianceReportDialogMutation.graphql.ts b/apps/console/src/__generated__/core/UploadComplianceReportDialogMutation.graphql.ts deleted file mode 100644 index 89b3b9c3f..000000000 --- a/apps/console/src/__generated__/core/UploadComplianceReportDialogMutation.graphql.ts +++ /dev/null @@ -1,295 +0,0 @@ -/** - * @generated SignedSource<<1a8f618e333bfd588ba06578d908bb6b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UploadVendorComplianceReportInput = { - file: any; - reportDate: string; - reportName: string; - validUntil?: string | null | undefined; - vendorId: string; -}; -export type UploadComplianceReportDialogMutation$variables = { - connections: ReadonlyArray; - input: UploadVendorComplianceReportInput; -}; -export type UploadComplianceReportDialogMutation$data = { - readonly uploadVendorComplianceReport: { - readonly vendorComplianceReportEdge: { - readonly node: { - readonly canDelete: boolean; - readonly file: { - readonly downloadUrl: string; - readonly fileName: string; - readonly mimeType: string; - readonly size: number; - } | null | undefined; - readonly id: string; - readonly reportDate: string; - readonly reportName: string; - readonly validUntil: string | null | undefined; - }; - }; - }; -}; -export type UploadComplianceReportDialogMutation = { - response: UploadComplianceReportDialogMutation$data; - variables: UploadComplianceReportDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportName", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportDate", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "mimeType", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "downloadUrl", - "storageKey": null -}, -v11 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-compliance-report:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-compliance-report:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "UploadComplianceReportDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "UploadVendorComplianceReportPayload", - "kind": "LinkedField", - "name": "uploadVendorComplianceReport", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReportEdge", - "kind": "LinkedField", - "name": "vendorComplianceReportEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReport", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "UploadComplianceReportDialogMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "UploadVendorComplianceReportPayload", - "kind": "LinkedField", - "name": "uploadVendorComplianceReport", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReportEdge", - "kind": "LinkedField", - "name": "vendorComplianceReportEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReport", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v3/*: any*/) - ], - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "appendEdge", - "key": "", - "kind": "LinkedHandle", - "name": "vendorComplianceReportEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "b48652c18d3b6acde303491746764697", - "id": null, - "metadata": {}, - "name": "UploadComplianceReportDialogMutation", - "operationKind": "mutation", - "text": "mutation UploadComplianceReportDialogMutation(\n $input: UploadVendorComplianceReportInput!\n) {\n uploadVendorComplianceReport(input: $input) {\n vendorComplianceReportEdge {\n node {\n id\n reportName\n reportDate\n validUntil\n file {\n fileName\n mimeType\n size\n downloadUrl\n id\n }\n canDelete: permission(action: \"core:vendor-compliance-report:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "8311149c4e46ed2f01cbd19d34bc3a38"; - -export default node; diff --git a/apps/console/src/__generated__/core/UploadDataPrivacyAgreementDialogMutation.graphql.ts b/apps/console/src/__generated__/core/UploadDataPrivacyAgreementDialogMutation.graphql.ts deleted file mode 100644 index 8c69990a4..000000000 --- a/apps/console/src/__generated__/core/UploadDataPrivacyAgreementDialogMutation.graphql.ts +++ /dev/null @@ -1,149 +0,0 @@ -/** - * @generated SignedSource<<0e9455daba78b038455718505f53a4d7>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UploadVendorDataPrivacyAgreementInput = { - file: any; - fileName: string; - validFrom?: string | null | undefined; - validUntil?: string | null | undefined; - vendorId: string; -}; -export type UploadDataPrivacyAgreementDialogMutation$variables = { - input: UploadVendorDataPrivacyAgreementInput; -}; -export type UploadDataPrivacyAgreementDialogMutation$data = { - readonly uploadVendorDataPrivacyAgreement: { - readonly vendorDataPrivacyAgreement: { - readonly createdAt: string; - readonly fileName: string; - readonly fileUrl: string; - readonly id: string; - readonly validFrom: string | null | undefined; - readonly validUntil: string | null | undefined; - }; - }; -}; -export type UploadDataPrivacyAgreementDialogMutation = { - response: UploadDataPrivacyAgreementDialogMutation$data; - variables: UploadDataPrivacyAgreementDialogMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UploadVendorDataPrivacyAgreementPayload", - "kind": "LinkedField", - "name": "uploadVendorDataPrivacyAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorDataPrivacyAgreement", - "kind": "LinkedField", - "name": "vendorDataPrivacyAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "UploadDataPrivacyAgreementDialogMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "UploadDataPrivacyAgreementDialogMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "c59302d882fc9406dd7f09072db552b5", - "id": null, - "metadata": {}, - "name": "UploadDataPrivacyAgreementDialogMutation", - "operationKind": "mutation", - "text": "mutation UploadDataPrivacyAgreementDialogMutation(\n $input: UploadVendorDataPrivacyAgreementInput!\n) {\n uploadVendorDataPrivacyAgreement(input: $input) {\n vendorDataPrivacyAgreement {\n id\n fileName\n fileUrl\n validFrom\n validUntil\n createdAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "8e4e70e111836cebd850061a75872980"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorComplianceTabDeleteReportMutation.graphql.ts b/apps/console/src/__generated__/core/VendorComplianceTabDeleteReportMutation.graphql.ts deleted file mode 100644 index 20b6bb83a..000000000 --- a/apps/console/src/__generated__/core/VendorComplianceTabDeleteReportMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<6fc7bf1e239dfeccb007ee5a9beefaff>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteVendorComplianceReportInput = { - reportId: string; -}; -export type VendorComplianceTabDeleteReportMutation$variables = { - connections: ReadonlyArray; - input: DeleteVendorComplianceReportInput; -}; -export type VendorComplianceTabDeleteReportMutation$data = { - readonly deleteVendorComplianceReport: { - readonly deletedVendorComplianceReportId: string; - }; -}; -export type VendorComplianceTabDeleteReportMutation = { - response: VendorComplianceTabDeleteReportMutation$data; - variables: VendorComplianceTabDeleteReportMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedVendorComplianceReportId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "VendorComplianceTabDeleteReportMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteVendorComplianceReportPayload", - "kind": "LinkedField", - "name": "deleteVendorComplianceReport", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "VendorComplianceTabDeleteReportMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteVendorComplianceReportPayload", - "kind": "LinkedField", - "name": "deleteVendorComplianceReport", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedVendorComplianceReportId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "3bfaddbf09d2cd72a0bb72687c1e187e", - "id": null, - "metadata": {}, - "name": "VendorComplianceTabDeleteReportMutation", - "operationKind": "mutation", - "text": "mutation VendorComplianceTabDeleteReportMutation(\n $input: DeleteVendorComplianceReportInput!\n) {\n deleteVendorComplianceReport(input: $input) {\n deletedVendorComplianceReportId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "7151aea21838384dc10781b64f0209ae"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorComplianceTabFragment.graphql.ts b/apps/console/src/__generated__/core/VendorComplianceTabFragment.graphql.ts deleted file mode 100644 index 58bdc1dcb..000000000 --- a/apps/console/src/__generated__/core/VendorComplianceTabFragment.graphql.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * @generated SignedSource<<08a3ccf322eccf9d7c86b2f383526687>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorComplianceTabFragment$data = { - readonly complianceReports: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"VendorComplianceTabFragment_report">; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "VendorComplianceTabFragment"; -}; -export type VendorComplianceTabFragment$key = { - readonly " $data"?: VendorComplianceTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorComplianceTabFragment">; -}; - -import ComplianceReportListQuery_graphql from './ComplianceReportListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "complianceReports" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": ComplianceReportListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "VendorComplianceTabFragment", - "selections": [ - { - "alias": "complianceReports", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "VendorComplianceReportConnection", - "kind": "LinkedField", - "name": "__VendorComplianceTabFragment_complianceReports_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReportEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReport", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-compliance-report:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-compliance-report:delete\")" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorComplianceTabFragment_report" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Vendor", - "abstractKey": null -}; -})(); - -(node as any).hash = "078c14e9b989c435abf83ec5b4396f6c"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorComplianceTabFragment_report.graphql.ts b/apps/console/src/__generated__/core/VendorComplianceTabFragment_report.graphql.ts deleted file mode 100644 index 1e10025b3..000000000 --- a/apps/console/src/__generated__/core/VendorComplianceTabFragment_report.graphql.ts +++ /dev/null @@ -1,117 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorComplianceTabFragment_report$data = { - readonly canDelete: boolean; - readonly file: { - readonly downloadUrl: string; - readonly fileName: string; - readonly size: number; - } | null | undefined; - readonly id: string; - readonly reportDate: string; - readonly reportName: string; - readonly validUntil: string | null | undefined; - readonly " $fragmentType": "VendorComplianceTabFragment_report"; -}; -export type VendorComplianceTabFragment_report$key = { - readonly " $data"?: VendorComplianceTabFragment_report$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorComplianceTabFragment_report">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "VendorComplianceTabFragment_report", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "downloadUrl", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-compliance-report:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-compliance-report:delete\")" - } - ], - "type": "VendorComplianceReport", - "abstractKey": null -}; - -(node as any).hash = "cbf9fe2b6540de802f43eb7f840a24a7"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorContactsListQuery.graphql.ts b/apps/console/src/__generated__/core/VendorContactsListQuery.graphql.ts deleted file mode 100644 index 0ee3625f4..000000000 --- a/apps/console/src/__generated__/core/VendorContactsListQuery.graphql.ts +++ /dev/null @@ -1,370 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type VendorContactOrderField = "CREATED_AT" | "EMAIL" | "FULL_NAME"; -export type VendorContactOrder = { - direction: OrderDirection; - field: VendorContactOrderField; -}; -export type VendorContactsListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: VendorContactOrder | null | undefined; -}; -export type VendorContactsListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"VendorContactsTabFragment">; - }; -}; -export type VendorContactsListQuery = { - response: VendorContactsListQuery$data; - variables: VendorContactsListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "VendorContactsListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "VendorContactsTabFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "VendorContactsListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "VendorContactConnection", - "kind": "LinkedField", - "name": "contacts", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContactEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContact", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "phone", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "VendorContactsTabFragment_contacts", - "kind": "LinkedHandle", - "name": "contacts" - } - ], - "type": "Vendor", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "64be5a0aaa71bccff8ee7eb1a9202fb1", - "id": null, - "metadata": {}, - "name": "VendorContactsListQuery", - "operationKind": "query", - "text": "query VendorContactsListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: VendorContactOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...VendorContactsTabFragment_16fISc\n id\n }\n}\n\nfragment VendorContactsTabFragment_16fISc on Vendor {\n contacts(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n canUpdate: permission(action: \"core:vendor-contact:update\")\n canDelete: permission(action: \"core:vendor-contact:delete\")\n ...VendorContactsTabFragment_contact\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorContactsTabFragment_contact on VendorContact {\n id\n fullName\n email\n phone\n role\n canUpdate: permission(action: \"core:vendor-contact:update\")\n canDelete: permission(action: \"core:vendor-contact:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "b0516167cf827553fe6c6617b2025967"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorContactsTabDeleteContactMutation.graphql.ts b/apps/console/src/__generated__/core/VendorContactsTabDeleteContactMutation.graphql.ts deleted file mode 100644 index cc5003970..000000000 --- a/apps/console/src/__generated__/core/VendorContactsTabDeleteContactMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<3824bce11d22a60d1e50f53c699611c5>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteVendorContactInput = { - vendorContactId: string; -}; -export type VendorContactsTabDeleteContactMutation$variables = { - connections: ReadonlyArray; - input: DeleteVendorContactInput; -}; -export type VendorContactsTabDeleteContactMutation$data = { - readonly deleteVendorContact: { - readonly deletedVendorContactId: string; - }; -}; -export type VendorContactsTabDeleteContactMutation = { - response: VendorContactsTabDeleteContactMutation$data; - variables: VendorContactsTabDeleteContactMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedVendorContactId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "VendorContactsTabDeleteContactMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteVendorContactPayload", - "kind": "LinkedField", - "name": "deleteVendorContact", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "VendorContactsTabDeleteContactMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteVendorContactPayload", - "kind": "LinkedField", - "name": "deleteVendorContact", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedVendorContactId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "806c0b076e6da2ac4841d172047c8655", - "id": null, - "metadata": {}, - "name": "VendorContactsTabDeleteContactMutation", - "operationKind": "mutation", - "text": "mutation VendorContactsTabDeleteContactMutation(\n $input: DeleteVendorContactInput!\n) {\n deleteVendorContact(input: $input) {\n deletedVendorContactId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "f0595bed2e2e7527eeac8737a0640a4d"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorContactsTabFragment.graphql.ts b/apps/console/src/__generated__/core/VendorContactsTabFragment.graphql.ts deleted file mode 100644 index f8e1d7278..000000000 --- a/apps/console/src/__generated__/core/VendorContactsTabFragment.graphql.ts +++ /dev/null @@ -1,253 +0,0 @@ -/** - * @generated SignedSource<<67ebbddf5fa502880ebc8aa6b5f9810c>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorContactsTabFragment$data = { - readonly contacts: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"VendorContactsTabFragment_contact">; - }; - }>; - }; - readonly id: string; - readonly " $fragmentType": "VendorContactsTabFragment"; -}; -export type VendorContactsTabFragment$key = { - readonly " $data"?: VendorContactsTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorContactsTabFragment">; -}; - -import VendorContactsListQuery_graphql from './VendorContactsListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "contacts" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": VendorContactsListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "VendorContactsTabFragment", - "selections": [ - { - "alias": "contacts", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "VendorContactConnection", - "kind": "LinkedField", - "name": "__VendorContactsTabFragment_contacts_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContactEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContact", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:delete\")" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorContactsTabFragment_contact" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Vendor", - "abstractKey": null -}; -})(); - -(node as any).hash = "b0516167cf827553fe6c6617b2025967"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorContactsTabFragment_contact.graphql.ts b/apps/console/src/__generated__/core/VendorContactsTabFragment_contact.graphql.ts deleted file mode 100644 index 14fa412be..000000000 --- a/apps/console/src/__generated__/core/VendorContactsTabFragment_contact.graphql.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @generated SignedSource<<3ada4a1d28f4a4b9849a4a5a7d47443a>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorContactsTabFragment_contact$data = { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly email: string | null | undefined; - readonly fullName: string | null | undefined; - readonly id: string; - readonly phone: string | null | undefined; - readonly role: string | null | undefined; - readonly " $fragmentType": "VendorContactsTabFragment_contact"; -}; -export type VendorContactsTabFragment_contact$key = { - readonly " $data"?: VendorContactsTabFragment_contact$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorContactsTabFragment_contact">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "VendorContactsTabFragment_contact", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "phone", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:delete\")" - } - ], - "type": "VendorContact", - "abstractKey": null -}; - -(node as any).hash = "60130c05b2e55237b385e97e51543d6b"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorGraphCreateMutation.graphql.ts b/apps/console/src/__generated__/core/VendorGraphCreateMutation.graphql.ts deleted file mode 100644 index f86de1910..000000000 --- a/apps/console/src/__generated__/core/VendorGraphCreateMutation.graphql.ts +++ /dev/null @@ -1,247 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CountryCode = "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "EU" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW"; -export type VendorCategory = "ANALYTICS" | "CLOUD_MONITORING" | "CLOUD_PROVIDER" | "COLLABORATION" | "CUSTOMER_SUPPORT" | "DATA_STORAGE_AND_PROCESSING" | "DOCUMENT_MANAGEMENT" | "EMPLOYEE_MANAGEMENT" | "ENGINEERING" | "FINANCE" | "IDENTITY_PROVIDER" | "IT" | "MARKETING" | "OFFICE_OPERATIONS" | "OTHER" | "PASSWORD_MANAGEMENT" | "PRODUCT_AND_DESIGN" | "PROFESSIONAL_SERVICES" | "RECRUITING" | "SALES" | "SECURITY" | "VERSION_CONTROL"; -export type CreateVendorInput = { - businessAssociateAgreementUrl?: string | null | undefined; - businessOwnerId?: string | null | undefined; - category?: VendorCategory | null | undefined; - certifications?: ReadonlyArray | null | undefined; - countries?: ReadonlyArray | null | undefined; - dataProcessingAgreementUrl?: string | null | undefined; - description?: string | null | undefined; - headquarterAddress?: string | null | undefined; - legalName?: string | null | undefined; - name: string; - organizationId: string; - privacyPolicyUrl?: string | null | undefined; - securityOwnerId?: string | null | undefined; - securityPageUrl?: string | null | undefined; - serviceLevelAgreementUrl?: string | null | undefined; - statusPageUrl?: string | null | undefined; - subprocessorsListUrl?: string | null | undefined; - termsOfServiceUrl?: string | null | undefined; - trustPageUrl?: string | null | undefined; - websiteUrl?: string | null | undefined; -}; -export type VendorGraphCreateMutation$variables = { - connections: ReadonlyArray; - input: CreateVendorInput; -}; -export type VendorGraphCreateMutation$data = { - readonly createVendor: { - readonly vendorEdge: { - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - readonly updatedAt: string; - readonly websiteUrl: string | null | undefined; - }; - }; - }; -}; -export type VendorGraphCreateMutation = { - response: VendorGraphCreateMutation$data; - variables: VendorGraphCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "vendorEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "VendorGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateVendorPayload", - "kind": "LinkedField", - "name": "createVendor", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "VendorGraphCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateVendorPayload", - "kind": "LinkedField", - "name": "createVendor", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "vendorEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "94b1c06e8575dd431ade59add9fdcb8a", - "id": null, - "metadata": {}, - "name": "VendorGraphCreateMutation", - "operationKind": "mutation", - "text": "mutation VendorGraphCreateMutation(\n $input: CreateVendorInput!\n) {\n createVendor(input: $input) {\n vendorEdge {\n node {\n id\n name\n description\n websiteUrl\n createdAt\n updatedAt\n canUpdate: permission(action: \"core:vendor:update\")\n canDelete: permission(action: \"core:vendor:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d4fbc819ee92c20d31400395a924eb7c"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorGraphDeleteMutation.graphql.ts b/apps/console/src/__generated__/core/VendorGraphDeleteMutation.graphql.ts deleted file mode 100644 index 614aa3cf1..000000000 --- a/apps/console/src/__generated__/core/VendorGraphDeleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<6b924850fd9bad48c4fe32c331a7770b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteVendorInput = { - vendorId: string; -}; -export type VendorGraphDeleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteVendorInput; -}; -export type VendorGraphDeleteMutation$data = { - readonly deleteVendor: { - readonly deletedVendorId: string; - }; -}; -export type VendorGraphDeleteMutation = { - response: VendorGraphDeleteMutation$data; - variables: VendorGraphDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedVendorId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "VendorGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteVendorPayload", - "kind": "LinkedField", - "name": "deleteVendor", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "VendorGraphDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteVendorPayload", - "kind": "LinkedField", - "name": "deleteVendor", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedVendorId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "866254027729839312bc72c942de3111", - "id": null, - "metadata": {}, - "name": "VendorGraphDeleteMutation", - "operationKind": "mutation", - "text": "mutation VendorGraphDeleteMutation(\n $input: DeleteVendorInput!\n) {\n deleteVendor(input: $input) {\n deletedVendorId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "82648f6825e035f9abe617d5f641d537"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorGraphListQuery.graphql.ts b/apps/console/src/__generated__/core/VendorGraphListQuery.graphql.ts deleted file mode 100644 index a78b448d2..000000000 --- a/apps/console/src/__generated__/core/VendorGraphListQuery.graphql.ts +++ /dev/null @@ -1,407 +0,0 @@ -/** - * @generated SignedSource<<2fb0056a5c2b8df4604284949b579bff>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorGraphListQuery$variables = { - organizationId: string; - snapshotId?: string | null | undefined; -}; -export type VendorGraphListQuery$data = { - readonly node: { - readonly canCreateVendor?: boolean; - readonly id?: string; - readonly " $fragmentSpreads": FragmentRefs<"VendorGraphPaginatedFragment">; - }; -}; -export type VendorGraphListQuery = { - response: VendorGraphListQuery$data; - variables: VendorGraphListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": "canCreateVendor", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:create\")" -}, -v4 = [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } -], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v6 = [ - { - "fields": (v4/*: any*/), - "kind": "ObjectValue", - "name": "filter" - }, - { - "kind": "Literal", - "name": "first", - "value": 50 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "VendorGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "kind": "InlineFragment", - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "args": (v4/*: any*/), - "kind": "FragmentSpread", - "name": "VendorGraphPaginatedFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "VendorGraphListQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "VendorRiskAssessmentConnection", - "kind": "LinkedField", - "name": "riskAssessments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSensitivity", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "businessImpact", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "riskAssessments(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:delete\")" - }, - (v5/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v6/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "VendorsListQuery_vendors", - "kind": "LinkedHandle", - "name": "vendors" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c2264340742570acaecb4b0b7b53723c", - "id": null, - "metadata": {}, - "name": "VendorGraphListQuery", - "operationKind": "query", - "text": "query VendorGraphListQuery(\n $organizationId: ID!\n $snapshotId: ID\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n canCreateVendor: permission(action: \"core:vendor:create\")\n ...VendorGraphPaginatedFragment_3iomuz\n }\n id\n }\n}\n\nfragment VendorGraphPaginatedFragment_3iomuz on Organization {\n vendors(first: 50, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n websiteUrl\n updatedAt\n riskAssessments(first: 1, orderBy: {direction: DESC, field: CREATED_AT}) {\n edges {\n node {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n }\n }\n }\n canUpdate: permission(action: \"core:vendor:update\")\n canDelete: permission(action: \"core:vendor:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "725a4385cbde48d0f8895d1a35ca2135"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorGraphNodeQuery.graphql.ts b/apps/console/src/__generated__/core/VendorGraphNodeQuery.graphql.ts deleted file mode 100644 index 4c6486b90..000000000 --- a/apps/console/src/__generated__/core/VendorGraphNodeQuery.graphql.ts +++ /dev/null @@ -1,1024 +0,0 @@ -/** - * @generated SignedSource<<09e2281e7a872004c8bf0d9eb565f85b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorGraphNodeQuery$variables = { - vendorId: string; -}; -export type VendorGraphNodeQuery$data = { - readonly node: { - readonly canAssess?: boolean; - readonly canCreateContact?: boolean; - readonly canCreateRiskAssessment?: boolean; - readonly canCreateService?: boolean; - readonly canDelete?: boolean; - readonly canUpdate?: boolean; - readonly canUploadBAA?: boolean; - readonly canUploadComplianceReport?: boolean; - readonly canUploadDPA?: boolean; - readonly id: string; - readonly name?: string; - readonly snapshotId?: string | null | undefined; - readonly websiteUrl?: string | null | undefined; - readonly " $fragmentSpreads": FragmentRefs<"VendorComplianceTabFragment" | "VendorContactsTabFragment" | "VendorOverviewTabBusinessAssociateAgreementFragment" | "VendorOverviewTabDataPrivacyAgreementFragment" | "VendorRiskAssessmentTabFragment" | "VendorServicesTabFragment" | "useVendorFormFragment">; - }; - readonly viewer: { - readonly id: string; - }; -}; -export type VendorGraphNodeQuery = { - response: VendorGraphNodeQuery$data; - variables: VendorGraphNodeQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "vendorId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "vendorId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null -}, -v6 = { - "alias": "canAssess", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:assess" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:assess\")" -}, -v7 = { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:update\")" -}, -v8 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:delete\")" -}, -v9 = { - "alias": "canUploadComplianceReport", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-compliance-report:upload" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-compliance-report:upload\")" -}, -v10 = { - "alias": "canCreateRiskAssessment", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-risk-assessment:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-risk-assessment:create\")" -}, -v11 = { - "alias": "canCreateContact", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:create\")" -}, -v12 = { - "alias": "canCreateService", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:create\")" -}, -v13 = { - "alias": "canUploadBAA", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-business-associate-agreement:upload" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-business-associate-agreement:upload\")" -}, -v14 = { - "alias": "canUploadDPA", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-data-privacy-agreement:upload" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-data-privacy-agreement:upload\")" -}, -v15 = [ - (v2/*: any*/) -], -v16 = { - "alias": null, - "args": null, - "concreteType": "Viewer", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": (v15/*: any*/), - "storageKey": null -}, -v17 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v18 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null -}, -v19 = [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } -], -v20 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null -}, -v21 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null -}, -v22 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v23 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null -}, -v24 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null -}, -v25 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null -}, -v26 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null -}, -v27 = { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v23/*: any*/), - (v24/*: any*/), - (v25/*: any*/), - (v26/*: any*/) - ], - "storageKey": null -}, -v28 = { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] -}, -v29 = [ - "orderBy" -], -v30 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null -}, -v31 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "VendorGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "useVendorFormFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorComplianceTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorContactsTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorServicesTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorRiskAssessmentTabFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorOverviewTabBusinessAssociateAgreementFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorOverviewTabDataPrivacyAgreementFragment" - } - ], - "type": "Vendor", - "abstractKey": null - } - ], - "storageKey": null - }, - (v16/*: any*/) - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "VendorGraphNodeQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v17/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/), - (v14/*: any*/), - (v18/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "statusPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "termsOfServiceUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "privacyPolicyUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "serviceLevelAgreementUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataProcessingAgreementUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "legalName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "headquarterAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "certifications", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "countries", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "securityPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "businessOwner", - "plural": false, - "selections": (v15/*: any*/), - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "securityOwner", - "plural": false, - "selections": (v15/*: any*/), - "storageKey": null - }, - { - "alias": null, - "args": (v19/*: any*/), - "concreteType": "VendorComplianceReportConnection", - "kind": "LinkedField", - "name": "complianceReports", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReportEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorComplianceReport", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-compliance-report:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-compliance-report:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportDate", - "storageKey": null - }, - (v20/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reportName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "File", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - (v21/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "size", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "downloadUrl", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - (v17/*: any*/) - ], - "storageKey": null - }, - (v22/*: any*/) - ], - "storageKey": null - }, - (v27/*: any*/), - (v28/*: any*/) - ], - "storageKey": "complianceReports(first:50)" - }, - { - "alias": null, - "args": (v19/*: any*/), - "filters": (v29/*: any*/), - "handle": "connection", - "key": "VendorComplianceTabFragment_complianceReports", - "kind": "LinkedHandle", - "name": "complianceReports" - }, - { - "alias": null, - "args": (v19/*: any*/), - "concreteType": "VendorContactConnection", - "kind": "LinkedField", - "name": "contacts", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContactEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorContact", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-contact:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-contact:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "phone", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - (v17/*: any*/) - ], - "storageKey": null - }, - (v22/*: any*/) - ], - "storageKey": null - }, - (v27/*: any*/), - (v28/*: any*/) - ], - "storageKey": "contacts(first:50)" - }, - { - "alias": null, - "args": (v19/*: any*/), - "filters": (v29/*: any*/), - "handle": "connection", - "key": "VendorContactsTabFragment_contacts", - "kind": "LinkedHandle", - "name": "contacts" - }, - { - "alias": null, - "args": (v19/*: any*/), - "concreteType": "VendorServiceConnection", - "kind": "LinkedField", - "name": "services", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorServiceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorService", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:delete\")" - }, - (v4/*: any*/), - (v18/*: any*/), - (v17/*: any*/) - ], - "storageKey": null - }, - (v22/*: any*/) - ], - "storageKey": null - }, - (v27/*: any*/), - (v28/*: any*/) - ], - "storageKey": "services(first:50)" - }, - { - "alias": null, - "args": (v19/*: any*/), - "filters": (v29/*: any*/), - "handle": "connection", - "key": "VendorServicesTabFragment_services", - "kind": "LinkedHandle", - "name": "services" - }, - { - "alias": null, - "args": (v19/*: any*/), - "concreteType": "VendorRiskAssessmentConnection", - "kind": "LinkedField", - "name": "riskAssessments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSensitivity", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "businessImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "notes", - "storageKey": null - }, - (v17/*: any*/) - ], - "storageKey": null - }, - (v22/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v24/*: any*/), - (v23/*: any*/), - (v25/*: any*/), - (v26/*: any*/) - ], - "storageKey": null - }, - (v28/*: any*/) - ], - "storageKey": "riskAssessments(first:50)" - }, - { - "alias": null, - "args": (v19/*: any*/), - "filters": (v29/*: any*/), - "handle": "connection", - "key": "VendorRiskAssessmentTabFragment_riskAssessments", - "kind": "LinkedHandle", - "name": "riskAssessments" - }, - { - "alias": null, - "args": null, - "concreteType": "VendorBusinessAssociateAgreement", - "kind": "LinkedField", - "name": "businessAssociateAgreement", - "plural": false, - "selections": [ - (v2/*: any*/), - (v21/*: any*/), - (v30/*: any*/), - (v31/*: any*/), - (v20/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-business-associate-agreement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-business-associate-agreement:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-business-associate-agreement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-business-associate-agreement:delete\")" - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "VendorDataPrivacyAgreement", - "kind": "LinkedField", - "name": "dataPrivacyAgreement", - "plural": false, - "selections": [ - (v2/*: any*/), - (v21/*: any*/), - (v30/*: any*/), - (v31/*: any*/), - (v20/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-data-privacy-agreement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-data-privacy-agreement:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-data-privacy-agreement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-data-privacy-agreement:delete\")" - } - ], - "storageKey": null - } - ], - "type": "Vendor", - "abstractKey": null - } - ], - "storageKey": null - }, - (v16/*: any*/) - ] - }, - "params": { - "cacheID": "1ff67d5ac55faf87a216d244277b0fdc", - "id": null, - "metadata": {}, - "name": "VendorGraphNodeQuery", - "operationKind": "query", - "text": "query VendorGraphNodeQuery(\n $vendorId: ID!\n) {\n node(id: $vendorId) {\n __typename\n id\n ... on Vendor {\n snapshotId\n name\n websiteUrl\n canAssess: permission(action: \"core:vendor:assess\")\n canUpdate: permission(action: \"core:vendor:update\")\n canDelete: permission(action: \"core:vendor:delete\")\n canUploadComplianceReport: permission(action: \"core:vendor-compliance-report:upload\")\n canCreateRiskAssessment: permission(action: \"core:vendor-risk-assessment:create\")\n canCreateContact: permission(action: \"core:vendor-contact:create\")\n canCreateService: permission(action: \"core:vendor-service:create\")\n canUploadBAA: permission(action: \"core:vendor-business-associate-agreement:upload\")\n canUploadDPA: permission(action: \"core:vendor-data-privacy-agreement:upload\")\n ...useVendorFormFragment\n ...VendorComplianceTabFragment\n ...VendorContactsTabFragment\n ...VendorServicesTabFragment\n ...VendorRiskAssessmentTabFragment\n ...VendorOverviewTabBusinessAssociateAgreementFragment\n ...VendorOverviewTabDataPrivacyAgreementFragment\n }\n }\n viewer {\n id\n }\n}\n\nfragment VendorComplianceTabFragment on Vendor {\n complianceReports(first: 50) {\n edges {\n node {\n id\n canDelete: permission(action: \"core:vendor-compliance-report:delete\")\n ...VendorComplianceTabFragment_report\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorComplianceTabFragment_report on VendorComplianceReport {\n id\n reportDate\n validUntil\n reportName\n file {\n fileName\n size\n downloadUrl\n id\n }\n canDelete: permission(action: \"core:vendor-compliance-report:delete\")\n}\n\nfragment VendorContactsTabFragment on Vendor {\n contacts(first: 50) {\n edges {\n node {\n id\n canUpdate: permission(action: \"core:vendor-contact:update\")\n canDelete: permission(action: \"core:vendor-contact:delete\")\n ...VendorContactsTabFragment_contact\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorContactsTabFragment_contact on VendorContact {\n id\n fullName\n email\n phone\n role\n canUpdate: permission(action: \"core:vendor-contact:update\")\n canDelete: permission(action: \"core:vendor-contact:delete\")\n}\n\nfragment VendorOverviewTabBusinessAssociateAgreementFragment on Vendor {\n businessAssociateAgreement {\n id\n fileName\n fileUrl\n validFrom\n validUntil\n canUpdate: permission(action: \"core:vendor-business-associate-agreement:update\")\n canDelete: permission(action: \"core:vendor-business-associate-agreement:delete\")\n }\n}\n\nfragment VendorOverviewTabDataPrivacyAgreementFragment on Vendor {\n dataPrivacyAgreement {\n id\n fileName\n fileUrl\n validFrom\n validUntil\n canUpdate: permission(action: \"core:vendor-data-privacy-agreement:update\")\n canDelete: permission(action: \"core:vendor-data-privacy-agreement:delete\")\n }\n}\n\nfragment VendorRiskAssessmentTabFragment on Vendor {\n id\n riskAssessments(first: 50) {\n edges {\n node {\n id\n ...VendorRiskAssessmentTabFragment_assessment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n\nfragment VendorServicesTabFragment on Vendor {\n services(first: 50) {\n edges {\n node {\n id\n canUpdate: permission(action: \"core:vendor-service:update\")\n canDelete: permission(action: \"core:vendor-service:delete\")\n ...VendorServicesTabFragment_service\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorServicesTabFragment_service on VendorService {\n id\n name\n description\n canUpdate: permission(action: \"core:vendor-service:update\")\n canDelete: permission(action: \"core:vendor-service:delete\")\n}\n\nfragment useVendorFormFragment on Vendor {\n id\n name\n description\n category\n statusPageUrl\n termsOfServiceUrl\n privacyPolicyUrl\n serviceLevelAgreementUrl\n dataProcessingAgreementUrl\n websiteUrl\n legalName\n headquarterAddress\n certifications\n countries\n securityPageUrl\n trustPageUrl\n businessOwner {\n id\n }\n securityOwner {\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "4de8ce39d2595e8b9866617badc36cae"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorGraphPaginatedFragment.graphql.ts b/apps/console/src/__generated__/core/VendorGraphPaginatedFragment.graphql.ts deleted file mode 100644 index 45670645e..000000000 --- a/apps/console/src/__generated__/core/VendorGraphPaginatedFragment.graphql.ts +++ /dev/null @@ -1,379 +0,0 @@ -/** - * @generated SignedSource<<5e319c5022f751db916ef2ba18d368e2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type BusinessImpact = "CRITICAL" | "HIGH" | "LOW" | "MEDIUM"; -export type DataSensitivity = "CRITICAL" | "HIGH" | "LOW" | "MEDIUM" | "NONE"; -import { FragmentRefs } from "relay-runtime"; -export type VendorGraphPaginatedFragment$data = { - readonly id: string; - readonly vendors: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly id: string; - readonly name: string; - readonly riskAssessments: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly businessImpact: BusinessImpact; - readonly createdAt: string; - readonly dataSensitivity: DataSensitivity; - readonly expiresAt: string; - readonly id: string; - }; - }>; - }; - readonly snapshotId: string | null | undefined; - readonly updatedAt: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - readonly " $fragmentType": "VendorGraphPaginatedFragment"; -}; -export type VendorGraphPaginatedFragment$key = { - readonly " $data"?: VendorGraphPaginatedFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorGraphPaginatedFragment">; -}; - -import VendorsListQuery_graphql from './VendorsListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "vendors" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": VendorsListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "VendorGraphPaginatedFragment", - "selections": [ - { - "alias": "vendors", - "args": [ - { - "fields": [ - { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" - } - ], - "kind": "ObjectValue", - "name": "filter" - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "__VendorsListQuery_vendors_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "VendorRiskAssessmentConnection", - "kind": "LinkedField", - "name": "riskAssessments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSensitivity", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "businessImpact", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "riskAssessments(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "023558795ed2a60c50d2c39edbe3db36"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorGraphSelectQuery.graphql.ts b/apps/console/src/__generated__/core/VendorGraphSelectQuery.graphql.ts deleted file mode 100644 index 0b1a9369b..000000000 --- a/apps/console/src/__generated__/core/VendorGraphSelectQuery.graphql.ts +++ /dev/null @@ -1,188 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type VendorGraphSelectQuery$variables = { - organizationId: string; -}; -export type VendorGraphSelectQuery$data = { - readonly organization: { - readonly vendors?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - }>; - }; - }; -}; -export type VendorGraphSelectQuery = { - response: VendorGraphSelectQuery$data; - variables: VendorGraphSelectQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 100 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "NAME" - } - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:100,orderBy:{\"direction\":\"ASC\",\"field\":\"NAME\"})" - } - ], - "type": "Organization", - "abstractKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "VendorGraphSelectQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "VendorGraphSelectQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "8127e6998fabfabfcc50a290c7ae3ed4", - "id": null, - "metadata": {}, - "name": "VendorGraphSelectQuery", - "operationKind": "query", - "text": "query VendorGraphSelectQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n vendors(first: 100, orderBy: {direction: ASC, field: NAME}) {\n edges {\n node {\n id\n name\n websiteUrl\n }\n }\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "cd161c358ec53aacea5be6d1e7698307"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorOverviewTabBusinessAssociateAgreementFragment.graphql.ts b/apps/console/src/__generated__/core/VendorOverviewTabBusinessAssociateAgreementFragment.graphql.ts deleted file mode 100644 index 65871019d..000000000 --- a/apps/console/src/__generated__/core/VendorOverviewTabBusinessAssociateAgreementFragment.graphql.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @generated SignedSource<<610480232ccc19f23fdf466a7de2ee90>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorOverviewTabBusinessAssociateAgreementFragment$data = { - readonly businessAssociateAgreement: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly fileName: string; - readonly fileUrl: string; - readonly id: string; - readonly validFrom: string | null | undefined; - readonly validUntil: string | null | undefined; - } | null | undefined; - readonly " $fragmentType": "VendorOverviewTabBusinessAssociateAgreementFragment"; -}; -export type VendorOverviewTabBusinessAssociateAgreementFragment$key = { - readonly " $data"?: VendorOverviewTabBusinessAssociateAgreementFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorOverviewTabBusinessAssociateAgreementFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "VendorOverviewTabBusinessAssociateAgreementFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorBusinessAssociateAgreement", - "kind": "LinkedField", - "name": "businessAssociateAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-business-associate-agreement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-business-associate-agreement:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-business-associate-agreement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-business-associate-agreement:delete\")" - } - ], - "storageKey": null - } - ], - "type": "Vendor", - "abstractKey": null -}; - -(node as any).hash = "0de4641522a506ca9924cb616e2bbad7"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorOverviewTabDataPrivacyAgreementFragment.graphql.ts b/apps/console/src/__generated__/core/VendorOverviewTabDataPrivacyAgreementFragment.graphql.ts deleted file mode 100644 index cac72d05d..000000000 --- a/apps/console/src/__generated__/core/VendorOverviewTabDataPrivacyAgreementFragment.graphql.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorOverviewTabDataPrivacyAgreementFragment$data = { - readonly dataPrivacyAgreement: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly fileName: string; - readonly fileUrl: string; - readonly id: string; - readonly validFrom: string | null | undefined; - readonly validUntil: string | null | undefined; - } | null | undefined; - readonly " $fragmentType": "VendorOverviewTabDataPrivacyAgreementFragment"; -}; -export type VendorOverviewTabDataPrivacyAgreementFragment$key = { - readonly " $data"?: VendorOverviewTabDataPrivacyAgreementFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorOverviewTabDataPrivacyAgreementFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "VendorOverviewTabDataPrivacyAgreementFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorDataPrivacyAgreement", - "kind": "LinkedField", - "name": "dataPrivacyAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validFrom", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "validUntil", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-data-privacy-agreement:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-data-privacy-agreement:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-data-privacy-agreement:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-data-privacy-agreement:delete\")" - } - ], - "storageKey": null - } - ], - "type": "Vendor", - "abstractKey": null -}; - -(node as any).hash = "5cf69f31730f54b7a8cb97eb73308abb"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorRiskAssessmentTabFragment.graphql.ts b/apps/console/src/__generated__/core/VendorRiskAssessmentTabFragment.graphql.ts deleted file mode 100644 index 64503df84..000000000 --- a/apps/console/src/__generated__/core/VendorRiskAssessmentTabFragment.graphql.ts +++ /dev/null @@ -1,229 +0,0 @@ -/** - * @generated SignedSource<<48a58e84cc3d767baf9ac8e346864db8>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorRiskAssessmentTabFragment$data = { - readonly id: string; - readonly riskAssessments: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"VendorRiskAssessmentTabFragment_assessment">; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - }; - readonly " $fragmentType": "VendorRiskAssessmentTabFragment"; -}; -export type VendorRiskAssessmentTabFragment$key = { - readonly " $data"?: VendorRiskAssessmentTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorRiskAssessmentTabFragment">; -}; - -import VendorRiskAssessmentTabQuery_graphql from './VendorRiskAssessmentTabQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "riskAssessments" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": VendorRiskAssessmentTabQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "VendorRiskAssessmentTabFragment", - "selections": [ - (v1/*: any*/), - { - "alias": "riskAssessments", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "VendorRiskAssessmentConnection", - "kind": "LinkedField", - "name": "__VendorRiskAssessmentTabFragment_riskAssessments_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorRiskAssessmentTabFragment_assessment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - } - ], - "type": "Vendor", - "abstractKey": null -}; -})(); - -(node as any).hash = "0677e45996571e06b832e4600939db5b"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorRiskAssessmentTabFragment_assessment.graphql.ts b/apps/console/src/__generated__/core/VendorRiskAssessmentTabFragment_assessment.graphql.ts deleted file mode 100644 index 7eff7f622..000000000 --- a/apps/console/src/__generated__/core/VendorRiskAssessmentTabFragment_assessment.graphql.ts +++ /dev/null @@ -1,84 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type BusinessImpact = "CRITICAL" | "HIGH" | "LOW" | "MEDIUM"; -export type DataSensitivity = "CRITICAL" | "HIGH" | "LOW" | "MEDIUM" | "NONE"; -import { FragmentRefs } from "relay-runtime"; -export type VendorRiskAssessmentTabFragment_assessment$data = { - readonly businessImpact: BusinessImpact; - readonly createdAt: string; - readonly dataSensitivity: DataSensitivity; - readonly expiresAt: string; - readonly id: string; - readonly notes: string | null | undefined; - readonly " $fragmentType": "VendorRiskAssessmentTabFragment_assessment"; -}; -export type VendorRiskAssessmentTabFragment_assessment$key = { - readonly " $data"?: VendorRiskAssessmentTabFragment_assessment$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorRiskAssessmentTabFragment_assessment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "VendorRiskAssessmentTabFragment_assessment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSensitivity", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "businessImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "notes", - "storageKey": null - } - ], - "type": "VendorRiskAssessment", - "abstractKey": null -}; - -(node as any).hash = "533771f5fac9e732556929fa2b1d0dc5"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorRiskAssessmentTabQuery.graphql.ts b/apps/console/src/__generated__/core/VendorRiskAssessmentTabQuery.graphql.ts deleted file mode 100644 index 4ad1a7539..000000000 --- a/apps/console/src/__generated__/core/VendorRiskAssessmentTabQuery.graphql.ts +++ /dev/null @@ -1,351 +0,0 @@ -/** - * @generated SignedSource<<6303a33c70cf6072bad533f5362a8944>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type VendorRiskAssessmentOrderField = "CREATED_AT" | "EXPIRES_AT"; -export type VendorRiskAssessmentOrder = { - direction: OrderDirection; - field: VendorRiskAssessmentOrderField; -}; -export type VendorRiskAssessmentTabQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: VendorRiskAssessmentOrder | null | undefined; -}; -export type VendorRiskAssessmentTabQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"VendorRiskAssessmentTabFragment">; - }; -}; -export type VendorRiskAssessmentTabQuery = { - response: VendorRiskAssessmentTabQuery$data; - variables: VendorRiskAssessmentTabQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "VendorRiskAssessmentTabQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "VendorRiskAssessmentTabFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "VendorRiskAssessmentTabQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "VendorRiskAssessmentConnection", - "kind": "LinkedField", - "name": "riskAssessments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSensitivity", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "businessImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "notes", - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "VendorRiskAssessmentTabFragment_riskAssessments", - "kind": "LinkedHandle", - "name": "riskAssessments" - } - ], - "type": "Vendor", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "5bf6eff01e3ca53e8da78cba59316a0c", - "id": null, - "metadata": {}, - "name": "VendorRiskAssessmentTabQuery", - "operationKind": "query", - "text": "query VendorRiskAssessmentTabQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: VendorRiskAssessmentOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...VendorRiskAssessmentTabFragment_16fISc\n id\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_16fISc on Vendor {\n id\n riskAssessments(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n ...VendorRiskAssessmentTabFragment_assessment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n" - } -}; -})(); - -(node as any).hash = "0677e45996571e06b832e4600939db5b"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorServicesListQuery.graphql.ts b/apps/console/src/__generated__/core/VendorServicesListQuery.graphql.ts deleted file mode 100644 index dc6280b5c..000000000 --- a/apps/console/src/__generated__/core/VendorServicesListQuery.graphql.ts +++ /dev/null @@ -1,356 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type VendorServiceOrderField = "CREATED_AT" | "NAME"; -export type VendorServiceOrder = { - direction: OrderDirection; - field: VendorServiceOrderField; -}; -export type VendorServicesListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: VendorServiceOrder | null | undefined; -}; -export type VendorServicesListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"VendorServicesTabFragment">; - }; -}; -export type VendorServicesListQuery = { - response: VendorServicesListQuery$data; - variables: VendorServicesListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "VendorServicesListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "VendorServicesTabFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "VendorServicesListQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "VendorServiceConnection", - "kind": "LinkedField", - "name": "services", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorServiceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorService", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "VendorServicesTabFragment_services", - "kind": "LinkedHandle", - "name": "services" - } - ], - "type": "Vendor", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "bed31ef58c544edb7f800be464058d1b", - "id": null, - "metadata": {}, - "name": "VendorServicesListQuery", - "operationKind": "query", - "text": "query VendorServicesListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: VendorServiceOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...VendorServicesTabFragment_16fISc\n id\n }\n}\n\nfragment VendorServicesTabFragment_16fISc on Vendor {\n services(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n canUpdate: permission(action: \"core:vendor-service:update\")\n canDelete: permission(action: \"core:vendor-service:delete\")\n ...VendorServicesTabFragment_service\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorServicesTabFragment_service on VendorService {\n id\n name\n description\n canUpdate: permission(action: \"core:vendor-service:update\")\n canDelete: permission(action: \"core:vendor-service:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "9ef8673eefe25a94bb6e02b564c2f1aa"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorServicesTabDeleteServiceMutation.graphql.ts b/apps/console/src/__generated__/core/VendorServicesTabDeleteServiceMutation.graphql.ts deleted file mode 100644 index baa90fc88..000000000 --- a/apps/console/src/__generated__/core/VendorServicesTabDeleteServiceMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteVendorServiceInput = { - vendorServiceId: string; -}; -export type VendorServicesTabDeleteServiceMutation$variables = { - connections: ReadonlyArray; - input: DeleteVendorServiceInput; -}; -export type VendorServicesTabDeleteServiceMutation$data = { - readonly deleteVendorService: { - readonly deletedVendorServiceId: string; - }; -}; -export type VendorServicesTabDeleteServiceMutation = { - response: VendorServicesTabDeleteServiceMutation$data; - variables: VendorServicesTabDeleteServiceMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedVendorServiceId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "VendorServicesTabDeleteServiceMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteVendorServicePayload", - "kind": "LinkedField", - "name": "deleteVendorService", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "VendorServicesTabDeleteServiceMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteVendorServicePayload", - "kind": "LinkedField", - "name": "deleteVendorService", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedVendorServiceId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "fef00196f74b15a5528a0974541f1ec4", - "id": null, - "metadata": {}, - "name": "VendorServicesTabDeleteServiceMutation", - "operationKind": "mutation", - "text": "mutation VendorServicesTabDeleteServiceMutation(\n $input: DeleteVendorServiceInput!\n) {\n deleteVendorService(input: $input) {\n deletedVendorServiceId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "73d14c22b95d031b2c07b18dbbeb64d4"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorServicesTabFragment.graphql.ts b/apps/console/src/__generated__/core/VendorServicesTabFragment.graphql.ts deleted file mode 100644 index 6b78a9168..000000000 --- a/apps/console/src/__generated__/core/VendorServicesTabFragment.graphql.ts +++ /dev/null @@ -1,253 +0,0 @@ -/** - * @generated SignedSource<<63a5d7d63f436c96a8f7d9b66a4f708d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorServicesTabFragment$data = { - readonly id: string; - readonly services: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"VendorServicesTabFragment_service">; - }; - }>; - }; - readonly " $fragmentType": "VendorServicesTabFragment"; -}; -export type VendorServicesTabFragment$key = { - readonly " $data"?: VendorServicesTabFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorServicesTabFragment">; -}; - -import VendorServicesListQuery_graphql from './VendorServicesListQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "services" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": VendorServicesListQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "VendorServicesTabFragment", - "selections": [ - { - "alias": "services", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "VendorServiceConnection", - "kind": "LinkedField", - "name": "__VendorServicesTabFragment_services_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorServiceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorService", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:delete\")" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorServicesTabFragment_service" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Vendor", - "abstractKey": null -}; -})(); - -(node as any).hash = "9ef8673eefe25a94bb6e02b564c2f1aa"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorServicesTabFragment_service.graphql.ts b/apps/console/src/__generated__/core/VendorServicesTabFragment_service.graphql.ts deleted file mode 100644 index da35c6bae..000000000 --- a/apps/console/src/__generated__/core/VendorServicesTabFragment_service.graphql.ts +++ /dev/null @@ -1,86 +0,0 @@ -/** - * @generated SignedSource<<1de5190bc3c47ab15138ab0ae27029db>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VendorServicesTabFragment_service$data = { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - readonly " $fragmentType": "VendorServicesTabFragment_service"; -}; -export type VendorServicesTabFragment_service$key = { - readonly " $data"?: VendorServicesTabFragment_service$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorServicesTabFragment_service">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "VendorServicesTabFragment_service", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor-service:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor-service:delete\")" - } - ], - "type": "VendorService", - "abstractKey": null -}; - -(node as any).hash = "08f4f2317c7031ffca54a21505a4a9d7"; - -export default node; diff --git a/apps/console/src/__generated__/core/VendorsListQuery.graphql.ts b/apps/console/src/__generated__/core/VendorsListQuery.graphql.ts deleted file mode 100644 index a97c33354..000000000 --- a/apps/console/src/__generated__/core/VendorsListQuery.graphql.ts +++ /dev/null @@ -1,467 +0,0 @@ -/** - * @generated SignedSource<<32bbeab909437ba96ded84710a198413>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type VendorOrderField = "CREATED_AT" | "NAME" | "UPDATED_AT"; -export type VendorOrder = { - direction: OrderDirection; - field: VendorOrderField; -}; -export type VendorsListQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: VendorOrder | null | undefined; - snapshotId?: string | null | undefined; -}; -export type VendorsListQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"VendorGraphPaginatedFragment">; - }; -}; -export type VendorsListQuery = { - response: VendorsListQuery$data; - variables: VendorsListQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 50, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "snapshotId" -}, -v7 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v8 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v9 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v10 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v11 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v12 = { - "kind": "Variable", - "name": "snapshotId", - "variableName": "snapshotId" -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v14 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v15 = [ - (v8/*: any*/), - (v9/*: any*/), - { - "fields": [ - (v12/*: any*/) - ], - "kind": "ObjectValue", - "name": "filter" - }, - (v10/*: any*/), - (v11/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "VendorsListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - }, - (v12/*: any*/) - ], - "kind": "FragmentSpread", - "name": "VendorGraphPaginatedFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "VendorsListQuery", - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v13/*: any*/), - (v14/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v15/*: any*/), - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "snapshotId", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "VendorRiskAssessmentConnection", - "kind": "LinkedField", - "name": "riskAssessments", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessmentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorRiskAssessment", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v14/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataSensitivity", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "businessImpact", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "riskAssessments(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:delete\")" - }, - (v13/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v15/*: any*/), - "filters": [ - "filter" - ], - "handle": "connection", - "key": "VendorsListQuery_vendors", - "kind": "LinkedHandle", - "name": "vendors" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "04d4f2010cbc972eea3c0b464a7d2ad8", - "id": null, - "metadata": {}, - "name": "VendorsListQuery", - "operationKind": "query", - "text": "query VendorsListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: VendorOrder = null\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...VendorGraphPaginatedFragment_25MC8O\n id\n }\n}\n\nfragment VendorGraphPaginatedFragment_25MC8O on Organization {\n vendors(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n websiteUrl\n updatedAt\n riskAssessments(first: 1, orderBy: {direction: DESC, field: CREATED_AT}) {\n edges {\n node {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n }\n }\n }\n canUpdate: permission(action: \"core:vendor:update\")\n canDelete: permission(action: \"core:vendor:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "023558795ed2a60c50d2c39edbe3db36"; - -export default node; diff --git a/apps/console/src/__generated__/core/VersionActionsFragment.graphql.ts b/apps/console/src/__generated__/core/VersionActionsFragment.graphql.ts deleted file mode 100644 index 17fe23b88..000000000 --- a/apps/console/src/__generated__/core/VersionActionsFragment.graphql.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VersionActionsFragment$data = { - readonly id: string; - readonly signed: boolean; - readonly " $fragmentType": "VersionActionsFragment"; -}; -export type VersionActionsFragment$key = { - readonly " $data"?: VersionActionsFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"VersionActionsFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "VersionActionsFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signed", - "storageKey": null - } - ], - "type": "DocumentVersion", - "abstractKey": null -}; - -(node as any).hash = "9d3f7cc67712ad429dc0b1072fe2fe97"; - -export default node; diff --git a/apps/console/src/__generated__/core/VersionRowFragment.graphql.ts b/apps/console/src/__generated__/core/VersionRowFragment.graphql.ts deleted file mode 100644 index cbcc61854..000000000 --- a/apps/console/src/__generated__/core/VersionRowFragment.graphql.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * @generated SignedSource<<9e7dea0ad7cddb603d16a2fbbe71e4dc>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type VersionRowFragment$data = { - readonly id: string; - readonly publishedAt: string | null | undefined; - readonly signed: boolean; - readonly version: number; - readonly " $fragmentType": "VersionRowFragment"; -}; -export type VersionRowFragment$key = { - readonly " $data"?: VersionRowFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"VersionRowFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "VersionRowFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "version", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signed", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "publishedAt", - "storageKey": null - } - ], - "type": "DocumentVersion", - "abstractKey": null -}; - -(node as any).hash = "421d770febb7c38b46562e03ecd95a41"; - -export default node; diff --git a/apps/console/src/__generated__/core/WebhooksSettingsPageQuery.graphql.ts b/apps/console/src/__generated__/core/WebhooksSettingsPageQuery.graphql.ts deleted file mode 100644 index 271b62780..000000000 --- a/apps/console/src/__generated__/core/WebhooksSettingsPageQuery.graphql.ts +++ /dev/null @@ -1,292 +0,0 @@ -/** - * @generated SignedSource<<754e567fe99c9c96b8d4e324ce5373b8>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type WebhookEventType = "MEETING_CREATED" | "MEETING_DELETED" | "MEETING_UPDATED" | "OBLIGATION_CREATED" | "OBLIGATION_DELETED" | "OBLIGATION_UPDATED" | "USER_CREATED" | "USER_DELETED" | "USER_UPDATED" | "VENDOR_CREATED" | "VENDOR_DELETED" | "VENDOR_UPDATED"; -export type WebhooksSettingsPageQuery$variables = { - organizationId: string; -}; -export type WebhooksSettingsPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly id: string; - readonly webhookSubscriptions: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly endpointUrl: string; - readonly events: { - readonly totalCount: number; - }; - readonly id: string; - readonly selectedEvents: ReadonlyArray; - }; - }>; - }; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type WebhooksSettingsPageQuery = { - response: WebhooksSettingsPageQuery$data; - variables: WebhooksSettingsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = [ - { - "alias": null, - "args": null, - "concreteType": "WebhookSubscriptionEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "WebhookSubscription", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endpointUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "selectedEvents", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 0 - } - ], - "concreteType": "WebhookEventConnection", - "kind": "LinkedField", - "name": "events", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } - ], - "storageKey": "events(first:0)" - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - } -], -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "WebhooksSettingsPageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": "webhookSubscriptions", - "args": null, - "concreteType": "WebhookSubscriptionConnection", - "kind": "LinkedField", - "name": "__WebhooksSettingsPage_webhookSubscriptions_connection", - "plural": false, - "selections": (v4/*: any*/), - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "WebhooksSettingsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "WebhookSubscriptionConnection", - "kind": "LinkedField", - "name": "webhookSubscriptions", - "plural": false, - "selections": (v4/*: any*/), - "storageKey": "webhookSubscriptions(first:50)" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": null, - "handle": "connection", - "key": "WebhooksSettingsPage_webhookSubscriptions", - "kind": "LinkedHandle", - "name": "webhookSubscriptions" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "eeb9eda2a1b1d205fadba357fc20077c", - "id": null, - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "organization", - "webhookSubscriptions" - ] - } - ] - }, - "name": "WebhooksSettingsPageQuery", - "operationKind": "query", - "text": "query WebhooksSettingsPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n webhookSubscriptions(first: 50) {\n edges {\n node {\n id\n endpointUrl\n selectedEvents\n events(first: 0) {\n totalCount\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "2d08ddd621d3e5880367b83a70d2f168"; - -export default node; diff --git a/apps/console/src/__generated__/core/WebhooksSettingsPage_createMutation.graphql.ts b/apps/console/src/__generated__/core/WebhooksSettingsPage_createMutation.graphql.ts deleted file mode 100644 index 583427777..000000000 --- a/apps/console/src/__generated__/core/WebhooksSettingsPage_createMutation.graphql.ts +++ /dev/null @@ -1,204 +0,0 @@ -/** - * @generated SignedSource<<876124efbbec99a5059c28550cb638c0>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type WebhookEventType = "MEETING_CREATED" | "MEETING_DELETED" | "MEETING_UPDATED" | "OBLIGATION_CREATED" | "OBLIGATION_DELETED" | "OBLIGATION_UPDATED" | "USER_CREATED" | "USER_DELETED" | "USER_UPDATED" | "VENDOR_CREATED" | "VENDOR_DELETED" | "VENDOR_UPDATED"; -export type CreateWebhookSubscriptionInput = { - endpointUrl: string; - organizationId: string; - selectedEvents: ReadonlyArray; -}; -export type WebhooksSettingsPage_createMutation$variables = { - connections: ReadonlyArray; - input: CreateWebhookSubscriptionInput; -}; -export type WebhooksSettingsPage_createMutation$data = { - readonly createWebhookSubscription: { - readonly webhookSubscriptionEdge: { - readonly node: { - readonly endpointUrl: string; - readonly events: { - readonly totalCount: number; - }; - readonly id: string; - readonly selectedEvents: ReadonlyArray; - }; - }; - }; -}; -export type WebhooksSettingsPage_createMutation = { - response: WebhooksSettingsPage_createMutation$data; - variables: WebhooksSettingsPage_createMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "WebhookSubscriptionEdge", - "kind": "LinkedField", - "name": "webhookSubscriptionEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "WebhookSubscription", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endpointUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "selectedEvents", - "storageKey": null - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 0 - } - ], - "concreteType": "WebhookEventConnection", - "kind": "LinkedField", - "name": "events", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } - ], - "storageKey": "events(first:0)" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "WebhooksSettingsPage_createMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateWebhookSubscriptionPayload", - "kind": "LinkedField", - "name": "createWebhookSubscription", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "WebhooksSettingsPage_createMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateWebhookSubscriptionPayload", - "kind": "LinkedField", - "name": "createWebhookSubscription", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "webhookSubscriptionEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "680c8a1d89c3f45d06e203072c68e593", - "id": null, - "metadata": {}, - "name": "WebhooksSettingsPage_createMutation", - "operationKind": "mutation", - "text": "mutation WebhooksSettingsPage_createMutation(\n $input: CreateWebhookSubscriptionInput!\n) {\n createWebhookSubscription(input: $input) {\n webhookSubscriptionEdge {\n node {\n id\n endpointUrl\n selectedEvents\n events(first: 0) {\n totalCount\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "ba13f2e1f417d449aa7d959c6411f858"; - -export default node; diff --git a/apps/console/src/__generated__/core/WebhooksSettingsPage_deleteMutation.graphql.ts b/apps/console/src/__generated__/core/WebhooksSettingsPage_deleteMutation.graphql.ts deleted file mode 100644 index 0d550a062..000000000 --- a/apps/console/src/__generated__/core/WebhooksSettingsPage_deleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteWebhookSubscriptionInput = { - webhookSubscriptionId: string; -}; -export type WebhooksSettingsPage_deleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteWebhookSubscriptionInput; -}; -export type WebhooksSettingsPage_deleteMutation$data = { - readonly deleteWebhookSubscription: { - readonly deletedWebhookSubscriptionId: string; - }; -}; -export type WebhooksSettingsPage_deleteMutation = { - response: WebhooksSettingsPage_deleteMutation$data; - variables: WebhooksSettingsPage_deleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedWebhookSubscriptionId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "WebhooksSettingsPage_deleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteWebhookSubscriptionPayload", - "kind": "LinkedField", - "name": "deleteWebhookSubscription", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "WebhooksSettingsPage_deleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteWebhookSubscriptionPayload", - "kind": "LinkedField", - "name": "deleteWebhookSubscription", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedWebhookSubscriptionId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c1bab418b14488e982f2c444b8693919", - "id": null, - "metadata": {}, - "name": "WebhooksSettingsPage_deleteMutation", - "operationKind": "mutation", - "text": "mutation WebhooksSettingsPage_deleteMutation(\n $input: DeleteWebhookSubscriptionInput!\n) {\n deleteWebhookSubscription(input: $input) {\n deletedWebhookSubscriptionId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "794d73fc91d4332f5e65a070ea11d27d"; - -export default node; diff --git a/apps/console/src/__generated__/core/WebhooksSettingsPage_eventsQuery.graphql.ts b/apps/console/src/__generated__/core/WebhooksSettingsPage_eventsQuery.graphql.ts deleted file mode 100644 index 428fa7d3d..000000000 --- a/apps/console/src/__generated__/core/WebhooksSettingsPage_eventsQuery.graphql.ts +++ /dev/null @@ -1,249 +0,0 @@ -/** - * @generated SignedSource<<6973a312c85bf6bed33ceda2600b989d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type WebhookEventStatus = "FAILED" | "PENDING" | "SUCCEEDED"; -export type WebhooksSettingsPage_eventsQuery$variables = { - after?: string | null | undefined; - first?: number | null | undefined; - webhookSubscriptionId: string; -}; -export type WebhooksSettingsPage_eventsQuery$data = { - readonly node: { - readonly events?: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly createdAt: string; - readonly id: string; - readonly response: string | null | undefined; - readonly status: WebhookEventStatus; - }; - }>; - readonly pageInfo: { - readonly endCursor: string | null | undefined; - readonly hasNextPage: boolean; - }; - readonly totalCount: number; - }; - }; -}; -export type WebhooksSettingsPage_eventsQuery = { - response: WebhooksSettingsPage_eventsQuery$data; - variables: WebhooksSettingsPage_eventsQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "first" -}, -v2 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "webhookSubscriptionId" -}, -v3 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "webhookSubscriptionId" - } -], -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v5 = { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "after", - "variableName": "after" - }, - { - "kind": "Variable", - "name": "first", - "variableName": "first" - } - ], - "concreteType": "WebhookEventConnection", - "kind": "LinkedField", - "name": "events", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "WebhookEventEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "WebhookEvent", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "response", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "WebhookSubscription", - "abstractKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "WebhooksSettingsPage_eventsQuery", - "selections": [ - { - "alias": null, - "args": (v3/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/) - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v2/*: any*/), - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "WebhooksSettingsPage_eventsQuery", - "selections": [ - { - "alias": null, - "args": (v3/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v5/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "e74fa0d64dfc6bb54856386970bf4b68", - "id": null, - "metadata": {}, - "name": "WebhooksSettingsPage_eventsQuery", - "operationKind": "query", - "text": "query WebhooksSettingsPage_eventsQuery(\n $webhookSubscriptionId: ID!\n $first: Int\n $after: CursorKey\n) {\n node(id: $webhookSubscriptionId) {\n __typename\n ... on WebhookSubscription {\n events(first: $first, after: $after) {\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n status\n createdAt\n response\n }\n }\n }\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "75d3f1df0526526656b065b6d9be8b65"; - -export default node; diff --git a/apps/console/src/__generated__/core/WebhooksSettingsPage_signingSecretQuery.graphql.ts b/apps/console/src/__generated__/core/WebhooksSettingsPage_signingSecretQuery.graphql.ts deleted file mode 100644 index 87053c5be..000000000 --- a/apps/console/src/__generated__/core/WebhooksSettingsPage_signingSecretQuery.graphql.ts +++ /dev/null @@ -1,124 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type WebhooksSettingsPage_signingSecretQuery$variables = { - webhookSubscriptionId: string; -}; -export type WebhooksSettingsPage_signingSecretQuery$data = { - readonly node: { - readonly signingSecret?: string; - }; -}; -export type WebhooksSettingsPage_signingSecretQuery = { - response: WebhooksSettingsPage_signingSecretQuery$data; - variables: WebhooksSettingsPage_signingSecretQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "webhookSubscriptionId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "webhookSubscriptionId" - } -], -v2 = { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "signingSecret", - "storageKey": null - } - ], - "type": "WebhookSubscription", - "abstractKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "WebhooksSettingsPage_signingSecretQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "WebhooksSettingsPage_signingSecretQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "df35742c680c055e5b820401cfb05271", - "id": null, - "metadata": {}, - "name": "WebhooksSettingsPage_signingSecretQuery", - "operationKind": "query", - "text": "query WebhooksSettingsPage_signingSecretQuery(\n $webhookSubscriptionId: ID!\n) {\n node(id: $webhookSubscriptionId) {\n __typename\n ... on WebhookSubscription {\n signingSecret\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "2d895bf4be96e0ef2c767af8149c8533"; - -export default node; diff --git a/apps/console/src/__generated__/core/WebhooksSettingsPage_updateMutation.graphql.ts b/apps/console/src/__generated__/core/WebhooksSettingsPage_updateMutation.graphql.ts deleted file mode 100644 index 21c7c8d4f..000000000 --- a/apps/console/src/__generated__/core/WebhooksSettingsPage_updateMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type WebhookEventType = "MEETING_CREATED" | "MEETING_DELETED" | "MEETING_UPDATED" | "OBLIGATION_CREATED" | "OBLIGATION_DELETED" | "OBLIGATION_UPDATED" | "USER_CREATED" | "USER_DELETED" | "USER_UPDATED" | "VENDOR_CREATED" | "VENDOR_DELETED" | "VENDOR_UPDATED"; -export type UpdateWebhookSubscriptionInput = { - endpointUrl?: string | null | undefined; - id: string; - selectedEvents?: ReadonlyArray | null | undefined; -}; -export type WebhooksSettingsPage_updateMutation$variables = { - input: UpdateWebhookSubscriptionInput; -}; -export type WebhooksSettingsPage_updateMutation$data = { - readonly updateWebhookSubscription: { - readonly webhookSubscription: { - readonly endpointUrl: string; - readonly id: string; - readonly selectedEvents: ReadonlyArray; - readonly updatedAt: string; - }; - }; -}; -export type WebhooksSettingsPage_updateMutation = { - response: WebhooksSettingsPage_updateMutation$data; - variables: WebhooksSettingsPage_updateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateWebhookSubscriptionPayload", - "kind": "LinkedField", - "name": "updateWebhookSubscription", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "WebhookSubscription", - "kind": "LinkedField", - "name": "webhookSubscription", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endpointUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "selectedEvents", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "WebhooksSettingsPage_updateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "WebhooksSettingsPage_updateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "e12790e2de3f89c6606b50a597acb244", - "id": null, - "metadata": {}, - "name": "WebhooksSettingsPage_updateMutation", - "operationKind": "mutation", - "text": "mutation WebhooksSettingsPage_updateMutation(\n $input: UpdateWebhookSubscriptionInput!\n) {\n updateWebhookSubscription(input: $input) {\n webhookSubscription {\n id\n endpointUrl\n selectedEvents\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "f4c0f7667d77b64c41e436a7b5df6df5"; - -export default node; diff --git a/apps/console/src/__generated__/core/usePaginatedMeasuresFragment.graphql.ts b/apps/console/src/__generated__/core/usePaginatedMeasuresFragment.graphql.ts deleted file mode 100644 index 129675f8d..000000000 --- a/apps/console/src/__generated__/core/usePaginatedMeasuresFragment.graphql.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * @generated SignedSource<<53e0a105a9b28a70a1083500cd6b4577>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type MeasureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED"; -import { FragmentRefs } from "relay-runtime"; -export type usePaginatedMeasuresFragment$data = { - readonly id: string; - readonly measures: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly category: string; - readonly description: string | null | undefined; - readonly id: string; - readonly name: string; - readonly state: MeasureState; - }; - }>; - }; - readonly " $fragmentType": "usePaginatedMeasuresFragment"; -}; -export type usePaginatedMeasuresFragment$key = { - readonly " $data"?: usePaginatedMeasuresFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"usePaginatedMeasuresFragment">; -}; - -import usePaginatedMeasuresQuery_fragment_graphql from './usePaginatedMeasuresQuery_fragment.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "measures" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": usePaginatedMeasuresQuery_fragment_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "usePaginatedMeasuresFragment", - "selections": [ - { - "alias": "measures", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "MeasureConnection", - "kind": "LinkedField", - "name": "__usePaginatedMeasuresQuery_measures_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "7d9401a3b7aad78951093dcac34df06e"; - -export default node; diff --git a/apps/console/src/__generated__/core/usePaginatedMeasuresQuery.graphql.ts b/apps/console/src/__generated__/core/usePaginatedMeasuresQuery.graphql.ts deleted file mode 100644 index 39075a929..000000000 --- a/apps/console/src/__generated__/core/usePaginatedMeasuresQuery.graphql.ts +++ /dev/null @@ -1,259 +0,0 @@ -/** - * @generated SignedSource<<30fa378f7e73bf788828131ecfccb812>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type usePaginatedMeasuresQuery$variables = { - organizationId: string; -}; -export type usePaginatedMeasuresQuery$data = { - readonly organization: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"usePaginatedMeasuresFragment">; - }; -}; -export type usePaginatedMeasuresQuery = { - response: usePaginatedMeasuresQuery$data; - variables: usePaginatedMeasuresQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "usePaginatedMeasuresQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "usePaginatedMeasuresFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "usePaginatedMeasuresQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "MeasureConnection", - "kind": "LinkedField", - "name": "measures", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "measures(first:20)" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "usePaginatedMeasuresQuery_measures", - "kind": "LinkedHandle", - "name": "measures" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "5e37746b5ff660a2b5c817eb64ec0f6e", - "id": null, - "metadata": {}, - "name": "usePaginatedMeasuresQuery", - "operationKind": "query", - "text": "query usePaginatedMeasuresQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n ...usePaginatedMeasuresFragment\n }\n }\n}\n\nfragment usePaginatedMeasuresFragment on Organization {\n measures(first: 20) {\n edges {\n node {\n id\n name\n state\n description\n category\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "49bbe1012e06a7c38d335da0defc0270"; - -export default node; diff --git a/apps/console/src/__generated__/core/usePaginatedMeasuresQuery_fragment.graphql.ts b/apps/console/src/__generated__/core/usePaginatedMeasuresQuery_fragment.graphql.ts deleted file mode 100644 index 8fb070b76..000000000 --- a/apps/console/src/__generated__/core/usePaginatedMeasuresQuery_fragment.graphql.ts +++ /dev/null @@ -1,332 +0,0 @@ -/** - * @generated SignedSource<<6c86702e8005adfb32ab18b122d37fba>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MeasureOrderField = "CREATED_AT" | "NAME"; -export type OrderDirection = "ASC" | "DESC"; -export type MeasureOrder = { - direction: OrderDirection; - field: MeasureOrderField; -}; -export type usePaginatedMeasuresQuery_fragment$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: MeasureOrder | null | undefined; -}; -export type usePaginatedMeasuresQuery_fragment$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"usePaginatedMeasuresFragment">; - }; -}; -export type usePaginatedMeasuresQuery_fragment = { - response: usePaginatedMeasuresQuery_fragment$data; - variables: usePaginatedMeasuresQuery_fragment$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "usePaginatedMeasuresQuery_fragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "usePaginatedMeasuresFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "usePaginatedMeasuresQuery_fragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "MeasureConnection", - "kind": "LinkedField", - "name": "measures", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MeasureEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Measure", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - (v11/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "usePaginatedMeasuresQuery_measures", - "kind": "LinkedHandle", - "name": "measures" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c37a9764fcf0b587ae467395a5af84e4", - "id": null, - "metadata": {}, - "name": "usePaginatedMeasuresQuery_fragment", - "operationKind": "query", - "text": "query usePaginatedMeasuresQuery_fragment(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $order: MeasureOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...usePaginatedMeasuresFragment_16fISc\n id\n }\n}\n\nfragment usePaginatedMeasuresFragment_16fISc on Organization {\n measures(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n name\n state\n description\n category\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "7d9401a3b7aad78951093dcac34df06e"; - -export default node; diff --git a/apps/console/src/__generated__/core/useRiskFormFragment.graphql.ts b/apps/console/src/__generated__/core/useRiskFormFragment.graphql.ts deleted file mode 100644 index 91bd0e5f7..000000000 --- a/apps/console/src/__generated__/core/useRiskFormFragment.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<<4fe8f690a945554a196237ad05417d34>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type RiskTreatment = "ACCEPTED" | "AVOIDED" | "MITIGATED" | "TRANSFERRED"; -import { FragmentRefs } from "relay-runtime"; -export type useRiskFormFragment$data = { - readonly category: string; - readonly description: string | null | undefined; - readonly id: string; - readonly inherentImpact: number; - readonly inherentLikelihood: number; - readonly name: string; - readonly note: string; - readonly owner: { - readonly id: string; - } | null | undefined; - readonly residualImpact: number; - readonly residualLikelihood: number; - readonly treatment: RiskTreatment; - readonly " $fragmentType": "useRiskFormFragment"; -}; -export type useRiskFormFragment$key = { - readonly " $data"?: useRiskFormFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"useRiskFormFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "useRiskFormFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "treatment", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "inherentImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualLikelihood", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "residualImpact", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "note", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "owner", - "plural": false, - "selections": [ - (v0/*: any*/) - ], - "storageKey": null - } - ], - "type": "Risk", - "abstractKey": null -}; -})(); - -(node as any).hash = "7ad9386b4049af3f139d7269bb5229c2"; - -export default node; diff --git a/apps/console/src/__generated__/core/useVendorFormFragment.graphql.ts b/apps/console/src/__generated__/core/useVendorFormFragment.graphql.ts deleted file mode 100644 index bbfd17e14..000000000 --- a/apps/console/src/__generated__/core/useVendorFormFragment.graphql.ts +++ /dev/null @@ -1,196 +0,0 @@ -/** - * @generated SignedSource<<8edb25e86af506197207e5b3b6da6be5>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type CountryCode = "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "EU" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW"; -export type VendorCategory = "ANALYTICS" | "CLOUD_MONITORING" | "CLOUD_PROVIDER" | "COLLABORATION" | "CUSTOMER_SUPPORT" | "DATA_STORAGE_AND_PROCESSING" | "DOCUMENT_MANAGEMENT" | "EMPLOYEE_MANAGEMENT" | "ENGINEERING" | "FINANCE" | "IDENTITY_PROVIDER" | "IT" | "MARKETING" | "OFFICE_OPERATIONS" | "OTHER" | "PASSWORD_MANAGEMENT" | "PRODUCT_AND_DESIGN" | "PROFESSIONAL_SERVICES" | "RECRUITING" | "SALES" | "SECURITY" | "VERSION_CONTROL"; -import { FragmentRefs } from "relay-runtime"; -export type useVendorFormFragment$data = { - readonly businessOwner: { - readonly id: string; - } | null | undefined; - readonly category: VendorCategory; - readonly certifications: ReadonlyArray; - readonly countries: ReadonlyArray; - readonly dataProcessingAgreementUrl: string | null | undefined; - readonly description: string | null | undefined; - readonly headquarterAddress: string | null | undefined; - readonly id: string; - readonly legalName: string | null | undefined; - readonly name: string; - readonly privacyPolicyUrl: string | null | undefined; - readonly securityOwner: { - readonly id: string; - } | null | undefined; - readonly securityPageUrl: string | null | undefined; - readonly serviceLevelAgreementUrl: string | null | undefined; - readonly statusPageUrl: string | null | undefined; - readonly termsOfServiceUrl: string | null | undefined; - readonly trustPageUrl: string | null | undefined; - readonly websiteUrl: string | null | undefined; - readonly " $fragmentType": "useVendorFormFragment"; -}; -export type useVendorFormFragment$key = { - readonly " $data"?: useVendorFormFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"useVendorFormFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = [ - (v0/*: any*/) -]; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "useVendorFormFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "statusPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "termsOfServiceUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "privacyPolicyUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "serviceLevelAgreementUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataProcessingAgreementUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "legalName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "headquarterAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "certifications", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "countries", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "securityPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "businessOwner", - "plural": false, - "selections": (v1/*: any*/), - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "securityOwner", - "plural": false, - "selections": (v1/*: any*/), - "storageKey": null - } - ], - "type": "Vendor", - "abstractKey": null -}; -})(); - -(node as any).hash = "89148658660d29dbe0ab6761300c6771"; - -export default node; diff --git a/apps/console/src/__generated__/core/useVendorFormMutation.graphql.ts b/apps/console/src/__generated__/core/useVendorFormMutation.graphql.ts deleted file mode 100644 index e1af0e3bc..000000000 --- a/apps/console/src/__generated__/core/useVendorFormMutation.graphql.ts +++ /dev/null @@ -1,285 +0,0 @@ -/** - * @generated SignedSource<<6965b8a2bb1b8043b31b6eb1f8067784>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CountryCode = "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "EU" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW"; -export type VendorCategory = "ANALYTICS" | "CLOUD_MONITORING" | "CLOUD_PROVIDER" | "COLLABORATION" | "CUSTOMER_SUPPORT" | "DATA_STORAGE_AND_PROCESSING" | "DOCUMENT_MANAGEMENT" | "EMPLOYEE_MANAGEMENT" | "ENGINEERING" | "FINANCE" | "IDENTITY_PROVIDER" | "IT" | "MARKETING" | "OFFICE_OPERATIONS" | "OTHER" | "PASSWORD_MANAGEMENT" | "PRODUCT_AND_DESIGN" | "PROFESSIONAL_SERVICES" | "RECRUITING" | "SALES" | "SECURITY" | "VERSION_CONTROL"; -export type UpdateVendorInput = { - businessAssociateAgreementUrl?: string | null | undefined; - businessOwnerId?: string | null | undefined; - category?: VendorCategory | null | undefined; - certifications?: ReadonlyArray | null | undefined; - countries?: ReadonlyArray | null | undefined; - dataProcessingAgreementUrl?: string | null | undefined; - description?: string | null | undefined; - headquarterAddress?: string | null | undefined; - id: string; - legalName?: string | null | undefined; - name?: string | null | undefined; - privacyPolicyUrl?: string | null | undefined; - securityOwnerId?: string | null | undefined; - securityPageUrl?: string | null | undefined; - serviceLevelAgreementUrl?: string | null | undefined; - showOnTrustCenter?: boolean | null | undefined; - statusPageUrl?: string | null | undefined; - subprocessorsListUrl?: string | null | undefined; - termsOfServiceUrl?: string | null | undefined; - trustPageUrl?: string | null | undefined; - websiteUrl?: string | null | undefined; -}; -export type useVendorFormMutation$variables = { - input: UpdateVendorInput; -}; -export type useVendorFormMutation$data = { - readonly updateVendor: { - readonly vendor: { - readonly " $fragmentSpreads": FragmentRefs<"useVendorFormFragment">; - }; - }; -}; -export type useVendorFormMutation = { - response: useVendorFormMutation$data; - variables: useVendorFormMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = [ - (v2/*: any*/) -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "useVendorFormMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateVendorPayload", - "kind": "LinkedField", - "name": "updateVendor", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "vendor", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "useVendorFormFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "useVendorFormMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "UpdateVendorPayload", - "kind": "LinkedField", - "name": "updateVendor", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "vendor", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "statusPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "termsOfServiceUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "privacyPolicyUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "serviceLevelAgreementUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "dataProcessingAgreementUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "legalName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "headquarterAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "certifications", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "countries", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "securityPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "trustPageUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "businessOwner", - "plural": false, - "selections": (v3/*: any*/), - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "securityOwner", - "plural": false, - "selections": (v3/*: any*/), - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "35a5e6d13ef172a9a8640740a5606b46", - "id": null, - "metadata": {}, - "name": "useVendorFormMutation", - "operationKind": "mutation", - "text": "mutation useVendorFormMutation(\n $input: UpdateVendorInput!\n) {\n updateVendor(input: $input) {\n vendor {\n ...useVendorFormFragment\n id\n }\n }\n}\n\nfragment useVendorFormFragment on Vendor {\n id\n name\n description\n category\n statusPageUrl\n termsOfServiceUrl\n privacyPolicyUrl\n serviceLevelAgreementUrl\n dataProcessingAgreementUrl\n websiteUrl\n legalName\n headquarterAddress\n certifications\n countries\n securityPageUrl\n trustPageUrl\n businessOwner {\n id\n }\n securityOwner {\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "f49cfca25ffd99e8bbdc2e2e3c78b400"; - -export default node; diff --git a/apps/console/src/__generated__/iam/APIKeysPageQuery.graphql.ts b/apps/console/src/__generated__/iam/APIKeysPageQuery.graphql.ts deleted file mode 100644 index 521d17e7a..000000000 --- a/apps/console/src/__generated__/iam/APIKeysPageQuery.graphql.ts +++ /dev/null @@ -1,209 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type APIKeysPageQuery$variables = Record; -export type APIKeysPageQuery$data = { - readonly viewer: { - readonly " $fragmentSpreads": FragmentRefs<"PersonalAPIKeyListFragment">; - } | null | undefined; -}; -export type APIKeysPageQuery = { - response: APIKeysPageQuery$data; - variables: APIKeysPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = [ - { - "kind": "Literal", - "name": "first", - "value": 1000 - } -]; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "APIKeysPageQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "PersonalAPIKeyListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "APIKeysPageQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "PersonalAPIKeyConnection", - "kind": "LinkedField", - "name": "personalAPIKeys", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PersonalAPIKeyEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PersonalAPIKey", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastUsedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "personalAPIKeys(first:1000)" - }, - { - "alias": null, - "args": (v1/*: any*/), - "filters": null, - "handle": "connection", - "key": "PersonalAPIKeyListFragment_personalAPIKeys", - "kind": "LinkedHandle", - "name": "personalAPIKeys" - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "4db28039c0fc6e587959d14faf5f3045", - "id": null, - "metadata": {}, - "name": "APIKeysPageQuery", - "operationKind": "query", - "text": "query APIKeysPageQuery {\n viewer {\n ...PersonalAPIKeyListFragment\n id\n }\n}\n\nfragment PersonalAPIKeyListFragment on Identity {\n id\n personalAPIKeys(first: 1000) {\n edges {\n node {\n id\n ...PersonalAPIKeyRowFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment PersonalAPIKeyRowFragment on PersonalAPIKey {\n id\n name\n createdAt\n expiresAt\n lastUsedAt\n}\n" - } -}; -})(); - -(node as any).hash = "e99d7224e11d4e9060518c3155f98a7d"; - -export default node; diff --git a/apps/console/src/__generated__/iam/ActivateAccountPageMutation.graphql.ts b/apps/console/src/__generated__/iam/ActivateAccountPageMutation.graphql.ts deleted file mode 100644 index c61e034ec..000000000 --- a/apps/console/src/__generated__/iam/ActivateAccountPageMutation.graphql.ts +++ /dev/null @@ -1,100 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ActivateAccountInput = { - token: string; -}; -export type ActivateAccountPageMutation$variables = { - input: ActivateAccountInput; -}; -export type ActivateAccountPageMutation$data = { - readonly activateAccount: { - readonly createPasswordToken: string | null | undefined; - readonly ssoLoginUrl: string | null | undefined; - } | null | undefined; -}; -export type ActivateAccountPageMutation = { - response: ActivateAccountPageMutation$data; - variables: ActivateAccountPageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ActivateAccountPayload", - "kind": "LinkedField", - "name": "activateAccount", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createPasswordToken", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ssoLoginUrl", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ActivateAccountPageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ActivateAccountPageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "ab62d7332fce4af79b46c8627e551370", - "id": null, - "metadata": {}, - "name": "ActivateAccountPageMutation", - "operationKind": "mutation", - "text": "mutation ActivateAccountPageMutation(\n $input: ActivateAccountInput!\n) {\n activateAccount(input: $input) {\n createPasswordToken\n ssoLoginUrl\n }\n}\n" - } -}; -})(); - -(node as any).hash = "fd91da524bb46256a9d8e1ae31590dc2"; - -export default node; diff --git a/apps/console/src/__generated__/iam/AssumePageMutation.graphql.ts b/apps/console/src/__generated__/iam/AssumePageMutation.graphql.ts deleted file mode 100644 index ff90451dc..000000000 --- a/apps/console/src/__generated__/iam/AssumePageMutation.graphql.ts +++ /dev/null @@ -1,136 +0,0 @@ -/** - * @generated SignedSource<<799dc16fa7e9b770dbaba857b2d887ef>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ReauthenticationReason = "POLICY_REQUIREMENT" | "SENSITIVE_ACTION" | "SESSION_EXPIRED"; -export type AssumeOrganizationSessionInput = { - continue: string; - organizationId: string; -}; -export type AssumePageMutation$variables = { - input: AssumeOrganizationSessionInput; -}; -export type AssumePageMutation$data = { - readonly assumeOrganizationSession: { - readonly result: { - readonly __typename: "PasswordRequired"; - readonly reason: ReauthenticationReason; - } | { - readonly __typename: "SAMLAuthenticationRequired"; - readonly reason: ReauthenticationReason; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; - } | null | undefined; -}; -export type AssumePageMutation = { - response: AssumePageMutation$data; - variables: AssumePageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "reason", - "storageKey": null - } -], -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "AssumeOrganizationSessionPayload", - "kind": "LinkedField", - "name": "assumeOrganizationSession", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": null, - "kind": "LinkedField", - "name": "result", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - { - "kind": "InlineFragment", - "selections": (v1/*: any*/), - "type": "PasswordRequired", - "abstractKey": null - }, - { - "kind": "InlineFragment", - "selections": (v1/*: any*/), - "type": "SAMLAuthenticationRequired", - "abstractKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AssumePageMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AssumePageMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "d8d9f257921f8f642821de2af7f22bcb", - "id": null, - "metadata": {}, - "name": "AssumePageMutation", - "operationKind": "mutation", - "text": "mutation AssumePageMutation(\n $input: AssumeOrganizationSessionInput!\n) {\n assumeOrganizationSession(input: $input) {\n result {\n __typename\n ... on PasswordRequired {\n reason\n }\n ... on SAMLAuthenticationRequired {\n reason\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "289d3534a87fa6cdb46384af573d5a57"; - -export default node; diff --git a/apps/console/src/__generated__/iam/AssumePageQuery.graphql.ts b/apps/console/src/__generated__/iam/AssumePageQuery.graphql.ts deleted file mode 100644 index 373675db3..000000000 --- a/apps/console/src/__generated__/iam/AssumePageQuery.graphql.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * @generated SignedSource<<480c5420502cccfbc55c32a61e1662c3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type AssumePageQuery$variables = Record; -export type AssumePageQuery$data = { - readonly viewer: { - readonly __typename: "Identity"; - readonly ssoLoginURL: string | null | undefined; - }; -}; -export type AssumePageQuery = { - response: AssumePageQuery$data; - variables: AssumePageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ssoLoginURL", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "AssumePageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "AssumePageQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - (v0/*: any*/), - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f922b5514212bff8d2da85b12f00c51e", - "id": null, - "metadata": {}, - "name": "AssumePageQuery", - "operationKind": "query", - "text": "query AssumePageQuery {\n viewer {\n __typename\n ssoLoginURL\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "266ce6c5836b9e826718b07e03fcc36e"; - -export default node; diff --git a/apps/console/src/__generated__/iam/ConnectorListFragment.graphql.ts b/apps/console/src/__generated__/iam/ConnectorListFragment.graphql.ts deleted file mode 100644 index b17929456..000000000 --- a/apps/console/src/__generated__/iam/ConnectorListFragment.graphql.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @generated SignedSource<<042ba763926f3dddfcf4f9d673ae5201>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ConnectorListFragment$data = { - readonly scimConfiguration: { - readonly " $fragmentSpreads": FragmentRefs<"GoogleWorkspaceConnectorFragment">; - } | null | undefined; - readonly " $fragmentType": "ConnectorListFragment"; -}; -export type ConnectorListFragment$key = { - readonly " $data"?: ConnectorListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"ConnectorListFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "ConnectorListFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMConfiguration", - "kind": "LinkedField", - "name": "scimConfiguration", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "GoogleWorkspaceConnectorFragment" - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "32fd94ab5080bb8deba95ab24b545fc1"; - -export default node; diff --git a/apps/console/src/__generated__/iam/CreatePasswordPageMutation.graphql.ts b/apps/console/src/__generated__/iam/CreatePasswordPageMutation.graphql.ts deleted file mode 100644 index 0d3ad36ab..000000000 --- a/apps/console/src/__generated__/iam/CreatePasswordPageMutation.graphql.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ResetPasswordInput = { - password: string; - token: string; -}; -export type CreatePasswordPageMutation$variables = { - input: ResetPasswordInput; -}; -export type CreatePasswordPageMutation$data = { - readonly resetPassword: { - readonly success: boolean; - } | null | undefined; -}; -export type CreatePasswordPageMutation = { - response: CreatePasswordPageMutation$data; - variables: CreatePasswordPageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ResetPasswordPayload", - "kind": "LinkedField", - "name": "resetPassword", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "success", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "CreatePasswordPageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "CreatePasswordPageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "aedb0b874e2e55a106724665d51f840e", - "id": null, - "metadata": {}, - "name": "CreatePasswordPageMutation", - "operationKind": "mutation", - "text": "mutation CreatePasswordPageMutation(\n $input: ResetPasswordInput!\n) {\n resetPassword(input: $input) {\n success\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d9bd91787098b9272f0046ad09554a1a"; - -export default node; diff --git a/apps/console/src/__generated__/iam/EditSAMLConfigurationFormQuery.graphql.ts b/apps/console/src/__generated__/iam/EditSAMLConfigurationFormQuery.graphql.ts deleted file mode 100644 index 969023dfc..000000000 --- a/apps/console/src/__generated__/iam/EditSAMLConfigurationFormQuery.graphql.ts +++ /dev/null @@ -1,273 +0,0 @@ -/** - * @generated SignedSource<<9f5f726789193f7af37d789c8b324a1e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SAMLEnforcementPolicy = "OFF" | "OPTIONAL" | "REQUIRED"; -export type EditSAMLConfigurationFormQuery$variables = { - samlConfigurationId: string; -}; -export type EditSAMLConfigurationFormQuery$data = { - readonly samlConfiguration: { - readonly __typename: "SAMLConfiguration"; - readonly attributeMappings: { - readonly email: string; - readonly firstName: string; - readonly lastName: string; - readonly role: string; - }; - readonly autoSignupEnabled: boolean; - readonly domainVerificationToken: string | null | undefined; - readonly domainVerifiedAt: string | null | undefined; - readonly emailDomain: string; - readonly enforcementPolicy: SAMLEnforcementPolicy; - readonly id: string; - readonly idpCertificate: string; - readonly idpEntityId: string; - readonly idpSsoUrl: string; - readonly testLoginUrl: string; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type EditSAMLConfigurationFormQuery = { - response: EditSAMLConfigurationFormQuery$data; - variables: EditSAMLConfigurationFormQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "samlConfigurationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "samlConfigurationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailDomain", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "enforcementPolicy", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domainVerificationToken", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domainVerifiedAt", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "testLoginUrl", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "idpEntityId", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "idpSsoUrl", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "idpCertificate", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "concreteType": "SAMLAttributeMappings", - "kind": "LinkedField", - "name": "attributeMappings", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "firstName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - } - ], - "storageKey": null -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "autoSignupEnabled", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EditSAMLConfigurationFormQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "samlConfiguration", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/) - ], - "type": "SAMLConfiguration", - "abstractKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EditSAMLConfigurationFormQuery", - "selections": [ - { - "alias": "samlConfiguration", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v13/*: any*/) - ], - "type": "SAMLConfiguration", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "47c1ce92e8ba0395fa803b343d093879", - "id": null, - "metadata": {}, - "name": "EditSAMLConfigurationFormQuery", - "operationKind": "query", - "text": "query EditSAMLConfigurationFormQuery(\n $samlConfigurationId: ID!\n) {\n samlConfiguration: node(id: $samlConfigurationId) {\n __typename\n ... on SAMLConfiguration {\n id\n emailDomain\n enforcementPolicy\n domainVerificationToken\n domainVerifiedAt\n testLoginUrl\n idpEntityId\n idpSsoUrl\n idpCertificate\n attributeMappings {\n email\n firstName\n lastName\n role\n }\n autoSignupEnabled\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d31326e3e4423e62d8acde5735d9b578"; - -export default node; diff --git a/apps/console/src/__generated__/iam/EditSAMLConfigurationForm_updateMutation.graphql.ts b/apps/console/src/__generated__/iam/EditSAMLConfigurationForm_updateMutation.graphql.ts deleted file mode 100644 index 23d9f8cf1..000000000 --- a/apps/console/src/__generated__/iam/EditSAMLConfigurationForm_updateMutation.graphql.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * @generated SignedSource<<9e0e298dd1e700d70d3f054b62b43d87>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SAMLEnforcementPolicy = "OFF" | "OPTIONAL" | "REQUIRED"; -export type UpdateSAMLConfigurationInput = { - attributeMappings?: SAMLAttributeMappingsInput | null | undefined; - autoSignupEnabled?: boolean | null | undefined; - enforcementPolicy: SAMLEnforcementPolicy; - idpCertificate?: string | null | undefined; - idpEntityId?: string | null | undefined; - idpSsoUrl?: string | null | undefined; - organizationId: string; - samlConfigurationId: string; -}; -export type SAMLAttributeMappingsInput = { - email?: string | null | undefined; - firstName?: string | null | undefined; - lastName?: string | null | undefined; - role?: string | null | undefined; -}; -export type EditSAMLConfigurationForm_updateMutation$variables = { - input: UpdateSAMLConfigurationInput; -}; -export type EditSAMLConfigurationForm_updateMutation$data = { - readonly updateSAMLConfiguration: { - readonly samlConfiguration: { - readonly domainVerificationToken: string | null | undefined; - readonly domainVerifiedAt: string | null | undefined; - readonly emailDomain: string; - readonly enforcementPolicy: SAMLEnforcementPolicy; - readonly id: string; - readonly testLoginUrl: string; - } | null | undefined; - } | null | undefined; -}; -export type EditSAMLConfigurationForm_updateMutation = { - response: EditSAMLConfigurationForm_updateMutation$data; - variables: EditSAMLConfigurationForm_updateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateSAMLConfigurationPayload", - "kind": "LinkedField", - "name": "updateSAMLConfiguration", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SAMLConfiguration", - "kind": "LinkedField", - "name": "samlConfiguration", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailDomain", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "enforcementPolicy", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domainVerificationToken", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domainVerifiedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "testLoginUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "EditSAMLConfigurationForm_updateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "EditSAMLConfigurationForm_updateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "56d29623294c243a01bfbc2ab4310d28", - "id": null, - "metadata": {}, - "name": "EditSAMLConfigurationForm_updateMutation", - "operationKind": "mutation", - "text": "mutation EditSAMLConfigurationForm_updateMutation(\n $input: UpdateSAMLConfigurationInput!\n) {\n updateSAMLConfiguration(input: $input) {\n samlConfiguration {\n id\n emailDomain\n enforcementPolicy\n domainVerificationToken\n domainVerifiedAt\n testLoginUrl\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b98e701514c179bba0f0ce63aae0c0b8"; - -export default node; diff --git a/apps/console/src/__generated__/iam/ForgotPasswordPageMutation.graphql.ts b/apps/console/src/__generated__/iam/ForgotPasswordPageMutation.graphql.ts deleted file mode 100644 index 31bef8998..000000000 --- a/apps/console/src/__generated__/iam/ForgotPasswordPageMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ForgotPasswordInput = { - email: string; -}; -export type ForgotPasswordPageMutation$variables = { - input: ForgotPasswordInput; -}; -export type ForgotPasswordPageMutation$data = { - readonly forgotPassword: { - readonly success: boolean; - } | null | undefined; -}; -export type ForgotPasswordPageMutation = { - response: ForgotPasswordPageMutation$data; - variables: ForgotPasswordPageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ForgotPasswordPayload", - "kind": "LinkedField", - "name": "forgotPassword", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "success", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ForgotPasswordPageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ForgotPasswordPageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "bb493ef26d51e7d560857008669c2ec5", - "id": null, - "metadata": {}, - "name": "ForgotPasswordPageMutation", - "operationKind": "mutation", - "text": "mutation ForgotPasswordPageMutation(\n $input: ForgotPasswordInput!\n) {\n forgotPassword(input: $input) {\n success\n }\n}\n" - } -}; -})(); - -(node as any).hash = "de03243068e655c7f48b7e96e145a617"; - -export default node; diff --git a/apps/console/src/__generated__/iam/GeneralSettingsPageQuery.graphql.ts b/apps/console/src/__generated__/iam/GeneralSettingsPageQuery.graphql.ts deleted file mode 100644 index d7b859cd8..000000000 --- a/apps/console/src/__generated__/iam/GeneralSettingsPageQuery.graphql.ts +++ /dev/null @@ -1,227 +0,0 @@ -/** - * @generated SignedSource<<125407dec78c8db89ee91aa12a097cf0>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type GeneralSettingsPageQuery$variables = { - organizationId: string; -}; -export type GeneralSettingsPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly canDelete: boolean; - readonly id: string; - readonly name: string; - readonly " $fragmentSpreads": FragmentRefs<"OrganizationFormFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type GeneralSettingsPageQuery = { - response: GeneralSettingsPageQuery$data; - variables: GeneralSettingsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v5 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:organization:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:organization:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "GeneralSettingsPageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "kind": "RequiredField", - "field": (v4/*: any*/), - "action": "THROW" - }, - (v5/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "OrganizationFormFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "GeneralSettingsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v4/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "horizontalLogoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "headquarterAddress", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:organization:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:organization:update\")" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "0d8f14524ef2e72d138e5bb5a42a8f8d", - "id": null, - "metadata": {}, - "name": "GeneralSettingsPageQuery", - "operationKind": "query", - "text": "query GeneralSettingsPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n name\n canDelete: permission(action: \"iam:organization:delete\")\n ...OrganizationFormFragment\n }\n id\n }\n}\n\nfragment OrganizationFormFragment on Organization {\n id\n name\n logoUrl\n horizontalLogoUrl\n description\n websiteUrl\n email\n headquarterAddress\n canUpdate: permission(action: \"iam:organization:update\")\n}\n" - } -}; -})(); - -(node as any).hash = "307473752dd5dc91caaa7536b7b3e69a"; - -export default node; diff --git a/apps/console/src/__generated__/iam/GeneralSettingsPage_deleteMutation.graphql.ts b/apps/console/src/__generated__/iam/GeneralSettingsPage_deleteMutation.graphql.ts deleted file mode 100644 index 2630e9695..000000000 --- a/apps/console/src/__generated__/iam/GeneralSettingsPage_deleteMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<71619b1be320df410e3ebe2157b11ed4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteOrganizationInput = { - organizationId: string; -}; -export type GeneralSettingsPage_deleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteOrganizationInput; -}; -export type GeneralSettingsPage_deleteMutation$data = { - readonly deleteOrganization: { - readonly deletedOrganizationId: string; - } | null | undefined; -}; -export type GeneralSettingsPage_deleteMutation = { - response: GeneralSettingsPage_deleteMutation$data; - variables: GeneralSettingsPage_deleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedOrganizationId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "GeneralSettingsPage_deleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteOrganizationPayload", - "kind": "LinkedField", - "name": "deleteOrganization", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "GeneralSettingsPage_deleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteOrganizationPayload", - "kind": "LinkedField", - "name": "deleteOrganization", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedOrganizationId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "53d34f4a9fe61e454f0ca80e8f34d88a", - "id": null, - "metadata": {}, - "name": "GeneralSettingsPage_deleteMutation", - "operationKind": "mutation", - "text": "mutation GeneralSettingsPage_deleteMutation(\n $input: DeleteOrganizationInput!\n) {\n deleteOrganization(input: $input) {\n deletedOrganizationId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "c473475817881aaa4adee8f183faf580"; - -export default node; diff --git a/apps/console/src/__generated__/iam/GoogleWorkspaceConnectorDeleteMutation.graphql.ts b/apps/console/src/__generated__/iam/GoogleWorkspaceConnectorDeleteMutation.graphql.ts deleted file mode 100644 index 5d24932aa..000000000 --- a/apps/console/src/__generated__/iam/GoogleWorkspaceConnectorDeleteMutation.graphql.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteSCIMConfigurationInput = { - organizationId: string; - scimConfigurationId: string; -}; -export type GoogleWorkspaceConnectorDeleteMutation$variables = { - input: DeleteSCIMConfigurationInput; -}; -export type GoogleWorkspaceConnectorDeleteMutation$data = { - readonly deleteSCIMConfiguration: { - readonly deletedScimConfigurationId: string; - } | null | undefined; -}; -export type GoogleWorkspaceConnectorDeleteMutation = { - response: GoogleWorkspaceConnectorDeleteMutation$data; - variables: GoogleWorkspaceConnectorDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteSCIMConfigurationPayload", - "kind": "LinkedField", - "name": "deleteSCIMConfiguration", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedScimConfigurationId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "GoogleWorkspaceConnectorDeleteMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "GoogleWorkspaceConnectorDeleteMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "8fa5927c728a768a19fd163d162facac", - "id": null, - "metadata": {}, - "name": "GoogleWorkspaceConnectorDeleteMutation", - "operationKind": "mutation", - "text": "mutation GoogleWorkspaceConnectorDeleteMutation(\n $input: DeleteSCIMConfigurationInput!\n) {\n deleteSCIMConfiguration(input: $input) {\n deletedScimConfigurationId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "fc1502ef215040eda187b2f782adb530"; - -export default node; diff --git a/apps/console/src/__generated__/iam/GoogleWorkspaceConnectorFragment.graphql.ts b/apps/console/src/__generated__/iam/GoogleWorkspaceConnectorFragment.graphql.ts deleted file mode 100644 index 5033b5251..000000000 --- a/apps/console/src/__generated__/iam/GoogleWorkspaceConnectorFragment.graphql.ts +++ /dev/null @@ -1,91 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type GoogleWorkspaceConnectorFragment$data = { - readonly bridge: { - readonly connector: { - readonly createdAt: string; - readonly id: string; - } | null | undefined; - readonly excludedUserNames: ReadonlyArray; - readonly id: string; - } | null | undefined; - readonly id: string; - readonly " $fragmentType": "GoogleWorkspaceConnectorFragment"; -}; -export type GoogleWorkspaceConnectorFragment$key = { - readonly " $data"?: GoogleWorkspaceConnectorFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"GoogleWorkspaceConnectorFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "GoogleWorkspaceConnectorFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "SCIMBridge", - "kind": "LinkedField", - "name": "bridge", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "excludedUserNames", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Connector", - "kind": "LinkedField", - "name": "connector", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "SCIMConfiguration", - "abstractKey": null -}; -})(); - -(node as any).hash = "4f3898fca8d93369a46b50227f3df63d"; - -export default node; diff --git a/apps/console/src/__generated__/iam/GoogleWorkspaceConnectorUpdateSCIMBridgeMutation.graphql.ts b/apps/console/src/__generated__/iam/GoogleWorkspaceConnectorUpdateSCIMBridgeMutation.graphql.ts deleted file mode 100644 index 4075e64cf..000000000 --- a/apps/console/src/__generated__/iam/GoogleWorkspaceConnectorUpdateSCIMBridgeMutation.graphql.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @generated SignedSource<<41b1b8127b7840bf52b967e212c286ec>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateSCIMBridgeInput = { - excludedUserNames: ReadonlyArray; - organizationId: string; - scimBridgeId: string; -}; -export type GoogleWorkspaceConnectorUpdateSCIMBridgeMutation$variables = { - input: UpdateSCIMBridgeInput; -}; -export type GoogleWorkspaceConnectorUpdateSCIMBridgeMutation$data = { - readonly updateSCIMBridge: { - readonly scimBridge: { - readonly excludedUserNames: ReadonlyArray; - readonly id: string; - }; - } | null | undefined; -}; -export type GoogleWorkspaceConnectorUpdateSCIMBridgeMutation = { - response: GoogleWorkspaceConnectorUpdateSCIMBridgeMutation$data; - variables: GoogleWorkspaceConnectorUpdateSCIMBridgeMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateSCIMBridgePayload", - "kind": "LinkedField", - "name": "updateSCIMBridge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMBridge", - "kind": "LinkedField", - "name": "scimBridge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "excludedUserNames", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "GoogleWorkspaceConnectorUpdateSCIMBridgeMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "GoogleWorkspaceConnectorUpdateSCIMBridgeMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "5b2fdb1e51ff728727c10809a89ba0ea", - "id": null, - "metadata": {}, - "name": "GoogleWorkspaceConnectorUpdateSCIMBridgeMutation", - "operationKind": "mutation", - "text": "mutation GoogleWorkspaceConnectorUpdateSCIMBridgeMutation(\n $input: UpdateSCIMBridgeInput!\n) {\n updateSCIMBridge(input: $input) {\n scimBridge {\n id\n excludedUserNames\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "5b4046c71e69bbcc16e3fc533a5467ee"; - -export default node; diff --git a/apps/console/src/__generated__/iam/MembershipCardFragment.graphql.ts b/apps/console/src/__generated__/iam/MembershipCardFragment.graphql.ts deleted file mode 100644 index 7f6748f07..000000000 --- a/apps/console/src/__generated__/iam/MembershipCardFragment.graphql.ts +++ /dev/null @@ -1,89 +0,0 @@ -/** - * @generated SignedSource<<889efcfe178bb170887494345d05c48b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type ProfileState = "ACTIVE" | "INACTIVE"; -import { FragmentRefs } from "relay-runtime"; -export type MembershipCardFragment$data = { - readonly membership: { - readonly lastSession: { - readonly expiresAt: string; - readonly id: string; - } | null | undefined; - }; - readonly state: ProfileState; - readonly " $fragmentType": "MembershipCardFragment"; -}; -export type MembershipCardFragment$key = { - readonly " $data"?: MembershipCardFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MembershipCardFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MembershipCardFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Session", - "kind": "LinkedField", - "name": "lastSession", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Profile", - "abstractKey": null -}; - -(node as any).hash = "2e4f6ddee75ca32542f959c44de58e25"; - -export default node; diff --git a/apps/console/src/__generated__/iam/MembershipCard_organizationFragment.graphql.ts b/apps/console/src/__generated__/iam/MembershipCard_organizationFragment.graphql.ts deleted file mode 100644 index f6218532a..000000000 --- a/apps/console/src/__generated__/iam/MembershipCard_organizationFragment.graphql.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MembershipCard_organizationFragment$data = { - readonly id: string; - readonly logoUrl: string | null | undefined; - readonly name: string; - readonly " $fragmentType": "MembershipCard_organizationFragment"; -}; -export type MembershipCard_organizationFragment$key = { - readonly " $data"?: MembershipCard_organizationFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MembershipCard_organizationFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MembershipCard_organizationFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "a02d28730634e510e7e0803d5d1a366f"; - -export default node; diff --git a/apps/console/src/__generated__/iam/MembershipsDropdownMenuItemFragment.graphql.ts b/apps/console/src/__generated__/iam/MembershipsDropdownMenuItemFragment.graphql.ts deleted file mode 100644 index c6d8c9d6a..000000000 --- a/apps/console/src/__generated__/iam/MembershipsDropdownMenuItemFragment.graphql.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MembershipsDropdownMenuItemFragment$data = { - readonly id: string; - readonly lastSession: { - readonly expiresAt: string; - readonly id: string; - } | null | undefined; - readonly " $fragmentType": "MembershipsDropdownMenuItemFragment"; -}; -export type MembershipsDropdownMenuItemFragment$key = { - readonly " $data"?: MembershipsDropdownMenuItemFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MembershipsDropdownMenuItemFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MembershipsDropdownMenuItemFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Session", - "kind": "LinkedField", - "name": "lastSession", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Membership", - "abstractKey": null -}; -})(); - -(node as any).hash = "4f40e957597476f8e6179f6df68d386e"; - -export default node; diff --git a/apps/console/src/__generated__/iam/MembershipsDropdownMenuItem_organizationFragment.graphql.ts b/apps/console/src/__generated__/iam/MembershipsDropdownMenuItem_organizationFragment.graphql.ts deleted file mode 100644 index 2f6f01a22..000000000 --- a/apps/console/src/__generated__/iam/MembershipsDropdownMenuItem_organizationFragment.graphql.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MembershipsDropdownMenuItem_organizationFragment$data = { - readonly id: string; - readonly logoUrl: string | null | undefined; - readonly name: string; - readonly " $fragmentType": "MembershipsDropdownMenuItem_organizationFragment"; -}; -export type MembershipsDropdownMenuItem_organizationFragment$key = { - readonly " $data"?: MembershipsDropdownMenuItem_organizationFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MembershipsDropdownMenuItem_organizationFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MembershipsDropdownMenuItem_organizationFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "799a0d538f5d667112f4c9ba8c0d3623"; - -export default node; diff --git a/apps/console/src/__generated__/iam/MembershipsDropdownMenuQuery.graphql.ts b/apps/console/src/__generated__/iam/MembershipsDropdownMenuQuery.graphql.ts deleted file mode 100644 index 1249337e6..000000000 --- a/apps/console/src/__generated__/iam/MembershipsDropdownMenuQuery.graphql.ts +++ /dev/null @@ -1,305 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MembershipsDropdownMenuQuery$variables = Record; -export type MembershipsDropdownMenuQuery$data = { - readonly viewer: { - readonly profiles: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly membership: { - readonly " $fragmentSpreads": FragmentRefs<"MembershipsDropdownMenuItemFragment">; - }; - readonly organization: { - readonly name: string; - readonly " $fragmentSpreads": FragmentRefs<"MembershipsDropdownMenuItem_organizationFragment">; - }; - }; - }>; - }; - }; -}; -export type MembershipsDropdownMenuQuery = { - response: MembershipsDropdownMenuQuery$data; - variables: MembershipsDropdownMenuQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "kind": "Literal", - "name": "filter", - "value": { - "state": "ACTIVE" - } - }, - { - "kind": "Literal", - "name": "first", - "value": 1000 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "ORGANIZATION_NAME" - } - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MembershipsDropdownMenuQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": (v0/*: any*/), - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "profiles", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "MembershipsDropdownMenuItem_organizationFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "MembershipsDropdownMenuItemFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": "profiles(filter:{\"state\":\"ACTIVE\"},first:1000,orderBy:{\"direction\":\"ASC\",\"field\":\"ORGANIZATION_NAME\"})" - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "MembershipsDropdownMenuQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "alias": null, - "args": (v0/*: any*/), - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "profiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/), - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Session", - "kind": "LinkedField", - "name": "lastSession", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "profiles(filter:{\"state\":\"ACTIVE\"},first:1000,orderBy:{\"direction\":\"ASC\",\"field\":\"ORGANIZATION_NAME\"})" - }, - (v1/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "b62c27cc3a20f286290bf579d2f528d3", - "id": null, - "metadata": {}, - "name": "MembershipsDropdownMenuQuery", - "operationKind": "query", - "text": "query MembershipsDropdownMenuQuery {\n viewer {\n profiles(first: 1000, orderBy: {direction: ASC, field: ORGANIZATION_NAME}, filter: {state: ACTIVE}) {\n edges {\n node {\n id\n organization {\n name\n ...MembershipsDropdownMenuItem_organizationFragment\n id\n }\n membership {\n ...MembershipsDropdownMenuItemFragment\n id\n }\n }\n }\n }\n id\n }\n}\n\nfragment MembershipsDropdownMenuItemFragment on Membership {\n id\n lastSession {\n id\n expiresAt\n }\n}\n\nfragment MembershipsDropdownMenuItem_organizationFragment on Organization {\n id\n name\n logoUrl\n}\n" - } -}; -})(); - -(node as any).hash = "b51ef962fc8bf18c380b7373135373a3"; - -export default node; diff --git a/apps/console/src/__generated__/iam/MembershipsDropdown_organizationFragment.graphql.ts b/apps/console/src/__generated__/iam/MembershipsDropdown_organizationFragment.graphql.ts deleted file mode 100644 index 546c98c95..000000000 --- a/apps/console/src/__generated__/iam/MembershipsDropdown_organizationFragment.graphql.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @generated SignedSource<<84862118e94833cec2ce241e7329ba04>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MembershipsDropdown_organizationFragment$data = { - readonly name: string; - readonly " $fragmentType": "MembershipsDropdown_organizationFragment"; -}; -export type MembershipsDropdown_organizationFragment$key = { - readonly " $data"?: MembershipsDropdown_organizationFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"MembershipsDropdown_organizationFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MembershipsDropdown_organizationFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "89ef8f037f10c51776df8e5add87cc29"; - -export default node; diff --git a/apps/console/src/__generated__/iam/MembershipsPageQuery.graphql.ts b/apps/console/src/__generated__/iam/MembershipsPageQuery.graphql.ts deleted file mode 100644 index c5e7e8bf1..000000000 --- a/apps/console/src/__generated__/iam/MembershipsPageQuery.graphql.ts +++ /dev/null @@ -1,365 +0,0 @@ -/** - * @generated SignedSource<<63cc59b828971b5b1c0983e2a439f95d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MembershipsPageQuery$variables = Record; -export type MembershipsPageQuery$data = { - readonly viewer: { - readonly profiles: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly organization: { - readonly name: string; - readonly " $fragmentSpreads": FragmentRefs<"MembershipCard_organizationFragment">; - }; - readonly " $fragmentSpreads": FragmentRefs<"MembershipCardFragment">; - }; - }>; - }; - }; -}; -export type MembershipsPageQuery = { - response: MembershipsPageQuery$data; - variables: MembershipsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "kind": "Literal", - "name": "filter", - "value": { - "state": "ACTIVE" - } -}, -v1 = { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "ASC", - "field": "ORGANIZATION_NAME" - } -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null -}, -v7 = [ - (v0/*: any*/), - { - "kind": "Literal", - "name": "first", - "value": 1000 - }, - (v1/*: any*/) -]; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "MembershipsPageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "profiles", - "args": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "__MembershipsPage_profiles_connection", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "MembershipCardFragment" - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "MembershipCard_organizationFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - }, - (v4/*: any*/) - ], - "storageKey": null - }, - (v5/*: any*/) - ], - "storageKey": null - }, - "action": "THROW" - }, - (v6/*: any*/) - ], - "storageKey": "__MembershipsPage_profiles_connection(filter:{\"state\":\"ACTIVE\"},orderBy:{\"direction\":\"ASC\",\"field\":\"ORGANIZATION_NAME\"})" - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "MembershipsPageQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "profiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Session", - "kind": "LinkedField", - "name": "lastSession", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - } - ], - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - } - ], - "storageKey": null - }, - (v4/*: any*/) - ], - "storageKey": null - }, - (v5/*: any*/) - ], - "storageKey": null - }, - (v6/*: any*/) - ], - "storageKey": "profiles(filter:{\"state\":\"ACTIVE\"},first:1000,orderBy:{\"direction\":\"ASC\",\"field\":\"ORGANIZATION_NAME\"})" - }, - { - "alias": null, - "args": (v7/*: any*/), - "filters": [ - "orderBy", - "filter" - ], - "handle": "connection", - "key": "MembershipsPage_profiles", - "kind": "LinkedHandle", - "name": "profiles" - }, - (v2/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "70c954537c603303bcd55418f6bd73cf", - "id": null, - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "viewer", - "profiles" - ] - } - ] - }, - "name": "MembershipsPageQuery", - "operationKind": "query", - "text": "query MembershipsPageQuery {\n viewer {\n profiles(first: 1000, orderBy: {direction: ASC, field: ORGANIZATION_NAME}, filter: {state: ACTIVE}) {\n edges {\n node {\n id\n ...MembershipCardFragment\n organization {\n name\n ...MembershipCard_organizationFragment\n id\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n }\n}\n\nfragment MembershipCardFragment on Profile {\n state\n membership {\n lastSession {\n id\n expiresAt\n }\n id\n }\n}\n\nfragment MembershipCard_organizationFragment on Organization {\n id\n name\n logoUrl\n}\n" - } -}; -})(); - -(node as any).hash = "c82587c425f688858d4625426153dbdc"; - -export default node; diff --git a/apps/console/src/__generated__/iam/NewOrganizationPageMutation.graphql.ts b/apps/console/src/__generated__/iam/NewOrganizationPageMutation.graphql.ts deleted file mode 100644 index 3c0bbc451..000000000 --- a/apps/console/src/__generated__/iam/NewOrganizationPageMutation.graphql.ts +++ /dev/null @@ -1,115 +0,0 @@ -/** - * @generated SignedSource<<3c4bf3ac3f3eff32d0c86fe61190576e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateOrganizationInput = { - horizontalLogoFile?: any | null | undefined; - logoFile?: any | null | undefined; - name: string; -}; -export type NewOrganizationPageMutation$variables = { - input: CreateOrganizationInput; -}; -export type NewOrganizationPageMutation$data = { - readonly createOrganization: { - readonly organization: { - readonly id: string; - readonly name: string; - } | null | undefined; - } | null | undefined; -}; -export type NewOrganizationPageMutation = { - response: NewOrganizationPageMutation$data; - variables: NewOrganizationPageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "CreateOrganizationPayload", - "kind": "LinkedField", - "name": "createOrganization", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "NewOrganizationPageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "NewOrganizationPageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "e4d07eba4c1791eeb6e5e1e627c79593", - "id": null, - "metadata": {}, - "name": "NewOrganizationPageMutation", - "operationKind": "mutation", - "text": "mutation NewOrganizationPageMutation(\n $input: CreateOrganizationInput!\n) {\n createOrganization(input: $input) {\n organization {\n id\n name\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "68737a40f2993357fb169e9aac6a4262"; - -export default node; diff --git a/apps/console/src/__generated__/iam/NewSAMLConfigurationForm_createMutation.graphql.ts b/apps/console/src/__generated__/iam/NewSAMLConfigurationForm_createMutation.graphql.ts deleted file mode 100644 index 2755ea2c5..000000000 --- a/apps/console/src/__generated__/iam/NewSAMLConfigurationForm_createMutation.graphql.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SAMLEnforcementPolicy = "OFF" | "OPTIONAL" | "REQUIRED"; -export type CreateSAMLConfigurationInput = { - attributeMappings?: SAMLAttributeMappingsInput | null | undefined; - autoSignupEnabled: boolean; - emailDomain: string; - idpCertificate: string; - idpEntityId: string; - idpSsoUrl: string; - organizationId: string; -}; -export type SAMLAttributeMappingsInput = { - email?: string | null | undefined; - firstName?: string | null | undefined; - lastName?: string | null | undefined; - role?: string | null | undefined; -}; -export type NewSAMLConfigurationForm_createMutation$variables = { - connections: ReadonlyArray; - input: CreateSAMLConfigurationInput; -}; -export type NewSAMLConfigurationForm_createMutation$data = { - readonly createSAMLConfiguration: { - readonly samlConfigurationEdge: { - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly domainVerificationToken: string | null | undefined; - readonly domainVerifiedAt: string | null | undefined; - readonly emailDomain: string; - readonly enforcementPolicy: SAMLEnforcementPolicy; - readonly id: string; - readonly testLoginUrl: string; - }; - }; - } | null | undefined; -}; -export type NewSAMLConfigurationForm_createMutation = { - response: NewSAMLConfigurationForm_createMutation$data; - variables: NewSAMLConfigurationForm_createMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "SAMLConfigurationEdge", - "kind": "LinkedField", - "name": "samlConfigurationEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SAMLConfiguration", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailDomain", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "enforcementPolicy", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domainVerificationToken", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domainVerifiedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "testLoginUrl", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:saml-configuration:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:saml-configuration:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:saml-configuration:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:saml-configuration:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "NewSAMLConfigurationForm_createMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateSAMLConfigurationPayload", - "kind": "LinkedField", - "name": "createSAMLConfiguration", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "NewSAMLConfigurationForm_createMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateSAMLConfigurationPayload", - "kind": "LinkedField", - "name": "createSAMLConfiguration", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "samlConfigurationEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "6ea275ac351f162aeeff7d75d7a3974d", - "id": null, - "metadata": {}, - "name": "NewSAMLConfigurationForm_createMutation", - "operationKind": "mutation", - "text": "mutation NewSAMLConfigurationForm_createMutation(\n $input: CreateSAMLConfigurationInput!\n) {\n createSAMLConfiguration(input: $input) {\n samlConfigurationEdge {\n node {\n id\n emailDomain\n enforcementPolicy\n domainVerificationToken\n domainVerifiedAt\n testLoginUrl\n canUpdate: permission(action: \"iam:saml-configuration:update\")\n canDelete: permission(action: \"iam:saml-configuration:delete\")\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "af2894da24b742843908a60a7e4629f1"; - -export default node; diff --git a/apps/console/src/__generated__/iam/OrganizationFormFragment.graphql.ts b/apps/console/src/__generated__/iam/OrganizationFormFragment.graphql.ts deleted file mode 100644 index 2eb28465a..000000000 --- a/apps/console/src/__generated__/iam/OrganizationFormFragment.graphql.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrganizationFormFragment$data = { - readonly canUpdate: boolean; - readonly description: string | null | undefined; - readonly email: string | null | undefined; - readonly headquarterAddress: string | null | undefined; - readonly horizontalLogoUrl: string | null | undefined; - readonly id: string; - readonly logoUrl: string | null | undefined; - readonly name: string; - readonly websiteUrl: string | null | undefined; - readonly " $fragmentType": "OrganizationFormFragment"; -}; -export type OrganizationFormFragment$key = { - readonly " $data"?: OrganizationFormFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"OrganizationFormFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "OrganizationFormFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - "action": "THROW" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "horizontalLogoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "headquarterAddress", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:organization:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:organization:update\")" - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "d1a518b08167fdd53901c4b842fa2e9c"; - -export default node; diff --git a/apps/console/src/__generated__/iam/OrganizationForm_deleteHorizontalLogoMutation.graphql.ts b/apps/console/src/__generated__/iam/OrganizationForm_deleteHorizontalLogoMutation.graphql.ts deleted file mode 100644 index 6427d6714..000000000 --- a/apps/console/src/__generated__/iam/OrganizationForm_deleteHorizontalLogoMutation.graphql.ts +++ /dev/null @@ -1,113 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteOrganizationHorizontalLogoInput = { - organizationId: string; -}; -export type OrganizationForm_deleteHorizontalLogoMutation$variables = { - input: DeleteOrganizationHorizontalLogoInput; -}; -export type OrganizationForm_deleteHorizontalLogoMutation$data = { - readonly deleteOrganizationHorizontalLogo: { - readonly organization: { - readonly horizontalLogoUrl: string | null | undefined; - readonly id: string; - }; - } | null | undefined; -}; -export type OrganizationForm_deleteHorizontalLogoMutation = { - response: OrganizationForm_deleteHorizontalLogoMutation$data; - variables: OrganizationForm_deleteHorizontalLogoMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "DeleteOrganizationHorizontalLogoPayload", - "kind": "LinkedField", - "name": "deleteOrganizationHorizontalLogo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "horizontalLogoUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "OrganizationForm_deleteHorizontalLogoMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "OrganizationForm_deleteHorizontalLogoMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "2ec98faaaf8317f642f5db54c7bbed80", - "id": null, - "metadata": {}, - "name": "OrganizationForm_deleteHorizontalLogoMutation", - "operationKind": "mutation", - "text": "mutation OrganizationForm_deleteHorizontalLogoMutation(\n $input: DeleteOrganizationHorizontalLogoInput!\n) {\n deleteOrganizationHorizontalLogo(input: $input) {\n organization {\n id\n horizontalLogoUrl\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "9ea67e345e506fef9d85ee31bc360d51"; - -export default node; diff --git a/apps/console/src/__generated__/iam/OrganizationForm_updateMutation.graphql.ts b/apps/console/src/__generated__/iam/OrganizationForm_updateMutation.graphql.ts deleted file mode 100644 index 65590121e..000000000 --- a/apps/console/src/__generated__/iam/OrganizationForm_updateMutation.graphql.ts +++ /dev/null @@ -1,168 +0,0 @@ -/** - * @generated SignedSource<<9602c1a0ad55d4889431c8e5f54f4461>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateOrganizationInput = { - description?: string | null | undefined; - email?: string | null | undefined; - headquarterAddress?: string | null | undefined; - horizontalLogoFile?: any | null | undefined; - logoFile?: any | null | undefined; - name?: string | null | undefined; - organizationId: string; - websiteUrl?: string | null | undefined; -}; -export type OrganizationForm_updateMutation$variables = { - input: UpdateOrganizationInput; -}; -export type OrganizationForm_updateMutation$data = { - readonly updateOrganization: { - readonly organization: { - readonly description: string | null | undefined; - readonly email: string | null | undefined; - readonly headquarterAddress: string | null | undefined; - readonly horizontalLogoUrl: string | null | undefined; - readonly id: string; - readonly logoUrl: string | null | undefined; - readonly name: string; - readonly websiteUrl: string | null | undefined; - } | null | undefined; - } | null | undefined; -}; -export type OrganizationForm_updateMutation = { - response: OrganizationForm_updateMutation$data; - variables: OrganizationForm_updateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateOrganizationPayload", - "kind": "LinkedField", - "name": "updateOrganization", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "horizontalLogoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "headquarterAddress", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "OrganizationForm_updateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "OrganizationForm_updateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "f2a249d13ff38645cb858b494c05c59d", - "id": null, - "metadata": {}, - "name": "OrganizationForm_updateMutation", - "operationKind": "mutation", - "text": "mutation OrganizationForm_updateMutation(\n $input: UpdateOrganizationInput!\n) {\n updateOrganization(input: $input) {\n organization {\n id\n name\n logoUrl\n horizontalLogoUrl\n description\n websiteUrl\n email\n headquarterAddress\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "c4dd7a42f611fa210594017a5a63d159"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PasswordSignInPageMutation.graphql.ts b/apps/console/src/__generated__/iam/PasswordSignInPageMutation.graphql.ts deleted file mode 100644 index a80db9771..000000000 --- a/apps/console/src/__generated__/iam/PasswordSignInPageMutation.graphql.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * @generated SignedSource<<3bef621b9a5eb43afa619cd76b2bb6b6>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SignInInput = { - email: string; - organizationId?: string | null | undefined; - password: string; -}; -export type PasswordSignInPageMutation$variables = { - input: SignInInput; -}; -export type PasswordSignInPageMutation$data = { - readonly signIn: { - readonly session: { - readonly id: string; - } | null | undefined; - } | null | undefined; -}; -export type PasswordSignInPageMutation = { - response: PasswordSignInPageMutation$data; - variables: PasswordSignInPageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "SignInPayload", - "kind": "LinkedField", - "name": "signIn", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Session", - "kind": "LinkedField", - "name": "session", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "PasswordSignInPageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "PasswordSignInPageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "f60c1dcde17bef06ff8170d14c077dae", - "id": null, - "metadata": {}, - "name": "PasswordSignInPageMutation", - "operationKind": "mutation", - "text": "mutation PasswordSignInPageMutation(\n $input: SignInInput!\n) {\n signIn(input: $input) {\n session {\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "9b9b3de59d38ae7c288348c6bfc01afa"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PeopleListFragment.graphql.ts b/apps/console/src/__generated__/iam/PeopleListFragment.graphql.ts deleted file mode 100644 index 88ec7babf..000000000 --- a/apps/console/src/__generated__/iam/PeopleListFragment.graphql.ts +++ /dev/null @@ -1,244 +0,0 @@ -/** - * @generated SignedSource<<2d667e47f47ffe754960a9336fc4b8dc>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type PeopleListFragment$data = { - readonly id: string; - readonly profiles: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"PeopleListItemFragment">; - }; - }>; - readonly totalCount: number | null | undefined; - }; - readonly " $fragmentType": "PeopleListFragment"; -}; -export type PeopleListFragment$key = { - readonly " $data"?: PeopleListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"PeopleListFragment">; -}; - -import PeopleListFragment_RefetchQuery_graphql from './PeopleListFragment_RefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "profiles" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - }, - { - "defaultValue": { - "direction": "ASC", - "field": "FULL_NAME" - }, - "kind": "LocalArgument", - "name": "order" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": PeopleListFragment_RefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "PeopleListFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "profiles", - "args": [ - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } - ], - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "__PeopleListFragment_profiles_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "PeopleListItemFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": null - }, - "action": "THROW" - }, - (v1/*: any*/) - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "ee3aeca404063a0660eeb9ff27592e86"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PeopleListFragment_RefetchQuery.graphql.ts b/apps/console/src/__generated__/iam/PeopleListFragment_RefetchQuery.graphql.ts deleted file mode 100644 index 6a79beb3e..000000000 --- a/apps/console/src/__generated__/iam/PeopleListFragment_RefetchQuery.graphql.ts +++ /dev/null @@ -1,513 +0,0 @@ -/** - * @generated SignedSource<<167a4c7cc44ce2cc44e9b4680b6fc285>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type OrderDirection = "ASC" | "DESC"; -export type ProfileOrderField = "CREATED_AT" | "FULL_NAME" | "KIND" | "ORGANIZATION_NAME" | "STATE"; -export type ProfileOrder = { - direction: OrderDirection; - field: ProfileOrderField; -}; -export type PeopleListFragment_RefetchQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; - order?: ProfileOrder | null | undefined; -}; -export type PeopleListFragment_RefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"PeopleListFragment">; - } | null | undefined; -}; -export type PeopleListFragment_RefetchQuery = { - response: PeopleListFragment_RefetchQuery$data; - variables: PeopleListFragment_RefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = { - "defaultValue": { - "direction": "ASC", - "field": "FULL_NAME" - }, - "kind": "LocalArgument", - "name": "order" -}, -v6 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v7 = { - "kind": "Variable", - "name": "after", - "variableName": "after" -}, -v8 = { - "kind": "Variable", - "name": "before", - "variableName": "before" -}, -v9 = { - "kind": "Variable", - "name": "first", - "variableName": "first" -}, -v10 = { - "kind": "Variable", - "name": "last", - "variableName": "last" -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v13 = [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "orderBy", - "variableName": "order" - } -], -v14 = [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } -], -v15 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v16 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v17 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null -}, -v18 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null -}, -v19 = { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] -}, -v20 = [ - "orderBy" -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "PeopleListFragment_RefetchQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - (v7/*: any*/), - (v8/*: any*/), - (v9/*: any*/), - (v10/*: any*/), - { - "kind": "Variable", - "name": "order", - "variableName": "order" - } - ], - "kind": "FragmentSpread", - "name": "PeopleListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "PeopleListFragment_RefetchQuery", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v13/*: any*/), - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "profiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership:update\")" - } - ], - "storageKey": null - }, - { - "alias": "lastInvitation", - "args": (v14/*: any*/), - "concreteType": "InvitationConnection", - "kind": "LinkedField", - "name": "pendingInvitations", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "InvitationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Invitation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v12/*: any*/), - (v15/*: any*/), - (v11/*: any*/) - ], - "storageKey": null - }, - (v16/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v17/*: any*/), - (v18/*: any*/) - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": "pendingInvitations(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - { - "alias": "lastInvitation", - "args": (v14/*: any*/), - "filters": (v20/*: any*/), - "handle": "connection", - "key": "PeopleListItem_lastInvitation", - "kind": "LinkedHandle", - "name": "pendingInvitations" - }, - (v15/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:update\")" - }, - { - "alias": "canInvite", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:invitation:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:invitation:create\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:delete\")" - }, - (v11/*: any*/) - ], - "storageKey": null - }, - (v16/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v17/*: any*/), - (v18/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - (v19/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": (v13/*: any*/), - "filters": (v20/*: any*/), - "handle": "connection", - "key": "PeopleListFragment_profiles", - "kind": "LinkedHandle", - "name": "profiles" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "15a5dd79df1b16aa1a66ccb8024f9627", - "id": null, - "metadata": {}, - "name": "PeopleListFragment_RefetchQuery", - "operationKind": "query", - "text": "query PeopleListFragment_RefetchQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $order: ProfileOrder = {direction: ASC, field: FULL_NAME}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...PeopleListFragment_16fISc\n id\n }\n}\n\nfragment PeopleListFragment_16fISc on Organization {\n profiles(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n totalCount\n edges {\n node {\n id\n ...PeopleListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment PeopleListItemFragment on Profile {\n id\n source\n state\n fullName\n emailAddress\n membership {\n id\n role\n canUpdate: permission(action: \"iam:membership:update\")\n }\n lastInvitation: pendingInvitations(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n id\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n createdAt\n canUpdate: permission(action: \"iam:membership-profile:update\")\n canInvite: permission(action: \"iam:invitation:create\")\n canDelete: permission(action: \"iam:membership-profile:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "ee3aeca404063a0660eeb9ff27592e86"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PeopleListItemFragment.graphql.ts b/apps/console/src/__generated__/iam/PeopleListItemFragment.graphql.ts deleted file mode 100644 index feea8604e..000000000 --- a/apps/console/src/__generated__/iam/PeopleListItemFragment.graphql.ts +++ /dev/null @@ -1,290 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type MembershipRole = "ADMIN" | "AUDITOR" | "EMPLOYEE" | "OWNER" | "VIEWER"; -export type ProfileState = "ACTIVE" | "INACTIVE"; -import { FragmentRefs } from "relay-runtime"; -export type PeopleListItemFragment$data = { - readonly canDelete: boolean; - readonly canInvite: boolean; - readonly canUpdate: boolean; - readonly createdAt: string; - readonly emailAddress: string; - readonly fullName: string; - readonly id: string; - readonly lastInvitation: { - readonly __id: string; - readonly edges: ReadonlyArray<{ - readonly node: { - readonly createdAt: string; - readonly id: string; - }; - }>; - }; - readonly membership: { - readonly canUpdate: boolean; - readonly id: string; - readonly role: MembershipRole; - }; - readonly source: string; - readonly state: ProfileState; - readonly " $fragmentType": "PeopleListItemFragment"; -}; -export type PeopleListItemFragment$key = { - readonly " $data"?: PeopleListItemFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"PeopleListItemFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "lastInvitation" - ] - } - ] - }, - "name": "PeopleListItemFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership:update\")" - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "kind": "RequiredField", - "field": { - "alias": "lastInvitation", - "args": [ - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } - ], - "concreteType": "InvitationConnection", - "kind": "LinkedField", - "name": "__PeopleListItem_lastInvitation_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "InvitationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Invitation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "__PeopleListItem_lastInvitation_connection(orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - "action": "THROW" - }, - (v1/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:update\")" - }, - { - "alias": "canInvite", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:invitation:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:invitation:create\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:delete\")" - } - ], - "type": "Profile", - "abstractKey": null -}; -})(); - -(node as any).hash = "f10aa3067eeb7fc95eb7c7a893e7dd6e"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PeopleListItem_inviteMutation.graphql.ts b/apps/console/src/__generated__/iam/PeopleListItem_inviteMutation.graphql.ts deleted file mode 100644 index 4242bb5b3..000000000 --- a/apps/console/src/__generated__/iam/PeopleListItem_inviteMutation.graphql.ts +++ /dev/null @@ -1,183 +0,0 @@ -/** - * @generated SignedSource<<5c890fa68733de0a9a1b5475cd45b1a1>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type InviteUserInput = { - organizationId: string; - profileId: string; -}; -export type PeopleListItem_inviteMutation$variables = { - connections: ReadonlyArray; - input: InviteUserInput; -}; -export type PeopleListItem_inviteMutation$data = { - readonly inviteUser: { - readonly invitationEdge: { - readonly node: { - readonly acceptedAt: string | null | undefined; - readonly createdAt: string; - readonly expiresAt: string; - readonly id: string; - }; - }; - } | null | undefined; -}; -export type PeopleListItem_inviteMutation = { - response: PeopleListItem_inviteMutation$data; - variables: PeopleListItem_inviteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "InvitationEdge", - "kind": "LinkedField", - "name": "invitationEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Invitation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "acceptedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "PeopleListItem_inviteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "InviteUserPayload", - "kind": "LinkedField", - "name": "inviteUser", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "PeopleListItem_inviteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "InviteUserPayload", - "kind": "LinkedField", - "name": "inviteUser", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "invitationEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "adf65c15aebb17087c5701c9b83e6711", - "id": null, - "metadata": {}, - "name": "PeopleListItem_inviteMutation", - "operationKind": "mutation", - "text": "mutation PeopleListItem_inviteMutation(\n $input: InviteUserInput!\n) {\n inviteUser(input: $input) {\n invitationEdge {\n node {\n id\n expiresAt\n acceptedAt\n createdAt\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "7ce62bafa9a5ec7a965c048fe7ef1763"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PeopleListItem_removeMutation.graphql.ts b/apps/console/src/__generated__/iam/PeopleListItem_removeMutation.graphql.ts deleted file mode 100644 index 1b2c79ff1..000000000 --- a/apps/console/src/__generated__/iam/PeopleListItem_removeMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<<921243e6b4b9007688051434ab212f85>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type RemoveUserInput = { - organizationId: string; - profileId: string; -}; -export type PeopleListItem_removeMutation$variables = { - connections: ReadonlyArray; - input: RemoveUserInput; -}; -export type PeopleListItem_removeMutation$data = { - readonly removeUser: { - readonly deletedProfileId: string; - } | null | undefined; -}; -export type PeopleListItem_removeMutation = { - response: PeopleListItem_removeMutation$data; - variables: PeopleListItem_removeMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedProfileId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "PeopleListItem_removeMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "RemoveUserPayload", - "kind": "LinkedField", - "name": "removeUser", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "PeopleListItem_removeMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "RemoveUserPayload", - "kind": "LinkedField", - "name": "removeUser", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedProfileId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "ec2aeab79c24169e2f8fc95ca3b28a7d", - "id": null, - "metadata": {}, - "name": "PeopleListItem_removeMutation", - "operationKind": "mutation", - "text": "mutation PeopleListItem_removeMutation(\n $input: RemoveUserInput!\n) {\n removeUser(input: $input) {\n deletedProfileId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e84b22e1f4a71940947b8a85d83a2dd6"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PeopleListItem_updateRoleMutation.graphql.ts b/apps/console/src/__generated__/iam/PeopleListItem_updateRoleMutation.graphql.ts deleted file mode 100644 index 740b32d36..000000000 --- a/apps/console/src/__generated__/iam/PeopleListItem_updateRoleMutation.graphql.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @generated SignedSource<<021e2d930ac4fe38c64cede962db93cf>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type MembershipRole = "ADMIN" | "AUDITOR" | "EMPLOYEE" | "OWNER" | "VIEWER"; -export type UpdateMembershipInput = { - membershipId: string; - organizationId: string; - role: MembershipRole; -}; -export type PeopleListItem_updateRoleMutation$variables = { - input: UpdateMembershipInput; -}; -export type PeopleListItem_updateRoleMutation$data = { - readonly updateMembership: { - readonly membership: { - readonly id: string; - readonly role: MembershipRole; - }; - }; -}; -export type PeopleListItem_updateRoleMutation = { - response: PeopleListItem_updateRoleMutation$data; - variables: PeopleListItem_updateRoleMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateMembershipPayload", - "kind": "LinkedField", - "name": "updateMembership", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "PeopleListItem_updateRoleMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "PeopleListItem_updateRoleMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "d15bdc1ff79729c3878c0cef9095a241", - "id": null, - "metadata": {}, - "name": "PeopleListItem_updateRoleMutation", - "operationKind": "mutation", - "text": "mutation PeopleListItem_updateRoleMutation(\n $input: UpdateMembershipInput!\n) {\n updateMembership(input: $input) {\n membership {\n id\n role\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "05245fe86928cb4afa5a958835ad167e"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PeoplePageQuery.graphql.ts b/apps/console/src/__generated__/iam/PeoplePageQuery.graphql.ts deleted file mode 100644 index 02360a4f7..000000000 --- a/apps/console/src/__generated__/iam/PeoplePageQuery.graphql.ts +++ /dev/null @@ -1,478 +0,0 @@ -/** - * @generated SignedSource<<86b86e1209fbe58b62c2be028fb0482c>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type PeoplePageQuery$variables = { - organizationId: string; -}; -export type PeoplePageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly canCreateUser: boolean; - readonly " $fragmentSpreads": FragmentRefs<"PeopleListFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type PeoplePageQuery = { - response: PeoplePageQuery$data; - variables: PeoplePageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": "canCreateUser", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:create\")" -}, -v4 = { - "kind": "Literal", - "name": "first", - "value": 20 -}, -v5 = { - "direction": "ASC", - "field": "FULL_NAME" -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v7 = [ - (v4/*: any*/), - { - "kind": "Literal", - "name": "orderBy", - "value": (v5/*: any*/) - } -], -v8 = [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } -], -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null -}, -v13 = { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] -}, -v14 = [ - "orderBy" -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "PeoplePageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "args": [ - (v4/*: any*/), - { - "kind": "Literal", - "name": "order", - "value": (v5/*: any*/) - } - ], - "kind": "FragmentSpread", - "name": "PeopleListFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "PeoplePageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v6/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": (v7/*: any*/), - "concreteType": "ProfileConnection", - "kind": "LinkedField", - "name": "profiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v6/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - (v6/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership:update\")" - } - ], - "storageKey": null - }, - { - "alias": "lastInvitation", - "args": (v8/*: any*/), - "concreteType": "InvitationConnection", - "kind": "LinkedField", - "name": "pendingInvitations", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "InvitationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Invitation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v6/*: any*/), - (v9/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - (v10/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/) - ], - "storageKey": null - }, - (v13/*: any*/) - ], - "storageKey": "pendingInvitations(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - { - "alias": "lastInvitation", - "args": (v8/*: any*/), - "filters": (v14/*: any*/), - "handle": "connection", - "key": "PeopleListItem_lastInvitation", - "kind": "LinkedHandle", - "name": "pendingInvitations" - }, - (v9/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:update\")" - }, - { - "alias": "canInvite", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:invitation:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:invitation:create\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:delete\")" - }, - (v2/*: any*/) - ], - "storageKey": null - }, - (v10/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - (v11/*: any*/), - (v12/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - }, - (v13/*: any*/) - ], - "storageKey": "profiles(first:20,orderBy:{\"direction\":\"ASC\",\"field\":\"FULL_NAME\"})" - }, - { - "alias": null, - "args": (v7/*: any*/), - "filters": (v14/*: any*/), - "handle": "connection", - "key": "PeopleListFragment_profiles", - "kind": "LinkedHandle", - "name": "profiles" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "af366ea24d2c96763b104acc69d9b3ff", - "id": null, - "metadata": {}, - "name": "PeoplePageQuery", - "operationKind": "query", - "text": "query PeoplePageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateUser: permission(action: \"iam:membership-profile:create\")\n ...PeopleListFragment_8lnpd\n }\n id\n }\n}\n\nfragment PeopleListFragment_8lnpd on Organization {\n profiles(first: 20, orderBy: {direction: ASC, field: FULL_NAME}) {\n totalCount\n edges {\n node {\n id\n ...PeopleListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment PeopleListItemFragment on Profile {\n id\n source\n state\n fullName\n emailAddress\n membership {\n id\n role\n canUpdate: permission(action: \"iam:membership:update\")\n }\n lastInvitation: pendingInvitations(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n id\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n createdAt\n canUpdate: permission(action: \"iam:membership-profile:update\")\n canInvite: permission(action: \"iam:invitation:create\")\n canDelete: permission(action: \"iam:membership-profile:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "096ed215c8310f05d842827b5f3aec68"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PersonFormFragment.graphql.ts b/apps/console/src/__generated__/iam/PersonFormFragment.graphql.ts deleted file mode 100644 index 8f836ee9d..000000000 --- a/apps/console/src/__generated__/iam/PersonFormFragment.graphql.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * @generated SignedSource<<113726f3e57dbdd5c0f20352a44deca9>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type MembershipRole = "ADMIN" | "AUDITOR" | "EMPLOYEE" | "OWNER" | "VIEWER"; -import { FragmentRefs } from "relay-runtime"; -export type PersonFormFragment$data = { - readonly additionalEmailAddresses: ReadonlyArray; - readonly canUpdate: boolean; - readonly contractEndDate: string | null | undefined; - readonly contractStartDate: string | null | undefined; - readonly emailAddress: string; - readonly fullName: string; - readonly id: string; - readonly kind: string | null | undefined; - readonly membership: { - readonly role: MembershipRole; - }; - readonly position: string | null | undefined; - readonly source: string; - readonly " $fragmentType": "PersonFormFragment"; -}; -export type PersonFormFragment$key = { - readonly " $data"?: PersonFormFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"PersonFormFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "PersonFormFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "kind", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "position", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "additionalEmailAddresses", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractStartDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractEndDate", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:update\")" - } - ], - "type": "Profile", - "abstractKey": null -}; - -(node as any).hash = "37e8a56333b217e5b6d3b94b455d7d40"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PersonForm_createMutation.graphql.ts b/apps/console/src/__generated__/iam/PersonForm_createMutation.graphql.ts deleted file mode 100644 index d0f61f810..000000000 --- a/apps/console/src/__generated__/iam/PersonForm_createMutation.graphql.ts +++ /dev/null @@ -1,413 +0,0 @@ -/** - * @generated SignedSource<<4dd6dcfde0f1afbc5a3245929bd8fcd9>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MembershipRole = "ADMIN" | "AUDITOR" | "EMPLOYEE" | "OWNER" | "VIEWER"; -export type CreateUserInput = { - additionalEmailAddresses?: ReadonlyArray | null | undefined; - contractEndDate?: string | null | undefined; - contractStartDate?: string | null | undefined; - emailAddress: string; - fullName: string; - kind?: string | null | undefined; - organizationId: string; - position?: string | null | undefined; - role: MembershipRole; -}; -export type PersonForm_createMutation$variables = { - connections: ReadonlyArray; - input: CreateUserInput; -}; -export type PersonForm_createMutation$data = { - readonly createUser: { - readonly profileEdge: { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"PeopleListItemFragment">; - }; - }; - } | null | undefined; -}; -export type PersonForm_createMutation = { - response: PersonForm_createMutation$data; - variables: PersonForm_createMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 1 - }, - { - "kind": "Literal", - "name": "orderBy", - "value": { - "direction": "DESC", - "field": "CREATED_AT" - } - } -], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "PersonForm_createMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateUserPayload", - "kind": "LinkedField", - "name": "createUser", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "profileEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "PeopleListItemFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "PersonForm_createMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreateUserPayload", - "kind": "LinkedField", - "name": "createUser", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ProfileEdge", - "kind": "LinkedField", - "name": "profileEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "state", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership:update\")" - } - ], - "storageKey": null - }, - { - "alias": "lastInvitation", - "args": (v4/*: any*/), - "concreteType": "InvitationConnection", - "kind": "LinkedField", - "name": "pendingInvitations", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "InvitationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Invitation", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - } - ], - "storageKey": "pendingInvitations(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})" - }, - { - "alias": "lastInvitation", - "args": (v4/*: any*/), - "filters": [ - "orderBy" - ], - "handle": "connection", - "key": "PeopleListItem_lastInvitation", - "kind": "LinkedHandle", - "name": "pendingInvitations" - }, - (v5/*: any*/), - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:update\")" - }, - { - "alias": "canInvite", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:invitation:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:invitation:create\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:delete\")" - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "profileEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "738254d707f8ed725c30ee87baa585fb", - "id": null, - "metadata": {}, - "name": "PersonForm_createMutation", - "operationKind": "mutation", - "text": "mutation PersonForm_createMutation(\n $input: CreateUserInput!\n) {\n createUser(input: $input) {\n profileEdge {\n node {\n ...PeopleListItemFragment\n id\n }\n }\n }\n}\n\nfragment PeopleListItemFragment on Profile {\n id\n source\n state\n fullName\n emailAddress\n membership {\n id\n role\n canUpdate: permission(action: \"iam:membership:update\")\n }\n lastInvitation: pendingInvitations(first: 1, orderBy: {field: CREATED_AT, direction: DESC}) {\n edges {\n node {\n id\n createdAt\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n createdAt\n canUpdate: permission(action: \"iam:membership-profile:update\")\n canInvite: permission(action: \"iam:invitation:create\")\n canDelete: permission(action: \"iam:membership-profile:delete\")\n}\n" - } -}; -})(); - -(node as any).hash = "8dcc7d2920cc0196f71ecce6e78703c4"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PersonForm_updateMutation.graphql.ts b/apps/console/src/__generated__/iam/PersonForm_updateMutation.graphql.ts deleted file mode 100644 index 60e99b6f5..000000000 --- a/apps/console/src/__generated__/iam/PersonForm_updateMutation.graphql.ts +++ /dev/null @@ -1,111 +0,0 @@ -/** - * @generated SignedSource<<87d07de57247f129b66225595215a2b4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateUserInput = { - additionalEmailAddresses?: ReadonlyArray | null | undefined; - contractEndDate?: string | null | undefined; - contractStartDate?: string | null | undefined; - fullName: string; - id: string; - kind?: string | null | undefined; - position?: string | null | undefined; -}; -export type PersonForm_updateMutation$variables = { - input: UpdateUserInput; -}; -export type PersonForm_updateMutation$data = { - readonly updateUser: { - readonly profile: { - readonly id: string; - }; - }; -}; -export type PersonForm_updateMutation = { - response: PersonForm_updateMutation$data; - variables: PersonForm_updateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateUserPayload", - "kind": "LinkedField", - "name": "updateUser", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "profile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "PersonForm_updateMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "PersonForm_updateMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "0623be6bdbd6575b04173a59b1dd45f7", - "id": null, - "metadata": {}, - "name": "PersonForm_updateMutation", - "operationKind": "mutation", - "text": "mutation PersonForm_updateMutation(\n $input: UpdateUserInput!\n) {\n updateUser(input: $input) {\n profile {\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e1da3d7148eef5f6ab8bdf827e41654a"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PersonPageQuery.graphql.ts b/apps/console/src/__generated__/iam/PersonPageQuery.graphql.ts deleted file mode 100644 index 3817df03a..000000000 --- a/apps/console/src/__generated__/iam/PersonPageQuery.graphql.ts +++ /dev/null @@ -1,255 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type PersonPageQuery$variables = { - personId: string; -}; -export type PersonPageQuery$data = { - readonly person: { - readonly __typename: "Profile"; - readonly canDelete: boolean; - readonly emailAddress: string; - readonly fullName: string; - readonly id: string; - readonly source: string; - readonly " $fragmentSpreads": FragmentRefs<"PersonFormFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type PersonPageQuery = { - response: PersonPageQuery$data; - variables: PersonPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "personId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "personId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailAddress", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "source", - "storageKey": null -}, -v7 = { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:delete\")" -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "PersonPageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "person", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "PersonFormFragment" - } - ], - "type": "Profile", - "abstractKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "PersonPageQuery", - "selections": [ - { - "alias": "person", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - (v7/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null - }, - (v3/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "kind", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "position", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "additionalEmailAddresses", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractStartDate", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "contractEndDate", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership-profile:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership-profile:update\")" - } - ], - "type": "Profile", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f78728c7deb19de68b5b996c58ebd05e", - "id": null, - "metadata": {}, - "name": "PersonPageQuery", - "operationKind": "query", - "text": "query PersonPageQuery(\n $personId: ID!\n) {\n person: node(id: $personId) {\n __typename\n ... on Profile {\n id\n fullName\n emailAddress\n source\n canDelete: permission(action: \"iam:membership-profile:delete\")\n ...PersonFormFragment\n }\n id\n }\n}\n\nfragment PersonFormFragment on Profile {\n id\n fullName\n emailAddress\n source\n membership {\n role\n id\n }\n kind\n position\n additionalEmailAddresses\n contractStartDate\n contractEndDate\n canUpdate: permission(action: \"iam:membership-profile:update\")\n}\n" - } -}; -})(); - -(node as any).hash = "4aecfb7a9ff05a585ccc6b533fb75bec"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PersonPage_removeMutation.graphql.ts b/apps/console/src/__generated__/iam/PersonPage_removeMutation.graphql.ts deleted file mode 100644 index 2996120e8..000000000 --- a/apps/console/src/__generated__/iam/PersonPage_removeMutation.graphql.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @generated SignedSource<<7df320d2cbda9f48737622295ed141ad>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type RemoveUserInput = { - organizationId: string; - profileId: string; -}; -export type PersonPage_removeMutation$variables = { - input: RemoveUserInput; -}; -export type PersonPage_removeMutation$data = { - readonly removeUser: { - readonly deletedProfileId: string; - } | null | undefined; -}; -export type PersonPage_removeMutation = { - response: PersonPage_removeMutation$data; - variables: PersonPage_removeMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "RemoveUserPayload", - "kind": "LinkedField", - "name": "removeUser", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedProfileId", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "PersonPage_removeMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "PersonPage_removeMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "1e686e9dcb1425cde221721b4635a747", - "id": null, - "metadata": {}, - "name": "PersonPage_removeMutation", - "operationKind": "mutation", - "text": "mutation PersonPage_removeMutation(\n $input: RemoveUserInput!\n) {\n removeUser(input: $input) {\n deletedProfileId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "37b79997d660eee761e9380612739211"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PersonalAPIKeyListCreateMutation.graphql.ts b/apps/console/src/__generated__/iam/PersonalAPIKeyListCreateMutation.graphql.ts deleted file mode 100644 index 803955bd0..000000000 --- a/apps/console/src/__generated__/iam/PersonalAPIKeyListCreateMutation.graphql.ts +++ /dev/null @@ -1,193 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreatePersonalAPIKeyInput = { - expiresAt: string; - name: string; -}; -export type PersonalAPIKeyListCreateMutation$variables = { - connections: ReadonlyArray; - input: CreatePersonalAPIKeyInput; -}; -export type PersonalAPIKeyListCreateMutation$data = { - readonly createPersonalAPIKey: { - readonly personalAPIKeyEdge: { - readonly node: { - readonly createdAt: string; - readonly expiresAt: string; - readonly id: string; - readonly name: string; - }; - }; - readonly token: string; - } | null | undefined; -}; -export type PersonalAPIKeyListCreateMutation = { - response: PersonalAPIKeyListCreateMutation$data; - variables: PersonalAPIKeyListCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "concreteType": "PersonalAPIKeyEdge", - "kind": "LinkedField", - "name": "personalAPIKeyEdge", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PersonalAPIKey", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "token", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "PersonalAPIKeyListCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreatePersonalAPIKeyPayload", - "kind": "LinkedField", - "name": "createPersonalAPIKey", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "PersonalAPIKeyListCreateMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "CreatePersonalAPIKeyPayload", - "kind": "LinkedField", - "name": "createPersonalAPIKey", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "prependEdge", - "key": "", - "kind": "LinkedHandle", - "name": "personalAPIKeyEdge", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - }, - (v4/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1ec09abe9f3a61e13ba2deacf1a273fb", - "id": null, - "metadata": {}, - "name": "PersonalAPIKeyListCreateMutation", - "operationKind": "mutation", - "text": "mutation PersonalAPIKeyListCreateMutation(\n $input: CreatePersonalAPIKeyInput!\n) {\n createPersonalAPIKey(input: $input) {\n personalAPIKeyEdge {\n node {\n id\n name\n createdAt\n expiresAt\n }\n }\n token\n }\n}\n" - } -}; -})(); - -(node as any).hash = "86df62e5e5f2d9f347f41648d7af9c32"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PersonalAPIKeyListFragment.graphql.ts b/apps/console/src/__generated__/iam/PersonalAPIKeyListFragment.graphql.ts deleted file mode 100644 index 05c0c6eb0..000000000 --- a/apps/console/src/__generated__/iam/PersonalAPIKeyListFragment.graphql.ts +++ /dev/null @@ -1,150 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type PersonalAPIKeyListFragment$data = { - readonly id: string; - readonly personalAPIKeys: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"PersonalAPIKeyRowFragment">; - }; - }>; - }; - readonly " $fragmentType": "PersonalAPIKeyListFragment"; -}; -export type PersonalAPIKeyListFragment$key = { - readonly " $data"?: PersonalAPIKeyListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"PersonalAPIKeyListFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "personalAPIKeys" - ] - } - ] - }, - "name": "PersonalAPIKeyListFragment", - "selections": [ - (v0/*: any*/), - { - "kind": "RequiredField", - "field": { - "alias": "personalAPIKeys", - "args": null, - "concreteType": "PersonalAPIKeyConnection", - "kind": "LinkedField", - "name": "__PersonalAPIKeyListFragment_personalAPIKeys_connection", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "PersonalAPIKeyEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "PersonalAPIKey", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "PersonalAPIKeyRowFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Identity", - "abstractKey": null -}; -})(); - -(node as any).hash = "eac59db5cdb5d77813236a90e7fb4d94"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PersonalAPIKeyRowFragment.graphql.ts b/apps/console/src/__generated__/iam/PersonalAPIKeyRowFragment.graphql.ts deleted file mode 100644 index ee85f474b..000000000 --- a/apps/console/src/__generated__/iam/PersonalAPIKeyRowFragment.graphql.ts +++ /dev/null @@ -1,109 +0,0 @@ -/** - * @generated SignedSource<<5899ebfb2c67ad34f132f53990b54136>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type PersonalAPIKeyRowFragment$data = { - readonly createdAt: string; - readonly expiresAt: string; - readonly id: string; - readonly lastUsedAt: string | null | undefined; - readonly name: string; - readonly token?: string | null | undefined; - readonly " $fragmentType": "PersonalAPIKeyRowFragment"; -}; -export type PersonalAPIKeyRowFragment$key = { - readonly " $data"?: PersonalAPIKeyRowFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"PersonalAPIKeyRowFragment">; -}; - -import PersonalAPIKeyRowRefetchQuery_graphql from './PersonalAPIKeyRowRefetchQuery.graphql'; - -const node: ReaderFragment = { - "argumentDefinitions": [ - { - "defaultValue": false, - "kind": "LocalArgument", - "name": "includeToken" - } - ], - "kind": "Fragment", - "metadata": { - "refetch": { - "connection": null, - "fragmentPathInResult": [ - "node" - ], - "operation": PersonalAPIKeyRowRefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "PersonalAPIKeyRowFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastUsedAt", - "storageKey": null - }, - { - "condition": "includeToken", - "kind": "Condition", - "passingValue": true, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "token", - "storageKey": null - } - ] - } - ], - "type": "PersonalAPIKey", - "abstractKey": null -}; - -(node as any).hash = "919daef49b4889be6801516d93f803cf"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PersonalAPIKeyRowRefetchQuery.graphql.ts b/apps/console/src/__generated__/iam/PersonalAPIKeyRowRefetchQuery.graphql.ts deleted file mode 100644 index c627c20c4..000000000 --- a/apps/console/src/__generated__/iam/PersonalAPIKeyRowRefetchQuery.graphql.ts +++ /dev/null @@ -1,179 +0,0 @@ -/** - * @generated SignedSource<<3f5cf991e78b2be0165979f65ecf845d>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type PersonalAPIKeyRowRefetchQuery$variables = { - id: string; - includeToken?: boolean | null | undefined; -}; -export type PersonalAPIKeyRowRefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"PersonalAPIKeyRowFragment">; - } | null | undefined; -}; -export type PersonalAPIKeyRowRefetchQuery = { - response: PersonalAPIKeyRowRefetchQuery$data; - variables: PersonalAPIKeyRowRefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v1 = { - "defaultValue": false, - "kind": "LocalArgument", - "name": "includeToken" -}, -v2 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -]; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "PersonalAPIKeyRowRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": [ - { - "kind": "Variable", - "name": "includeToken", - "variableName": "includeToken" - } - ], - "kind": "FragmentSpread", - "name": "PersonalAPIKeyRowFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "PersonalAPIKeyRowRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "expiresAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastUsedAt", - "storageKey": null - }, - { - "condition": "includeToken", - "kind": "Condition", - "passingValue": true, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "token", - "storageKey": null - } - ] - } - ], - "type": "PersonalAPIKey", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f9dbf41761006cde825eb68290509c75", - "id": null, - "metadata": {}, - "name": "PersonalAPIKeyRowRefetchQuery", - "operationKind": "query", - "text": "query PersonalAPIKeyRowRefetchQuery(\n $includeToken: Boolean = false\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...PersonalAPIKeyRowFragment_2T7Twf\n id\n }\n}\n\nfragment PersonalAPIKeyRowFragment_2T7Twf on PersonalAPIKey {\n id\n name\n createdAt\n expiresAt\n lastUsedAt\n token @include(if: $includeToken)\n}\n" - } -}; -})(); - -(node as any).hash = "919daef49b4889be6801516d93f803cf"; - -export default node; diff --git a/apps/console/src/__generated__/iam/PersonalAPIKeyRow_revokeMutation.graphql.ts b/apps/console/src/__generated__/iam/PersonalAPIKeyRow_revokeMutation.graphql.ts deleted file mode 100644 index 9d9b3cbcf..000000000 --- a/apps/console/src/__generated__/iam/PersonalAPIKeyRow_revokeMutation.graphql.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * @generated SignedSource<<64ad5ad6ff333dffc7b2d5d578028d7f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type RevokePersonalAPIKeyInput = { - personalAPIKeyId: string; -}; -export type PersonalAPIKeyRow_revokeMutation$variables = { - connections: ReadonlyArray; - input: RevokePersonalAPIKeyInput; -}; -export type PersonalAPIKeyRow_revokeMutation$data = { - readonly revokePersonalAPIKey: { - readonly personalAPIKeyId: string; - } | null | undefined; -}; -export type PersonalAPIKeyRow_revokeMutation = { - response: PersonalAPIKeyRow_revokeMutation$data; - variables: PersonalAPIKeyRow_revokeMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "personalAPIKeyId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "PersonalAPIKeyRow_revokeMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "RevokePersonalAPIKeyPayload", - "kind": "LinkedField", - "name": "revokePersonalAPIKey", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "PersonalAPIKeyRow_revokeMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "RevokePersonalAPIKeyPayload", - "kind": "LinkedField", - "name": "revokePersonalAPIKey", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "personalAPIKeyId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "29dfd9de3537585482c2863a1d547031", - "id": null, - "metadata": {}, - "name": "PersonalAPIKeyRow_revokeMutation", - "operationKind": "mutation", - "text": "mutation PersonalAPIKeyRow_revokeMutation(\n $input: RevokePersonalAPIKeyInput!\n) {\n revokePersonalAPIKey(input: $input) {\n personalAPIKeyId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "258ca02064f55b6fd4a3630ba1f904a4"; - -export default node; diff --git a/apps/console/src/__generated__/iam/ResetPasswordPageMutation.graphql.ts b/apps/console/src/__generated__/iam/ResetPasswordPageMutation.graphql.ts deleted file mode 100644 index e65ffa49c..000000000 --- a/apps/console/src/__generated__/iam/ResetPasswordPageMutation.graphql.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @generated SignedSource<<7f9521bd0d19cc1410fcb66ddc75fbf2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ResetPasswordInput = { - password: string; - token: string; -}; -export type ResetPasswordPageMutation$variables = { - input: ResetPasswordInput; -}; -export type ResetPasswordPageMutation$data = { - readonly resetPassword: { - readonly success: boolean; - } | null | undefined; -}; -export type ResetPasswordPageMutation = { - response: ResetPasswordPageMutation$data; - variables: ResetPasswordPageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ResetPasswordPayload", - "kind": "LinkedField", - "name": "resetPassword", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "success", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ResetPasswordPageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ResetPasswordPageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "e83c05ebe7c286a362ab11d60182ab61", - "id": null, - "metadata": {}, - "name": "ResetPasswordPageMutation", - "operationKind": "mutation", - "text": "mutation ResetPasswordPageMutation(\n $input: ResetPasswordInput!\n) {\n resetPassword(input: $input) {\n success\n }\n}\n" - } -}; -})(); - -(node as any).hash = "dc17c5c4103a29d3f163d08877bfbb34"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SAMLConfigurationListFragment.graphql.ts b/apps/console/src/__generated__/iam/SAMLConfigurationListFragment.graphql.ts deleted file mode 100644 index 401dd8429..000000000 --- a/apps/console/src/__generated__/iam/SAMLConfigurationListFragment.graphql.ts +++ /dev/null @@ -1,208 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type SAMLEnforcementPolicy = "OFF" | "OPTIONAL" | "REQUIRED"; -import { FragmentRefs } from "relay-runtime"; -export type SAMLConfigurationListFragment$data = { - readonly samlConfigurations: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly canDelete: boolean; - readonly canUpdate: boolean; - readonly domainVerificationToken: string | null | undefined; - readonly domainVerifiedAt: string | null | undefined; - readonly emailDomain: string; - readonly enforcementPolicy: SAMLEnforcementPolicy; - readonly id: string; - readonly testLoginUrl: string; - }; - }>; - }; - readonly " $fragmentType": "SAMLConfigurationListFragment"; -}; -export type SAMLConfigurationListFragment$key = { - readonly " $data"?: SAMLConfigurationListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"SAMLConfigurationListFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "forward", - "path": [ - "samlConfigurations" - ] - } - ] - }, - "name": "SAMLConfigurationListFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "samlConfigurations", - "args": null, - "concreteType": "SAMLConfigurationConnection", - "kind": "LinkedField", - "name": "__SAMLConfigurationListFragment_samlConfigurations_connection", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "SAMLConfigurationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SAMLConfiguration", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailDomain", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "enforcementPolicy", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domainVerificationToken", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domainVerifiedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "testLoginUrl", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:saml-configuration:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:saml-configuration:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:saml-configuration:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:saml-configuration:delete\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "3adfb13b2a908c93602b219ef1d0cf50"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SAMLConfigurationList_deleteMutation.graphql.ts b/apps/console/src/__generated__/iam/SAMLConfigurationList_deleteMutation.graphql.ts deleted file mode 100644 index a633dbc0d..000000000 --- a/apps/console/src/__generated__/iam/SAMLConfigurationList_deleteMutation.graphql.ts +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @generated SignedSource<<6466caf236dccf64aadc80e85172d8e3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteSAMLConfigurationInput = { - organizationId: string; - samlConfigurationId: string; -}; -export type SAMLConfigurationList_deleteMutation$variables = { - connections: ReadonlyArray; - input: DeleteSAMLConfigurationInput; -}; -export type SAMLConfigurationList_deleteMutation$data = { - readonly deleteSAMLConfiguration: { - readonly deletedSamlConfigurationId: string; - } | null | undefined; -}; -export type SAMLConfigurationList_deleteMutation = { - response: SAMLConfigurationList_deleteMutation$data; - variables: SAMLConfigurationList_deleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "connections" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" -}, -v2 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedSamlConfigurationId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "SAMLConfigurationList_deleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteSAMLConfigurationPayload", - "kind": "LinkedField", - "name": "deleteSAMLConfiguration", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "SAMLConfigurationList_deleteMutation", - "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DeleteSAMLConfigurationPayload", - "kind": "LinkedField", - "name": "deleteSAMLConfiguration", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteEdge", - "key": "", - "kind": "ScalarHandle", - "name": "deletedSamlConfigurationId", - "handleArgs": [ - { - "kind": "Variable", - "name": "connections", - "variableName": "connections" - } - ] - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "cb46bb31e5d10f0ddad38795a72b1ab1", - "id": null, - "metadata": {}, - "name": "SAMLConfigurationList_deleteMutation", - "operationKind": "mutation", - "text": "mutation SAMLConfigurationList_deleteMutation(\n $input: DeleteSAMLConfigurationInput!\n) {\n deleteSAMLConfiguration(input: $input) {\n deletedSamlConfigurationId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "aba27afc1e97268478c5159cedf70026"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SAMLSettingsPageQuery.graphql.ts b/apps/console/src/__generated__/iam/SAMLSettingsPageQuery.graphql.ts deleted file mode 100644 index 47782e492..000000000 --- a/apps/console/src/__generated__/iam/SAMLSettingsPageQuery.graphql.ts +++ /dev/null @@ -1,300 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type SAMLSettingsPageQuery$variables = { - organizationId: string; -}; -export type SAMLSettingsPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly canCreateSAMLConfiguration: boolean; - readonly " $fragmentSpreads": FragmentRefs<"SAMLConfigurationListFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type SAMLSettingsPageQuery = { - response: SAMLSettingsPageQuery$data; - variables: SAMLSettingsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": "canCreateSAMLConfiguration", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:saml-configuration:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:saml-configuration:create\")" -}, -v4 = [ - { - "kind": "Literal", - "name": "first", - "value": 1000 - } -], -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SAMLSettingsPageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "SAMLConfigurationListFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SAMLSettingsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": (v4/*: any*/), - "concreteType": "SAMLConfigurationConnection", - "kind": "LinkedField", - "name": "samlConfigurations", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SAMLConfigurationEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SAMLConfiguration", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v5/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "emailDomain", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "enforcementPolicy", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domainVerificationToken", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "domainVerifiedAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "testLoginUrl", - "storageKey": null - }, - { - "alias": "canUpdate", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:saml-configuration:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:saml-configuration:update\")" - }, - { - "alias": "canDelete", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:saml-configuration:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:saml-configuration:delete\")" - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "samlConfigurations(first:1000)" - }, - { - "alias": null, - "args": (v4/*: any*/), - "filters": null, - "handle": "connection", - "key": "SAMLConfigurationListFragment_samlConfigurations", - "kind": "LinkedHandle", - "name": "samlConfigurations" - } - ], - "type": "Organization", - "abstractKey": null - }, - (v5/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1a2bfe52dd42459b83e7f99e9b790218", - "id": null, - "metadata": {}, - "name": "SAMLSettingsPageQuery", - "operationKind": "query", - "text": "query SAMLSettingsPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n canCreateSAMLConfiguration: permission(action: \"iam:saml-configuration:create\")\n ...SAMLConfigurationListFragment\n }\n id\n }\n}\n\nfragment SAMLConfigurationListFragment on Organization {\n samlConfigurations(first: 1000) {\n edges {\n node {\n id\n emailDomain\n enforcementPolicy\n domainVerificationToken\n domainVerifiedAt\n testLoginUrl\n canUpdate: permission(action: \"iam:saml-configuration:update\")\n canDelete: permission(action: \"iam:saml-configuration:delete\")\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d0fd8fe9afb6ff650cce48c89eb83c46"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SCIMConfigurationCreateMutation.graphql.ts b/apps/console/src/__generated__/iam/SCIMConfigurationCreateMutation.graphql.ts deleted file mode 100644 index cf331f75f..000000000 --- a/apps/console/src/__generated__/iam/SCIMConfigurationCreateMutation.graphql.ts +++ /dev/null @@ -1,156 +0,0 @@ -/** - * @generated SignedSource<<29e2f3791be9e59a1c61033e31eb0134>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateSCIMConfigurationInput = { - connectorId?: string | null | undefined; - organizationId: string; -}; -export type SCIMConfigurationCreateMutation$variables = { - input: CreateSCIMConfigurationInput; -}; -export type SCIMConfigurationCreateMutation$data = { - readonly createSCIMConfiguration: { - readonly scimConfiguration: { - readonly endpointUrl: string; - readonly id: string; - readonly organization: { - readonly id: string; - readonly scimConfiguration: { - readonly endpointUrl: string; - readonly id: string; - } | null | undefined; - } | null | undefined; - }; - readonly token: string; - } | null | undefined; -}; -export type SCIMConfigurationCreateMutation = { - response: SCIMConfigurationCreateMutation$data; - variables: SCIMConfigurationCreateMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endpointUrl", - "storageKey": null -}, -v3 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "CreateSCIMConfigurationPayload", - "kind": "LinkedField", - "name": "createSCIMConfiguration", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMConfiguration", - "kind": "LinkedField", - "name": "scimConfiguration", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "SCIMConfiguration", - "kind": "LinkedField", - "name": "scimConfiguration", - "plural": false, - "selections": [ - (v1/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "token", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SCIMConfigurationCreateMutation", - "selections": (v3/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SCIMConfigurationCreateMutation", - "selections": (v3/*: any*/) - }, - "params": { - "cacheID": "c4a8c2c34586e55c6dca0b5e4a0f4642", - "id": null, - "metadata": {}, - "name": "SCIMConfigurationCreateMutation", - "operationKind": "mutation", - "text": "mutation SCIMConfigurationCreateMutation(\n $input: CreateSCIMConfigurationInput!\n) {\n createSCIMConfiguration(input: $input) {\n scimConfiguration {\n id\n endpointUrl\n organization {\n id\n scimConfiguration {\n id\n endpointUrl\n }\n }\n }\n token\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b4534941bf2670d13c78cb5ab9e810b1"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SCIMConfigurationDeleteMutation.graphql.ts b/apps/console/src/__generated__/iam/SCIMConfigurationDeleteMutation.graphql.ts deleted file mode 100644 index 973d335c0..000000000 --- a/apps/console/src/__generated__/iam/SCIMConfigurationDeleteMutation.graphql.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @generated SignedSource<<6c49f0f68abab263d483a28d103c04a0>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DeleteSCIMConfigurationInput = { - organizationId: string; - scimConfigurationId: string; -}; -export type SCIMConfigurationDeleteMutation$variables = { - input: DeleteSCIMConfigurationInput; -}; -export type SCIMConfigurationDeleteMutation$data = { - readonly deleteSCIMConfiguration: { - readonly deletedScimConfigurationId: string; - } | null | undefined; -}; -export type SCIMConfigurationDeleteMutation = { - response: SCIMConfigurationDeleteMutation$data; - variables: SCIMConfigurationDeleteMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedScimConfigurationId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SCIMConfigurationDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "DeleteSCIMConfigurationPayload", - "kind": "LinkedField", - "name": "deleteSCIMConfiguration", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SCIMConfigurationDeleteMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "DeleteSCIMConfigurationPayload", - "kind": "LinkedField", - "name": "deleteSCIMConfiguration", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteRecord", - "key": "", - "kind": "ScalarHandle", - "name": "deletedScimConfigurationId" - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1a275300c9ccf4c15d6042f132fd4527", - "id": null, - "metadata": {}, - "name": "SCIMConfigurationDeleteMutation", - "operationKind": "mutation", - "text": "mutation SCIMConfigurationDeleteMutation(\n $input: DeleteSCIMConfigurationInput!\n) {\n deleteSCIMConfiguration(input: $input) {\n deletedScimConfigurationId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "6241b16c2db7d3b5d575c5ef702268cd"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SCIMConfigurationFragment.graphql.ts b/apps/console/src/__generated__/iam/SCIMConfigurationFragment.graphql.ts deleted file mode 100644 index 7ef3ca5d0..000000000 --- a/apps/console/src/__generated__/iam/SCIMConfigurationFragment.graphql.ts +++ /dev/null @@ -1,109 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type SCIMConfigurationFragment$data = { - readonly canCreateSCIMConfiguration: boolean; - readonly canDeleteSCIMConfiguration: boolean; - readonly scimConfiguration: { - readonly bridge: { - readonly id: string; - } | null | undefined; - readonly endpointUrl: string; - readonly id: string; - } | null | undefined; - readonly " $fragmentType": "SCIMConfigurationFragment"; -}; -export type SCIMConfigurationFragment$key = { - readonly " $data"?: SCIMConfigurationFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"SCIMConfigurationFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "SCIMConfigurationFragment", - "selections": [ - { - "alias": "canCreateSCIMConfiguration", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:scim-configuration:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:scim-configuration:create\")" - }, - { - "alias": "canDeleteSCIMConfiguration", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:scim-configuration:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:scim-configuration:delete\")" - }, - { - "alias": null, - "args": null, - "concreteType": "SCIMConfiguration", - "kind": "LinkedField", - "name": "scimConfiguration", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endpointUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "SCIMBridge", - "kind": "LinkedField", - "name": "bridge", - "plural": false, - "selections": [ - (v0/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Organization", - "abstractKey": null -}; -})(); - -(node as any).hash = "5b128ae2e680a0ffe0dd931e4e86f52e"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SCIMConfigurationRegenerateTokenMutation.graphql.ts b/apps/console/src/__generated__/iam/SCIMConfigurationRegenerateTokenMutation.graphql.ts deleted file mode 100644 index 893318574..000000000 --- a/apps/console/src/__generated__/iam/SCIMConfigurationRegenerateTokenMutation.graphql.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * @generated SignedSource<<107740eb1068af82db9812255fd4fc3a>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type RegenerateSCIMTokenInput = { - organizationId: string; - scimConfigurationId: string; -}; -export type SCIMConfigurationRegenerateTokenMutation$variables = { - input: RegenerateSCIMTokenInput; -}; -export type SCIMConfigurationRegenerateTokenMutation$data = { - readonly regenerateSCIMToken: { - readonly scimConfiguration: { - readonly createdAt: string; - readonly endpointUrl: string; - readonly id: string; - readonly updatedAt: string; - }; - readonly token: string; - } | null | undefined; -}; -export type SCIMConfigurationRegenerateTokenMutation = { - response: SCIMConfigurationRegenerateTokenMutation$data; - variables: SCIMConfigurationRegenerateTokenMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "RegenerateSCIMTokenPayload", - "kind": "LinkedField", - "name": "regenerateSCIMToken", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMConfiguration", - "kind": "LinkedField", - "name": "scimConfiguration", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endpointUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "token", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SCIMConfigurationRegenerateTokenMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SCIMConfigurationRegenerateTokenMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "b32d9c1791b52aebd5592c3587db2577", - "id": null, - "metadata": {}, - "name": "SCIMConfigurationRegenerateTokenMutation", - "operationKind": "mutation", - "text": "mutation SCIMConfigurationRegenerateTokenMutation(\n $input: RegenerateSCIMTokenInput!\n) {\n regenerateSCIMToken(input: $input) {\n scimConfiguration {\n id\n endpointUrl\n createdAt\n updatedAt\n }\n token\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e9cbe9f51cce2157568c86e11a5a7a9d"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SCIMEventListFragment.graphql.ts b/apps/console/src/__generated__/iam/SCIMEventListFragment.graphql.ts deleted file mode 100644 index d45b19268..000000000 --- a/apps/console/src/__generated__/iam/SCIMEventListFragment.graphql.ts +++ /dev/null @@ -1,201 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type SCIMEventListFragment$data = { - readonly events: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"SCIMEventListItemFragment">; - }; - }>; - } | null | undefined; - readonly id: string; - readonly " $fragmentType": "SCIMEventListFragment"; -}; -export type SCIMEventListFragment$key = { - readonly " $data"?: SCIMEventListFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"SCIMEventListFragment">; -}; - -import SCIMEventListPaginationQuery_graphql from './SCIMEventListPaginationQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = [ - "events" -], -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" - }, - { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" - }, - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" - } - ], - "kind": "Fragment", - "metadata": { - "connection": [ - { - "count": null, - "cursor": null, - "direction": "bidirectional", - "path": (v0/*: any*/) - } - ], - "refetch": { - "connection": { - "forward": { - "count": "first", - "cursor": "after" - }, - "backward": { - "count": "last", - "cursor": "before" - }, - "path": (v0/*: any*/) - }, - "fragmentPathInResult": [ - "node" - ], - "operation": SCIMEventListPaginationQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "SCIMEventListFragment", - "selections": [ - { - "alias": "events", - "args": null, - "concreteType": "SCIMEventConnection", - "kind": "LinkedField", - "name": "__SCIMEventListFragment_events_connection", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMEventEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMEvent", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "SCIMEventListItemFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "type": "SCIMConfiguration", - "abstractKey": null -}; -})(); - -(node as any).hash = "ae2f90b93285c48be6ae1c3f458f3a6e"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SCIMEventListItemFragment.graphql.ts b/apps/console/src/__generated__/iam/SCIMEventListItemFragment.graphql.ts deleted file mode 100644 index 206629420..000000000 --- a/apps/console/src/__generated__/iam/SCIMEventListItemFragment.graphql.ts +++ /dev/null @@ -1,90 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type SCIMEventListItemFragment$data = { - readonly createdAt: string; - readonly errorMessage: string | null | undefined; - readonly ipAddress: string; - readonly method: string; - readonly path: string; - readonly statusCode: number; - readonly userName: string; - readonly " $fragmentType": "SCIMEventListItemFragment"; -}; -export type SCIMEventListItemFragment$key = { - readonly " $data"?: SCIMEventListItemFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"SCIMEventListItemFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "SCIMEventListItemFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "method", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "path", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "statusCode", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "errorMessage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ipAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "userName", - "storageKey": null - } - ], - "type": "SCIMEvent", - "abstractKey": null -}; - -(node as any).hash = "9df2e986643ab90589ebc6e4631cde24"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SCIMEventListPaginationQuery.graphql.ts b/apps/console/src/__generated__/iam/SCIMEventListPaginationQuery.graphql.ts deleted file mode 100644 index 102604807..000000000 --- a/apps/console/src/__generated__/iam/SCIMEventListPaginationQuery.graphql.ts +++ /dev/null @@ -1,318 +0,0 @@ -/** - * @generated SignedSource<<08f3ffe97dd35388d5ce01977170773b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type SCIMEventListPaginationQuery$variables = { - after?: string | null | undefined; - before?: string | null | undefined; - first?: number | null | undefined; - id: string; - last?: number | null | undefined; -}; -export type SCIMEventListPaginationQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"SCIMEventListFragment">; - } | null | undefined; -}; -export type SCIMEventListPaginationQuery = { - response: SCIMEventListPaginationQuery$data; - variables: SCIMEventListPaginationQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "after" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "before" -}, -v2 = { - "defaultValue": 20, - "kind": "LocalArgument", - "name": "first" -}, -v3 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" -}, -v4 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "last" -}, -v5 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v6 = [ - { - "kind": "Variable", - "name": "after", - "variableName": "after" - }, - { - "kind": "Variable", - "name": "before", - "variableName": "before" - }, - { - "kind": "Variable", - "name": "first", - "variableName": "first" - }, - { - "kind": "Variable", - "name": "last", - "variableName": "last" - } -], -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v3/*: any*/), - (v4/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "SCIMEventListPaginationQuery", - "selections": [ - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": (v6/*: any*/), - "kind": "FragmentSpread", - "name": "SCIMEventListFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v3/*: any*/) - ], - "kind": "Operation", - "name": "SCIMEventListPaginationQuery", - "selections": [ - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v7/*: any*/), - (v8/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": (v6/*: any*/), - "concreteType": "SCIMEventConnection", - "kind": "LinkedField", - "name": "events", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMEventEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMEvent", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v8/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "method", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "path", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "statusCode", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "errorMessage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ipAddress", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "userName", - "storageKey": null - }, - (v7/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v6/*: any*/), - "filters": null, - "handle": "connection", - "key": "SCIMEventListFragment_events", - "kind": "LinkedHandle", - "name": "events" - } - ], - "type": "SCIMConfiguration", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "5e80fcd5f3479d5b6bce65b59364d3f7", - "id": null, - "metadata": {}, - "name": "SCIMEventListPaginationQuery", - "operationKind": "query", - "text": "query SCIMEventListPaginationQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...SCIMEventListFragment_pbnwq\n id\n }\n}\n\nfragment SCIMEventListFragment_pbnwq on SCIMConfiguration {\n events(first: $first, after: $after, last: $last, before: $before) {\n edges {\n node {\n id\n ...SCIMEventListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment SCIMEventListItemFragment on SCIMEvent {\n method\n path\n statusCode\n errorMessage\n ipAddress\n createdAt\n userName\n}\n" - } -}; -})(); - -(node as any).hash = "ae2f90b93285c48be6ae1c3f458f3a6e"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SCIMSettingsPageCreateSCIMConfigurationMutation.graphql.ts b/apps/console/src/__generated__/iam/SCIMSettingsPageCreateSCIMConfigurationMutation.graphql.ts deleted file mode 100644 index 3d5775009..000000000 --- a/apps/console/src/__generated__/iam/SCIMSettingsPageCreateSCIMConfigurationMutation.graphql.ts +++ /dev/null @@ -1,120 +0,0 @@ -/** - * @generated SignedSource<<4b9c832eb09c31751c1da609cda983ba>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type CreateSCIMConfigurationInput = { - connectorId?: string | null | undefined; - organizationId: string; -}; -export type SCIMSettingsPageCreateSCIMConfigurationMutation$variables = { - input: CreateSCIMConfigurationInput; -}; -export type SCIMSettingsPageCreateSCIMConfigurationMutation$data = { - readonly createSCIMConfiguration: { - readonly scimBridge: { - readonly id: string; - } | null | undefined; - readonly scimConfiguration: { - readonly id: string; - }; - } | null | undefined; -}; -export type SCIMSettingsPageCreateSCIMConfigurationMutation = { - response: SCIMSettingsPageCreateSCIMConfigurationMutation$data; - variables: SCIMSettingsPageCreateSCIMConfigurationMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } -], -v2 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "CreateSCIMConfigurationPayload", - "kind": "LinkedField", - "name": "createSCIMConfiguration", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMConfiguration", - "kind": "LinkedField", - "name": "scimConfiguration", - "plural": false, - "selections": (v1/*: any*/), - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "SCIMBridge", - "kind": "LinkedField", - "name": "scimBridge", - "plural": false, - "selections": (v1/*: any*/), - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SCIMSettingsPageCreateSCIMConfigurationMutation", - "selections": (v2/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SCIMSettingsPageCreateSCIMConfigurationMutation", - "selections": (v2/*: any*/) - }, - "params": { - "cacheID": "281c9e39b96e2e56c3f4379f8dd8dc30", - "id": null, - "metadata": {}, - "name": "SCIMSettingsPageCreateSCIMConfigurationMutation", - "operationKind": "mutation", - "text": "mutation SCIMSettingsPageCreateSCIMConfigurationMutation(\n $input: CreateSCIMConfigurationInput!\n) {\n createSCIMConfiguration(input: $input) {\n scimConfiguration {\n id\n }\n scimBridge {\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "841dfdb5ce8a226c7e683090c75951f0"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SCIMSettingsPageQuery.graphql.ts b/apps/console/src/__generated__/iam/SCIMSettingsPageQuery.graphql.ts deleted file mode 100644 index ad78974fa..000000000 --- a/apps/console/src/__generated__/iam/SCIMSettingsPageQuery.graphql.ts +++ /dev/null @@ -1,407 +0,0 @@ -/** - * @generated SignedSource<<164d2e51d3c593d5effe16958d2d8f0e>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type SCIMSettingsPageQuery$variables = { - organizationId: string; -}; -export type SCIMSettingsPageQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly id: string; - readonly scimConfiguration: { - readonly bridge: { - readonly id: string; - } | null | undefined; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"SCIMEventListFragment">; - } | null | undefined; - readonly " $fragmentSpreads": FragmentRefs<"ConnectorListFragment" | "SCIMConfigurationFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; -}; -export type SCIMSettingsPageQuery = { - response: SCIMSettingsPageQuery$data; - variables: SCIMSettingsPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null -}, -v5 = [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SCIMSettingsPageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "SCIMConfiguration", - "kind": "LinkedField", - "name": "scimConfiguration", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "SCIMBridge", - "kind": "LinkedField", - "name": "bridge", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "SCIMEventListFragment" - } - ], - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "SCIMConfigurationFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "ConnectorListFragment" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SCIMSettingsPageQuery", - "selections": [ - { - "alias": "organization", - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v2/*: any*/), - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMConfiguration", - "kind": "LinkedField", - "name": "scimConfiguration", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "SCIMBridge", - "kind": "LinkedField", - "name": "bridge", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "excludedUserNames", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Connector", - "kind": "LinkedField", - "name": "connector", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": (v5/*: any*/), - "concreteType": "SCIMEventConnection", - "kind": "LinkedField", - "name": "events", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMEventEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "SCIMEvent", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "method", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "path", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "statusCode", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "errorMessage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "ipAddress", - "storageKey": null - }, - (v4/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "userName", - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasPreviousPage", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "startCursor", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "events(first:20)" - }, - { - "alias": null, - "args": (v5/*: any*/), - "filters": null, - "handle": "connection", - "key": "SCIMEventListFragment_events", - "kind": "LinkedHandle", - "name": "events" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endpointUrl", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": "canCreateSCIMConfiguration", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:scim-configuration:create" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:scim-configuration:create\")" - }, - { - "alias": "canDeleteSCIMConfiguration", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:scim-configuration:delete" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:scim-configuration:delete\")" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "b98c546a2c8fc038c121c21f3b495a7d", - "id": null, - "metadata": {}, - "name": "SCIMSettingsPageQuery", - "operationKind": "query", - "text": "query SCIMSettingsPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n scimConfiguration {\n id\n bridge {\n id\n }\n ...SCIMEventListFragment\n }\n ...SCIMConfigurationFragment\n ...ConnectorListFragment\n }\n id\n }\n}\n\nfragment ConnectorListFragment on Organization {\n scimConfiguration {\n ...GoogleWorkspaceConnectorFragment\n id\n }\n}\n\nfragment GoogleWorkspaceConnectorFragment on SCIMConfiguration {\n id\n bridge {\n id\n excludedUserNames\n connector {\n id\n createdAt\n }\n }\n}\n\nfragment SCIMConfigurationFragment on Organization {\n canCreateSCIMConfiguration: permission(action: \"iam:scim-configuration:create\")\n canDeleteSCIMConfiguration: permission(action: \"iam:scim-configuration:delete\")\n scimConfiguration {\n id\n endpointUrl\n bridge {\n id\n }\n }\n}\n\nfragment SCIMEventListFragment on SCIMConfiguration {\n events(first: 20) {\n edges {\n node {\n id\n ...SCIMEventListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment SCIMEventListItemFragment on SCIMEvent {\n method\n path\n statusCode\n errorMessage\n ipAddress\n createdAt\n userName\n}\n" - } -}; -})(); - -(node as any).hash = "9db69676a14d2a6c4062fee58ce728e1"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SSOSignInPageQuery.graphql.ts b/apps/console/src/__generated__/iam/SSOSignInPageQuery.graphql.ts deleted file mode 100644 index f001d4cda..000000000 --- a/apps/console/src/__generated__/iam/SSOSignInPageQuery.graphql.ts +++ /dev/null @@ -1,83 +0,0 @@ -/** - * @generated SignedSource<<44e9b1516c9cd0ae8419f326791e09e1>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { Result } from "relay-runtime"; -export type SSOSignInPageQuery$variables = { - email: string; -}; -export type SSOSignInPageQuery$data = { - readonly ssoLoginURL: Result; -}; -export type SSOSignInPageQuery = { - response: SSOSignInPageQuery$data; - variables: SSOSignInPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "email" - } -], -v1 = { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "email", - "variableName": "email" - } - ], - "kind": "ScalarField", - "name": "ssoLoginURL", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SSOSignInPageQuery", - "selections": [ - { - "kind": "CatchField", - "field": (v1/*: any*/), - "to": "RESULT" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SSOSignInPageQuery", - "selections": [ - (v1/*: any*/) - ] - }, - "params": { - "cacheID": "9b7766bbd9f160dc8bbcf34705641486", - "id": null, - "metadata": {}, - "name": "SSOSignInPageQuery", - "operationKind": "query", - "text": "query SSOSignInPageQuery(\n $email: EmailAddr!\n) {\n ssoLoginURL(email: $email)\n}\n" - } -}; -})(); - -(node as any).hash = "5749c48e67881c71bbc99a9e1120767f"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SidebarFragment.graphql.ts b/apps/console/src/__generated__/iam/SidebarFragment.graphql.ts deleted file mode 100644 index 4b4030d26..000000000 --- a/apps/console/src/__generated__/iam/SidebarFragment.graphql.ts +++ /dev/null @@ -1,314 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type SidebarFragment$data = { - readonly canGetTrustCenter: boolean; - readonly canListAssets: boolean; - readonly canListAudits: boolean; - readonly canListContinualImprovements: boolean; - readonly canListData: boolean; - readonly canListDocuments: boolean; - readonly canListFrameworks: boolean; - readonly canListMeasures: boolean; - readonly canListMeetings: boolean; - readonly canListMembers: boolean; - readonly canListNonconformities: boolean; - readonly canListObligations: boolean; - readonly canListProcessingActivities: boolean; - readonly canListRightsRequests: boolean; - readonly canListRisks: boolean; - readonly canListSnapshots: boolean; - readonly canListStatesOfApplicability: boolean; - readonly canListTasks: boolean; - readonly canListVendors: boolean; - readonly canUpdateOrganization: boolean; - readonly " $fragmentType": "SidebarFragment"; -}; -export type SidebarFragment$key = { - readonly " $data"?: SidebarFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"SidebarFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "SidebarFragment", - "selections": [ - { - "alias": "canListMeetings", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:list\")" - }, - { - "alias": "canListTasks", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:list\")" - }, - { - "alias": "canListMeasures", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:list\")" - }, - { - "alias": "canListRisks", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:list\")" - }, - { - "alias": "canListFrameworks", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:list\")" - }, - { - "alias": "canListMembers", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership:list\")" - }, - { - "alias": "canListVendors", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:list\")" - }, - { - "alias": "canListDocuments", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:list\")" - }, - { - "alias": "canListAssets", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:list\")" - }, - { - "alias": "canListData", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:list\")" - }, - { - "alias": "canListAudits", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:list\")" - }, - { - "alias": "canListNonconformities", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:list\")" - }, - { - "alias": "canListObligations", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:list\")" - }, - { - "alias": "canListContinualImprovements", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:list\")" - }, - { - "alias": "canListProcessingActivities", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:list\")" - }, - { - "alias": "canListRightsRequests", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:list\")" - }, - { - "alias": "canListSnapshots", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:snapshot:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:snapshot:list\")" - }, - { - "alias": "canGetTrustCenter", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:get" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:get\")" - }, - { - "alias": "canUpdateOrganization", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:organization:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:organization:update\")" - }, - { - "alias": "canListStatesOfApplicability", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:state-of-applicability:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:state-of-applicability:list\")" - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "73a632deb40d322a670cd72fd855723f"; - -export default node; diff --git a/apps/console/src/__generated__/iam/SignUpPageMutation.graphql.ts b/apps/console/src/__generated__/iam/SignUpPageMutation.graphql.ts deleted file mode 100644 index a7ff47518..000000000 --- a/apps/console/src/__generated__/iam/SignUpPageMutation.graphql.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * @generated SignedSource<<450f7808784d82c4ee82e21f72c57465>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SignUpInput = { - email: string; - fullName: string; - password: string; -}; -export type SignUpPageMutation$variables = { - input: SignUpInput; -}; -export type SignUpPageMutation$data = { - readonly signUp: { - readonly identity: { - readonly id: string; - } | null | undefined; - } | null | undefined; -}; -export type SignUpPageMutation = { - response: SignUpPageMutation$data; - variables: SignUpPageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "SignUpPayload", - "kind": "LinkedField", - "name": "signUp", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "identity", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "SignUpPageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "SignUpPageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "266f2f87a14a72bb166348ae9142a885", - "id": null, - "metadata": {}, - "name": "SignUpPageMutation", - "operationKind": "mutation", - "text": "mutation SignUpPageMutation(\n $input: SignUpInput!\n) {\n signUp(input: $input) {\n identity {\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b8ec213c1c715d5a7fbfa5896047785d"; - -export default node; diff --git a/apps/console/src/__generated__/iam/VerifyEmailPageMutation.graphql.ts b/apps/console/src/__generated__/iam/VerifyEmailPageMutation.graphql.ts deleted file mode 100644 index 673687d56..000000000 --- a/apps/console/src/__generated__/iam/VerifyEmailPageMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<793a4f7b17b13f925362dab5dfb590e2>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type VerifyEmailInput = { - token: string; -}; -export type VerifyEmailPageMutation$variables = { - input: VerifyEmailInput; -}; -export type VerifyEmailPageMutation$data = { - readonly verifyEmail: { - readonly success: boolean; - } | null | undefined; -}; -export type VerifyEmailPageMutation = { - response: VerifyEmailPageMutation$data; - variables: VerifyEmailPageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "VerifyEmailPayload", - "kind": "LinkedField", - "name": "verifyEmail", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "success", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "VerifyEmailPageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "VerifyEmailPageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "c1ea88cfa9a90fed624ad996bbbec2ef", - "id": null, - "metadata": {}, - "name": "VerifyEmailPageMutation", - "operationKind": "mutation", - "text": "mutation VerifyEmailPageMutation(\n $input: VerifyEmailInput!\n) {\n verifyEmail(input: $input) {\n success\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3e4812eb6e13aa35849bd929b26268b0"; - -export default node; diff --git a/apps/console/src/__generated__/iam/ViewerDropdownFragment.graphql.ts b/apps/console/src/__generated__/iam/ViewerDropdownFragment.graphql.ts deleted file mode 100644 index b9419ec90..000000000 --- a/apps/console/src/__generated__/iam/ViewerDropdownFragment.graphql.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ViewerDropdownFragment$data = { - readonly canListAPIKeys: boolean; - readonly email: string; - readonly fullName: string; - readonly " $fragmentType": "ViewerDropdownFragment"; -}; -export type ViewerDropdownFragment$key = { - readonly " $data"?: ViewerDropdownFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"ViewerDropdownFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "ViewerDropdownFragment", - "selections": [ - { - "alias": "canListAPIKeys", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:personal-api-key:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:personal-api-key:list\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - } - ], - "type": "Identity", - "abstractKey": null -}; - -(node as any).hash = "e96fe96007f4d949403890fda7180cba"; - -export default node; diff --git a/apps/console/src/__generated__/iam/ViewerDropdownSignOutMutation.graphql.ts b/apps/console/src/__generated__/iam/ViewerDropdownSignOutMutation.graphql.ts deleted file mode 100644 index fbad14306..000000000 --- a/apps/console/src/__generated__/iam/ViewerDropdownSignOutMutation.graphql.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * @generated SignedSource<<93ee9324d2ee86042f9f46eda06d0770>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ViewerDropdownSignOutMutation$variables = Record; -export type ViewerDropdownSignOutMutation$data = { - readonly signOut: { - readonly success: boolean; - } | null | undefined; -}; -export type ViewerDropdownSignOutMutation = { - response: ViewerDropdownSignOutMutation$data; - variables: ViewerDropdownSignOutMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "alias": null, - "args": null, - "concreteType": "SignOutPayload", - "kind": "LinkedField", - "name": "signOut", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "success", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "ViewerDropdownSignOutMutation", - "selections": (v0/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "ViewerDropdownSignOutMutation", - "selections": (v0/*: any*/) - }, - "params": { - "cacheID": "9252bcfdab3361ae1690a713e2765de3", - "id": null, - "metadata": {}, - "name": "ViewerDropdownSignOutMutation", - "operationKind": "mutation", - "text": "mutation ViewerDropdownSignOutMutation {\n signOut {\n success\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a08b0de590063055e1ccbacd1d443a0f"; - -export default node; diff --git a/apps/console/src/__generated__/iam/ViewerLayoutQuery.graphql.ts b/apps/console/src/__generated__/iam/ViewerLayoutQuery.graphql.ts deleted file mode 100644 index 6c6bacbc8..000000000 --- a/apps/console/src/__generated__/iam/ViewerLayoutQuery.graphql.ts +++ /dev/null @@ -1,120 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ViewerLayoutQuery$variables = Record; -export type ViewerLayoutQuery$data = { - readonly viewer: { - readonly " $fragmentSpreads": FragmentRefs<"ViewerDropdownFragment">; - }; -}; -export type ViewerLayoutQuery = { - response: ViewerLayoutQuery$data; - variables: ViewerLayoutQuery$variables; -}; - -const node: ConcreteRequest = { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "ViewerLayoutQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "ViewerDropdownFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "ViewerLayoutQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "alias": "canListAPIKeys", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:personal-api-key:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:personal-api-key:list\")" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "faf40277113685d45576f1b466123787", - "id": null, - "metadata": {}, - "name": "ViewerLayoutQuery", - "operationKind": "query", - "text": "query ViewerLayoutQuery {\n viewer {\n ...ViewerDropdownFragment\n id\n }\n}\n\nfragment ViewerDropdownFragment on Identity {\n canListAPIKeys: permission(action: \"iam:personal-api-key:list\")\n email\n fullName\n}\n" - } -}; - -(node as any).hash = "48e174d981dbc9198a56aac976a20b21"; - -export default node; diff --git a/apps/console/src/__generated__/iam/ViewerMembershipDropdownFragment.graphql.ts b/apps/console/src/__generated__/iam/ViewerMembershipDropdownFragment.graphql.ts deleted file mode 100644 index deaecea0c..000000000 --- a/apps/console/src/__generated__/iam/ViewerMembershipDropdownFragment.graphql.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ViewerMembershipDropdownFragment$data = { - readonly viewer: { - readonly fullName: string; - readonly identity: { - readonly canListAPIKeys: boolean; - readonly email: string; - }; - }; - readonly " $fragmentType": "ViewerMembershipDropdownFragment"; -}; -export type ViewerMembershipDropdownFragment$key = { - readonly " $data"?: ViewerMembershipDropdownFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"ViewerMembershipDropdownFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "ViewerMembershipDropdownFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "identity", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": "canListAPIKeys", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:personal-api-key:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:personal-api-key:list\")" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Organization", - "abstractKey": null -}; - -(node as any).hash = "fd5df361935e3e2bf4eaac1b2b4c5528"; - -export default node; diff --git a/apps/console/src/__generated__/iam/ViewerMembershipDropdownSignOutMutation.graphql.ts b/apps/console/src/__generated__/iam/ViewerMembershipDropdownSignOutMutation.graphql.ts deleted file mode 100644 index 90cb746e2..000000000 --- a/apps/console/src/__generated__/iam/ViewerMembershipDropdownSignOutMutation.graphql.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * @generated SignedSource<<5d6fc3e9d931dccebc57b68196c98bed>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ViewerMembershipDropdownSignOutMutation$variables = Record; -export type ViewerMembershipDropdownSignOutMutation$data = { - readonly signOut: { - readonly success: boolean; - } | null | undefined; -}; -export type ViewerMembershipDropdownSignOutMutation = { - response: ViewerMembershipDropdownSignOutMutation$data; - variables: ViewerMembershipDropdownSignOutMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "alias": null, - "args": null, - "concreteType": "SignOutPayload", - "kind": "LinkedField", - "name": "signOut", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "success", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "ViewerMembershipDropdownSignOutMutation", - "selections": (v0/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "ViewerMembershipDropdownSignOutMutation", - "selections": (v0/*: any*/) - }, - "params": { - "cacheID": "da5fc8d24f8fac6617c4e4de8d9a629d", - "id": null, - "metadata": {}, - "name": "ViewerMembershipDropdownSignOutMutation", - "operationKind": "mutation", - "text": "mutation ViewerMembershipDropdownSignOutMutation {\n signOut {\n success\n }\n}\n" - } -}; -})(); - -(node as any).hash = "856ff5d4affd9ad27871ab5f4fef3b1e"; - -export default node; diff --git a/apps/console/src/__generated__/iam/ViewerMembershipLayoutQuery.graphql.ts b/apps/console/src/__generated__/iam/ViewerMembershipLayoutQuery.graphql.ts deleted file mode 100644 index b42bcd1f3..000000000 --- a/apps/console/src/__generated__/iam/ViewerMembershipLayoutQuery.graphql.ts +++ /dev/null @@ -1,585 +0,0 @@ -/** - * @generated SignedSource<<6bcbc60c4f6fe80fc82937a5f53ee509>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type MembershipRole = "ADMIN" | "AUDITOR" | "EMPLOYEE" | "OWNER" | "VIEWER"; -export type ViewerMembershipLayoutQuery$variables = { - hideSidebar: boolean; - organizationId: string; -}; -export type ViewerMembershipLayoutQuery$data = { - readonly organization: { - readonly __typename: "Organization"; - readonly viewer: { - readonly fullName: string; - readonly membership: { - readonly role: MembershipRole; - }; - }; - readonly " $fragmentSpreads": FragmentRefs<"MembershipsDropdown_organizationFragment" | "SidebarFragment" | "ViewerMembershipDropdownFragment">; - } | { - // This will never be '%other', but we need some - // value in case none of the concrete values match. - readonly __typename: "%other"; - }; - readonly viewer: { - readonly email: string; - }; -}; -export type ViewerMembershipLayoutQuery = { - response: ViewerMembershipLayoutQuery$data; - variables: ViewerMembershipLayoutQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "hideSidebar" -}, -v1 = { - "defaultValue": null, - "kind": "LocalArgument", - "name": "organizationId" -}, -v2 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "organizationId" - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fullName", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "role", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "kind": "Fragment", - "metadata": null, - "name": "ViewerMembershipLayoutQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": "organization", - "args": (v2/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "MembershipsDropdown_organizationFragment" - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "ViewerMembershipDropdownFragment" - }, - { - "condition": "hideSidebar", - "kind": "Condition", - "passingValue": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "SidebarFragment" - } - ] - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - (v5/*: any*/) - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Organization", - "abstractKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - }, - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - (v6/*: any*/) - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "kind": "Operation", - "name": "ViewerMembershipLayoutQuery", - "selections": [ - { - "alias": "organization", - "args": (v2/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Profile", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - (v4/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "identity", - "plural": false, - "selections": [ - (v6/*: any*/), - { - "alias": "canListAPIKeys", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:personal-api-key:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:personal-api-key:list\")" - }, - (v7/*: any*/) - ], - "storageKey": null - }, - (v7/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Membership", - "kind": "LinkedField", - "name": "membership", - "plural": false, - "selections": [ - (v5/*: any*/), - (v7/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "condition": "hideSidebar", - "kind": "Condition", - "passingValue": false, - "selections": [ - { - "alias": "canListMeetings", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:meeting:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:meeting:list\")" - }, - { - "alias": "canListTasks", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:task:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:task:list\")" - }, - { - "alias": "canListMeasures", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:measure:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:measure:list\")" - }, - { - "alias": "canListRisks", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:risk:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:risk:list\")" - }, - { - "alias": "canListFrameworks", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:framework:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:framework:list\")" - }, - { - "alias": "canListMembers", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:membership:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:membership:list\")" - }, - { - "alias": "canListVendors", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:vendor:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:vendor:list\")" - }, - { - "alias": "canListDocuments", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:document:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:document:list\")" - }, - { - "alias": "canListAssets", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:asset:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:asset:list\")" - }, - { - "alias": "canListData", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:datum:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:datum:list\")" - }, - { - "alias": "canListAudits", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:audit:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:audit:list\")" - }, - { - "alias": "canListNonconformities", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:nonconformity:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:nonconformity:list\")" - }, - { - "alias": "canListObligations", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:obligation:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:obligation:list\")" - }, - { - "alias": "canListContinualImprovements", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:continual-improvement:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:continual-improvement:list\")" - }, - { - "alias": "canListProcessingActivities", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:processing-activity:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:processing-activity:list\")" - }, - { - "alias": "canListRightsRequests", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:rights-request:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:rights-request:list\")" - }, - { - "alias": "canListSnapshots", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:snapshot:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:snapshot:list\")" - }, - { - "alias": "canGetTrustCenter", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:trust-center:get" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:trust-center:get\")" - }, - { - "alias": "canUpdateOrganization", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "iam:organization:update" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"iam:organization:update\")" - }, - { - "alias": "canListStatesOfApplicability", - "args": [ - { - "kind": "Literal", - "name": "action", - "value": "core:state-of-applicability:list" - } - ], - "kind": "ScalarField", - "name": "permission", - "storageKey": "permission(action:\"core:state-of-applicability:list\")" - } - ] - } - ], - "type": "Organization", - "abstractKey": null - }, - (v7/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - (v6/*: any*/), - (v7/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "4f0eae19e470f2dd64ac495cb2612a19", - "id": null, - "metadata": {}, - "name": "ViewerMembershipLayoutQuery", - "operationKind": "query", - "text": "query ViewerMembershipLayoutQuery(\n $organizationId: ID!\n $hideSidebar: Boolean!\n) {\n organization: node(id: $organizationId) {\n __typename\n ... on Organization {\n ...MembershipsDropdown_organizationFragment\n ...ViewerMembershipDropdownFragment\n ...SidebarFragment @skip(if: $hideSidebar)\n viewer {\n fullName\n membership {\n role\n id\n }\n id\n }\n }\n id\n }\n viewer {\n email\n id\n }\n}\n\nfragment MembershipsDropdown_organizationFragment on Organization {\n name\n}\n\nfragment SidebarFragment on Organization {\n canListMeetings: permission(action: \"core:meeting:list\")\n canListTasks: permission(action: \"core:task:list\")\n canListMeasures: permission(action: \"core:measure:list\")\n canListRisks: permission(action: \"core:risk:list\")\n canListFrameworks: permission(action: \"core:framework:list\")\n canListMembers: permission(action: \"iam:membership:list\")\n canListVendors: permission(action: \"core:vendor:list\")\n canListDocuments: permission(action: \"core:document:list\")\n canListAssets: permission(action: \"core:asset:list\")\n canListData: permission(action: \"core:datum:list\")\n canListAudits: permission(action: \"core:audit:list\")\n canListNonconformities: permission(action: \"core:nonconformity:list\")\n canListObligations: permission(action: \"core:obligation:list\")\n canListContinualImprovements: permission(action: \"core:continual-improvement:list\")\n canListProcessingActivities: permission(action: \"core:processing-activity:list\")\n canListRightsRequests: permission(action: \"core:rights-request:list\")\n canListSnapshots: permission(action: \"core:snapshot:list\")\n canGetTrustCenter: permission(action: \"core:trust-center:get\")\n canUpdateOrganization: permission(action: \"iam:organization:update\")\n canListStatesOfApplicability: permission(action: \"core:state-of-applicability:list\")\n}\n\nfragment ViewerMembershipDropdownFragment on Organization {\n viewer {\n fullName\n identity {\n email\n canListAPIKeys: permission(action: \"iam:personal-api-key:list\")\n id\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "00ae11d725a9aacd5389ef00381faf98"; - -export default node; diff --git a/apps/trust/src/components/__generated__/AuditRowDownloadMutation.graphql.ts b/apps/trust/src/components/__generated__/AuditRowDownloadMutation.graphql.ts deleted file mode 100644 index 9853f3d2d..000000000 --- a/apps/trust/src/components/__generated__/AuditRowDownloadMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ExportReportPDFInput = { - reportId: string; -}; -export type AuditRowDownloadMutation$variables = { - input: ExportReportPDFInput; -}; -export type AuditRowDownloadMutation$data = { - readonly exportReportPDF: { - readonly data: string; - }; -}; -export type AuditRowDownloadMutation = { - response: AuditRowDownloadMutation$data; - variables: AuditRowDownloadMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ExportReportPDFPayload", - "kind": "LinkedField", - "name": "exportReportPDF", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "data", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AuditRowDownloadMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AuditRowDownloadMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "79de6a9f2755587818dac20ec392b8e7", - "id": null, - "metadata": {}, - "name": "AuditRowDownloadMutation", - "operationKind": "mutation", - "text": "mutation AuditRowDownloadMutation(\n $input: ExportReportPDFInput!\n) {\n exportReportPDF(input: $input) {\n data\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e3d7ceb7a0da979dad83b1b8289e192e"; - -export default node; diff --git a/apps/trust/src/components/__generated__/AuditRowFragment.graphql.ts b/apps/trust/src/components/__generated__/AuditRowFragment.graphql.ts deleted file mode 100644 index 265082710..000000000 --- a/apps/trust/src/components/__generated__/AuditRowFragment.graphql.ts +++ /dev/null @@ -1,140 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -import { FragmentRefs } from "relay-runtime"; -export type AuditRowFragment$data = { - readonly framework: { - readonly darkLogoURL: string | null | undefined; - readonly id: string; - readonly lightLogoURL: string | null | undefined; - readonly name: string; - }; - readonly name: string | null | undefined; - readonly report: { - readonly access: { - readonly id: string; - readonly status: DocumentAccessStatus; - } | null | undefined; - readonly filename: string; - readonly id: string; - readonly isUserAuthorized: boolean; - } | null | undefined; - readonly " $fragmentType": "AuditRowFragment"; -}; -export type AuditRowFragment$key = { - readonly " $data"?: AuditRowFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"AuditRowFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "AuditRowFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "filename", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "isUserAuthorized", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v1/*: any*/), - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Audit", - "abstractKey": null -}; -})(); - -(node as any).hash = "1e3e89368594b05e0926b5ee8bc7c0b5"; - -export default node; diff --git a/apps/trust/src/components/__generated__/AuditRow_requestAccessMutation.graphql.ts b/apps/trust/src/components/__generated__/AuditRow_requestAccessMutation.graphql.ts deleted file mode 100644 index 516d222f7..000000000 --- a/apps/trust/src/components/__generated__/AuditRow_requestAccessMutation.graphql.ts +++ /dev/null @@ -1,179 +0,0 @@ -/** - * @generated SignedSource<<5439a269fe5c79f6d90f2421fdacb090>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -export type RequestReportAccessInput = { - reportId: string; -}; -export type AuditRow_requestAccessMutation$variables = { - input: RequestReportAccessInput; -}; -export type AuditRow_requestAccessMutation$data = { - readonly requestReportAccess: { - readonly audit: { - readonly report: { - readonly access: { - readonly id: string; - readonly status: DocumentAccessStatus; - } | null | undefined; - } | null | undefined; - } | null | undefined; - }; -}; -export type AuditRow_requestAccessMutation = { - response: AuditRow_requestAccessMutation$data; - variables: AuditRow_requestAccessMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "AuditRow_requestAccessMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestReportAccessPayload", - "kind": "LinkedField", - "name": "requestReportAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "AuditRow_requestAccessMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestReportAccessPayload", - "kind": "LinkedField", - "name": "requestReportAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "8d33e98c3b907ff4ddf6d08a0d9e7ff8", - "id": null, - "metadata": {}, - "name": "AuditRow_requestAccessMutation", - "operationKind": "mutation", - "text": "mutation AuditRow_requestAccessMutation(\n $input: RequestReportAccessInput!\n) {\n requestReportAccess(input: $input) {\n audit {\n report {\n access {\n id\n status\n }\n id\n }\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "01e09978f688128c89698e9a0877fa37"; - -export default node; diff --git a/apps/trust/src/components/__generated__/DocumentRowDownloadMutation.graphql.ts b/apps/trust/src/components/__generated__/DocumentRowDownloadMutation.graphql.ts deleted file mode 100644 index aff494c9f..000000000 --- a/apps/trust/src/components/__generated__/DocumentRowDownloadMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ExportDocumentPDFInput = { - documentId: string; -}; -export type DocumentRowDownloadMutation$variables = { - input: ExportDocumentPDFInput; -}; -export type DocumentRowDownloadMutation$data = { - readonly exportDocumentPDF: { - readonly data: string; - }; -}; -export type DocumentRowDownloadMutation = { - response: DocumentRowDownloadMutation$data; - variables: DocumentRowDownloadMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ExportDocumentPDFPayload", - "kind": "LinkedField", - "name": "exportDocumentPDF", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "data", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentRowDownloadMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentRowDownloadMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "126681ef86a7a6aa5c831bdf53b7cf3e", - "id": null, - "metadata": {}, - "name": "DocumentRowDownloadMutation", - "operationKind": "mutation", - "text": "mutation DocumentRowDownloadMutation(\n $input: ExportDocumentPDFInput!\n) {\n exportDocumentPDF(input: $input) {\n data\n }\n}\n" - } -}; -})(); - -(node as any).hash = "8e48a364a7f9cf3d3a51a9db60ff792f"; - -export default node; diff --git a/apps/trust/src/components/__generated__/DocumentRowFragment.graphql.ts b/apps/trust/src/components/__generated__/DocumentRowFragment.graphql.ts deleted file mode 100644 index 6ba93b5ad..000000000 --- a/apps/trust/src/components/__generated__/DocumentRowFragment.graphql.ts +++ /dev/null @@ -1,85 +0,0 @@ -/** - * @generated SignedSource<<5698d403c8907dad78a4070f710f46b4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -import { FragmentRefs } from "relay-runtime"; -export type DocumentRowFragment$data = { - readonly access: { - readonly id: string; - readonly status: DocumentAccessStatus; - } | null | undefined; - readonly id: string; - readonly isUserAuthorized: boolean; - readonly title: string; - readonly " $fragmentType": "DocumentRowFragment"; -}; -export type DocumentRowFragment$key = { - readonly " $data"?: DocumentRowFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"DocumentRowFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "DocumentRowFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "isUserAuthorized", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Document", - "abstractKey": null -}; -})(); - -(node as any).hash = "6839ab4ad70d571dcce4e74583723244"; - -export default node; diff --git a/apps/trust/src/components/__generated__/DocumentRow_requestAccessMutation.graphql.ts b/apps/trust/src/components/__generated__/DocumentRow_requestAccessMutation.graphql.ts deleted file mode 100644 index 735f8e580..000000000 --- a/apps/trust/src/components/__generated__/DocumentRow_requestAccessMutation.graphql.ts +++ /dev/null @@ -1,154 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -export type RequestDocumentAccessInput = { - documentId: string; -}; -export type DocumentRow_requestAccessMutation$variables = { - input: RequestDocumentAccessInput; -}; -export type DocumentRow_requestAccessMutation$data = { - readonly requestDocumentAccess: { - readonly document: { - readonly access: { - readonly id: string; - readonly status: DocumentAccessStatus; - } | null | undefined; - } | null | undefined; - }; -}; -export type DocumentRow_requestAccessMutation = { - response: DocumentRow_requestAccessMutation$data; - variables: DocumentRow_requestAccessMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "DocumentRow_requestAccessMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestDocumentAccessPayload", - "kind": "LinkedField", - "name": "requestDocumentAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "DocumentRow_requestAccessMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestDocumentAccessPayload", - "kind": "LinkedField", - "name": "requestDocumentAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "0bd652390e5413f5ba2c66af0796cbc9", - "id": null, - "metadata": {}, - "name": "DocumentRow_requestAccessMutation", - "operationKind": "mutation", - "text": "mutation DocumentRow_requestAccessMutation(\n $input: RequestDocumentAccessInput!\n) {\n requestDocumentAccess(input: $input) {\n document {\n access {\n id\n status\n }\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "bc8897aa5c4a7d7fb05604f8aa3b8491"; - -export default node; diff --git a/apps/trust/src/components/__generated__/FrameworkBadgeFragment.graphql.ts b/apps/trust/src/components/__generated__/FrameworkBadgeFragment.graphql.ts deleted file mode 100644 index d429f19dc..000000000 --- a/apps/trust/src/components/__generated__/FrameworkBadgeFragment.graphql.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type FrameworkBadgeFragment$data = { - readonly darkLogoURL: string | null | undefined; - readonly id: string; - readonly lightLogoURL: string | null | undefined; - readonly name: string; - readonly " $fragmentType": "FrameworkBadgeFragment"; -}; -export type FrameworkBadgeFragment$key = { - readonly " $data"?: FrameworkBadgeFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"FrameworkBadgeFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "FrameworkBadgeFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - } - ], - "type": "Framework", - "abstractKey": null -}; - -(node as any).hash = "cdfaf9a4a0e2cb667a5ef8d3e7db1f99"; - -export default node; diff --git a/apps/trust/src/components/__generated__/OrganizationSidebar_requestAllAccessesMutation.graphql.ts b/apps/trust/src/components/__generated__/OrganizationSidebar_requestAllAccessesMutation.graphql.ts deleted file mode 100644 index 5c1aa93dd..000000000 --- a/apps/trust/src/components/__generated__/OrganizationSidebar_requestAllAccessesMutation.graphql.ts +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type OrganizationSidebar_requestAllAccessesMutation$variables = Record; -export type OrganizationSidebar_requestAllAccessesMutation$data = { - readonly requestAllAccesses: { - readonly trustCenterAccess: { - readonly id: string; - }; - }; -}; -export type OrganizationSidebar_requestAllAccessesMutation = { - response: OrganizationSidebar_requestAllAccessesMutation$data; - variables: OrganizationSidebar_requestAllAccessesMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "alias": null, - "args": null, - "concreteType": "RequestAccessesPayload", - "kind": "LinkedField", - "name": "requestAllAccesses", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterAccess", - "kind": "LinkedField", - "name": "trustCenterAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "OrganizationSidebar_requestAllAccessesMutation", - "selections": (v0/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "OrganizationSidebar_requestAllAccessesMutation", - "selections": (v0/*: any*/) - }, - "params": { - "cacheID": "a298b2a1c2f62300ae5056743d2c2ec3", - "id": null, - "metadata": {}, - "name": "OrganizationSidebar_requestAllAccessesMutation", - "operationKind": "mutation", - "text": "mutation OrganizationSidebar_requestAllAccessesMutation {\n requestAllAccesses {\n trustCenterAccess {\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "a22225757510c4dd097e99dcd3c066a6"; - -export default node; diff --git a/apps/trust/src/components/__generated__/OrganizationSidebar_subscribeToMailingListMutation.graphql.ts b/apps/trust/src/components/__generated__/OrganizationSidebar_subscribeToMailingListMutation.graphql.ts deleted file mode 100644 index 8a0b3ba96..000000000 --- a/apps/trust/src/components/__generated__/OrganizationSidebar_subscribeToMailingListMutation.graphql.ts +++ /dev/null @@ -1,111 +0,0 @@ -/** - * @generated SignedSource<<80e6e1e3558d126472e7affb5b7b6cbd>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type OrganizationSidebar_subscribeToMailingListMutation$variables = Record; -export type OrganizationSidebar_subscribeToMailingListMutation$data = { - readonly subscribeToMailingList: { - readonly subscription: { - readonly createdAt: any; - readonly email: any; - readonly id: string; - readonly updatedAt: any; - }; - }; -}; -export type OrganizationSidebar_subscribeToMailingListMutation = { - response: OrganizationSidebar_subscribeToMailingListMutation$data; - variables: OrganizationSidebar_subscribeToMailingListMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "alias": null, - "args": null, - "concreteType": "SubscribeToMailingListPayload", - "kind": "LinkedField", - "name": "subscribeToMailingList", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListSubscriber", - "kind": "LinkedField", - "name": "subscription", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "OrganizationSidebar_subscribeToMailingListMutation", - "selections": (v0/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "OrganizationSidebar_subscribeToMailingListMutation", - "selections": (v0/*: any*/) - }, - "params": { - "cacheID": "07d99ad1645ea1e8752678fd9b5e6748", - "id": null, - "metadata": {}, - "name": "OrganizationSidebar_subscribeToMailingListMutation", - "operationKind": "mutation", - "text": "mutation OrganizationSidebar_subscribeToMailingListMutation {\n subscribeToMailingList {\n subscription {\n id\n email\n createdAt\n updatedAt\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "80d3e85f4a55a7de7b066959f4a457c8"; - -export default node; diff --git a/apps/trust/src/components/__generated__/OrganizationSidebar_unsubscribeFromMailingListMutation.graphql.ts b/apps/trust/src/components/__generated__/OrganizationSidebar_unsubscribeFromMailingListMutation.graphql.ts deleted file mode 100644 index 3e84561d4..000000000 --- a/apps/trust/src/components/__generated__/OrganizationSidebar_unsubscribeFromMailingListMutation.graphql.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * @generated SignedSource<<8c1211258e4480dcaa6fdf14364cb49b>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type OrganizationSidebar_unsubscribeFromMailingListMutation$variables = Record; -export type OrganizationSidebar_unsubscribeFromMailingListMutation$data = { - readonly unsubscribeFromMailingList: { - readonly deletedMailingListSubscriberId: string | null | undefined; - }; -}; -export type OrganizationSidebar_unsubscribeFromMailingListMutation = { - response: OrganizationSidebar_unsubscribeFromMailingListMutation$data; - variables: OrganizationSidebar_unsubscribeFromMailingListMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "deletedMailingListSubscriberId", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "OrganizationSidebar_unsubscribeFromMailingListMutation", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "UnsubscribeFromMailingListPayload", - "kind": "LinkedField", - "name": "unsubscribeFromMailingList", - "plural": false, - "selections": [ - (v0/*: any*/) - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "OrganizationSidebar_unsubscribeFromMailingListMutation", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "UnsubscribeFromMailingListPayload", - "kind": "LinkedField", - "name": "unsubscribeFromMailingList", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "filters": null, - "handle": "deleteRecord", - "key": "", - "kind": "ScalarHandle", - "name": "deletedMailingListSubscriberId" - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "1c6706f94348a5426c1e57d5fe99ab82", - "id": null, - "metadata": {}, - "name": "OrganizationSidebar_unsubscribeFromMailingListMutation", - "operationKind": "mutation", - "text": "mutation OrganizationSidebar_unsubscribeFromMailingListMutation {\n unsubscribeFromMailingList {\n deletedMailingListSubscriberId\n }\n}\n" - } -}; -})(); - -(node as any).hash = "7f3949f63166fc3bd23838a44fb94993"; - -export default node; diff --git a/apps/trust/src/components/__generated__/TrustCenterFileRowDownloadMutation.graphql.ts b/apps/trust/src/components/__generated__/TrustCenterFileRowDownloadMutation.graphql.ts deleted file mode 100644 index 9cb0a3d09..000000000 --- a/apps/trust/src/components/__generated__/TrustCenterFileRowDownloadMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<8d608da0bcff489887f71f6e69f1bfe3>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ExportTrustCenterFileInput = { - trustCenterFileId: string; -}; -export type TrustCenterFileRowDownloadMutation$variables = { - input: ExportTrustCenterFileInput; -}; -export type TrustCenterFileRowDownloadMutation$data = { - readonly exportTrustCenterFile: { - readonly data: string; - }; -}; -export type TrustCenterFileRowDownloadMutation = { - response: TrustCenterFileRowDownloadMutation$data; - variables: TrustCenterFileRowDownloadMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "ExportTrustCenterFilePayload", - "kind": "LinkedField", - "name": "exportTrustCenterFile", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "data", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterFileRowDownloadMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "TrustCenterFileRowDownloadMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "8a97b9e7ac44deea6da6e79f1d0c662f", - "id": null, - "metadata": {}, - "name": "TrustCenterFileRowDownloadMutation", - "operationKind": "mutation", - "text": "mutation TrustCenterFileRowDownloadMutation(\n $input: ExportTrustCenterFileInput!\n) {\n exportTrustCenterFile(input: $input) {\n data\n }\n}\n" - } -}; -})(); - -(node as any).hash = "e6d74e96e929cf1aa79711b8315a8b85"; - -export default node; diff --git a/apps/trust/src/components/__generated__/TrustCenterFileRowFragment.graphql.ts b/apps/trust/src/components/__generated__/TrustCenterFileRowFragment.graphql.ts deleted file mode 100644 index 6079c4077..000000000 --- a/apps/trust/src/components/__generated__/TrustCenterFileRowFragment.graphql.ts +++ /dev/null @@ -1,85 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type DocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -import { FragmentRefs } from "relay-runtime"; -export type TrustCenterFileRowFragment$data = { - readonly access: { - readonly id: string; - readonly status: DocumentAccessStatus; - } | null | undefined; - readonly id: string; - readonly isUserAuthorized: boolean; - readonly name: string; - readonly " $fragmentType": "TrustCenterFileRowFragment"; -}; -export type TrustCenterFileRowFragment$key = { - readonly " $data"?: TrustCenterFileRowFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"TrustCenterFileRowFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterFileRowFragment", - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "isUserAuthorized", - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "TrustCenterFile", - "abstractKey": null -}; -})(); - -(node as any).hash = "98e5e399ab6d45c22cd85d663cfb3748"; - -export default node; diff --git a/apps/trust/src/components/__generated__/TrustCenterFileRow_requestAccessMutation.graphql.ts b/apps/trust/src/components/__generated__/TrustCenterFileRow_requestAccessMutation.graphql.ts deleted file mode 100644 index ea9f36f54..000000000 --- a/apps/trust/src/components/__generated__/TrustCenterFileRow_requestAccessMutation.graphql.ts +++ /dev/null @@ -1,154 +0,0 @@ -/** - * @generated SignedSource<<19d9adae53e45d4399358c9307928265>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -export type RequestTrustCenterFileAccessInput = { - trustCenterFileId: string; -}; -export type TrustCenterFileRow_requestAccessMutation$variables = { - input: RequestTrustCenterFileAccessInput; -}; -export type TrustCenterFileRow_requestAccessMutation$data = { - readonly requestTrustCenterFileAccess: { - readonly file: { - readonly access: { - readonly id: string; - readonly status: DocumentAccessStatus; - } | null | undefined; - } | null | undefined; - }; -}; -export type TrustCenterFileRow_requestAccessMutation = { - response: TrustCenterFileRow_requestAccessMutation$data; - variables: TrustCenterFileRow_requestAccessMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "TrustCenterFileRow_requestAccessMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestFileAccessPayload", - "kind": "LinkedField", - "name": "requestTrustCenterFileAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "TrustCenterFileRow_requestAccessMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestFileAccessPayload", - "kind": "LinkedField", - "name": "requestTrustCenterFileAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "f96fd0464a34ad565cc7b6bb2e13308f", - "id": null, - "metadata": {}, - "name": "TrustCenterFileRow_requestAccessMutation", - "operationKind": "mutation", - "text": "mutation TrustCenterFileRow_requestAccessMutation(\n $input: RequestTrustCenterFileAccessInput!\n) {\n requestTrustCenterFileAccess(input: $input) {\n file {\n access {\n id\n status\n }\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "1a9f7ac6860d4bca88d04d73f9c6020d"; - -export default node; diff --git a/apps/trust/src/components/__generated__/VendorRowFragment.graphql.ts b/apps/trust/src/components/__generated__/VendorRowFragment.graphql.ts deleted file mode 100644 index 2d5488b3f..000000000 --- a/apps/trust/src/components/__generated__/VendorRowFragment.graphql.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @generated SignedSource<<93ab4de166540c22f47f2cf5fe51c009>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type CountryCode = "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "EU" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW"; -import { FragmentRefs } from "relay-runtime"; -export type VendorRowFragment$data = { - readonly countries: ReadonlyArray; - readonly description: string | null | undefined; - readonly name: string; - readonly websiteUrl: string | null | undefined; - readonly " $fragmentType": "VendorRowFragment"; -}; -export type VendorRowFragment$key = { - readonly " $data"?: VendorRowFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"VendorRowFragment">; -}; - -const node: ReaderFragment = { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "VendorRowFragment", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "countries", - "storageKey": null - } - ], - "type": "Vendor", - "abstractKey": null -}; - -(node as any).hash = "deaa52007cf14fbc93ca5a82f6dbba42"; - -export default node; diff --git a/apps/trust/src/hooks/__generated__/useRequestAccessCallback_allMutation.graphql.ts b/apps/trust/src/hooks/__generated__/useRequestAccessCallback_allMutation.graphql.ts deleted file mode 100644 index 48a372025..000000000 --- a/apps/trust/src/hooks/__generated__/useRequestAccessCallback_allMutation.graphql.ts +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @generated SignedSource<<71c76287347e6e819c625f5072b4fae4>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type useRequestAccessCallback_allMutation$variables = Record; -export type useRequestAccessCallback_allMutation$data = { - readonly requestAllAccesses: { - readonly trustCenterAccess: { - readonly id: string; - }; - }; -}; -export type useRequestAccessCallback_allMutation = { - response: useRequestAccessCallback_allMutation$data; - variables: useRequestAccessCallback_allMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "alias": null, - "args": null, - "concreteType": "RequestAccessesPayload", - "kind": "LinkedField", - "name": "requestAllAccesses", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterAccess", - "kind": "LinkedField", - "name": "trustCenterAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "useRequestAccessCallback_allMutation", - "selections": (v0/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "useRequestAccessCallback_allMutation", - "selections": (v0/*: any*/) - }, - "params": { - "cacheID": "dd26f85da037142a278f934f06c8c0a0", - "id": null, - "metadata": {}, - "name": "useRequestAccessCallback_allMutation", - "operationKind": "mutation", - "text": "mutation useRequestAccessCallback_allMutation {\n requestAllAccesses {\n trustCenterAccess {\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "7f32c58dba23b76a39950d08c25eaaa7"; - -export default node; diff --git a/apps/trust/src/hooks/__generated__/useRequestAccessCallback_documentMutation.graphql.ts b/apps/trust/src/hooks/__generated__/useRequestAccessCallback_documentMutation.graphql.ts deleted file mode 100644 index 689ed606d..000000000 --- a/apps/trust/src/hooks/__generated__/useRequestAccessCallback_documentMutation.graphql.ts +++ /dev/null @@ -1,154 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -export type RequestDocumentAccessInput = { - documentId: string; -}; -export type useRequestAccessCallback_documentMutation$variables = { - input: RequestDocumentAccessInput; -}; -export type useRequestAccessCallback_documentMutation$data = { - readonly requestDocumentAccess: { - readonly document: { - readonly access: { - readonly id: string; - readonly status: DocumentAccessStatus; - } | null | undefined; - } | null | undefined; - }; -}; -export type useRequestAccessCallback_documentMutation = { - response: useRequestAccessCallback_documentMutation$data; - variables: useRequestAccessCallback_documentMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "useRequestAccessCallback_documentMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestDocumentAccessPayload", - "kind": "LinkedField", - "name": "requestDocumentAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "useRequestAccessCallback_documentMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestDocumentAccessPayload", - "kind": "LinkedField", - "name": "requestDocumentAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "document", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "e3153093fd3da3f95ac5bc98a09163a7", - "id": null, - "metadata": {}, - "name": "useRequestAccessCallback_documentMutation", - "operationKind": "mutation", - "text": "mutation useRequestAccessCallback_documentMutation(\n $input: RequestDocumentAccessInput!\n) {\n requestDocumentAccess(input: $input) {\n document {\n access {\n id\n status\n }\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "afc533a5d5b764f81f6bc7632f1614ff"; - -export default node; diff --git a/apps/trust/src/hooks/__generated__/useRequestAccessCallback_fileMutation.graphql.ts b/apps/trust/src/hooks/__generated__/useRequestAccessCallback_fileMutation.graphql.ts deleted file mode 100644 index 4e50d240a..000000000 --- a/apps/trust/src/hooks/__generated__/useRequestAccessCallback_fileMutation.graphql.ts +++ /dev/null @@ -1,154 +0,0 @@ -/** - * @generated SignedSource<<688bb06b7534c867b9427a6fcbb52d57>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -export type RequestTrustCenterFileAccessInput = { - trustCenterFileId: string; -}; -export type useRequestAccessCallback_fileMutation$variables = { - input: RequestTrustCenterFileAccessInput; -}; -export type useRequestAccessCallback_fileMutation$data = { - readonly requestTrustCenterFileAccess: { - readonly file: { - readonly access: { - readonly id: string; - readonly status: DocumentAccessStatus; - } | null | undefined; - } | null | undefined; - }; -}; -export type useRequestAccessCallback_fileMutation = { - response: useRequestAccessCallback_fileMutation$data; - variables: useRequestAccessCallback_fileMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "useRequestAccessCallback_fileMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestFileAccessPayload", - "kind": "LinkedField", - "name": "requestTrustCenterFileAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "useRequestAccessCallback_fileMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestFileAccessPayload", - "kind": "LinkedField", - "name": "requestTrustCenterFileAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "file", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "0c66e592bdb92aa92fbaef21c8133e17", - "id": null, - "metadata": {}, - "name": "useRequestAccessCallback_fileMutation", - "operationKind": "mutation", - "text": "mutation useRequestAccessCallback_fileMutation(\n $input: RequestTrustCenterFileAccessInput!\n) {\n requestTrustCenterFileAccess(input: $input) {\n file {\n access {\n id\n status\n }\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0dbe835b29f81d086b94cfecb8fc832f"; - -export default node; diff --git a/apps/trust/src/hooks/__generated__/useRequestAccessCallback_reportMutation.graphql.ts b/apps/trust/src/hooks/__generated__/useRequestAccessCallback_reportMutation.graphql.ts deleted file mode 100644 index 0c793890d..000000000 --- a/apps/trust/src/hooks/__generated__/useRequestAccessCallback_reportMutation.graphql.ts +++ /dev/null @@ -1,179 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type DocumentAccessStatus = "GRANTED" | "REJECTED" | "REQUESTED" | "REVOKED"; -export type RequestReportAccessInput = { - reportId: string; -}; -export type useRequestAccessCallback_reportMutation$variables = { - input: RequestReportAccessInput; -}; -export type useRequestAccessCallback_reportMutation$data = { - readonly requestReportAccess: { - readonly audit: { - readonly report: { - readonly access: { - readonly id: string; - readonly status: DocumentAccessStatus; - } | null | undefined; - } | null | undefined; - } | null | undefined; - }; -}; -export type useRequestAccessCallback_reportMutation = { - response: useRequestAccessCallback_reportMutation$data; - variables: useRequestAccessCallback_reportMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "useRequestAccessCallback_reportMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestReportAccessPayload", - "kind": "LinkedField", - "name": "requestReportAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v3/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "useRequestAccessCallback_reportMutation", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "RequestReportAccessPayload", - "kind": "LinkedField", - "name": "requestReportAccess", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "audit", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v3/*: any*/), - (v2/*: any*/) - ], - "storageKey": null - }, - (v2/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "82539e9ad64aa2bd9e5bd2cac4597f23", - "id": null, - "metadata": {}, - "name": "useRequestAccessCallback_reportMutation", - "operationKind": "mutation", - "text": "mutation useRequestAccessCallback_reportMutation(\n $input: RequestReportAccessInput!\n) {\n requestReportAccess(input: $input) {\n audit {\n report {\n access {\n id\n status\n }\n id\n }\n id\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "6b07d19642a0227f76f81bb64dac82ea"; - -export default node; diff --git a/apps/trust/src/pages/__generated__/NDAPageAcceptElectronicSignatureMutation.graphql.ts b/apps/trust/src/pages/__generated__/NDAPageAcceptElectronicSignatureMutation.graphql.ts deleted file mode 100644 index ad2bb2a07..000000000 --- a/apps/trust/src/pages/__generated__/NDAPageAcceptElectronicSignatureMutation.graphql.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @generated SignedSource<<319d6df7ac6b5452d4a74501a35cec43>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ElectronicSignatureStatus = "ACCEPTED" | "COMPLETED" | "FAILED" | "PENDING" | "PROCESSING"; -export type AcceptElectronicSignatureInput = { - signatureId: string; -}; -export type NDAPageAcceptElectronicSignatureMutation$variables = { - input: AcceptElectronicSignatureInput; -}; -export type NDAPageAcceptElectronicSignatureMutation$data = { - readonly acceptElectronicSignature: { - readonly signature: { - readonly id: string; - readonly status: ElectronicSignatureStatus; - }; - } | null | undefined; -}; -export type NDAPageAcceptElectronicSignatureMutation = { - response: NDAPageAcceptElectronicSignatureMutation$data; - variables: NDAPageAcceptElectronicSignatureMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "AcceptElectronicSignaturePayload", - "kind": "LinkedField", - "name": "acceptElectronicSignature", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "signature", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "NDAPageAcceptElectronicSignatureMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "NDAPageAcceptElectronicSignatureMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "db0c219a7133025b56252836d7f1a85d", - "id": null, - "metadata": {}, - "name": "NDAPageAcceptElectronicSignatureMutation", - "operationKind": "mutation", - "text": "mutation NDAPageAcceptElectronicSignatureMutation(\n $input: AcceptElectronicSignatureInput!\n) {\n acceptElectronicSignature(input: $input) {\n signature {\n id\n status\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "b4ab543bd58878bb4968de6ea8b7c448"; - -export default node; diff --git a/apps/trust/src/pages/__generated__/NDAPageFragment.graphql.ts b/apps/trust/src/pages/__generated__/NDAPageFragment.graphql.ts deleted file mode 100644 index b545091fe..000000000 --- a/apps/trust/src/pages/__generated__/NDAPageFragment.graphql.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type ElectronicSignatureStatus = "ACCEPTED" | "COMPLETED" | "FAILED" | "PENDING" | "PROCESSING"; -import { FragmentRefs } from "relay-runtime"; -export type NDAPageFragment$data = { - readonly id: string; - readonly nonDisclosureAgreement: { - readonly viewerSignature: { - readonly consentText: string; - readonly id: string; - readonly lastError: string | null | undefined; - readonly status: ElectronicSignatureStatus; - } | null | undefined; - }; - readonly " $fragmentType": "NDAPageFragment"; -}; -export type NDAPageFragment$key = { - readonly " $data"?: NDAPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"NDAPageFragment">; -}; - -import NDAPageRefetchQuery_graphql from './NDAPageRefetchQuery.graphql'; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": { - "refetch": { - "connection": null, - "fragmentPathInResult": [ - "node" - ], - "operation": NDAPageRefetchQuery_graphql, - "identifierInfo": { - "identifierField": "id", - "identifierQueryVariableName": "id" - } - } - }, - "name": "NDAPageFragment", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "NonDisclosureAgreement", - "kind": "LinkedField", - "name": "nonDisclosureAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "viewerSignature", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "consentText", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastError", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - "action": "THROW" - }, - (v0/*: any*/) - ], - "type": "TrustCenter", - "abstractKey": null -}; -})(); - -(node as any).hash = "37f6ca36229313e341797c28d789035d"; - -export default node; diff --git a/apps/trust/src/pages/__generated__/NDAPageQuery.graphql.ts b/apps/trust/src/pages/__generated__/NDAPageQuery.graphql.ts deleted file mode 100644 index d20439f48..000000000 --- a/apps/trust/src/pages/__generated__/NDAPageQuery.graphql.ts +++ /dev/null @@ -1,242 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ElectronicSignatureStatus = "ACCEPTED" | "COMPLETED" | "FAILED" | "PENDING" | "PROCESSING"; -export type NDAPageQuery$variables = Record; -export type NDAPageQuery$data = { - readonly currentTrustCenter: { - readonly nonDisclosureAgreement: { - readonly fileName: string; - readonly fileUrl: string; - readonly viewerSignature: { - readonly status: ElectronicSignatureStatus; - } | null | undefined; - } | null | undefined; - readonly organization: { - readonly name: string; - }; - readonly " $fragmentSpreads": FragmentRefs<"NDAPageFragment">; - }; - readonly viewer: { - readonly id: string; - } | null | undefined; -}; -export type NDAPageQuery = { - response: NDAPageQuery$data; - variables: NDAPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - (v0/*: any*/) - ], - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "NDAPageQuery", - "selections": [ - (v1/*: any*/), - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "NonDisclosureAgreement", - "kind": "LinkedField", - "name": "nonDisclosureAgreement", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "viewerSignature", - "plural": false, - "selections": [ - (v5/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "NDAPageFragment" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "NDAPageQuery", - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v2/*: any*/), - (v0/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "NonDisclosureAgreement", - "kind": "LinkedField", - "name": "nonDisclosureAgreement", - "plural": false, - "selections": [ - (v3/*: any*/), - (v4/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "viewerSignature", - "plural": false, - "selections": [ - (v5/*: any*/), - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "consentText", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastError", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - }, - (v0/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "3fd076a45e4a2eae4a56fc34aeafa815", - "id": null, - "metadata": {}, - "name": "NDAPageQuery", - "operationKind": "query", - "text": "query NDAPageQuery {\n viewer {\n id\n }\n currentTrustCenter {\n organization {\n name\n id\n }\n nonDisclosureAgreement {\n fileName\n fileUrl\n viewerSignature {\n status\n id\n }\n }\n ...NDAPageFragment\n id\n }\n}\n\nfragment NDAPageFragment on TrustCenter {\n nonDisclosureAgreement {\n viewerSignature {\n id\n status\n consentText\n lastError\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "048b0469d90d78f35ce7ed1bfe7edbde"; - -export default node; diff --git a/apps/trust/src/pages/__generated__/NDAPageRecordSigningEventMutation.graphql.ts b/apps/trust/src/pages/__generated__/NDAPageRecordSigningEventMutation.graphql.ts deleted file mode 100644 index 4756f8f47..000000000 --- a/apps/trust/src/pages/__generated__/NDAPageRecordSigningEventMutation.graphql.ts +++ /dev/null @@ -1,94 +0,0 @@ -/** - * @generated SignedSource<<58dbdcc5fc52f0dab9eb156856522fd1>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ElectronicSignatureEventType = "CERTIFICATE_GENERATED" | "CONSENT_GIVEN" | "DOCUMENT_VIEWED" | "FULL_NAME_TYPED" | "PROCESSING_ERROR" | "SEAL_COMPUTED" | "SIGNATURE_ACCEPTED" | "SIGNATURE_COMPLETED" | "TIMESTAMP_REQUESTED"; -export type RecordSigningEventInput = { - eventType: ElectronicSignatureEventType; - signatureId: string; -}; -export type NDAPageRecordSigningEventMutation$variables = { - input: RecordSigningEventInput; -}; -export type NDAPageRecordSigningEventMutation$data = { - readonly recordSigningEvent: { - readonly success: boolean; - } | null | undefined; -}; -export type NDAPageRecordSigningEventMutation = { - response: NDAPageRecordSigningEventMutation$data; - variables: NDAPageRecordSigningEventMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "RecordSigningEventPayload", - "kind": "LinkedField", - "name": "recordSigningEvent", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "success", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "NDAPageRecordSigningEventMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "NDAPageRecordSigningEventMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "72aa3c3ec642d5bbb317a6e2a65703de", - "id": null, - "metadata": {}, - "name": "NDAPageRecordSigningEventMutation", - "operationKind": "mutation", - "text": "mutation NDAPageRecordSigningEventMutation(\n $input: RecordSigningEventInput!\n) {\n recordSigningEvent(input: $input) {\n success\n }\n}\n" - } -}; -})(); - -(node as any).hash = "ec40eb438c6d6b20f31974e099535887"; - -export default node; diff --git a/apps/trust/src/pages/__generated__/NDAPageRefetchQuery.graphql.ts b/apps/trust/src/pages/__generated__/NDAPageRefetchQuery.graphql.ts deleted file mode 100644 index 67d45ca30..000000000 --- a/apps/trust/src/pages/__generated__/NDAPageRefetchQuery.graphql.ts +++ /dev/null @@ -1,166 +0,0 @@ -/** - * @generated SignedSource<<2b8f94503fe145fb141255a7ba79ddac>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type NDAPageRefetchQuery$variables = { - id: string; -}; -export type NDAPageRefetchQuery$data = { - readonly node: { - readonly " $fragmentSpreads": FragmentRefs<"NDAPageFragment">; - }; -}; -export type NDAPageRefetchQuery = { - response: NDAPageRefetchQuery$data; - variables: NDAPageRefetchQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "id" - } -], -v1 = [ - { - "kind": "Variable", - "name": "id", - "variableName": "id" - } -], -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "NDAPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "NDAPageFragment" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "NDAPageRefetchQuery", - "selections": [ - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": null, - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - }, - (v2/*: any*/), - { - "kind": "InlineFragment", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "NonDisclosureAgreement", - "kind": "LinkedField", - "name": "nonDisclosureAgreement", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "viewerSignature", - "plural": false, - "selections": [ - (v2/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "consentText", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lastError", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "type": "TrustCenter", - "abstractKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "fcf227efd02b14a0cb1599e4a5f944bd", - "id": null, - "metadata": {}, - "name": "NDAPageRefetchQuery", - "operationKind": "query", - "text": "query NDAPageRefetchQuery(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...NDAPageFragment\n id\n }\n}\n\nfragment NDAPageFragment on TrustCenter {\n nonDisclosureAgreement {\n viewerSignature {\n id\n status\n consentText\n lastError\n }\n }\n id\n}\n" - } -}; -})(); - -(node as any).hash = "37f6ca36229313e341797c28d789035d"; - -export default node; diff --git a/apps/trust/src/pages/__generated__/OverviewPageFragment.graphql.ts b/apps/trust/src/pages/__generated__/OverviewPageFragment.graphql.ts deleted file mode 100644 index fae2a66bf..000000000 --- a/apps/trust/src/pages/__generated__/OverviewPageFragment.graphql.ts +++ /dev/null @@ -1,294 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ReaderFragment } from 'relay-runtime'; -export type CountryCode = "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "EU" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -import { FragmentRefs } from "relay-runtime"; -export type OverviewPageFragment$data = { - readonly documents: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly documentType: DocumentType; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentRowFragment">; - }; - }>; - }; - readonly references: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly logoUrl: string; - readonly name: string; - readonly websiteUrl: string; - }; - }>; - }; - readonly trustCenterFiles: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly category: string; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"TrustCenterFileRowFragment">; - }; - }>; - }; - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly countries: ReadonlyArray; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"VendorRowFragment">; - }; - }>; - }; - readonly " $fragmentType": "OverviewPageFragment"; -}; -export type OverviewPageFragment$key = { - readonly " $data"?: OverviewPageFragment$data; - readonly " $fragmentSpreads": FragmentRefs<"OverviewPageFragment">; -}; - -const node: ReaderFragment = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = [ - { - "kind": "Literal", - "name": "first", - "value": 5 - } -]; -return { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "OverviewPageFragment", - "selections": [ - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 14 - } - ], - "concreteType": "TrustCenterReferenceConnection", - "kind": "LinkedField", - "name": "references", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReferenceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReference", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "references(first:14)" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 3 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "countries", - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorRowFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:3)" - }, - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentRowFragment" - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "documents(first:5)" - }, - { - "alias": null, - "args": (v1/*: any*/), - "concreteType": "TrustCenterFileConnection", - "kind": "LinkedField", - "name": "trustCenterFiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - { - "args": null, - "kind": "FragmentSpread", - "name": "TrustCenterFileRowFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "trustCenterFiles(first:5)" - } - ], - "type": "TrustCenter", - "abstractKey": null -}; -})(); - -(node as any).hash = "0f4e9ac02d068ba971bb1f5be5fdaccf"; - -export default node; diff --git a/apps/trust/src/pages/__generated__/UpdatesPageQuery.graphql.ts b/apps/trust/src/pages/__generated__/UpdatesPageQuery.graphql.ts deleted file mode 100644 index 25d6f403b..000000000 --- a/apps/trust/src/pages/__generated__/UpdatesPageQuery.graphql.ts +++ /dev/null @@ -1,146 +0,0 @@ -/** - * @generated SignedSource<<4560049874109fe98528d64249673d23>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdatesPageQuery$variables = Record; -export type UpdatesPageQuery$data = { - readonly currentTrustCenter: { - readonly id: string; - readonly updates: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly body: string; - readonly id: string; - readonly title: string; - readonly updatedAt: any; - }; - }>; - }; - } | null | undefined; -}; -export type UpdatesPageQuery = { - response: UpdatesPageQuery$data; - variables: UpdatesPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } - ], - "concreteType": "MailingListUpdateConnection", - "kind": "LinkedField", - "name": "updates", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListUpdateEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "MailingListUpdate", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "body", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "updates(first:50)" - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "UpdatesPageQuery", - "selections": (v1/*: any*/), - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "UpdatesPageQuery", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "5d323cbbdf9bfec294bb22dd6a6be735", - "id": null, - "metadata": {}, - "name": "UpdatesPageQuery", - "operationKind": "query", - "text": "query UpdatesPageQuery {\n currentTrustCenter {\n id\n updates(first: 50) {\n edges {\n node {\n id\n title\n body\n updatedAt\n }\n }\n }\n }\n}\n" - } -}; -})(); - -(node as any).hash = "5c0e074ce562f24bd841cc750f492988"; - -export default node; diff --git a/apps/trust/src/pages/auth/__generated__/AuthLayoutQuery.graphql.ts b/apps/trust/src/pages/auth/__generated__/AuthLayoutQuery.graphql.ts deleted file mode 100644 index 687ed9cb1..000000000 --- a/apps/trust/src/pages/auth/__generated__/AuthLayoutQuery.graphql.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type AuthLayoutQuery$variables = Record; -export type AuthLayoutQuery$data = { - readonly currentTrustCenter: { - readonly darkLogoFileUrl: string | null | undefined; - readonly logoFileUrl: string | null | undefined; - }; -}; -export type AuthLayoutQuery = { - response: AuthLayoutQuery$data; - variables: AuthLayoutQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoFileUrl", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoFileUrl", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "AuthLayoutQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "AuthLayoutQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - (v0/*: any*/), - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "92bbf193e99aa98673d1926bd1fdc890", - "id": null, - "metadata": {}, - "name": "AuthLayoutQuery", - "operationKind": "query", - "text": "query AuthLayoutQuery {\n currentTrustCenter {\n logoFileUrl\n darkLogoFileUrl\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "d76b10f9b919f4224c4c8b478e66b4f1"; - -export default node; diff --git a/apps/trust/src/pages/auth/__generated__/ConnectPageMutation.graphql.ts b/apps/trust/src/pages/auth/__generated__/ConnectPageMutation.graphql.ts deleted file mode 100644 index d358edd83..000000000 --- a/apps/trust/src/pages/auth/__generated__/ConnectPageMutation.graphql.ts +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @generated SignedSource<<711ecaa392c23004a3bd1dfb24a5751f>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type SendMagicLinkInput = { - continue?: string | null | undefined; - email: any; -}; -export type ConnectPageMutation$variables = { - input: SendMagicLinkInput; -}; -export type ConnectPageMutation$data = { - readonly sendMagicLink: { - readonly success: boolean; - } | null | undefined; -}; -export type ConnectPageMutation = { - response: ConnectPageMutation$data; - variables: ConnectPageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "SendMagicLinkPayload", - "kind": "LinkedField", - "name": "sendMagicLink", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "success", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "ConnectPageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "ConnectPageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "95987f897611118fa771a2e54cb43b66", - "id": null, - "metadata": {}, - "name": "ConnectPageMutation", - "operationKind": "mutation", - "text": "mutation ConnectPageMutation(\n $input: SendMagicLinkInput!\n) {\n sendMagicLink(input: $input) {\n success\n }\n}\n" - } -}; -})(); - -(node as any).hash = "4680fea978582bb020b4613737c14d9a"; - -export default node; diff --git a/apps/trust/src/pages/auth/__generated__/ConnectPageQuery.graphql.ts b/apps/trust/src/pages/auth/__generated__/ConnectPageQuery.graphql.ts deleted file mode 100644 index fcfb86e2f..000000000 --- a/apps/trust/src/pages/auth/__generated__/ConnectPageQuery.graphql.ts +++ /dev/null @@ -1,128 +0,0 @@ -/** - * @generated SignedSource<> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type ConnectPageQuery$variables = Record; -export type ConnectPageQuery$data = { - readonly currentTrustCenter: { - readonly organization: { - readonly name: string; - }; - }; -}; -export type ConnectPageQuery = { - response: ConnectPageQuery$data; - variables: ConnectPageQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "ConnectPageQuery", - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v0/*: any*/) - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "ConnectPageQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v0/*: any*/), - (v1/*: any*/) - ], - "storageKey": null - }, - (v1/*: any*/) - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "c0fceafb8e47a9434fb90040efcac8d7", - "id": null, - "metadata": {}, - "name": "ConnectPageQuery", - "operationKind": "query", - "text": "query ConnectPageQuery {\n currentTrustCenter {\n organization {\n name\n id\n }\n id\n }\n}\n" - } -}; -})(); - -(node as any).hash = "bc5ac3e0b5b3560f9e9240fe79032c6b"; - -export default node; diff --git a/apps/trust/src/pages/auth/__generated__/FullNamePageMutation.graphql.ts b/apps/trust/src/pages/auth/__generated__/FullNamePageMutation.graphql.ts deleted file mode 100644 index 97aa5b84b..000000000 --- a/apps/trust/src/pages/auth/__generated__/FullNamePageMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<7861673355d6d647183c2a4425e9a5b9>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type UpdateFullNameInput = { - fullName: string; -}; -export type FullNamePageMutation$variables = { - input: UpdateFullNameInput; -}; -export type FullNamePageMutation$data = { - readonly updateFullName: { - readonly success: boolean; - } | null | undefined; -}; -export type FullNamePageMutation = { - response: FullNamePageMutation$data; - variables: FullNamePageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "UpdateFullNamePayload", - "kind": "LinkedField", - "name": "updateFullName", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "success", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "FullNamePageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "FullNamePageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "502db67e5bab72aff71fec9a0be0eeaf", - "id": null, - "metadata": {}, - "name": "FullNamePageMutation", - "operationKind": "mutation", - "text": "mutation FullNamePageMutation(\n $input: UpdateFullNameInput!\n) {\n updateFullName(input: $input) {\n success\n }\n}\n" - } -}; -})(); - -(node as any).hash = "3d6352889babf98a37fe06a1bcaead15"; - -export default node; diff --git a/apps/trust/src/pages/auth/__generated__/VerifyMagicLinkPageMutation.graphql.ts b/apps/trust/src/pages/auth/__generated__/VerifyMagicLinkPageMutation.graphql.ts deleted file mode 100644 index 83bb04e3d..000000000 --- a/apps/trust/src/pages/auth/__generated__/VerifyMagicLinkPageMutation.graphql.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @generated SignedSource<<5570f368d6cc3c3be80a32390e12c8f9>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -export type VerifyMagicLinkInput = { - token: string; -}; -export type VerifyMagicLinkPageMutation$variables = { - input: VerifyMagicLinkInput; -}; -export type VerifyMagicLinkPageMutation$data = { - readonly verifyMagicLink: { - readonly continue: string | null | undefined; - } | null | undefined; -}; -export type VerifyMagicLinkPageMutation = { - response: VerifyMagicLinkPageMutation$data; - variables: VerifyMagicLinkPageMutation$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = [ - { - "defaultValue": null, - "kind": "LocalArgument", - "name": "input" - } -], -v1 = [ - { - "alias": null, - "args": [ - { - "kind": "Variable", - "name": "input", - "variableName": "input" - } - ], - "concreteType": "VerifyMagicLinkPayload", - "kind": "LinkedField", - "name": "verifyMagicLink", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "continue", - "storageKey": null - } - ], - "storageKey": null - } -]; -return { - "fragment": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Fragment", - "metadata": null, - "name": "VerifyMagicLinkPageMutation", - "selections": (v1/*: any*/), - "type": "Mutation", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": (v0/*: any*/), - "kind": "Operation", - "name": "VerifyMagicLinkPageMutation", - "selections": (v1/*: any*/) - }, - "params": { - "cacheID": "05d0e504b6f11ad7dd11ed84059a96ac", - "id": null, - "metadata": {}, - "name": "VerifyMagicLinkPageMutation", - "operationKind": "mutation", - "text": "mutation VerifyMagicLinkPageMutation(\n $input: VerifyMagicLinkInput!\n) {\n verifyMagicLink(input: $input) {\n continue\n }\n}\n" - } -}; -})(); - -(node as any).hash = "cc9e7f7886d9d61b95f13c5ba66c41ec"; - -export default node; diff --git a/apps/trust/src/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts b/apps/trust/src/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts deleted file mode 100644 index f173a4ff0..000000000 --- a/apps/trust/src/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts +++ /dev/null @@ -1,351 +0,0 @@ -/** - * @generated SignedSource<<49da700d766fbc346562bd5c8ec01ade>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; -export type TrustGraphCurrentDocumentsQuery$variables = Record; -export type TrustGraphCurrentDocumentsQuery$data = { - readonly currentTrustCenter: { - readonly documents: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly documentType: DocumentType; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"DocumentRowFragment">; - }; - }>; - }; - readonly id: string; - readonly organization: { - readonly name: string; - }; - readonly trustCenterFiles: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly category: string; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"TrustCenterFileRowFragment">; - }; - }>; - }; - } | null | undefined; -}; -export type TrustGraphCurrentDocumentsQuery = { - response: TrustGraphCurrentDocumentsQuery$data; - variables: TrustGraphCurrentDocumentsQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v2 = [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "isUserAuthorized", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "TrustGraphCurrentDocumentsQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v1/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "DocumentRowFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "documents(first:50)" - }, - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "TrustCenterFileConnection", - "kind": "LinkedField", - "name": "trustCenterFiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v4/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "TrustCenterFileRowFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "trustCenterFiles(first:50)" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "TrustGraphCurrentDocumentsQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - (v5/*: any*/), - (v6/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "documents(first:50)" - }, - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "TrustCenterFileConnection", - "kind": "LinkedField", - "name": "trustCenterFiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v4/*: any*/), - (v1/*: any*/), - (v5/*: any*/), - (v6/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "trustCenterFiles(first:50)" - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "479815df76932e5e2a6c57f97efdd029", - "id": null, - "metadata": {}, - "name": "TrustGraphCurrentDocumentsQuery", - "operationKind": "query", - "text": "query TrustGraphCurrentDocumentsQuery {\n currentTrustCenter {\n id\n organization {\n name\n id\n }\n documents(first: 50) {\n edges {\n node {\n id\n documentType\n ...DocumentRowFragment\n }\n }\n }\n trustCenterFiles(first: 50) {\n edges {\n node {\n id\n category\n ...TrustCenterFileRowFragment\n }\n }\n }\n }\n}\n\nfragment DocumentRowFragment on Document {\n id\n title\n isUserAuthorized\n access {\n id\n status\n }\n}\n\nfragment TrustCenterFileRowFragment on TrustCenterFile {\n id\n name\n isUserAuthorized\n access {\n id\n status\n }\n}\n" - } -}; -})(); - -(node as any).hash = "0900835ad8e59a40a2907fb787b936ef"; - -export default node; diff --git a/apps/trust/src/queries/__generated__/TrustGraphCurrentQuery.graphql.ts b/apps/trust/src/queries/__generated__/TrustGraphCurrentQuery.graphql.ts deleted file mode 100644 index ed767828c..000000000 --- a/apps/trust/src/queries/__generated__/TrustGraphCurrentQuery.graphql.ts +++ /dev/null @@ -1,876 +0,0 @@ -/** - * @generated SignedSource<<5b0657c3423f38cbd689de2dae810831>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type ElectronicSignatureStatus = "ACCEPTED" | "COMPLETED" | "FAILED" | "PENDING" | "PROCESSING"; -export type TrustGraphCurrentQuery$variables = Record; -export type TrustGraphCurrentQuery$data = { - readonly currentTrustCenter: { - readonly audits: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"AuditRowFragment">; - }; - }>; - }; - readonly complianceFrameworks: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly framework: { - readonly " $fragmentSpreads": FragmentRefs<"FrameworkBadgeFragment">; - }; - readonly id: string; - }; - }>; - }; - readonly darkLogoFileUrl: string | null | undefined; - readonly externalUrls: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly id: string; - readonly name: string; - readonly url: string; - }; - }>; - }; - readonly id: string; - readonly logoFileUrl: string | null | undefined; - readonly nonDisclosureAgreement: { - readonly fileName: string; - readonly fileUrl: string; - readonly viewerSignature: { - readonly status: ElectronicSignatureStatus; - } | null | undefined; - } | null | undefined; - readonly organization: { - readonly description: string | null | undefined; - readonly email: string | null | undefined; - readonly headquarterAddress: string | null | undefined; - readonly name: string; - readonly websiteUrl: string | null | undefined; - }; - readonly slug: string; - readonly vendorInfo: { - readonly totalCount: number; - }; - readonly viewerSubscription: { - readonly createdAt: any; - readonly email: any; - readonly id: string; - readonly updatedAt: any; - } | null | undefined; - readonly " $fragmentSpreads": FragmentRefs<"OverviewPageFragment">; - }; - readonly viewer: { - readonly id: string; - } | null | undefined; -}; -export type TrustGraphCurrentQuery = { - response: TrustGraphCurrentQuery$data; - variables: TrustGraphCurrentQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "concreteType": "Identity", - "kind": "LinkedField", - "name": "viewer", - "plural": false, - "selections": [ - (v0/*: any*/) - ], - "storageKey": null -}, -v2 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "slug", - "storageKey": null -}, -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "email", - "storageKey": null -}, -v4 = { - "alias": null, - "args": null, - "concreteType": "MailingListSubscriber", - "kind": "LinkedField", - "name": "viewerSubscription", - "plural": false, - "selections": [ - (v0/*: any*/), - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "createdAt", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "updatedAt", - "storageKey": null - } - ], - "storageKey": null -}, -v5 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoFileUrl", - "storageKey": null -}, -v6 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoFileUrl", - "storageKey": null -}, -v7 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileName", - "storageKey": null -}, -v8 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "fileUrl", - "storageKey": null -}, -v9 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "status", - "storageKey": null -}, -v10 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v11 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null -}, -v12 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null -}, -v13 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "headquarterAddress", - "storageKey": null -}, -v14 = { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 20 - } - ], - "concreteType": "ComplianceExternalURLConnection", - "kind": "LinkedField", - "name": "externalUrls", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURLEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceExternalURL", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v10/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "url", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "externalUrls(first:20)" -}, -v15 = { - "alias": "vendorInfo", - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 0 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "totalCount", - "storageKey": null - } - ], - "storageKey": "vendors(first:0)" -}, -v16 = [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } -], -v17 = [ - { - "kind": "Literal", - "name": "first", - "value": 5 - } -], -v18 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "isUserAuthorized", - "storageKey": null -}, -v19 = { - "alias": null, - "args": null, - "concreteType": "DocumentAccess", - "kind": "LinkedField", - "name": "access", - "plural": false, - "selections": [ - (v0/*: any*/), - (v9/*: any*/) - ], - "storageKey": null -}, -v20 = { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - (v0/*: any*/), - (v10/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "lightLogoURL", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "darkLogoURL", - "storageKey": null - } - ], - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "TrustGraphCurrentQuery", - "selections": [ - (v1/*: any*/), - { - "kind": "RequiredField", - "field": { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - (v0/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "NonDisclosureAgreement", - "kind": "LinkedField", - "name": "nonDisclosureAgreement", - "plural": false, - "selections": [ - (v7/*: any*/), - (v8/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "viewerSignature", - "plural": false, - "selections": [ - (v9/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v3/*: any*/), - (v13/*: any*/) - ], - "storageKey": null - }, - (v14/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "OverviewPageFragment" - }, - (v15/*: any*/), - { - "alias": null, - "args": (v16/*: any*/), - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "audits", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "AuditRowFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "audits(first:50)" - }, - { - "alias": null, - "args": (v16/*: any*/), - "concreteType": "ComplianceFrameworkConnection", - "kind": "LinkedField", - "name": "complianceFrameworks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFrameworkEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFramework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Framework", - "kind": "LinkedField", - "name": "framework", - "plural": false, - "selections": [ - { - "args": null, - "kind": "FragmentSpread", - "name": "FrameworkBadgeFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "complianceFrameworks(first:50)" - } - ], - "storageKey": null - }, - "action": "THROW" - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "TrustGraphCurrentQuery", - "selections": [ - (v1/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - (v0/*: any*/), - (v2/*: any*/), - (v4/*: any*/), - (v5/*: any*/), - (v6/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "NonDisclosureAgreement", - "kind": "LinkedField", - "name": "nonDisclosureAgreement", - "plural": false, - "selections": [ - (v7/*: any*/), - (v8/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "ElectronicSignature", - "kind": "LinkedField", - "name": "viewerSignature", - "plural": false, - "selections": [ - (v9/*: any*/), - (v0/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/), - (v3/*: any*/), - (v13/*: any*/), - (v0/*: any*/) - ], - "storageKey": null - }, - (v14/*: any*/), - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 14 - } - ], - "concreteType": "TrustCenterReferenceConnection", - "kind": "LinkedField", - "name": "references", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReferenceEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterReference", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v10/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "logoUrl", - "storageKey": null - }, - (v12/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "references(first:14)" - }, - { - "alias": null, - "args": [ - { - "kind": "Literal", - "name": "first", - "value": 3 - } - ], - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "countries", - "storageKey": null - }, - (v10/*: any*/), - (v11/*: any*/), - (v12/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:3)" - }, - { - "alias": null, - "args": (v17/*: any*/), - "concreteType": "DocumentConnection", - "kind": "LinkedField", - "name": "documents", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "DocumentEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Document", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "title", - "storageKey": null - }, - (v18/*: any*/), - (v19/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "documentType", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "documents(first:5)" - }, - { - "alias": null, - "args": (v17/*: any*/), - "concreteType": "TrustCenterFileConnection", - "kind": "LinkedField", - "name": "trustCenterFiles", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFileEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenterFile", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "category", - "storageKey": null - }, - (v10/*: any*/), - (v18/*: any*/), - (v19/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "trustCenterFiles(first:5)" - }, - (v15/*: any*/), - { - "alias": null, - "args": (v16/*: any*/), - "concreteType": "AuditConnection", - "kind": "LinkedField", - "name": "audits", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "AuditEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Audit", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v10/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Report", - "kind": "LinkedField", - "name": "report", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "filename", - "storageKey": null - }, - (v18/*: any*/), - (v19/*: any*/) - ], - "storageKey": null - }, - (v20/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "audits(first:50)" - }, - { - "alias": null, - "args": (v16/*: any*/), - "concreteType": "ComplianceFrameworkConnection", - "kind": "LinkedField", - "name": "complianceFrameworks", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFrameworkEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "ComplianceFramework", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v20/*: any*/) - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "complianceFrameworks(first:50)" - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "80334c766999a3d299eaf40fd32235b7", - "id": null, - "metadata": {}, - "name": "TrustGraphCurrentQuery", - "operationKind": "query", - "text": "query TrustGraphCurrentQuery {\n viewer {\n id\n }\n currentTrustCenter {\n id\n slug\n viewerSubscription {\n id\n email\n createdAt\n updatedAt\n }\n logoFileUrl\n darkLogoFileUrl\n nonDisclosureAgreement {\n fileName\n fileUrl\n viewerSignature {\n status\n id\n }\n }\n organization {\n name\n description\n websiteUrl\n email\n headquarterAddress\n id\n }\n externalUrls(first: 20) {\n edges {\n node {\n id\n name\n url\n }\n }\n }\n ...OverviewPageFragment\n vendorInfo: vendors(first: 0) {\n totalCount\n }\n audits(first: 50) {\n edges {\n node {\n id\n ...AuditRowFragment\n }\n }\n }\n complianceFrameworks(first: 50) {\n edges {\n node {\n id\n framework {\n ...FrameworkBadgeFragment\n id\n }\n }\n }\n }\n }\n}\n\nfragment AuditRowFragment on Audit {\n name\n report {\n id\n filename\n isUserAuthorized\n access {\n id\n status\n }\n }\n framework {\n id\n name\n lightLogoURL\n darkLogoURL\n }\n}\n\nfragment DocumentRowFragment on Document {\n id\n title\n isUserAuthorized\n access {\n id\n status\n }\n}\n\nfragment FrameworkBadgeFragment on Framework {\n id\n name\n lightLogoURL\n darkLogoURL\n}\n\nfragment OverviewPageFragment on TrustCenter {\n references(first: 14) {\n edges {\n node {\n id\n name\n logoUrl\n websiteUrl\n }\n }\n }\n vendors(first: 3) {\n edges {\n node {\n id\n countries\n ...VendorRowFragment\n }\n }\n }\n documents(first: 5) {\n edges {\n node {\n id\n ...DocumentRowFragment\n documentType\n }\n }\n }\n trustCenterFiles(first: 5) {\n edges {\n node {\n id\n category\n ...TrustCenterFileRowFragment\n }\n }\n }\n}\n\nfragment TrustCenterFileRowFragment on TrustCenterFile {\n id\n name\n isUserAuthorized\n access {\n id\n status\n }\n}\n\nfragment VendorRowFragment on Vendor {\n name\n description\n websiteUrl\n countries\n}\n" - } -}; -})(); - -(node as any).hash = "d38cdfff47370448fff4d9c6c22ad1bd"; - -export default node; diff --git a/apps/trust/src/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql.ts b/apps/trust/src/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql.ts deleted file mode 100644 index 7a7d38d10..000000000 --- a/apps/trust/src/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql.ts +++ /dev/null @@ -1,237 +0,0 @@ -/** - * @generated SignedSource<<185bfb58c14dbcc1d372726d2f435475>> - * @lightSyntaxTransform - * @nogrep - */ - -/* tslint:disable */ -/* eslint-disable */ -// @ts-nocheck - -import { ConcreteRequest } from 'relay-runtime'; -import { FragmentRefs } from "relay-runtime"; -export type CountryCode = "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "EU" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW"; -export type TrustGraphCurrentVendorsQuery$variables = Record; -export type TrustGraphCurrentVendorsQuery$data = { - readonly currentTrustCenter: { - readonly id: string; - readonly organization: { - readonly name: string; - }; - readonly vendors: { - readonly edges: ReadonlyArray<{ - readonly node: { - readonly countries: ReadonlyArray; - readonly id: string; - readonly " $fragmentSpreads": FragmentRefs<"VendorRowFragment">; - }; - }>; - }; - } | null | undefined; -}; -export type TrustGraphCurrentVendorsQuery = { - response: TrustGraphCurrentVendorsQuery$data; - variables: TrustGraphCurrentVendorsQuery$variables; -}; - -const node: ConcreteRequest = (function(){ -var v0 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "id", - "storageKey": null -}, -v1 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "name", - "storageKey": null -}, -v2 = [ - { - "kind": "Literal", - "name": "first", - "value": 50 - } -], -v3 = { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "countries", - "storageKey": null -}; -return { - "fragment": { - "argumentDefinitions": [], - "kind": "Fragment", - "metadata": null, - "name": "TrustGraphCurrentVendorsQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v1/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v3/*: any*/), - { - "args": null, - "kind": "FragmentSpread", - "name": "VendorRowFragment" - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - } - ], - "storageKey": null - } - ], - "type": "Query", - "abstractKey": null - }, - "kind": "Request", - "operation": { - "argumentDefinitions": [], - "kind": "Operation", - "name": "TrustGraphCurrentVendorsQuery", - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TrustCenter", - "kind": "LinkedField", - "name": "currentTrustCenter", - "plural": false, - "selections": [ - (v0/*: any*/), - { - "alias": null, - "args": null, - "concreteType": "Organization", - "kind": "LinkedField", - "name": "organization", - "plural": false, - "selections": [ - (v1/*: any*/), - (v0/*: any*/) - ], - "storageKey": null - }, - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "VendorConnection", - "kind": "LinkedField", - "name": "vendors", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "VendorEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Vendor", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v0/*: any*/), - (v3/*: any*/), - (v1/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "description", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "websiteUrl", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "vendors(first:50)" - } - ], - "storageKey": null - } - ] - }, - "params": { - "cacheID": "cb54aef75c2c7696abeea7ef139d99ce", - "id": null, - "metadata": {}, - "name": "TrustGraphCurrentVendorsQuery", - "operationKind": "query", - "text": "query TrustGraphCurrentVendorsQuery {\n currentTrustCenter {\n id\n organization {\n name\n id\n }\n vendors(first: 50) {\n edges {\n node {\n id\n countries\n ...VendorRowFragment\n }\n }\n }\n }\n}\n\nfragment VendorRowFragment on Vendor {\n name\n description\n websiteUrl\n countries\n}\n" - } -}; -})(); - -(node as any).hash = "313b5f7fecfc47790b866424093aaa63"; - -export default node; diff --git a/pkg/mailman/service.go b/pkg/mailman/service.go index 327b5591e..f5ce08f9e 100644 --- a/pkg/mailman/service.go +++ b/pkg/mailman/service.go @@ -30,13 +30,6 @@ import ( "go.probo.inc/probo/pkg/gid" "go.probo.inc/probo/pkg/mail" "go.probo.inc/probo/pkg/page" - "go.probo.inc/probo/pkg/validator" -) - -const ( - updateTitleMaxLength = 200 - updateBodyMaxLength = 50000 - subscriberFullNameMaxLength = 200 ) const ( @@ -58,56 +51,6 @@ func NewService(pgClient *pg.Client, fm *filemanager.Service, tokenSecret string return &Service{pg: pgClient, fm: fm, tokenSecret: tokenSecret, apiBaseURL: apiBaseURL, bucket: bucket, encryptionKey: encryptionKey, logger: logger} } -type ( - CreateMailingListUpdateRequest struct { - MailingListID gid.GID - Title string - Body string - } - - UpdateMailingListUpdateRequest struct { - ID gid.GID - Title *string - Body *string - } - - CreateSubscriberRequest struct { - MailingListID gid.GID - Email mail.Addr - FullName string - } -) - -func (r *CreateMailingListUpdateRequest) Validate() error { - v := validator.New() - - v.Check(r.MailingListID, "mailing_list_id", validator.Required(), validator.GID(coredata.MailingListEntityType)) - v.Check(r.Title, "title", validator.Required(), validator.SafeText(updateTitleMaxLength)) - v.Check(r.Body, "body", validator.Required(), validator.SafeText(updateBodyMaxLength)) - - return v.Error() -} - -func (r *UpdateMailingListUpdateRequest) Validate() error { - v := validator.New() - - v.Check(r.ID, "id", validator.Required(), validator.GID(coredata.MailingListUpdateEntityType)) - v.Check(r.Title, "title", validator.SafeText(updateTitleMaxLength)) - v.Check(r.Body, "body", validator.SafeText(updateBodyMaxLength)) - - return v.Error() -} - -func (r *CreateSubscriberRequest) Validate() error { - v := validator.New() - - v.Check(r.MailingListID, "mailing_list_id", validator.Required(), validator.GID(coredata.MailingListEntityType)) - v.Check(r.Email, "email", validator.Required(), validator.NotEmpty()) - v.Check(r.FullName, "full_name", validator.Required(), validator.SafeText(subscriberFullNameMaxLength)) - - return v.Error() -} - func (s *Service) UpdateMailingList( ctx context.Context, id gid.GID, @@ -173,16 +116,10 @@ func (s *Service) GetSubscriber( func (s *Service) CreateSubscriber( ctx context.Context, - req *CreateSubscriberRequest, + mailingListID gid.GID, + email mail.Addr, + fullName string, ) (*coredata.MailingListSubscriber, error) { - if err := req.Validate(); err != nil { - return nil, fmt.Errorf("invalid request: %w", err) - } - - mailingListID := req.MailingListID - email := req.Email - fullName := req.FullName - scope := coredata.NewScopeFromObjectID(mailingListID) emailRecord, err := s.buildConfirmationMail(ctx, mailingListID, email, fullName) if err != nil { @@ -397,21 +334,18 @@ func (s *Service) ListSubscribers( func (s *Service) CreateMailingListUpdate( ctx context.Context, - req *CreateMailingListUpdateRequest, + mailingListID gid.GID, + title string, + body string, ) (*coredata.MailingListUpdate, error) { - if err := req.Validate(); err != nil { - return nil, fmt.Errorf("invalid request: %w", err) - } - - mailingListID := req.MailingListID scope := coredata.NewScopeFromObjectID(mailingListID) now := time.Now() mlu := &coredata.MailingListUpdate{ ID: gid.New(scope.GetTenantID(), coredata.MailingListUpdateEntityType), MailingListID: mailingListID, - Title: req.Title, - Body: req.Body, + Title: title, + Body: body, Status: coredata.MailingListUpdateStatusDraft, CreatedAt: now, UpdatedAt: now, @@ -472,19 +406,17 @@ func (s *Service) GetMailingListUpdate( func (s *Service) UpdateMailingListUpdate( ctx context.Context, - req *UpdateMailingListUpdateRequest, + id gid.GID, + title string, + body string, ) (*coredata.MailingListUpdate, error) { - if err := req.Validate(); err != nil { - return nil, fmt.Errorf("invalid request: %w", err) - } - - scope := coredata.NewScopeFromObjectID(req.ID) + scope := coredata.NewScopeFromObjectID(id) var mlu coredata.MailingListUpdate err := s.pg.WithConn( ctx, func(conn pg.Conn) error { - if err := mlu.LoadByID(ctx, conn, scope, req.ID); err != nil { + if err := mlu.LoadByID(ctx, conn, scope, id); err != nil { if errors.Is(err, coredata.ErrResourceNotFound) { return ErrMailingListUpdateNotFound } @@ -495,12 +427,8 @@ func (s *Service) UpdateMailingListUpdate( return ErrMailingListUpdateAlreadySent } - if req.Title != nil { - mlu.Title = *req.Title - } - if req.Body != nil { - mlu.Body = *req.Body - } + mlu.Title = title + mlu.Body = body mlu.UpdatedAt = time.Now() if err := mlu.Update(ctx, conn, scope); err != nil { diff --git a/pkg/server/api/connect/v1/schema/.gitignore b/pkg/server/api/connect/v1/schema/.gitignore new file mode 100644 index 000000000..4103f224a --- /dev/null +++ b/pkg/server/api/connect/v1/schema/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!doc.go diff --git a/pkg/server/api/connect/v1/schema/doc.go b/pkg/server/api/connect/v1/schema/doc.go new file mode 100644 index 000000000..1f43c7f5f --- /dev/null +++ b/pkg/server/api/connect/v1/schema/doc.go @@ -0,0 +1,17 @@ +// Copyright (c) 2025 Probo Inc . +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +// PERFORMANCE OF THIS SOFTWARE. + +// Package schema contains the generated GraphQL executable schema for the +// Connect API. +package schema diff --git a/pkg/server/api/connect/v1/schema/schema.go b/pkg/server/api/connect/v1/schema/schema.go deleted file mode 100644 index c20e5da39..000000000 --- a/pkg/server/api/connect/v1/schema/schema.go +++ /dev/null @@ -1,23075 +0,0 @@ -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package schema - -import ( - "bytes" - "context" - "errors" - "fmt" - "strconv" - "sync/atomic" - "time" - - "github.com/99designs/gqlgen/graphql" - "github.com/99designs/gqlgen/graphql/introspection" - gqlparser "github.com/vektah/gqlparser/v2" - "github.com/vektah/gqlparser/v2/ast" - "go.probo.inc/probo/pkg/coredata" - "go.probo.inc/probo/pkg/gid" - "go.probo.inc/probo/pkg/mail" - "go.probo.inc/probo/pkg/page" - "go.probo.inc/probo/pkg/server/api/connect/v1/types" - "go.probo.inc/probo/pkg/server/gqlutils/directives/session" - "go.probo.inc/probo/pkg/server/gqlutils/types/cursor" - gid1 "go.probo.inc/probo/pkg/server/gqlutils/types/gid" - mail1 "go.probo.inc/probo/pkg/server/gqlutils/types/mail" -) - -// region ************************** generated!.gotpl ************************** - -// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. -func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { - return &executableSchema{SchemaData: cfg.Schema, Resolvers: cfg.Resolvers, Directives: cfg.Directives, ComplexityRoot: cfg.Complexity} -} - -type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot] - -type ResolverRoot interface { - Connector() ConnectorResolver - Identity() IdentityResolver - Invitation() InvitationResolver - Membership() MembershipResolver - Mutation() MutationResolver - Organization() OrganizationResolver - PersonalAPIKey() PersonalAPIKeyResolver - PersonalAPIKeyConnection() PersonalAPIKeyConnectionResolver - Profile() ProfileResolver - ProfileConnection() ProfileConnectionResolver - Query() QueryResolver - SAMLConfiguration() SAMLConfigurationResolver - SAMLConfigurationConnection() SAMLConfigurationConnectionResolver - SCIMBridge() SCIMBridgeResolver - SCIMConfiguration() SCIMConfigurationResolver - SCIMEvent() SCIMEventResolver - SCIMEventConnection() SCIMEventConnectionResolver - Session() SessionResolver - SessionConnection() SessionConnectionResolver -} - -type DirectiveRoot struct { - Session func(ctx context.Context, obj any, next graphql.Resolver, required session.SessionRequirement) (res any, err error) -} - -type ComplexityRoot struct { - ActivateAccountPayload struct { - CreatePasswordToken func(childComplexity int) int - Profile func(childComplexity int) int - SsoLoginURL func(childComplexity int) int - } - - AssumeOrganizationSessionPayload struct { - Result func(childComplexity int) int - } - - ChangeEmailPayload struct { - Success func(childComplexity int) int - } - - ChangePasswordPayload struct { - Success func(childComplexity int) int - } - - Connector struct { - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - Permission func(childComplexity int, action string) int - Provider func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - CreateOrganizationPayload struct { - Organization func(childComplexity int) int - Profile func(childComplexity int) int - } - - CreatePersonalAPIKeyPayload struct { - PersonalAPIKeyEdge func(childComplexity int) int - Token func(childComplexity int) int - } - - CreateSAMLConfigurationPayload struct { - SamlConfigurationEdge func(childComplexity int) int - } - - CreateSCIMConfigurationPayload struct { - ScimBridge func(childComplexity int) int - ScimConfiguration func(childComplexity int) int - Token func(childComplexity int) int - } - - CreateUserPayload struct { - ProfileEdge func(childComplexity int) int - } - - DeactivateUserPayload struct { - Success func(childComplexity int) int - } - - DeleteOrganizationHorizontalLogoPayload struct { - Organization func(childComplexity int) int - } - - DeleteOrganizationPayload struct { - DeletedOrganizationID func(childComplexity int) int - } - - DeleteSAMLConfigurationPayload struct { - DeletedSamlConfigurationID func(childComplexity int) int - } - - DeleteSCIMConfigurationPayload struct { - DeletedScimConfigurationID func(childComplexity int) int - } - - ForgotPasswordPayload struct { - Success func(childComplexity int) int - } - - Identity struct { - CreatedAt func(childComplexity int) int - Email func(childComplexity int) int - EmailVerified func(childComplexity int) int - FullName func(childComplexity int) int - ID func(childComplexity int) int - Permission func(childComplexity int, action string) int - PersonalAPIKeys func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - Profiles func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy, filter *types.ProfileFilter) int - Sessions func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SessionOrder) int - SsoLoginURL func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - Invitation struct { - AcceptedAt func(childComplexity int) int - CreatedAt func(childComplexity int) int - ExpiresAt func(childComplexity int) int - ID func(childComplexity int) int - Permission func(childComplexity int, action string) int - Status func(childComplexity int) int - } - - InvitationConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - InvitationEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - InviteUserPayload struct { - InvitationEdge func(childComplexity int) int - } - - Membership struct { - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - LastSession func(childComplexity int) int - Permission func(childComplexity int, action string) int - Role func(childComplexity int) int - } - - Mutation struct { - ActivateAccount func(childComplexity int, input types.ActivateAccountInput) int - AssumeOrganizationSession func(childComplexity int, input types.AssumeOrganizationSessionInput) int - ChangeEmail func(childComplexity int, input types.ChangeEmailInput) int - ChangePassword func(childComplexity int, input types.ChangePasswordInput) int - CreateOrganization func(childComplexity int, input types.CreateOrganizationInput) int - CreatePersonalAPIKey func(childComplexity int, input types.CreatePersonalAPIKeyInput) int - CreateSAMLConfiguration func(childComplexity int, input types.CreateSAMLConfigurationInput) int - CreateSCIMConfiguration func(childComplexity int, input types.CreateSCIMConfigurationInput) int - CreateUser func(childComplexity int, input types.CreateUserInput) int - DeactivateUser func(childComplexity int, input types.DeactivateUserInput) int - DeleteOrganization func(childComplexity int, input types.DeleteOrganizationInput) int - DeleteOrganizationHorizontalLogo func(childComplexity int, input types.DeleteOrganizationHorizontalLogoInput) int - DeleteSAMLConfiguration func(childComplexity int, input types.DeleteSAMLConfigurationInput) int - DeleteSCIMConfiguration func(childComplexity int, input types.DeleteSCIMConfigurationInput) int - ForgotPassword func(childComplexity int, input types.ForgotPasswordInput) int - InviteUser func(childComplexity int, input types.InviteUserInput) int - RegenerateSCIMToken func(childComplexity int, input types.RegenerateSCIMTokenInput) int - RemoveUser func(childComplexity int, input types.RemoveUserInput) int - ResetPassword func(childComplexity int, input types.ResetPasswordInput) int - RevokeAllSessions func(childComplexity int) int - RevokePersonalAPIKey func(childComplexity int, input types.RevokePersonalAPIKeyInput) int - RevokeSession func(childComplexity int, input types.RevokeSessionInput) int - SignIn func(childComplexity int, input types.SignInInput) int - SignOut func(childComplexity int) int - SignUp func(childComplexity int, input types.SignUpInput) int - UpdateMembership func(childComplexity int, input types.UpdateMembershipInput) int - UpdateOrganization func(childComplexity int, input types.UpdateOrganizationInput) int - UpdateSAMLConfiguration func(childComplexity int, input types.UpdateSAMLConfigurationInput) int - UpdateSCIMBridge func(childComplexity int, input types.UpdateSCIMBridgeInput) int - UpdateUser func(childComplexity int, input types.UpdateUserInput) int - VerifyEmail func(childComplexity int, input types.VerifyEmailInput) int - } - - Organization struct { - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - Email func(childComplexity int) int - HeadquarterAddress func(childComplexity int) int - HorizontalLogoURL func(childComplexity int) int - ID func(childComplexity int) int - LogoURL func(childComplexity int) int - Name func(childComplexity int) int - Permission func(childComplexity int, action string) int - Profiles func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy) int - SamlConfigurations func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - ScimConfiguration func(childComplexity int) int - UpdatedAt func(childComplexity int) int - Viewer func(childComplexity int) int - WebsiteURL func(childComplexity int) int - } - - OrganizationSessionCreated struct { - Membership func(childComplexity int) int - Session func(childComplexity int) int - } - - PageInfo struct { - EndCursor func(childComplexity int) int - HasNextPage func(childComplexity int) int - HasPreviousPage func(childComplexity int) int - StartCursor func(childComplexity int) int - } - - PasswordRequired struct { - Reason func(childComplexity int) int - } - - PersonalAPIKey struct { - CreatedAt func(childComplexity int) int - ExpiresAt func(childComplexity int) int - ID func(childComplexity int) int - LastUsedAt func(childComplexity int) int - Name func(childComplexity int) int - Permission func(childComplexity int, action string) int - Token func(childComplexity int) int - } - - PersonalAPIKeyConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - PersonalAPIKeyEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Profile struct { - AdditionalEmailAddresses func(childComplexity int) int - ContractEndDate func(childComplexity int) int - ContractStartDate func(childComplexity int) int - CreatedAt func(childComplexity int) int - EmailAddress func(childComplexity int) int - FullName func(childComplexity int) int - ID func(childComplexity int) int - Identity func(childComplexity int) int - Kind func(childComplexity int) int - Membership func(childComplexity int) int - Organization func(childComplexity int) int - PendingInvitations func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.InvitationOrderBy) int - Permission func(childComplexity int, action string) int - Position func(childComplexity int) int - Source func(childComplexity int) int - State func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - ProfileConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ProfileEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Query struct { - Node func(childComplexity int, id gid.GID) int - SsoLoginURL func(childComplexity int, email mail.Addr) int - Viewer func(childComplexity int) int - } - - RegenerateSCIMTokenPayload struct { - ScimConfiguration func(childComplexity int) int - Token func(childComplexity int) int - } - - RemoveUserPayload struct { - DeletedProfileID func(childComplexity int) int - } - - ResetPasswordPayload struct { - Success func(childComplexity int) int - } - - RevokeAllSessionsPayload struct { - RevokedCount func(childComplexity int) int - } - - RevokePersonalAPIKeyPayload struct { - PersonalAPIKeyID func(childComplexity int) int - } - - RevokeSessionPayload struct { - Success func(childComplexity int) int - } - - SAMLAttributeMappings struct { - Email func(childComplexity int) int - FirstName func(childComplexity int) int - LastName func(childComplexity int) int - Role func(childComplexity int) int - } - - SAMLAuthenticationRequired struct { - Reason func(childComplexity int) int - } - - SAMLConfiguration struct { - AttributeMappings func(childComplexity int) int - AutoSignupEnabled func(childComplexity int) int - CreatedAt func(childComplexity int) int - DomainVerificationToken func(childComplexity int) int - DomainVerifiedAt func(childComplexity int) int - EmailDomain func(childComplexity int) int - EnforcementPolicy func(childComplexity int) int - ID func(childComplexity int) int - IdpCertificate func(childComplexity int) int - IdpEntityID func(childComplexity int) int - IdpSsoURL func(childComplexity int) int - Permission func(childComplexity int, action string) int - TestLoginURL func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - SAMLConfigurationConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - SAMLConfigurationEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - SCIMBridge struct { - Connector func(childComplexity int) int - CreatedAt func(childComplexity int) int - ExcludedUserNames func(childComplexity int) int - ID func(childComplexity int) int - Permission func(childComplexity int, action string) int - ScimConfiguration func(childComplexity int) int - State func(childComplexity int) int - Type func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - SCIMConfiguration struct { - Bridge func(childComplexity int) int - CreatedAt func(childComplexity int) int - EndpointURL func(childComplexity int) int - Events func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SCIMEventOrderBy) int - ID func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - UpdatedAt func(childComplexity int) int - } - - SCIMEvent struct { - CreatedAt func(childComplexity int) int - ErrorMessage func(childComplexity int) int - ID func(childComplexity int) int - IPAddress func(childComplexity int) int - Method func(childComplexity int) int - Path func(childComplexity int) int - Permission func(childComplexity int, action string) int - RequestBody func(childComplexity int) int - ResponseBody func(childComplexity int) int - StatusCode func(childComplexity int) int - UserName func(childComplexity int) int - } - - SCIMEventConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - SCIMEventEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Session struct { - CreatedAt func(childComplexity int) int - ExpiresAt func(childComplexity int) int - ID func(childComplexity int) int - IPAddress func(childComplexity int) int - Identity func(childComplexity int) int - Permission func(childComplexity int, action string) int - UpdatedAt func(childComplexity int) int - UserAgent func(childComplexity int) int - } - - SessionConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - SessionEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - SignInPayload struct { - Identity func(childComplexity int) int - Session func(childComplexity int) int - } - - SignOutPayload struct { - Success func(childComplexity int) int - } - - SignUpPayload struct { - Identity func(childComplexity int) int - } - - UpdateMembershipPayload struct { - Membership func(childComplexity int) int - } - - UpdateOrganizationPayload struct { - Organization func(childComplexity int) int - } - - UpdateSAMLConfigurationPayload struct { - SamlConfiguration func(childComplexity int) int - } - - UpdateSCIMBridgePayload struct { - ScimBridge func(childComplexity int) int - } - - UpdateUserPayload struct { - Profile func(childComplexity int) int - } - - VerifyEmailPayload struct { - Success func(childComplexity int) int - } -} - -type ConnectorResolver interface { - Permission(ctx context.Context, obj *types.Connector, action string) (bool, error) -} -type IdentityResolver interface { - Profiles(ctx context.Context, obj *types.Identity, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy, filter *types.ProfileFilter) (*types.ProfileConnection, error) - Sessions(ctx context.Context, obj *types.Identity, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SessionOrder) (*types.SessionConnection, error) - PersonalAPIKeys(ctx context.Context, obj *types.Identity, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.PersonalAPIKeyConnection, error) - SsoLoginURL(ctx context.Context, obj *types.Identity) (*string, error) - Permission(ctx context.Context, obj *types.Identity, action string) (bool, error) -} -type InvitationResolver interface { - Permission(ctx context.Context, obj *types.Invitation, action string) (bool, error) -} -type MembershipResolver interface { - LastSession(ctx context.Context, obj *types.Membership) (*types.Session, error) - Permission(ctx context.Context, obj *types.Membership, action string) (bool, error) -} -type MutationResolver interface { - SignIn(ctx context.Context, input types.SignInInput) (*types.SignInPayload, error) - SignUp(ctx context.Context, input types.SignUpInput) (*types.SignUpPayload, error) - SignOut(ctx context.Context) (*types.SignOutPayload, error) - ActivateAccount(ctx context.Context, input types.ActivateAccountInput) (*types.ActivateAccountPayload, error) - ForgotPassword(ctx context.Context, input types.ForgotPasswordInput) (*types.ForgotPasswordPayload, error) - ResetPassword(ctx context.Context, input types.ResetPasswordInput) (*types.ResetPasswordPayload, error) - VerifyEmail(ctx context.Context, input types.VerifyEmailInput) (*types.VerifyEmailPayload, error) - ChangePassword(ctx context.Context, input types.ChangePasswordInput) (*types.ChangePasswordPayload, error) - ChangeEmail(ctx context.Context, input types.ChangeEmailInput) (*types.ChangeEmailPayload, error) - AssumeOrganizationSession(ctx context.Context, input types.AssumeOrganizationSessionInput) (*types.AssumeOrganizationSessionPayload, error) - RevokeSession(ctx context.Context, input types.RevokeSessionInput) (*types.RevokeSessionPayload, error) - RevokeAllSessions(ctx context.Context) (*types.RevokeAllSessionsPayload, error) - CreatePersonalAPIKey(ctx context.Context, input types.CreatePersonalAPIKeyInput) (*types.CreatePersonalAPIKeyPayload, error) - RevokePersonalAPIKey(ctx context.Context, input types.RevokePersonalAPIKeyInput) (*types.RevokePersonalAPIKeyPayload, error) - CreateOrganization(ctx context.Context, input types.CreateOrganizationInput) (*types.CreateOrganizationPayload, error) - UpdateOrganization(ctx context.Context, input types.UpdateOrganizationInput) (*types.UpdateOrganizationPayload, error) - DeleteOrganization(ctx context.Context, input types.DeleteOrganizationInput) (*types.DeleteOrganizationPayload, error) - DeleteOrganizationHorizontalLogo(ctx context.Context, input types.DeleteOrganizationHorizontalLogoInput) (*types.DeleteOrganizationHorizontalLogoPayload, error) - CreateUser(ctx context.Context, input types.CreateUserInput) (*types.CreateUserPayload, error) - InviteUser(ctx context.Context, input types.InviteUserInput) (*types.InviteUserPayload, error) - DeactivateUser(ctx context.Context, input types.DeactivateUserInput) (*types.DeactivateUserPayload, error) - UpdateUser(ctx context.Context, input types.UpdateUserInput) (*types.UpdateUserPayload, error) - UpdateMembership(ctx context.Context, input types.UpdateMembershipInput) (*types.UpdateMembershipPayload, error) - RemoveUser(ctx context.Context, input types.RemoveUserInput) (*types.RemoveUserPayload, error) - CreateSAMLConfiguration(ctx context.Context, input types.CreateSAMLConfigurationInput) (*types.CreateSAMLConfigurationPayload, error) - UpdateSAMLConfiguration(ctx context.Context, input types.UpdateSAMLConfigurationInput) (*types.UpdateSAMLConfigurationPayload, error) - DeleteSAMLConfiguration(ctx context.Context, input types.DeleteSAMLConfigurationInput) (*types.DeleteSAMLConfigurationPayload, error) - CreateSCIMConfiguration(ctx context.Context, input types.CreateSCIMConfigurationInput) (*types.CreateSCIMConfigurationPayload, error) - DeleteSCIMConfiguration(ctx context.Context, input types.DeleteSCIMConfigurationInput) (*types.DeleteSCIMConfigurationPayload, error) - RegenerateSCIMToken(ctx context.Context, input types.RegenerateSCIMTokenInput) (*types.RegenerateSCIMTokenPayload, error) - UpdateSCIMBridge(ctx context.Context, input types.UpdateSCIMBridgeInput) (*types.UpdateSCIMBridgePayload, error) -} -type OrganizationResolver interface { - LogoURL(ctx context.Context, obj *types.Organization) (*string, error) - HorizontalLogoURL(ctx context.Context, obj *types.Organization) (*string, error) - - Profiles(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy) (*types.ProfileConnection, error) - SamlConfigurations(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.SAMLConfigurationConnection, error) - ScimConfiguration(ctx context.Context, obj *types.Organization) (*types.SCIMConfiguration, error) - Viewer(ctx context.Context, obj *types.Organization) (*types.Profile, error) - Permission(ctx context.Context, obj *types.Organization, action string) (bool, error) -} -type PersonalAPIKeyResolver interface { - Token(ctx context.Context, obj *types.PersonalAPIKey) (*string, error) - Permission(ctx context.Context, obj *types.PersonalAPIKey, action string) (bool, error) -} -type PersonalAPIKeyConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.PersonalAPIKeyConnection) (*int, error) -} -type ProfileResolver interface { - Identity(ctx context.Context, obj *types.Profile) (*types.Identity, error) - Organization(ctx context.Context, obj *types.Profile) (*types.Organization, error) - Membership(ctx context.Context, obj *types.Profile) (*types.Membership, error) - PendingInvitations(ctx context.Context, obj *types.Profile, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.InvitationOrderBy) (*types.InvitationConnection, error) - Permission(ctx context.Context, obj *types.Profile, action string) (bool, error) -} -type ProfileConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.ProfileConnection) (*int, error) -} -type QueryResolver interface { - Node(ctx context.Context, id gid.GID) (types.Node, error) - Viewer(ctx context.Context) (*types.Identity, error) - SsoLoginURL(ctx context.Context, email mail.Addr) (*string, error) -} -type SAMLConfigurationResolver interface { - TestLoginURL(ctx context.Context, obj *types.SAMLConfiguration) (string, error) - - Permission(ctx context.Context, obj *types.SAMLConfiguration, action string) (bool, error) -} -type SAMLConfigurationConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.SAMLConfigurationConnection) (*int, error) -} -type SCIMBridgeResolver interface { - ScimConfiguration(ctx context.Context, obj *types.SCIMBridge) (*types.SCIMConfiguration, error) - Connector(ctx context.Context, obj *types.SCIMBridge) (*types.Connector, error) - - Permission(ctx context.Context, obj *types.SCIMBridge, action string) (bool, error) -} -type SCIMConfigurationResolver interface { - EndpointURL(ctx context.Context, obj *types.SCIMConfiguration) (string, error) - - Organization(ctx context.Context, obj *types.SCIMConfiguration) (*types.Organization, error) - Bridge(ctx context.Context, obj *types.SCIMConfiguration) (*types.SCIMBridge, error) - Events(ctx context.Context, obj *types.SCIMConfiguration, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SCIMEventOrderBy) (*types.SCIMEventConnection, error) - Permission(ctx context.Context, obj *types.SCIMConfiguration, action string) (bool, error) -} -type SCIMEventResolver interface { - Permission(ctx context.Context, obj *types.SCIMEvent, action string) (bool, error) -} -type SCIMEventConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.SCIMEventConnection) (*int, error) -} -type SessionResolver interface { - Identity(ctx context.Context, obj *types.Session) (*types.Identity, error) - - Permission(ctx context.Context, obj *types.Session, action string) (bool, error) -} -type SessionConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.SessionConnection) (*int, error) -} - -type executableSchema graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot] - -func (e *executableSchema) Schema() *ast.Schema { - if e.SchemaData != nil { - return e.SchemaData - } - return parsedSchema -} - -func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { - ec := newExecutionContext(nil, e, nil) - _ = ec - switch typeName + "." + field { - - case "ActivateAccountPayload.createPasswordToken": - if e.ComplexityRoot.ActivateAccountPayload.CreatePasswordToken == nil { - break - } - - return e.ComplexityRoot.ActivateAccountPayload.CreatePasswordToken(childComplexity), true - case "ActivateAccountPayload.profile": - if e.ComplexityRoot.ActivateAccountPayload.Profile == nil { - break - } - - return e.ComplexityRoot.ActivateAccountPayload.Profile(childComplexity), true - case "ActivateAccountPayload.ssoLoginUrl": - if e.ComplexityRoot.ActivateAccountPayload.SsoLoginURL == nil { - break - } - - return e.ComplexityRoot.ActivateAccountPayload.SsoLoginURL(childComplexity), true - - case "AssumeOrganizationSessionPayload.result": - if e.ComplexityRoot.AssumeOrganizationSessionPayload.Result == nil { - break - } - - return e.ComplexityRoot.AssumeOrganizationSessionPayload.Result(childComplexity), true - - case "ChangeEmailPayload.success": - if e.ComplexityRoot.ChangeEmailPayload.Success == nil { - break - } - - return e.ComplexityRoot.ChangeEmailPayload.Success(childComplexity), true - - case "ChangePasswordPayload.success": - if e.ComplexityRoot.ChangePasswordPayload.Success == nil { - break - } - - return e.ComplexityRoot.ChangePasswordPayload.Success(childComplexity), true - - case "Connector.createdAt": - if e.ComplexityRoot.Connector.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Connector.CreatedAt(childComplexity), true - case "Connector.id": - if e.ComplexityRoot.Connector.ID == nil { - break - } - - return e.ComplexityRoot.Connector.ID(childComplexity), true - case "Connector.permission": - if e.ComplexityRoot.Connector.Permission == nil { - break - } - - args, err := ec.field_Connector_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Connector.Permission(childComplexity, args["action"].(string)), true - case "Connector.provider": - if e.ComplexityRoot.Connector.Provider == nil { - break - } - - return e.ComplexityRoot.Connector.Provider(childComplexity), true - case "Connector.updatedAt": - if e.ComplexityRoot.Connector.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Connector.UpdatedAt(childComplexity), true - - case "CreateOrganizationPayload.organization": - if e.ComplexityRoot.CreateOrganizationPayload.Organization == nil { - break - } - - return e.ComplexityRoot.CreateOrganizationPayload.Organization(childComplexity), true - case "CreateOrganizationPayload.profile": - if e.ComplexityRoot.CreateOrganizationPayload.Profile == nil { - break - } - - return e.ComplexityRoot.CreateOrganizationPayload.Profile(childComplexity), true - - case "CreatePersonalAPIKeyPayload.personalAPIKeyEdge": - if e.ComplexityRoot.CreatePersonalAPIKeyPayload.PersonalAPIKeyEdge == nil { - break - } - - return e.ComplexityRoot.CreatePersonalAPIKeyPayload.PersonalAPIKeyEdge(childComplexity), true - case "CreatePersonalAPIKeyPayload.token": - if e.ComplexityRoot.CreatePersonalAPIKeyPayload.Token == nil { - break - } - - return e.ComplexityRoot.CreatePersonalAPIKeyPayload.Token(childComplexity), true - - case "CreateSAMLConfigurationPayload.samlConfigurationEdge": - if e.ComplexityRoot.CreateSAMLConfigurationPayload.SamlConfigurationEdge == nil { - break - } - - return e.ComplexityRoot.CreateSAMLConfigurationPayload.SamlConfigurationEdge(childComplexity), true - - case "CreateSCIMConfigurationPayload.scimBridge": - if e.ComplexityRoot.CreateSCIMConfigurationPayload.ScimBridge == nil { - break - } - - return e.ComplexityRoot.CreateSCIMConfigurationPayload.ScimBridge(childComplexity), true - case "CreateSCIMConfigurationPayload.scimConfiguration": - if e.ComplexityRoot.CreateSCIMConfigurationPayload.ScimConfiguration == nil { - break - } - - return e.ComplexityRoot.CreateSCIMConfigurationPayload.ScimConfiguration(childComplexity), true - case "CreateSCIMConfigurationPayload.token": - if e.ComplexityRoot.CreateSCIMConfigurationPayload.Token == nil { - break - } - - return e.ComplexityRoot.CreateSCIMConfigurationPayload.Token(childComplexity), true - - case "CreateUserPayload.profileEdge": - if e.ComplexityRoot.CreateUserPayload.ProfileEdge == nil { - break - } - - return e.ComplexityRoot.CreateUserPayload.ProfileEdge(childComplexity), true - - case "DeactivateUserPayload.success": - if e.ComplexityRoot.DeactivateUserPayload.Success == nil { - break - } - - return e.ComplexityRoot.DeactivateUserPayload.Success(childComplexity), true - - case "DeleteOrganizationHorizontalLogoPayload.organization": - if e.ComplexityRoot.DeleteOrganizationHorizontalLogoPayload.Organization == nil { - break - } - - return e.ComplexityRoot.DeleteOrganizationHorizontalLogoPayload.Organization(childComplexity), true - - case "DeleteOrganizationPayload.deletedOrganizationId": - if e.ComplexityRoot.DeleteOrganizationPayload.DeletedOrganizationID == nil { - break - } - - return e.ComplexityRoot.DeleteOrganizationPayload.DeletedOrganizationID(childComplexity), true - - case "DeleteSAMLConfigurationPayload.deletedSamlConfigurationId": - if e.ComplexityRoot.DeleteSAMLConfigurationPayload.DeletedSamlConfigurationID == nil { - break - } - - return e.ComplexityRoot.DeleteSAMLConfigurationPayload.DeletedSamlConfigurationID(childComplexity), true - - case "DeleteSCIMConfigurationPayload.deletedScimConfigurationId": - if e.ComplexityRoot.DeleteSCIMConfigurationPayload.DeletedScimConfigurationID == nil { - break - } - - return e.ComplexityRoot.DeleteSCIMConfigurationPayload.DeletedScimConfigurationID(childComplexity), true - - case "ForgotPasswordPayload.success": - if e.ComplexityRoot.ForgotPasswordPayload.Success == nil { - break - } - - return e.ComplexityRoot.ForgotPasswordPayload.Success(childComplexity), true - - case "Identity.createdAt": - if e.ComplexityRoot.Identity.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Identity.CreatedAt(childComplexity), true - case "Identity.email": - if e.ComplexityRoot.Identity.Email == nil { - break - } - - return e.ComplexityRoot.Identity.Email(childComplexity), true - case "Identity.emailVerified": - if e.ComplexityRoot.Identity.EmailVerified == nil { - break - } - - return e.ComplexityRoot.Identity.EmailVerified(childComplexity), true - case "Identity.fullName": - if e.ComplexityRoot.Identity.FullName == nil { - break - } - - return e.ComplexityRoot.Identity.FullName(childComplexity), true - case "Identity.id": - if e.ComplexityRoot.Identity.ID == nil { - break - } - - return e.ComplexityRoot.Identity.ID(childComplexity), true - case "Identity.permission": - if e.ComplexityRoot.Identity.Permission == nil { - break - } - - args, err := ec.field_Identity_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Identity.Permission(childComplexity, args["action"].(string)), true - case "Identity.personalAPIKeys": - if e.ComplexityRoot.Identity.PersonalAPIKeys == nil { - break - } - - args, err := ec.field_Identity_personalAPIKeys_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Identity.PersonalAPIKeys(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "Identity.profiles": - if e.ComplexityRoot.Identity.Profiles == nil { - break - } - - args, err := ec.field_Identity_profiles_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Identity.Profiles(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ProfileOrderBy), args["filter"].(*types.ProfileFilter)), true - case "Identity.sessions": - if e.ComplexityRoot.Identity.Sessions == nil { - break - } - - args, err := ec.field_Identity_sessions_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Identity.Sessions(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.SessionOrder)), true - case "Identity.ssoLoginURL": - if e.ComplexityRoot.Identity.SsoLoginURL == nil { - break - } - - return e.ComplexityRoot.Identity.SsoLoginURL(childComplexity), true - case "Identity.updatedAt": - if e.ComplexityRoot.Identity.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Identity.UpdatedAt(childComplexity), true - - case "Invitation.acceptedAt": - if e.ComplexityRoot.Invitation.AcceptedAt == nil { - break - } - - return e.ComplexityRoot.Invitation.AcceptedAt(childComplexity), true - case "Invitation.createdAt": - if e.ComplexityRoot.Invitation.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Invitation.CreatedAt(childComplexity), true - case "Invitation.expiresAt": - if e.ComplexityRoot.Invitation.ExpiresAt == nil { - break - } - - return e.ComplexityRoot.Invitation.ExpiresAt(childComplexity), true - case "Invitation.id": - if e.ComplexityRoot.Invitation.ID == nil { - break - } - - return e.ComplexityRoot.Invitation.ID(childComplexity), true - case "Invitation.permission": - if e.ComplexityRoot.Invitation.Permission == nil { - break - } - - args, err := ec.field_Invitation_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Invitation.Permission(childComplexity, args["action"].(string)), true - case "Invitation.status": - if e.ComplexityRoot.Invitation.Status == nil { - break - } - - return e.ComplexityRoot.Invitation.Status(childComplexity), true - - case "InvitationConnection.edges": - if e.ComplexityRoot.InvitationConnection.Edges == nil { - break - } - - return e.ComplexityRoot.InvitationConnection.Edges(childComplexity), true - case "InvitationConnection.pageInfo": - if e.ComplexityRoot.InvitationConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.InvitationConnection.PageInfo(childComplexity), true - - case "InvitationEdge.cursor": - if e.ComplexityRoot.InvitationEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.InvitationEdge.Cursor(childComplexity), true - case "InvitationEdge.node": - if e.ComplexityRoot.InvitationEdge.Node == nil { - break - } - - return e.ComplexityRoot.InvitationEdge.Node(childComplexity), true - - case "InviteUserPayload.invitationEdge": - if e.ComplexityRoot.InviteUserPayload.InvitationEdge == nil { - break - } - - return e.ComplexityRoot.InviteUserPayload.InvitationEdge(childComplexity), true - - case "Membership.createdAt": - if e.ComplexityRoot.Membership.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Membership.CreatedAt(childComplexity), true - case "Membership.id": - if e.ComplexityRoot.Membership.ID == nil { - break - } - - return e.ComplexityRoot.Membership.ID(childComplexity), true - case "Membership.lastSession": - if e.ComplexityRoot.Membership.LastSession == nil { - break - } - - return e.ComplexityRoot.Membership.LastSession(childComplexity), true - case "Membership.permission": - if e.ComplexityRoot.Membership.Permission == nil { - break - } - - args, err := ec.field_Membership_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Membership.Permission(childComplexity, args["action"].(string)), true - case "Membership.role": - if e.ComplexityRoot.Membership.Role == nil { - break - } - - return e.ComplexityRoot.Membership.Role(childComplexity), true - - case "Mutation.activateAccount": - if e.ComplexityRoot.Mutation.ActivateAccount == nil { - break - } - - args, err := ec.field_Mutation_activateAccount_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ActivateAccount(childComplexity, args["input"].(types.ActivateAccountInput)), true - case "Mutation.assumeOrganizationSession": - if e.ComplexityRoot.Mutation.AssumeOrganizationSession == nil { - break - } - - args, err := ec.field_Mutation_assumeOrganizationSession_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.AssumeOrganizationSession(childComplexity, args["input"].(types.AssumeOrganizationSessionInput)), true - case "Mutation.changeEmail": - if e.ComplexityRoot.Mutation.ChangeEmail == nil { - break - } - - args, err := ec.field_Mutation_changeEmail_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ChangeEmail(childComplexity, args["input"].(types.ChangeEmailInput)), true - case "Mutation.changePassword": - if e.ComplexityRoot.Mutation.ChangePassword == nil { - break - } - - args, err := ec.field_Mutation_changePassword_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ChangePassword(childComplexity, args["input"].(types.ChangePasswordInput)), true - case "Mutation.createOrganization": - if e.ComplexityRoot.Mutation.CreateOrganization == nil { - break - } - - args, err := ec.field_Mutation_createOrganization_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateOrganization(childComplexity, args["input"].(types.CreateOrganizationInput)), true - case "Mutation.createPersonalAPIKey": - if e.ComplexityRoot.Mutation.CreatePersonalAPIKey == nil { - break - } - - args, err := ec.field_Mutation_createPersonalAPIKey_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreatePersonalAPIKey(childComplexity, args["input"].(types.CreatePersonalAPIKeyInput)), true - case "Mutation.createSAMLConfiguration": - if e.ComplexityRoot.Mutation.CreateSAMLConfiguration == nil { - break - } - - args, err := ec.field_Mutation_createSAMLConfiguration_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateSAMLConfiguration(childComplexity, args["input"].(types.CreateSAMLConfigurationInput)), true - case "Mutation.createSCIMConfiguration": - if e.ComplexityRoot.Mutation.CreateSCIMConfiguration == nil { - break - } - - args, err := ec.field_Mutation_createSCIMConfiguration_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateSCIMConfiguration(childComplexity, args["input"].(types.CreateSCIMConfigurationInput)), true - case "Mutation.createUser": - if e.ComplexityRoot.Mutation.CreateUser == nil { - break - } - - args, err := ec.field_Mutation_createUser_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateUser(childComplexity, args["input"].(types.CreateUserInput)), true - case "Mutation.deactivateUser": - if e.ComplexityRoot.Mutation.DeactivateUser == nil { - break - } - - args, err := ec.field_Mutation_deactivateUser_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeactivateUser(childComplexity, args["input"].(types.DeactivateUserInput)), true - case "Mutation.deleteOrganization": - if e.ComplexityRoot.Mutation.DeleteOrganization == nil { - break - } - - args, err := ec.field_Mutation_deleteOrganization_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteOrganization(childComplexity, args["input"].(types.DeleteOrganizationInput)), true - case "Mutation.deleteOrganizationHorizontalLogo": - if e.ComplexityRoot.Mutation.DeleteOrganizationHorizontalLogo == nil { - break - } - - args, err := ec.field_Mutation_deleteOrganizationHorizontalLogo_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteOrganizationHorizontalLogo(childComplexity, args["input"].(types.DeleteOrganizationHorizontalLogoInput)), true - case "Mutation.deleteSAMLConfiguration": - if e.ComplexityRoot.Mutation.DeleteSAMLConfiguration == nil { - break - } - - args, err := ec.field_Mutation_deleteSAMLConfiguration_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteSAMLConfiguration(childComplexity, args["input"].(types.DeleteSAMLConfigurationInput)), true - case "Mutation.deleteSCIMConfiguration": - if e.ComplexityRoot.Mutation.DeleteSCIMConfiguration == nil { - break - } - - args, err := ec.field_Mutation_deleteSCIMConfiguration_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteSCIMConfiguration(childComplexity, args["input"].(types.DeleteSCIMConfigurationInput)), true - case "Mutation.forgotPassword": - if e.ComplexityRoot.Mutation.ForgotPassword == nil { - break - } - - args, err := ec.field_Mutation_forgotPassword_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ForgotPassword(childComplexity, args["input"].(types.ForgotPasswordInput)), true - case "Mutation.inviteUser": - if e.ComplexityRoot.Mutation.InviteUser == nil { - break - } - - args, err := ec.field_Mutation_inviteUser_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.InviteUser(childComplexity, args["input"].(types.InviteUserInput)), true - case "Mutation.regenerateSCIMToken": - if e.ComplexityRoot.Mutation.RegenerateSCIMToken == nil { - break - } - - args, err := ec.field_Mutation_regenerateSCIMToken_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.RegenerateSCIMToken(childComplexity, args["input"].(types.RegenerateSCIMTokenInput)), true - case "Mutation.removeUser": - if e.ComplexityRoot.Mutation.RemoveUser == nil { - break - } - - args, err := ec.field_Mutation_removeUser_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.RemoveUser(childComplexity, args["input"].(types.RemoveUserInput)), true - case "Mutation.resetPassword": - if e.ComplexityRoot.Mutation.ResetPassword == nil { - break - } - - args, err := ec.field_Mutation_resetPassword_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ResetPassword(childComplexity, args["input"].(types.ResetPasswordInput)), true - case "Mutation.revokeAllSessions": - if e.ComplexityRoot.Mutation.RevokeAllSessions == nil { - break - } - - return e.ComplexityRoot.Mutation.RevokeAllSessions(childComplexity), true - case "Mutation.revokePersonalAPIKey": - if e.ComplexityRoot.Mutation.RevokePersonalAPIKey == nil { - break - } - - args, err := ec.field_Mutation_revokePersonalAPIKey_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.RevokePersonalAPIKey(childComplexity, args["input"].(types.RevokePersonalAPIKeyInput)), true - case "Mutation.revokeSession": - if e.ComplexityRoot.Mutation.RevokeSession == nil { - break - } - - args, err := ec.field_Mutation_revokeSession_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.RevokeSession(childComplexity, args["input"].(types.RevokeSessionInput)), true - case "Mutation.signIn": - if e.ComplexityRoot.Mutation.SignIn == nil { - break - } - - args, err := ec.field_Mutation_signIn_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.SignIn(childComplexity, args["input"].(types.SignInInput)), true - case "Mutation.signOut": - if e.ComplexityRoot.Mutation.SignOut == nil { - break - } - - return e.ComplexityRoot.Mutation.SignOut(childComplexity), true - case "Mutation.signUp": - if e.ComplexityRoot.Mutation.SignUp == nil { - break - } - - args, err := ec.field_Mutation_signUp_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.SignUp(childComplexity, args["input"].(types.SignUpInput)), true - case "Mutation.updateMembership": - if e.ComplexityRoot.Mutation.UpdateMembership == nil { - break - } - - args, err := ec.field_Mutation_updateMembership_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateMembership(childComplexity, args["input"].(types.UpdateMembershipInput)), true - case "Mutation.updateOrganization": - if e.ComplexityRoot.Mutation.UpdateOrganization == nil { - break - } - - args, err := ec.field_Mutation_updateOrganization_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateOrganization(childComplexity, args["input"].(types.UpdateOrganizationInput)), true - case "Mutation.updateSAMLConfiguration": - if e.ComplexityRoot.Mutation.UpdateSAMLConfiguration == nil { - break - } - - args, err := ec.field_Mutation_updateSAMLConfiguration_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateSAMLConfiguration(childComplexity, args["input"].(types.UpdateSAMLConfigurationInput)), true - case "Mutation.updateSCIMBridge": - if e.ComplexityRoot.Mutation.UpdateSCIMBridge == nil { - break - } - - args, err := ec.field_Mutation_updateSCIMBridge_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateSCIMBridge(childComplexity, args["input"].(types.UpdateSCIMBridgeInput)), true - case "Mutation.updateUser": - if e.ComplexityRoot.Mutation.UpdateUser == nil { - break - } - - args, err := ec.field_Mutation_updateUser_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateUser(childComplexity, args["input"].(types.UpdateUserInput)), true - case "Mutation.verifyEmail": - if e.ComplexityRoot.Mutation.VerifyEmail == nil { - break - } - - args, err := ec.field_Mutation_verifyEmail_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.VerifyEmail(childComplexity, args["input"].(types.VerifyEmailInput)), true - - case "Organization.createdAt": - if e.ComplexityRoot.Organization.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Organization.CreatedAt(childComplexity), true - case "Organization.description": - if e.ComplexityRoot.Organization.Description == nil { - break - } - - return e.ComplexityRoot.Organization.Description(childComplexity), true - case "Organization.email": - if e.ComplexityRoot.Organization.Email == nil { - break - } - - return e.ComplexityRoot.Organization.Email(childComplexity), true - case "Organization.headquarterAddress": - if e.ComplexityRoot.Organization.HeadquarterAddress == nil { - break - } - - return e.ComplexityRoot.Organization.HeadquarterAddress(childComplexity), true - case "Organization.horizontalLogoUrl": - if e.ComplexityRoot.Organization.HorizontalLogoURL == nil { - break - } - - return e.ComplexityRoot.Organization.HorizontalLogoURL(childComplexity), true - case "Organization.id": - if e.ComplexityRoot.Organization.ID == nil { - break - } - - return e.ComplexityRoot.Organization.ID(childComplexity), true - case "Organization.logoUrl": - if e.ComplexityRoot.Organization.LogoURL == nil { - break - } - - return e.ComplexityRoot.Organization.LogoURL(childComplexity), true - case "Organization.name": - if e.ComplexityRoot.Organization.Name == nil { - break - } - - return e.ComplexityRoot.Organization.Name(childComplexity), true - case "Organization.permission": - if e.ComplexityRoot.Organization.Permission == nil { - break - } - - args, err := ec.field_Organization_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Permission(childComplexity, args["action"].(string)), true - case "Organization.profiles": - if e.ComplexityRoot.Organization.Profiles == nil { - break - } - - args, err := ec.field_Organization_profiles_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Profiles(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ProfileOrderBy)), true - case "Organization.samlConfigurations": - if e.ComplexityRoot.Organization.SamlConfigurations == nil { - break - } - - args, err := ec.field_Organization_samlConfigurations_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.SamlConfigurations(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "Organization.scimConfiguration": - if e.ComplexityRoot.Organization.ScimConfiguration == nil { - break - } - - return e.ComplexityRoot.Organization.ScimConfiguration(childComplexity), true - case "Organization.updatedAt": - if e.ComplexityRoot.Organization.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Organization.UpdatedAt(childComplexity), true - case "Organization.viewer": - if e.ComplexityRoot.Organization.Viewer == nil { - break - } - - return e.ComplexityRoot.Organization.Viewer(childComplexity), true - case "Organization.websiteUrl": - if e.ComplexityRoot.Organization.WebsiteURL == nil { - break - } - - return e.ComplexityRoot.Organization.WebsiteURL(childComplexity), true - - case "OrganizationSessionCreated.membership": - if e.ComplexityRoot.OrganizationSessionCreated.Membership == nil { - break - } - - return e.ComplexityRoot.OrganizationSessionCreated.Membership(childComplexity), true - case "OrganizationSessionCreated.session": - if e.ComplexityRoot.OrganizationSessionCreated.Session == nil { - break - } - - return e.ComplexityRoot.OrganizationSessionCreated.Session(childComplexity), true - - case "PageInfo.endCursor": - if e.ComplexityRoot.PageInfo.EndCursor == nil { - break - } - - return e.ComplexityRoot.PageInfo.EndCursor(childComplexity), true - case "PageInfo.hasNextPage": - if e.ComplexityRoot.PageInfo.HasNextPage == nil { - break - } - - return e.ComplexityRoot.PageInfo.HasNextPage(childComplexity), true - case "PageInfo.hasPreviousPage": - if e.ComplexityRoot.PageInfo.HasPreviousPage == nil { - break - } - - return e.ComplexityRoot.PageInfo.HasPreviousPage(childComplexity), true - case "PageInfo.startCursor": - if e.ComplexityRoot.PageInfo.StartCursor == nil { - break - } - - return e.ComplexityRoot.PageInfo.StartCursor(childComplexity), true - - case "PasswordRequired.reason": - if e.ComplexityRoot.PasswordRequired.Reason == nil { - break - } - - return e.ComplexityRoot.PasswordRequired.Reason(childComplexity), true - - case "PersonalAPIKey.createdAt": - if e.ComplexityRoot.PersonalAPIKey.CreatedAt == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKey.CreatedAt(childComplexity), true - case "PersonalAPIKey.expiresAt": - if e.ComplexityRoot.PersonalAPIKey.ExpiresAt == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKey.ExpiresAt(childComplexity), true - case "PersonalAPIKey.id": - if e.ComplexityRoot.PersonalAPIKey.ID == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKey.ID(childComplexity), true - case "PersonalAPIKey.lastUsedAt": - if e.ComplexityRoot.PersonalAPIKey.LastUsedAt == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKey.LastUsedAt(childComplexity), true - case "PersonalAPIKey.name": - if e.ComplexityRoot.PersonalAPIKey.Name == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKey.Name(childComplexity), true - case "PersonalAPIKey.permission": - if e.ComplexityRoot.PersonalAPIKey.Permission == nil { - break - } - - args, err := ec.field_PersonalAPIKey_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.PersonalAPIKey.Permission(childComplexity, args["action"].(string)), true - case "PersonalAPIKey.token": - if e.ComplexityRoot.PersonalAPIKey.Token == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKey.Token(childComplexity), true - - case "PersonalAPIKeyConnection.edges": - if e.ComplexityRoot.PersonalAPIKeyConnection.Edges == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKeyConnection.Edges(childComplexity), true - case "PersonalAPIKeyConnection.pageInfo": - if e.ComplexityRoot.PersonalAPIKeyConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKeyConnection.PageInfo(childComplexity), true - case "PersonalAPIKeyConnection.totalCount": - if e.ComplexityRoot.PersonalAPIKeyConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKeyConnection.TotalCount(childComplexity), true - - case "PersonalAPIKeyEdge.cursor": - if e.ComplexityRoot.PersonalAPIKeyEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKeyEdge.Cursor(childComplexity), true - case "PersonalAPIKeyEdge.node": - if e.ComplexityRoot.PersonalAPIKeyEdge.Node == nil { - break - } - - return e.ComplexityRoot.PersonalAPIKeyEdge.Node(childComplexity), true - - case "Profile.additionalEmailAddresses": - if e.ComplexityRoot.Profile.AdditionalEmailAddresses == nil { - break - } - - return e.ComplexityRoot.Profile.AdditionalEmailAddresses(childComplexity), true - case "Profile.contractEndDate": - if e.ComplexityRoot.Profile.ContractEndDate == nil { - break - } - - return e.ComplexityRoot.Profile.ContractEndDate(childComplexity), true - case "Profile.contractStartDate": - if e.ComplexityRoot.Profile.ContractStartDate == nil { - break - } - - return e.ComplexityRoot.Profile.ContractStartDate(childComplexity), true - case "Profile.createdAt": - if e.ComplexityRoot.Profile.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Profile.CreatedAt(childComplexity), true - case "Profile.emailAddress": - if e.ComplexityRoot.Profile.EmailAddress == nil { - break - } - - return e.ComplexityRoot.Profile.EmailAddress(childComplexity), true - case "Profile.fullName": - if e.ComplexityRoot.Profile.FullName == nil { - break - } - - return e.ComplexityRoot.Profile.FullName(childComplexity), true - case "Profile.id": - if e.ComplexityRoot.Profile.ID == nil { - break - } - - return e.ComplexityRoot.Profile.ID(childComplexity), true - case "Profile.identity": - if e.ComplexityRoot.Profile.Identity == nil { - break - } - - return e.ComplexityRoot.Profile.Identity(childComplexity), true - case "Profile.kind": - if e.ComplexityRoot.Profile.Kind == nil { - break - } - - return e.ComplexityRoot.Profile.Kind(childComplexity), true - case "Profile.membership": - if e.ComplexityRoot.Profile.Membership == nil { - break - } - - return e.ComplexityRoot.Profile.Membership(childComplexity), true - case "Profile.organization": - if e.ComplexityRoot.Profile.Organization == nil { - break - } - - return e.ComplexityRoot.Profile.Organization(childComplexity), true - case "Profile.pendingInvitations": - if e.ComplexityRoot.Profile.PendingInvitations == nil { - break - } - - args, err := ec.field_Profile_pendingInvitations_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Profile.PendingInvitations(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.InvitationOrderBy)), true - case "Profile.permission": - if e.ComplexityRoot.Profile.Permission == nil { - break - } - - args, err := ec.field_Profile_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Profile.Permission(childComplexity, args["action"].(string)), true - case "Profile.position": - if e.ComplexityRoot.Profile.Position == nil { - break - } - - return e.ComplexityRoot.Profile.Position(childComplexity), true - case "Profile.source": - if e.ComplexityRoot.Profile.Source == nil { - break - } - - return e.ComplexityRoot.Profile.Source(childComplexity), true - case "Profile.state": - if e.ComplexityRoot.Profile.State == nil { - break - } - - return e.ComplexityRoot.Profile.State(childComplexity), true - case "Profile.updatedAt": - if e.ComplexityRoot.Profile.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Profile.UpdatedAt(childComplexity), true - - case "ProfileConnection.edges": - if e.ComplexityRoot.ProfileConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ProfileConnection.Edges(childComplexity), true - case "ProfileConnection.pageInfo": - if e.ComplexityRoot.ProfileConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ProfileConnection.PageInfo(childComplexity), true - case "ProfileConnection.totalCount": - if e.ComplexityRoot.ProfileConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.ProfileConnection.TotalCount(childComplexity), true - - case "ProfileEdge.cursor": - if e.ComplexityRoot.ProfileEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ProfileEdge.Cursor(childComplexity), true - case "ProfileEdge.node": - if e.ComplexityRoot.ProfileEdge.Node == nil { - break - } - - return e.ComplexityRoot.ProfileEdge.Node(childComplexity), true - - case "Query.node": - if e.ComplexityRoot.Query.Node == nil { - break - } - - args, err := ec.field_Query_node_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Query.Node(childComplexity, args["id"].(gid.GID)), true - case "Query.ssoLoginURL": - if e.ComplexityRoot.Query.SsoLoginURL == nil { - break - } - - args, err := ec.field_Query_ssoLoginURL_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Query.SsoLoginURL(childComplexity, args["email"].(mail.Addr)), true - case "Query.viewer": - if e.ComplexityRoot.Query.Viewer == nil { - break - } - - return e.ComplexityRoot.Query.Viewer(childComplexity), true - - case "RegenerateSCIMTokenPayload.scimConfiguration": - if e.ComplexityRoot.RegenerateSCIMTokenPayload.ScimConfiguration == nil { - break - } - - return e.ComplexityRoot.RegenerateSCIMTokenPayload.ScimConfiguration(childComplexity), true - case "RegenerateSCIMTokenPayload.token": - if e.ComplexityRoot.RegenerateSCIMTokenPayload.Token == nil { - break - } - - return e.ComplexityRoot.RegenerateSCIMTokenPayload.Token(childComplexity), true - - case "RemoveUserPayload.deletedProfileId": - if e.ComplexityRoot.RemoveUserPayload.DeletedProfileID == nil { - break - } - - return e.ComplexityRoot.RemoveUserPayload.DeletedProfileID(childComplexity), true - - case "ResetPasswordPayload.success": - if e.ComplexityRoot.ResetPasswordPayload.Success == nil { - break - } - - return e.ComplexityRoot.ResetPasswordPayload.Success(childComplexity), true - - case "RevokeAllSessionsPayload.revokedCount": - if e.ComplexityRoot.RevokeAllSessionsPayload.RevokedCount == nil { - break - } - - return e.ComplexityRoot.RevokeAllSessionsPayload.RevokedCount(childComplexity), true - - case "RevokePersonalAPIKeyPayload.personalAPIKeyId": - if e.ComplexityRoot.RevokePersonalAPIKeyPayload.PersonalAPIKeyID == nil { - break - } - - return e.ComplexityRoot.RevokePersonalAPIKeyPayload.PersonalAPIKeyID(childComplexity), true - - case "RevokeSessionPayload.success": - if e.ComplexityRoot.RevokeSessionPayload.Success == nil { - break - } - - return e.ComplexityRoot.RevokeSessionPayload.Success(childComplexity), true - - case "SAMLAttributeMappings.email": - if e.ComplexityRoot.SAMLAttributeMappings.Email == nil { - break - } - - return e.ComplexityRoot.SAMLAttributeMappings.Email(childComplexity), true - case "SAMLAttributeMappings.firstName": - if e.ComplexityRoot.SAMLAttributeMappings.FirstName == nil { - break - } - - return e.ComplexityRoot.SAMLAttributeMappings.FirstName(childComplexity), true - case "SAMLAttributeMappings.lastName": - if e.ComplexityRoot.SAMLAttributeMappings.LastName == nil { - break - } - - return e.ComplexityRoot.SAMLAttributeMappings.LastName(childComplexity), true - case "SAMLAttributeMappings.role": - if e.ComplexityRoot.SAMLAttributeMappings.Role == nil { - break - } - - return e.ComplexityRoot.SAMLAttributeMappings.Role(childComplexity), true - - case "SAMLAuthenticationRequired.reason": - if e.ComplexityRoot.SAMLAuthenticationRequired.Reason == nil { - break - } - - return e.ComplexityRoot.SAMLAuthenticationRequired.Reason(childComplexity), true - - case "SAMLConfiguration.attributeMappings": - if e.ComplexityRoot.SAMLConfiguration.AttributeMappings == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.AttributeMappings(childComplexity), true - case "SAMLConfiguration.autoSignupEnabled": - if e.ComplexityRoot.SAMLConfiguration.AutoSignupEnabled == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.AutoSignupEnabled(childComplexity), true - case "SAMLConfiguration.createdAt": - if e.ComplexityRoot.SAMLConfiguration.CreatedAt == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.CreatedAt(childComplexity), true - case "SAMLConfiguration.domainVerificationToken": - if e.ComplexityRoot.SAMLConfiguration.DomainVerificationToken == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.DomainVerificationToken(childComplexity), true - case "SAMLConfiguration.domainVerifiedAt": - if e.ComplexityRoot.SAMLConfiguration.DomainVerifiedAt == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.DomainVerifiedAt(childComplexity), true - case "SAMLConfiguration.emailDomain": - if e.ComplexityRoot.SAMLConfiguration.EmailDomain == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.EmailDomain(childComplexity), true - case "SAMLConfiguration.enforcementPolicy": - if e.ComplexityRoot.SAMLConfiguration.EnforcementPolicy == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.EnforcementPolicy(childComplexity), true - case "SAMLConfiguration.id": - if e.ComplexityRoot.SAMLConfiguration.ID == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.ID(childComplexity), true - case "SAMLConfiguration.idpCertificate": - if e.ComplexityRoot.SAMLConfiguration.IdpCertificate == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.IdpCertificate(childComplexity), true - case "SAMLConfiguration.idpEntityId": - if e.ComplexityRoot.SAMLConfiguration.IdpEntityID == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.IdpEntityID(childComplexity), true - case "SAMLConfiguration.idpSsoUrl": - if e.ComplexityRoot.SAMLConfiguration.IdpSsoURL == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.IdpSsoURL(childComplexity), true - case "SAMLConfiguration.permission": - if e.ComplexityRoot.SAMLConfiguration.Permission == nil { - break - } - - args, err := ec.field_SAMLConfiguration_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.SAMLConfiguration.Permission(childComplexity, args["action"].(string)), true - case "SAMLConfiguration.testLoginUrl": - if e.ComplexityRoot.SAMLConfiguration.TestLoginURL == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.TestLoginURL(childComplexity), true - case "SAMLConfiguration.updatedAt": - if e.ComplexityRoot.SAMLConfiguration.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.SAMLConfiguration.UpdatedAt(childComplexity), true - - case "SAMLConfigurationConnection.edges": - if e.ComplexityRoot.SAMLConfigurationConnection.Edges == nil { - break - } - - return e.ComplexityRoot.SAMLConfigurationConnection.Edges(childComplexity), true - case "SAMLConfigurationConnection.pageInfo": - if e.ComplexityRoot.SAMLConfigurationConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.SAMLConfigurationConnection.PageInfo(childComplexity), true - case "SAMLConfigurationConnection.totalCount": - if e.ComplexityRoot.SAMLConfigurationConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.SAMLConfigurationConnection.TotalCount(childComplexity), true - - case "SAMLConfigurationEdge.cursor": - if e.ComplexityRoot.SAMLConfigurationEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.SAMLConfigurationEdge.Cursor(childComplexity), true - case "SAMLConfigurationEdge.node": - if e.ComplexityRoot.SAMLConfigurationEdge.Node == nil { - break - } - - return e.ComplexityRoot.SAMLConfigurationEdge.Node(childComplexity), true - - case "SCIMBridge.connector": - if e.ComplexityRoot.SCIMBridge.Connector == nil { - break - } - - return e.ComplexityRoot.SCIMBridge.Connector(childComplexity), true - case "SCIMBridge.createdAt": - if e.ComplexityRoot.SCIMBridge.CreatedAt == nil { - break - } - - return e.ComplexityRoot.SCIMBridge.CreatedAt(childComplexity), true - case "SCIMBridge.excludedUserNames": - if e.ComplexityRoot.SCIMBridge.ExcludedUserNames == nil { - break - } - - return e.ComplexityRoot.SCIMBridge.ExcludedUserNames(childComplexity), true - case "SCIMBridge.id": - if e.ComplexityRoot.SCIMBridge.ID == nil { - break - } - - return e.ComplexityRoot.SCIMBridge.ID(childComplexity), true - case "SCIMBridge.permission": - if e.ComplexityRoot.SCIMBridge.Permission == nil { - break - } - - args, err := ec.field_SCIMBridge_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.SCIMBridge.Permission(childComplexity, args["action"].(string)), true - case "SCIMBridge.scimConfiguration": - if e.ComplexityRoot.SCIMBridge.ScimConfiguration == nil { - break - } - - return e.ComplexityRoot.SCIMBridge.ScimConfiguration(childComplexity), true - case "SCIMBridge.state": - if e.ComplexityRoot.SCIMBridge.State == nil { - break - } - - return e.ComplexityRoot.SCIMBridge.State(childComplexity), true - case "SCIMBridge.type": - if e.ComplexityRoot.SCIMBridge.Type == nil { - break - } - - return e.ComplexityRoot.SCIMBridge.Type(childComplexity), true - case "SCIMBridge.updatedAt": - if e.ComplexityRoot.SCIMBridge.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.SCIMBridge.UpdatedAt(childComplexity), true - - case "SCIMConfiguration.bridge": - if e.ComplexityRoot.SCIMConfiguration.Bridge == nil { - break - } - - return e.ComplexityRoot.SCIMConfiguration.Bridge(childComplexity), true - case "SCIMConfiguration.createdAt": - if e.ComplexityRoot.SCIMConfiguration.CreatedAt == nil { - break - } - - return e.ComplexityRoot.SCIMConfiguration.CreatedAt(childComplexity), true - case "SCIMConfiguration.endpointUrl": - if e.ComplexityRoot.SCIMConfiguration.EndpointURL == nil { - break - } - - return e.ComplexityRoot.SCIMConfiguration.EndpointURL(childComplexity), true - case "SCIMConfiguration.events": - if e.ComplexityRoot.SCIMConfiguration.Events == nil { - break - } - - args, err := ec.field_SCIMConfiguration_events_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.SCIMConfiguration.Events(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.SCIMEventOrderBy)), true - case "SCIMConfiguration.id": - if e.ComplexityRoot.SCIMConfiguration.ID == nil { - break - } - - return e.ComplexityRoot.SCIMConfiguration.ID(childComplexity), true - case "SCIMConfiguration.organization": - if e.ComplexityRoot.SCIMConfiguration.Organization == nil { - break - } - - return e.ComplexityRoot.SCIMConfiguration.Organization(childComplexity), true - case "SCIMConfiguration.permission": - if e.ComplexityRoot.SCIMConfiguration.Permission == nil { - break - } - - args, err := ec.field_SCIMConfiguration_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.SCIMConfiguration.Permission(childComplexity, args["action"].(string)), true - case "SCIMConfiguration.updatedAt": - if e.ComplexityRoot.SCIMConfiguration.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.SCIMConfiguration.UpdatedAt(childComplexity), true - - case "SCIMEvent.createdAt": - if e.ComplexityRoot.SCIMEvent.CreatedAt == nil { - break - } - - return e.ComplexityRoot.SCIMEvent.CreatedAt(childComplexity), true - case "SCIMEvent.errorMessage": - if e.ComplexityRoot.SCIMEvent.ErrorMessage == nil { - break - } - - return e.ComplexityRoot.SCIMEvent.ErrorMessage(childComplexity), true - case "SCIMEvent.id": - if e.ComplexityRoot.SCIMEvent.ID == nil { - break - } - - return e.ComplexityRoot.SCIMEvent.ID(childComplexity), true - case "SCIMEvent.ipAddress": - if e.ComplexityRoot.SCIMEvent.IPAddress == nil { - break - } - - return e.ComplexityRoot.SCIMEvent.IPAddress(childComplexity), true - case "SCIMEvent.method": - if e.ComplexityRoot.SCIMEvent.Method == nil { - break - } - - return e.ComplexityRoot.SCIMEvent.Method(childComplexity), true - case "SCIMEvent.path": - if e.ComplexityRoot.SCIMEvent.Path == nil { - break - } - - return e.ComplexityRoot.SCIMEvent.Path(childComplexity), true - case "SCIMEvent.permission": - if e.ComplexityRoot.SCIMEvent.Permission == nil { - break - } - - args, err := ec.field_SCIMEvent_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.SCIMEvent.Permission(childComplexity, args["action"].(string)), true - case "SCIMEvent.requestBody": - if e.ComplexityRoot.SCIMEvent.RequestBody == nil { - break - } - - return e.ComplexityRoot.SCIMEvent.RequestBody(childComplexity), true - case "SCIMEvent.responseBody": - if e.ComplexityRoot.SCIMEvent.ResponseBody == nil { - break - } - - return e.ComplexityRoot.SCIMEvent.ResponseBody(childComplexity), true - case "SCIMEvent.statusCode": - if e.ComplexityRoot.SCIMEvent.StatusCode == nil { - break - } - - return e.ComplexityRoot.SCIMEvent.StatusCode(childComplexity), true - case "SCIMEvent.userName": - if e.ComplexityRoot.SCIMEvent.UserName == nil { - break - } - - return e.ComplexityRoot.SCIMEvent.UserName(childComplexity), true - - case "SCIMEventConnection.edges": - if e.ComplexityRoot.SCIMEventConnection.Edges == nil { - break - } - - return e.ComplexityRoot.SCIMEventConnection.Edges(childComplexity), true - case "SCIMEventConnection.pageInfo": - if e.ComplexityRoot.SCIMEventConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.SCIMEventConnection.PageInfo(childComplexity), true - case "SCIMEventConnection.totalCount": - if e.ComplexityRoot.SCIMEventConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.SCIMEventConnection.TotalCount(childComplexity), true - - case "SCIMEventEdge.cursor": - if e.ComplexityRoot.SCIMEventEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.SCIMEventEdge.Cursor(childComplexity), true - case "SCIMEventEdge.node": - if e.ComplexityRoot.SCIMEventEdge.Node == nil { - break - } - - return e.ComplexityRoot.SCIMEventEdge.Node(childComplexity), true - - case "Session.createdAt": - if e.ComplexityRoot.Session.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Session.CreatedAt(childComplexity), true - case "Session.expiresAt": - if e.ComplexityRoot.Session.ExpiresAt == nil { - break - } - - return e.ComplexityRoot.Session.ExpiresAt(childComplexity), true - case "Session.id": - if e.ComplexityRoot.Session.ID == nil { - break - } - - return e.ComplexityRoot.Session.ID(childComplexity), true - case "Session.ipAddress": - if e.ComplexityRoot.Session.IPAddress == nil { - break - } - - return e.ComplexityRoot.Session.IPAddress(childComplexity), true - case "Session.identity": - if e.ComplexityRoot.Session.Identity == nil { - break - } - - return e.ComplexityRoot.Session.Identity(childComplexity), true - case "Session.permission": - if e.ComplexityRoot.Session.Permission == nil { - break - } - - args, err := ec.field_Session_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Session.Permission(childComplexity, args["action"].(string)), true - case "Session.updatedAt": - if e.ComplexityRoot.Session.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Session.UpdatedAt(childComplexity), true - case "Session.userAgent": - if e.ComplexityRoot.Session.UserAgent == nil { - break - } - - return e.ComplexityRoot.Session.UserAgent(childComplexity), true - - case "SessionConnection.edges": - if e.ComplexityRoot.SessionConnection.Edges == nil { - break - } - - return e.ComplexityRoot.SessionConnection.Edges(childComplexity), true - case "SessionConnection.pageInfo": - if e.ComplexityRoot.SessionConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.SessionConnection.PageInfo(childComplexity), true - case "SessionConnection.totalCount": - if e.ComplexityRoot.SessionConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.SessionConnection.TotalCount(childComplexity), true - - case "SessionEdge.cursor": - if e.ComplexityRoot.SessionEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.SessionEdge.Cursor(childComplexity), true - case "SessionEdge.node": - if e.ComplexityRoot.SessionEdge.Node == nil { - break - } - - return e.ComplexityRoot.SessionEdge.Node(childComplexity), true - - case "SignInPayload.identity": - if e.ComplexityRoot.SignInPayload.Identity == nil { - break - } - - return e.ComplexityRoot.SignInPayload.Identity(childComplexity), true - case "SignInPayload.session": - if e.ComplexityRoot.SignInPayload.Session == nil { - break - } - - return e.ComplexityRoot.SignInPayload.Session(childComplexity), true - - case "SignOutPayload.success": - if e.ComplexityRoot.SignOutPayload.Success == nil { - break - } - - return e.ComplexityRoot.SignOutPayload.Success(childComplexity), true - - case "SignUpPayload.identity": - if e.ComplexityRoot.SignUpPayload.Identity == nil { - break - } - - return e.ComplexityRoot.SignUpPayload.Identity(childComplexity), true - - case "UpdateMembershipPayload.membership": - if e.ComplexityRoot.UpdateMembershipPayload.Membership == nil { - break - } - - return e.ComplexityRoot.UpdateMembershipPayload.Membership(childComplexity), true - - case "UpdateOrganizationPayload.organization": - if e.ComplexityRoot.UpdateOrganizationPayload.Organization == nil { - break - } - - return e.ComplexityRoot.UpdateOrganizationPayload.Organization(childComplexity), true - - case "UpdateSAMLConfigurationPayload.samlConfiguration": - if e.ComplexityRoot.UpdateSAMLConfigurationPayload.SamlConfiguration == nil { - break - } - - return e.ComplexityRoot.UpdateSAMLConfigurationPayload.SamlConfiguration(childComplexity), true - - case "UpdateSCIMBridgePayload.scimBridge": - if e.ComplexityRoot.UpdateSCIMBridgePayload.ScimBridge == nil { - break - } - - return e.ComplexityRoot.UpdateSCIMBridgePayload.ScimBridge(childComplexity), true - - case "UpdateUserPayload.profile": - if e.ComplexityRoot.UpdateUserPayload.Profile == nil { - break - } - - return e.ComplexityRoot.UpdateUserPayload.Profile(childComplexity), true - - case "VerifyEmailPayload.success": - if e.ComplexityRoot.VerifyEmailPayload.Success == nil { - break - } - - return e.ComplexityRoot.VerifyEmailPayload.Success(childComplexity), true - - } - return 0, false -} - -func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - opCtx := graphql.GetOperationContext(ctx) - ec := newExecutionContext(opCtx, e, make(chan graphql.DeferredResult)) - inputUnmarshalMap := graphql.BuildUnmarshalerMap( - ec.unmarshalInputActivateAccountInput, - ec.unmarshalInputActivateUserInput, - ec.unmarshalInputAssumeOrganizationSessionInput, - ec.unmarshalInputChangeEmailInput, - ec.unmarshalInputChangePasswordInput, - ec.unmarshalInputCreateOrganizationInput, - ec.unmarshalInputCreatePersonalAPIKeyInput, - ec.unmarshalInputCreateSAMLConfigurationInput, - ec.unmarshalInputCreateSCIMConfigurationInput, - ec.unmarshalInputCreateUserInput, - ec.unmarshalInputDeactivateUserInput, - ec.unmarshalInputDeleteOrganizationHorizontalLogoInput, - ec.unmarshalInputDeleteOrganizationInput, - ec.unmarshalInputDeleteSAMLConfigurationInput, - ec.unmarshalInputDeleteSCIMConfigurationInput, - ec.unmarshalInputForgotPasswordInput, - ec.unmarshalInputInvitationOrder, - ec.unmarshalInputInviteUserInput, - ec.unmarshalInputProfileFilter, - ec.unmarshalInputProfileOrder, - ec.unmarshalInputRegenerateSCIMTokenInput, - ec.unmarshalInputRemoveUserInput, - ec.unmarshalInputResetPasswordInput, - ec.unmarshalInputRevokePersonalAPIKeyInput, - ec.unmarshalInputRevokeSessionInput, - ec.unmarshalInputSAMLAttributeMappingsInput, - ec.unmarshalInputSCIMEventOrder, - ec.unmarshalInputSessionOrder, - ec.unmarshalInputSignInInput, - ec.unmarshalInputSignUpInput, - ec.unmarshalInputUpdateMembershipInput, - ec.unmarshalInputUpdateOrganizationInput, - ec.unmarshalInputUpdateSAMLConfigurationInput, - ec.unmarshalInputUpdateSCIMBridgeInput, - ec.unmarshalInputUpdateUserInput, - ec.unmarshalInputVerifyEmailInput, - ) - first := true - - switch opCtx.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, opCtx.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, opCtx.Operation.SelectionSet) - var buf bytes.Buffer - data.MarshalGQL(&buf) - - return &graphql.Response{ - Data: buf.Bytes(), - } - } - - default: - return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) - } -} - -type executionContext struct { - *graphql.ExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot] -} - -func newExecutionContext( - opCtx *graphql.OperationContext, - execSchema *executableSchema, - deferredResults chan graphql.DeferredResult, -) executionContext { - return executionContext{ - ExecutionContextState: graphql.NewExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot]( - opCtx, - (*graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot])(execSchema), - parsedSchema, - deferredResults, - ), - } -} - -var sources = []*ast.Source{ - {Name: "../schema.graphql", Input: `directive @goField( - forceResolver: Boolean - name: String - omittable: Boolean -) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION - -directive @goModel( - model: String - models: [String!] -) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION - -directive @goEnum(value: String) on ENUM_VALUE - -scalar CursorKey -scalar Datetime -scalar Upload -scalar EmailAddr - -enum OrderDirection - @goModel(model: "go.probo.inc/probo/pkg/page.OrderDirection") { - ASC @goEnum(value: "go.probo.inc/probo/pkg/page.OrderDirectionAsc") - DESC @goEnum(value: "go.probo.inc/probo/pkg/page.OrderDirectionDesc") -} - -enum SessionOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.SessionOrderField") { - CREATED_AT - @goEnum(value: "go.probo.inc/probo/pkg/coredata.SessionOrderFieldCreatedAt") - EXPIRED_AT - @goEnum(value: "go.probo.inc/probo/pkg/coredata.SessionOrderFieldExpiredAt") - UPDATED_AT - @goEnum(value: "go.probo.inc/probo/pkg/coredata.SessionOrderFieldUpdatedAt") -} - -input SessionOrder { - direction: OrderDirection! - field: SessionOrderField! -} - -interface Node { - id: ID! -} - -type Query { - node(id: ID!): Node @session(required: PRESENT) - viewer: Identity @session(required: PRESENT) - ssoLoginURL(email: EmailAddr!): String - @goField(forceResolver: true) - @session(required: OPTIONAL) -} - -type Mutation { - signIn(input: SignInInput!): SignInPayload @session(required: OPTIONAL) - signUp(input: SignUpInput!): SignUpPayload @session(required: NONE) - signOut: SignOutPayload @session(required: PRESENT) - activateAccount( - input: ActivateAccountInput! - ): ActivateAccountPayload @session(required: OPTIONAL) - forgotPassword(input: ForgotPasswordInput!): ForgotPasswordPayload - @session(required: NONE) - resetPassword(input: ResetPasswordInput!): ResetPasswordPayload - @session(required: NONE) - verifyEmail(input: VerifyEmailInput!): VerifyEmailPayload - @session(required: OPTIONAL) - changePassword(input: ChangePasswordInput!): ChangePasswordPayload - @session(required: PRESENT) - changeEmail(input: ChangeEmailInput!): ChangeEmailPayload - @session(required: PRESENT) - assumeOrganizationSession( - input: AssumeOrganizationSessionInput! - ): AssumeOrganizationSessionPayload @session(required: PRESENT) - - revokeSession(input: RevokeSessionInput!): RevokeSessionPayload! - @session(required: PRESENT) - revokeAllSessions: RevokeAllSessionsPayload @session(required: PRESENT) - - createPersonalAPIKey( - input: CreatePersonalAPIKeyInput! - ): CreatePersonalAPIKeyPayload @session(required: PRESENT) - revokePersonalAPIKey( - input: RevokePersonalAPIKeyInput! - ): RevokePersonalAPIKeyPayload @session(required: PRESENT) - - createOrganization( - input: CreateOrganizationInput! - ): CreateOrganizationPayload @session(required: PRESENT) - updateOrganization( - input: UpdateOrganizationInput! - ): UpdateOrganizationPayload @session(required: PRESENT) - deleteOrganization( - input: DeleteOrganizationInput! - ): DeleteOrganizationPayload @session(required: PRESENT) - deleteOrganizationHorizontalLogo( - input: DeleteOrganizationHorizontalLogoInput! - ): DeleteOrganizationHorizontalLogoPayload @session(required: PRESENT) - - createUser(input: CreateUserInput!): CreateUserPayload - @session(required: PRESENT) - inviteUser(input: InviteUserInput!): InviteUserPayload - @session(required: PRESENT) - deactivateUser(input: DeactivateUserInput!): DeactivateUserPayload - updateUser(input: UpdateUserInput!): UpdateUserPayload! - updateMembership(input: UpdateMembershipInput!): UpdateMembershipPayload! - removeUser(input: RemoveUserInput!): RemoveUserPayload - @session(required: PRESENT) - - createSAMLConfiguration( - input: CreateSAMLConfigurationInput! - ): CreateSAMLConfigurationPayload @session(required: PRESENT) - updateSAMLConfiguration( - input: UpdateSAMLConfigurationInput! - ): UpdateSAMLConfigurationPayload @session(required: PRESENT) - deleteSAMLConfiguration( - input: DeleteSAMLConfigurationInput! - ): DeleteSAMLConfigurationPayload @session(required: PRESENT) - - createSCIMConfiguration( - input: CreateSCIMConfigurationInput! - ): CreateSCIMConfigurationPayload @session(required: PRESENT) - deleteSCIMConfiguration( - input: DeleteSCIMConfigurationInput! - ): DeleteSCIMConfigurationPayload @session(required: PRESENT) - regenerateSCIMToken( - input: RegenerateSCIMTokenInput! - ): RegenerateSCIMTokenPayload @session(required: PRESENT) - updateSCIMBridge( - input: UpdateSCIMBridgeInput! - ): UpdateSCIMBridgePayload @session(required: PRESENT) -} - -type Identity implements Node { - id: ID! - email: EmailAddr! - fullName: String! - emailVerified: Boolean! - createdAt: Datetime! - updatedAt: Datetime! - - profiles( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ProfileOrder - filter: ProfileFilter - ): ProfileConnection @goField(forceResolver: true) - - sessions( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: SessionOrder - ): SessionConnection @goField(forceResolver: true) - - personalAPIKeys( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): PersonalAPIKeyConnection @goField(forceResolver: true) - - ssoLoginURL: String - @goField(forceResolver: true) - @session(required: PRESENT) - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -type Profile implements Node { - id: ID! - fullName: String! - emailAddress: EmailAddr! - source: String! - state: ProfileState! - additionalEmailAddresses: [EmailAddr!]! - kind: String - position: String - contractStartDate: Datetime - contractEndDate: Datetime - createdAt: Datetime! - updatedAt: Datetime! - - identity: Identity @goField(forceResolver: true) - organization: Organization @goField(forceResolver: true) - membership: Membership @goField(forceResolver: true) - pendingInvitations( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: InvitationOrder - ): InvitationConnection @goField(forceResolver: true) - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -enum ProfileState - @goModel(model: "go.probo.inc/probo/pkg/coredata.ProfileState") { - ACTIVE @goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileStateActive") - INACTIVE - @goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileStateInactive") -} - -enum ProfileSource - @goModel(model: "go.probo.inc/probo/pkg/coredata.ProfileSource") { - MANUAL - @goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileSourceManual") - SAML @goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileSourceSAML") - SCIM @goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileSourceSCIM") -} - -type Organization implements Node { - id: ID! - name: String! - logoUrl: String @goField(forceResolver: true) - horizontalLogoUrl: String @goField(forceResolver: true) - email: String - description: String - websiteUrl: String - headquarterAddress: String - createdAt: Datetime! - updatedAt: Datetime! - - profiles( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ProfileOrder - ): ProfileConnection @goField(forceResolver: true) - - samlConfigurations( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): SAMLConfigurationConnection @goField(forceResolver: true) - - scimConfiguration: SCIMConfiguration @goField(forceResolver: true) - - viewer: Profile @goField(forceResolver: true) - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -enum MembershipRole - @goModel(model: "go.probo.inc/probo/pkg/coredata.MembershipRole") { - OWNER @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipRoleOwner") - ADMIN @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipRoleAdmin") - EMPLOYEE - @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipRoleEmployee") - VIEWER @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipRoleViewer") - AUDITOR - @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipRoleAuditor") -} - -type Membership implements Node { - id: ID! - createdAt: Datetime! - role: MembershipRole! - - lastSession: Session @goField(forceResolver: true) - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -type Invitation implements Node { - id: ID! - expiresAt: Datetime! - acceptedAt: Datetime - createdAt: Datetime! - status: InvitationStatus! - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -type Session implements Node { - id: ID! - identity: Identity @goField(forceResolver: true) - ipAddress: String! - userAgent: String! - updatedAt: Datetime! - createdAt: Datetime! - expiresAt: Datetime! - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -type PersonalAPIKey implements Node { - id: ID! - name: String! - expiresAt: Datetime! - lastUsedAt: Datetime - createdAt: Datetime! - - token: String @goField(forceResolver: true) - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -type SAMLConfiguration implements Node { - id: ID! - emailDomain: String! - enforcementPolicy: SAMLEnforcementPolicy! - domainVerifiedAt: Datetime - domainVerificationToken: String - idpEntityId: String! - idpSsoUrl: String! - idpCertificate: String! - autoSignupEnabled: Boolean! - createdAt: Datetime! - updatedAt: Datetime! - testLoginUrl: String! @goField(forceResolver: true) - attributeMappings: SAMLAttributeMappings! - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -type SAMLAttributeMappings { - email: String! - firstName: String! - lastName: String! - role: String! -} - -type SCIMConfiguration implements Node { - id: ID! - endpointUrl: String! @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! - organization: Organization @goField(forceResolver: true) - - bridge: SCIMBridge @goField(forceResolver: true) - - events( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: SCIMEventOrder - ): SCIMEventConnection @goField(forceResolver: true) - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -type SCIMBridge implements Node { - id: ID! - state: SCIMBridgeState! - scimConfiguration: SCIMConfiguration @goField(forceResolver: true) - connector: Connector @goField(forceResolver: true) - type: SCIMBridgeType! - excludedUserNames: [String!]! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -type Connector implements Node { - id: ID! - provider: ConnectorProvider! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -enum ConnectorProvider - @goModel(model: "go.probo.inc/probo/pkg/coredata.ConnectorProvider") { - SLACK @goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderSlack") - GOOGLE_WORKSPACE - @goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderGoogleWorkspace") -} - -enum SCIMBridgeType - @goModel(model: "go.probo.inc/probo/pkg/coredata.SCIMBridgeType") { - GOOGLE_WORKSPACE @goEnum(value: "go.probo.inc/probo/pkg/coredata.SCIMBridgeTypeGoogleWorkspace") -} - -enum SCIMBridgeState - @goModel(model: "go.probo.inc/probo/pkg/coredata.SCIMBridgeState") { - PENDING @goEnum(value: "go.probo.inc/probo/pkg/coredata.SCIMBridgeStatePending") - ACTIVE @goEnum(value: "go.probo.inc/probo/pkg/coredata.SCIMBridgeStateActive") - FAILED @goEnum(value: "go.probo.inc/probo/pkg/coredata.SCIMBridgeStateFailed") -} - -type SCIMEvent implements Node { - id: ID! - method: String! - path: String! - statusCode: Int! - requestBody: String - responseBody: String - errorMessage: String - userName: String! - ipAddress: String! - createdAt: Datetime! - - permission(action: String!): Boolean! - @goField(forceResolver: true) - @session(required: PRESENT) -} - -enum InvitationStatus - @goModel(model: "go.probo.inc/probo/pkg/coredata.InvitationStatus") { - PENDING - @goEnum(value: "go.probo.inc/probo/pkg/coredata.InvitationStatusPending") - ACCEPTED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.InvitationStatusAccepted") - EXPIRED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.InvitationStatusExpired") -} - -enum SAMLEnforcementPolicy - @goModel(model: "go.probo.inc/probo/pkg/coredata.SAMLEnforcementPolicy") { - OFF @goEnum(value: "go.probo.inc/probo/pkg/coredata.SAMLEnforcementPolicyOff") - OPTIONAL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.SAMLEnforcementPolicyOptional" - ) - REQUIRED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.SAMLEnforcementPolicyRequired" - ) -} - -enum ReauthenticationReason { - SESSION_EXPIRED - SENSITIVE_ACTION - POLICY_REQUIREMENT -} - -enum InvitationOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.InvitationOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.InvitationOrderFieldCreatedAt" - ) -} - -input InvitationOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.InvitationOrderBy" - ) { - direction: OrderDirection! - field: InvitationOrderField! -} - -type InvitationConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.InvitationConnection" - ) { - edges: [InvitationEdge!]! - pageInfo: PageInfo! -} - -type InvitationEdge { - node: Invitation! - cursor: CursorKey! -} - -enum ProfileOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderField") { - FULL_NAME - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldFullName" - ) - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldCreatedAt" - ) - KIND @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldKind") - ORGANIZATION_NAME - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldOrganizationName" - ) - STATE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldState" - ) -} - -input ProfileFilter { - excludeContractEnded: Boolean - state: ProfileState -} - -input ProfileOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.ProfileOrderBy" - ) { - direction: OrderDirection! - field: ProfileOrderField! -} - -type ProfileConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.ProfileConnection" - ) { - totalCount: Int @goField(forceResolver: true) - edges: [ProfileEdge!]! - pageInfo: PageInfo! -} - -type ProfileEdge { - cursor: CursorKey! - node: Profile! -} - -type SessionConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.SessionConnection" - ) { - edges: [SessionEdge!]! - pageInfo: PageInfo! - totalCount: Int @goField(forceResolver: true) -} - -type SessionEdge { - node: Session! - cursor: CursorKey! -} - -type PersonalAPIKeyConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.PersonalAPIKeyConnection" - ) { - edges: [PersonalAPIKeyEdge!]! - pageInfo: PageInfo! - totalCount: Int @goField(forceResolver: true) -} - -type PersonalAPIKeyEdge { - node: PersonalAPIKey! - cursor: CursorKey! -} - -type SAMLConfigurationConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.SAMLConfigurationConnection" - ) { - edges: [SAMLConfigurationEdge!]! - pageInfo: PageInfo! - totalCount: Int @goField(forceResolver: true) -} - -type SAMLConfigurationEdge { - node: SAMLConfiguration! - cursor: CursorKey! -} - -enum SCIMEventOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.SCIMEventOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.SCIMEventOrderFieldCreatedAt" - ) -} - -input SCIMEventOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.SCIMEventOrderBy" - ) { - direction: OrderDirection! - field: SCIMEventOrderField! -} - -type SCIMEventConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.SCIMEventConnection" - ) { - edges: [SCIMEventEdge!]! - pageInfo: PageInfo! - totalCount: Int @goField(forceResolver: true) -} - -type SCIMEventEdge { - node: SCIMEvent! - cursor: CursorKey! -} - -type PageInfo { - hasNextPage: Boolean! - hasPreviousPage: Boolean! - startCursor: CursorKey - endCursor: CursorKey -} - -input SignInInput { - # When assuming an org with a password auth method - organizationId: ID - email: EmailAddr! - password: String! -} - -input SignUpInput { - email: EmailAddr! - password: String! - fullName: String! -} - -input ActivateAccountInput { - token: String! -} - -input ForgotPasswordInput { - email: EmailAddr! -} - -input ResetPasswordInput { - token: String! - password: String! -} - -input VerifyEmailInput { - token: String! -} - -input ChangePasswordInput { - currentPassword: String! - newPassword: String! -} - -input ChangeEmailInput { - newEmail: EmailAddr! - password: String! -} - -input AssumeOrganizationSessionInput { - organizationId: ID! - continue: String! -} - -input RevokeSessionInput { - sessionId: ID! -} - -input CreatePersonalAPIKeyInput { - name: String! - expiresAt: Datetime! -} - -input RevokePersonalAPIKeyInput { - personalAPIKeyId: ID! -} - -input CreateOrganizationInput { - name: String! - logoFile: Upload - horizontalLogoFile: Upload -} - -input UpdateOrganizationInput { - organizationId: ID! - name: String - logoFile: Upload - horizontalLogoFile: Upload - description: String @goField(omittable: true) - websiteUrl: String @goField(omittable: true) - email: String @goField(omittable: true) - headquarterAddress: String @goField(omittable: true) -} - -input DeleteOrganizationInput { - organizationId: ID! -} - -input DeleteOrganizationHorizontalLogoInput { - organizationId: ID! -} - -input CreateUserInput { - organizationId: ID! - fullName: String! - emailAddress: EmailAddr! - role: MembershipRole! - additionalEmailAddresses: [EmailAddr!] - kind: String - position: String - contractStartDate: Datetime @goField(omittable: true) - contractEndDate: Datetime @goField(omittable: true) -} - -input InviteUserInput { - organizationId: ID! - profileId: ID! -} - -input ActivateUserInput { - organizationId: ID! - profileId: ID! -} - -input DeactivateUserInput { - organizationId: ID! - profileId: ID! -} - -input UpdateUserInput { - id: ID! - fullName: String! - additionalEmailAddresses: [EmailAddr!] - kind: String - position: String - contractStartDate: Datetime @goField(omittable: true) - contractEndDate: Datetime @goField(omittable: true) -} - -input UpdateMembershipInput { - organizationId: ID! - membershipId: ID! - role: MembershipRole! -} - -input RemoveUserInput { - organizationId: ID! - profileId: ID! -} - -input CreateSAMLConfigurationInput { - organizationId: ID! - emailDomain: String! - idpEntityId: String! - idpSsoUrl: String! - idpCertificate: String! - autoSignupEnabled: Boolean! - attributeMappings: SAMLAttributeMappingsInput -} - -input SAMLAttributeMappingsInput { - email: String - firstName: String - lastName: String - role: String -} - -input UpdateSAMLConfigurationInput { - organizationId: ID! - samlConfigurationId: ID! - idpEntityId: String - idpSsoUrl: String - idpCertificate: String - autoSignupEnabled: Boolean - enforcementPolicy: SAMLEnforcementPolicy! - attributeMappings: SAMLAttributeMappingsInput -} - -input DeleteSAMLConfigurationInput { - organizationId: ID! - samlConfigurationId: ID! -} - -type SignInPayload { - identity: Identity - session: Session -} - -type SignUpPayload { - identity: Identity -} - -type SignOutPayload { - success: Boolean! -} - -type ActivateAccountPayload { - createPasswordToken: String - ssoLoginUrl: String - profile: Profile -} - -type ForgotPasswordPayload { - success: Boolean! -} - -type ResetPasswordPayload { - success: Boolean! -} - -type VerifyEmailPayload { - success: Boolean! -} - -type ChangePasswordPayload { - success: Boolean! -} - -type ChangeEmailPayload { - success: Boolean! -} - -union AssumeOrganizationSessionResult = - | OrganizationSessionCreated - | PasswordRequired - | SAMLAuthenticationRequired - -type OrganizationSessionCreated { - session: Session! - membership: Membership! -} - -type PasswordRequired { - reason: ReauthenticationReason! -} - -type SAMLAuthenticationRequired { - reason: ReauthenticationReason! -} - -type AssumeOrganizationSessionPayload { - result: AssumeOrganizationSessionResult! -} - -type RevokeSessionPayload { - success: Boolean! -} - -type RevokeAllSessionsPayload { - revokedCount: Int! -} - -type CreatePersonalAPIKeyPayload { - personalAPIKeyEdge: PersonalAPIKeyEdge! - token: String! -} - -type RevokePersonalAPIKeyPayload { - personalAPIKeyId: ID! -} - -type CreateOrganizationPayload { - organization: Organization - profile: Profile! -} - -type UpdateOrganizationPayload { - organization: Organization -} - -type DeleteOrganizationPayload { - deletedOrganizationId: ID! -} - -type DeleteOrganizationHorizontalLogoPayload { - organization: Organization! -} - -type CreateUserPayload { - profileEdge: ProfileEdge! -} - -type InviteUserPayload { - invitationEdge: InvitationEdge! -} - -type DeactivateUserPayload { - success: Boolean! -} - -type UpdateUserPayload { - profile: Profile! -} - -type UpdateMembershipPayload { - membership: Membership! -} - -type RemoveUserPayload { - deletedProfileId: ID! -} - -type CreateSAMLConfigurationPayload { - samlConfigurationEdge: SAMLConfigurationEdge! -} - -type UpdateSAMLConfigurationPayload { - samlConfiguration: SAMLConfiguration -} - -type DeleteSAMLConfigurationPayload { - deletedSamlConfigurationId: ID! -} - -input CreateSCIMConfigurationInput { - organizationId: ID! - connectorId: ID -} - -input DeleteSCIMConfigurationInput { - organizationId: ID! - scimConfigurationId: ID! -} - -input RegenerateSCIMTokenInput { - organizationId: ID! - scimConfigurationId: ID! -} - -input UpdateSCIMBridgeInput { - organizationId: ID! - scimBridgeId: ID! - excludedUserNames: [String!]! -} - -type CreateSCIMConfigurationPayload { - scimConfiguration: SCIMConfiguration! - scimBridge: SCIMBridge - token: String! -} - -type DeleteSCIMConfigurationPayload { - deletedScimConfigurationId: ID! -} - -type RegenerateSCIMTokenPayload { - scimConfiguration: SCIMConfiguration! - token: String! -} - -type UpdateSCIMBridgePayload { - scimBridge: SCIMBridge! -} -`, BuiltIn: false}, - {Name: "../../../../gqlutils/directives/session/schema.graphql", Input: `# Session directive for GraphQL APIs -# Include this schema in your gqlgen configuration to enable session-based access control. -# -# Usage in your schema.graphql: -# type Query { -# viewer: User @session(required: PRESENT) -# publicData: Data @session(required: OPTIONAL) -# signup(input: SignUpInput!): SignUpPayload @session(required: NONE) -# } - -directive @session(required: SessionRequirement!) on FIELD_DEFINITION - -enum SessionRequirement - @goModel( - model: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirement" - ) { - """ - Requires an authenticated session or API key. - """ - PRESENT - @goEnum( - value: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirementPresent" - ) - """ - Forbids authenticated access (e.g., for login/signup endpoints). - """ - NONE - @goEnum( - value: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirementNone" - ) - """ - Allows both authenticated and unauthenticated access. - """ - OPTIONAL - @goEnum( - value: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirementOptional" - ) -} -`, BuiltIn: false}, -} -var parsedSchema = gqlparser.MustLoadSchema(sources...) - -// endregion ************************** generated!.gotpl ************************** - -// region ***************************** args.gotpl ***************************** - -func (ec *executionContext) dir_session_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "required", ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement) - if err != nil { - return nil, err - } - args["required"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Connector_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Identity_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Identity_personalAPIKeys_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_Identity_profiles_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOProfileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOProfileFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Identity_sessions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOSessionOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionOrder) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Invitation_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Membership_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_activateAccount_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNActivateAccountInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐActivateAccountInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_assumeOrganizationSession_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNAssumeOrganizationSessionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_changeEmail_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNChangeEmailInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangeEmailInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_changePassword_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNChangePasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangePasswordInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateOrganizationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createPersonalAPIKey_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreatePersonalAPIKeyInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreatePersonalAPIKeyInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createSAMLConfiguration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSAMLConfigurationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createSCIMConfiguration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateSCIMConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSCIMConfigurationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateUserInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deactivateUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeactivateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeactivateUserInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteOrganizationHorizontalLogo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteOrganizationHorizontalLogoInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationHorizontalLogoInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteSAMLConfiguration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSAMLConfigurationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteSCIMConfiguration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteSCIMConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSCIMConfigurationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_forgotPassword_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNForgotPasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐForgotPasswordInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_inviteUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNInviteUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInviteUserInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_regenerateSCIMToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRegenerateSCIMTokenInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRegenerateSCIMTokenInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_removeUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRemoveUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRemoveUserInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_resetPassword_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNResetPasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐResetPasswordInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_revokePersonalAPIKey_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRevokePersonalAPIKeyInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokePersonalAPIKeyInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_revokeSession_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRevokeSessionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeSessionInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_signIn_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNSignInInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignInInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_signUp_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNSignUpInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignUpInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateMembership_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateMembershipInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateMembershipInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateOrganizationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateSAMLConfiguration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSAMLConfigurationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateSCIMBridge_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateSCIMBridgeInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSCIMBridgeInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateUserInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_verifyEmail_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNVerifyEmailInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐVerifyEmailInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Organization_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Organization_profiles_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOProfileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Organization_samlConfigurations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_PersonalAPIKey_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Profile_pendingInvitations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOInvitationOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Profile_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["name"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_ssoLoginURL_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "email", ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr) - if err != nil { - return nil, err - } - args["email"] = arg0 - return args, nil -} - -func (ec *executionContext) field_SAMLConfiguration_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_SCIMBridge_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_SCIMConfiguration_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOSCIMEventOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_SCIMConfiguration_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_SCIMEvent_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Session_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool) - if err != nil { - return nil, err - } - args["includeDeprecated"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool) - if err != nil { - return nil, err - } - args["includeDeprecated"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool) - 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]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool) - 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) _ActivateAccountPayload_createPasswordToken(ctx context.Context, field graphql.CollectedField, obj *types.ActivateAccountPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ActivateAccountPayload_createPasswordToken, - func(ctx context.Context) (any, error) { - return obj.CreatePasswordToken, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ActivateAccountPayload_createPasswordToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActivateAccountPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActivateAccountPayload_ssoLoginUrl(ctx context.Context, field graphql.CollectedField, obj *types.ActivateAccountPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ActivateAccountPayload_ssoLoginUrl, - func(ctx context.Context) (any, error) { - return obj.SsoLoginURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ActivateAccountPayload_ssoLoginUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActivateAccountPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActivateAccountPayload_profile(ctx context.Context, field graphql.CollectedField, obj *types.ActivateAccountPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ActivateAccountPayload_profile, - func(ctx context.Context) (any, error) { - return obj.Profile, nil - }, - nil, - ec.marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ActivateAccountPayload_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActivateAccountPayload", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "source": - return ec.fieldContext_Profile_source(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "identity": - return ec.fieldContext_Profile_identity(ctx, field) - case "organization": - return ec.fieldContext_Profile_organization(ctx, field) - case "membership": - return ec.fieldContext_Profile_membership(ctx, field) - case "pendingInvitations": - return ec.fieldContext_Profile_pendingInvitations(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AssumeOrganizationSessionPayload_result(ctx context.Context, field graphql.CollectedField, obj *types.AssumeOrganizationSessionPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AssumeOrganizationSessionPayload_result, - func(ctx context.Context) (any, error) { - return obj.Result, nil - }, - nil, - ec.marshalNAssumeOrganizationSessionResult2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionResult, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AssumeOrganizationSessionPayload_result(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AssumeOrganizationSessionPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type AssumeOrganizationSessionResult does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ChangeEmailPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.ChangeEmailPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ChangeEmailPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ChangeEmailPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ChangeEmailPayload", - 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) _ChangePasswordPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.ChangePasswordPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ChangePasswordPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ChangePasswordPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ChangePasswordPayload", - 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) _Connector_id(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Connector_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Connector_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Connector", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Connector_provider(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Connector_provider, - func(ctx context.Context) (any, error) { - return obj.Provider, nil - }, - nil, - ec.marshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Connector_provider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Connector", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConnectorProvider does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Connector_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Connector_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Connector_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Connector", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Connector_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Connector_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Connector_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Connector", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Connector_permission(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Connector_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Connector().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Connector_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Connector", - 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_Connector_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _CreateOrganizationPayload_organization(ctx context.Context, field graphql.CollectedField, obj *types.CreateOrganizationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateOrganizationPayload_organization, - func(ctx context.Context) (any, error) { - return obj.Organization, nil - }, - nil, - ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_CreateOrganizationPayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateOrganizationPayload", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "samlConfigurations": - return ec.fieldContext_Organization_samlConfigurations(ctx, field) - case "scimConfiguration": - return ec.fieldContext_Organization_scimConfiguration(ctx, field) - case "viewer": - return ec.fieldContext_Organization_viewer(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateOrganizationPayload_profile(ctx context.Context, field graphql.CollectedField, obj *types.CreateOrganizationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateOrganizationPayload_profile, - func(ctx context.Context) (any, error) { - return obj.Profile, nil - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateOrganizationPayload_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateOrganizationPayload", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "source": - return ec.fieldContext_Profile_source(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "identity": - return ec.fieldContext_Profile_identity(ctx, field) - case "organization": - return ec.fieldContext_Profile_organization(ctx, field) - case "membership": - return ec.fieldContext_Profile_membership(ctx, field) - case "pendingInvitations": - return ec.fieldContext_Profile_pendingInvitations(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreatePersonalAPIKeyPayload_personalAPIKeyEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreatePersonalAPIKeyPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreatePersonalAPIKeyPayload_personalAPIKeyEdge, - func(ctx context.Context) (any, error) { - return obj.PersonalAPIKeyEdge, nil - }, - nil, - ec.marshalNPersonalAPIKeyEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreatePersonalAPIKeyPayload_personalAPIKeyEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreatePersonalAPIKeyPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_PersonalAPIKeyEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_PersonalAPIKeyEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAPIKeyEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreatePersonalAPIKeyPayload_token(ctx context.Context, field graphql.CollectedField, obj *types.CreatePersonalAPIKeyPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreatePersonalAPIKeyPayload_token, - func(ctx context.Context) (any, error) { - return obj.Token, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreatePersonalAPIKeyPayload_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreatePersonalAPIKeyPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateSAMLConfigurationPayload_samlConfigurationEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateSAMLConfigurationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateSAMLConfigurationPayload_samlConfigurationEdge, - func(ctx context.Context) (any, error) { - return obj.SamlConfigurationEdge, nil - }, - nil, - ec.marshalNSAMLConfigurationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateSAMLConfigurationPayload_samlConfigurationEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateSAMLConfigurationPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_SAMLConfigurationEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_SAMLConfigurationEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SAMLConfigurationEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateSCIMConfigurationPayload_scimConfiguration(ctx context.Context, field graphql.CollectedField, obj *types.CreateSCIMConfigurationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateSCIMConfigurationPayload_scimConfiguration, - func(ctx context.Context) (any, error) { - return obj.ScimConfiguration, nil - }, - nil, - ec.marshalNSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateSCIMConfigurationPayload_scimConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateSCIMConfigurationPayload", - 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_SCIMConfiguration_id(ctx, field) - case "endpointUrl": - return ec.fieldContext_SCIMConfiguration_endpointUrl(ctx, field) - case "createdAt": - return ec.fieldContext_SCIMConfiguration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SCIMConfiguration_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_SCIMConfiguration_organization(ctx, field) - case "bridge": - return ec.fieldContext_SCIMConfiguration_bridge(ctx, field) - case "events": - return ec.fieldContext_SCIMConfiguration_events(ctx, field) - case "permission": - return ec.fieldContext_SCIMConfiguration_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SCIMConfiguration", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateSCIMConfigurationPayload_scimBridge(ctx context.Context, field graphql.CollectedField, obj *types.CreateSCIMConfigurationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateSCIMConfigurationPayload_scimBridge, - func(ctx context.Context) (any, error) { - return obj.ScimBridge, nil - }, - nil, - ec.marshalOSCIMBridge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMBridge, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_CreateSCIMConfigurationPayload_scimBridge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateSCIMConfigurationPayload", - 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_SCIMBridge_id(ctx, field) - case "state": - return ec.fieldContext_SCIMBridge_state(ctx, field) - case "scimConfiguration": - return ec.fieldContext_SCIMBridge_scimConfiguration(ctx, field) - case "connector": - return ec.fieldContext_SCIMBridge_connector(ctx, field) - case "type": - return ec.fieldContext_SCIMBridge_type(ctx, field) - case "excludedUserNames": - return ec.fieldContext_SCIMBridge_excludedUserNames(ctx, field) - case "createdAt": - return ec.fieldContext_SCIMBridge_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SCIMBridge_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_SCIMBridge_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SCIMBridge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateSCIMConfigurationPayload_token(ctx context.Context, field graphql.CollectedField, obj *types.CreateSCIMConfigurationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateSCIMConfigurationPayload_token, - func(ctx context.Context) (any, error) { - return obj.Token, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateSCIMConfigurationPayload_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateSCIMConfigurationPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateUserPayload_profileEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateUserPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateUserPayload_profileEdge, - func(ctx context.Context) (any, error) { - return obj.ProfileEdge, nil - }, - nil, - ec.marshalNProfileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateUserPayload_profileEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateUserPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ProfileEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ProfileEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProfileEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DeactivateUserPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.DeactivateUserPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeactivateUserPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeactivateUserPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeactivateUserPayload", - 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) _DeleteOrganizationHorizontalLogoPayload_organization(ctx context.Context, field graphql.CollectedField, obj *types.DeleteOrganizationHorizontalLogoPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteOrganizationHorizontalLogoPayload_organization, - func(ctx context.Context) (any, error) { - return obj.Organization, nil - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteOrganizationHorizontalLogoPayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteOrganizationHorizontalLogoPayload", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "samlConfigurations": - return ec.fieldContext_Organization_samlConfigurations(ctx, field) - case "scimConfiguration": - return ec.fieldContext_Organization_scimConfiguration(ctx, field) - case "viewer": - return ec.fieldContext_Organization_viewer(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteOrganizationPayload_deletedOrganizationId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteOrganizationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteOrganizationPayload_deletedOrganizationId, - func(ctx context.Context) (any, error) { - return obj.DeletedOrganizationID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteOrganizationPayload_deletedOrganizationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteOrganizationPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteSAMLConfigurationPayload_deletedSamlConfigurationId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteSAMLConfigurationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteSAMLConfigurationPayload_deletedSamlConfigurationId, - func(ctx context.Context) (any, error) { - return obj.DeletedSamlConfigurationID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteSAMLConfigurationPayload_deletedSamlConfigurationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteSAMLConfigurationPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteSCIMConfigurationPayload_deletedScimConfigurationId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteSCIMConfigurationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteSCIMConfigurationPayload_deletedScimConfigurationId, - func(ctx context.Context) (any, error) { - return obj.DeletedScimConfigurationID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteSCIMConfigurationPayload_deletedScimConfigurationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteSCIMConfigurationPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ForgotPasswordPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.ForgotPasswordPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ForgotPasswordPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ForgotPasswordPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ForgotPasswordPayload", - 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) _Identity_id(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Identity_email(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_email, - func(ctx context.Context) (any, error) { - return obj.Email, nil - }, - nil, - ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Identity_fullName(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_fullName, - func(ctx context.Context) (any, error) { - return obj.FullName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Identity_emailVerified(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_emailVerified, - func(ctx context.Context) (any, error) { - return obj.EmailVerified, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_emailVerified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - 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) _Identity_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Identity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Identity_profiles(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_profiles, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Identity().Profiles(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ProfileOrderBy), fc.Args["filter"].(*types.ProfileFilter)) - }, - nil, - ec.marshalOProfileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileConnection, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Identity_profiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ProfileConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ProfileConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProfileConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProfileConnection", 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_Identity_profiles_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Identity_sessions(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_sessions, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Identity().Sessions(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.SessionOrder)) - }, - nil, - ec.marshalOSessionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionConnection, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Identity_sessions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_SessionConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SessionConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_SessionConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SessionConnection", 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_Identity_sessions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Identity_personalAPIKeys(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_personalAPIKeys, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Identity().PersonalAPIKeys(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - nil, - ec.marshalOPersonalAPIKeyConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyConnection, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Identity_personalAPIKeys(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_PersonalAPIKeyConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_PersonalAPIKeyConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_PersonalAPIKeyConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAPIKeyConnection", 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_Identity_personalAPIKeys_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Identity_ssoLoginURL(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_ssoLoginURL, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Identity().SsoLoginURL(ctx, obj) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *string - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Identity_ssoLoginURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - 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) _Identity_permission(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Identity().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - 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_Identity_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Invitation_id(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Invitation_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Invitation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Invitation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Invitation_expiresAt(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Invitation_expiresAt, - func(ctx context.Context) (any, error) { - return obj.ExpiresAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Invitation_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Invitation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Invitation_acceptedAt(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Invitation_acceptedAt, - func(ctx context.Context) (any, error) { - return obj.AcceptedAt, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Invitation_acceptedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Invitation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Invitation_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Invitation_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Invitation_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Invitation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Invitation_status(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Invitation_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Invitation_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Invitation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type InvitationStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Invitation_permission(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Invitation_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Invitation().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Invitation_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Invitation", - 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_Invitation_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _InvitationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.InvitationConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_InvitationConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNInvitationEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_InvitationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "InvitationConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_InvitationEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_InvitationEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InvitationEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _InvitationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.InvitationConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_InvitationConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_InvitationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "InvitationConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _InvitationEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.InvitationEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_InvitationEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNInvitation2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitation, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_InvitationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "InvitationEdge", - 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_Invitation_id(ctx, field) - case "expiresAt": - return ec.fieldContext_Invitation_expiresAt(ctx, field) - case "acceptedAt": - return ec.fieldContext_Invitation_acceptedAt(ctx, field) - case "createdAt": - return ec.fieldContext_Invitation_createdAt(ctx, field) - case "status": - return ec.fieldContext_Invitation_status(ctx, field) - case "permission": - return ec.fieldContext_Invitation_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Invitation", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _InvitationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.InvitationEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_InvitationEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_InvitationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "InvitationEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _InviteUserPayload_invitationEdge(ctx context.Context, field graphql.CollectedField, obj *types.InviteUserPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_InviteUserPayload_invitationEdge, - func(ctx context.Context) (any, error) { - return obj.InvitationEdge, nil - }, - nil, - ec.marshalNInvitationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_InviteUserPayload_invitationEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "InviteUserPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_InvitationEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_InvitationEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InvitationEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Membership_id(ctx context.Context, field graphql.CollectedField, obj *types.Membership) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Membership_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Membership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Membership", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Membership_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Membership) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Membership_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Membership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Membership", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Membership_role(ctx context.Context, field graphql.CollectedField, obj *types.Membership) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Membership_role, - func(ctx context.Context) (any, error) { - return obj.Role, nil - }, - nil, - ec.marshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Membership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Membership", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MembershipRole does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Membership_lastSession(ctx context.Context, field graphql.CollectedField, obj *types.Membership) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Membership_lastSession, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Membership().LastSession(ctx, obj) - }, - nil, - ec.marshalOSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Membership_lastSession(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Membership", - 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_Session_id(ctx, field) - case "identity": - return ec.fieldContext_Session_identity(ctx, field) - case "ipAddress": - return ec.fieldContext_Session_ipAddress(ctx, field) - case "userAgent": - return ec.fieldContext_Session_userAgent(ctx, field) - case "updatedAt": - return ec.fieldContext_Session_updatedAt(ctx, field) - case "createdAt": - return ec.fieldContext_Session_createdAt(ctx, field) - case "expiresAt": - return ec.fieldContext_Session_expiresAt(ctx, field) - case "permission": - return ec.fieldContext_Session_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Session", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Membership_permission(ctx context.Context, field graphql.CollectedField, obj *types.Membership) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Membership_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Membership().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Membership_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Membership", - 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_Membership_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_signIn(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_signIn, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().SignIn(ctx, fc.Args["input"].(types.SignInInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL") - if err != nil { - var zeroVal *types.SignInPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.SignInPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOSignInPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignInPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_signIn(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 "identity": - return ec.fieldContext_SignInPayload_identity(ctx, field) - case "session": - return ec.fieldContext_SignInPayload_session(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SignInPayload", 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_signIn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_signUp(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_signUp, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().SignUp(ctx, fc.Args["input"].(types.SignUpInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "NONE") - if err != nil { - var zeroVal *types.SignUpPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.SignUpPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOSignUpPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignUpPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_signUp(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 "identity": - return ec.fieldContext_SignUpPayload_identity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SignUpPayload", 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_signUp_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_signOut(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_signOut, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Mutation().SignOut(ctx) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.SignOutPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.SignOutPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOSignOutPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignOutPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_signOut(_ 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 "success": - return ec.fieldContext_SignOutPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SignOutPayload", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Mutation_activateAccount(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_activateAccount, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ActivateAccount(ctx, fc.Args["input"].(types.ActivateAccountInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL") - if err != nil { - var zeroVal *types.ActivateAccountPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.ActivateAccountPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOActivateAccountPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐActivateAccountPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_activateAccount(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 "createPasswordToken": - return ec.fieldContext_ActivateAccountPayload_createPasswordToken(ctx, field) - case "ssoLoginUrl": - return ec.fieldContext_ActivateAccountPayload_ssoLoginUrl(ctx, field) - case "profile": - return ec.fieldContext_ActivateAccountPayload_profile(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActivateAccountPayload", 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_activateAccount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_forgotPassword(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_forgotPassword, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ForgotPassword(ctx, fc.Args["input"].(types.ForgotPasswordInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "NONE") - if err != nil { - var zeroVal *types.ForgotPasswordPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.ForgotPasswordPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOForgotPasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐForgotPasswordPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_forgotPassword(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 "success": - return ec.fieldContext_ForgotPasswordPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ForgotPasswordPayload", 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_forgotPassword_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_resetPassword(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_resetPassword, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ResetPassword(ctx, fc.Args["input"].(types.ResetPasswordInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "NONE") - if err != nil { - var zeroVal *types.ResetPasswordPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.ResetPasswordPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOResetPasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐResetPasswordPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_resetPassword(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 "success": - return ec.fieldContext_ResetPasswordPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ResetPasswordPayload", 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_resetPassword_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_verifyEmail(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_verifyEmail, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().VerifyEmail(ctx, fc.Args["input"].(types.VerifyEmailInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL") - if err != nil { - var zeroVal *types.VerifyEmailPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.VerifyEmailPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOVerifyEmailPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐVerifyEmailPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_verifyEmail(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 "success": - return ec.fieldContext_VerifyEmailPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VerifyEmailPayload", 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_verifyEmail_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_changePassword(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_changePassword, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ChangePassword(ctx, fc.Args["input"].(types.ChangePasswordInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.ChangePasswordPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.ChangePasswordPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOChangePasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangePasswordPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_changePassword(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 "success": - return ec.fieldContext_ChangePasswordPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ChangePasswordPayload", 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_changePassword_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_changeEmail(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_changeEmail, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ChangeEmail(ctx, fc.Args["input"].(types.ChangeEmailInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.ChangeEmailPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.ChangeEmailPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOChangeEmailPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangeEmailPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_changeEmail(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 "success": - return ec.fieldContext_ChangeEmailPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ChangeEmailPayload", 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_changeEmail_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_assumeOrganizationSession(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_assumeOrganizationSession, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().AssumeOrganizationSession(ctx, fc.Args["input"].(types.AssumeOrganizationSessionInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.AssumeOrganizationSessionPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.AssumeOrganizationSessionPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOAssumeOrganizationSessionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_assumeOrganizationSession(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 "result": - return ec.fieldContext_AssumeOrganizationSessionPayload_result(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AssumeOrganizationSessionPayload", 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_assumeOrganizationSession_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_revokeSession(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_revokeSession, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().RevokeSession(ctx, fc.Args["input"].(types.RevokeSessionInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.RevokeSessionPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.RevokeSessionPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNRevokeSessionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeSessionPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_revokeSession(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 "success": - return ec.fieldContext_RevokeSessionPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RevokeSessionPayload", 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_revokeSession_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_revokeAllSessions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_revokeAllSessions, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Mutation().RevokeAllSessions(ctx) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.RevokeAllSessionsPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.RevokeAllSessionsPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalORevokeAllSessionsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeAllSessionsPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_revokeAllSessions(_ 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 "revokedCount": - return ec.fieldContext_RevokeAllSessionsPayload_revokedCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RevokeAllSessionsPayload", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createPersonalAPIKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createPersonalAPIKey, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreatePersonalAPIKey(ctx, fc.Args["input"].(types.CreatePersonalAPIKeyInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.CreatePersonalAPIKeyPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.CreatePersonalAPIKeyPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOCreatePersonalAPIKeyPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreatePersonalAPIKeyPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createPersonalAPIKey(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 "personalAPIKeyEdge": - return ec.fieldContext_CreatePersonalAPIKeyPayload_personalAPIKeyEdge(ctx, field) - case "token": - return ec.fieldContext_CreatePersonalAPIKeyPayload_token(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreatePersonalAPIKeyPayload", 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_createPersonalAPIKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_revokePersonalAPIKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_revokePersonalAPIKey, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().RevokePersonalAPIKey(ctx, fc.Args["input"].(types.RevokePersonalAPIKeyInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.RevokePersonalAPIKeyPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.RevokePersonalAPIKeyPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalORevokePersonalAPIKeyPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokePersonalAPIKeyPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_revokePersonalAPIKey(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 "personalAPIKeyId": - return ec.fieldContext_RevokePersonalAPIKeyPayload_personalAPIKeyId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RevokePersonalAPIKeyPayload", 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_revokePersonalAPIKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createOrganization, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateOrganization(ctx, fc.Args["input"].(types.CreateOrganizationInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.CreateOrganizationPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.CreateOrganizationPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOCreateOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateOrganizationPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createOrganization(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 "organization": - return ec.fieldContext_CreateOrganizationPayload_organization(ctx, field) - case "profile": - return ec.fieldContext_CreateOrganizationPayload_profile(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateOrganizationPayload", 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_createOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateOrganization, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateOrganization(ctx, fc.Args["input"].(types.UpdateOrganizationInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.UpdateOrganizationPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.UpdateOrganizationPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOUpdateOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateOrganizationPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateOrganization(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 "organization": - return ec.fieldContext_UpdateOrganizationPayload_organization(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateOrganizationPayload", 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_updateOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteOrganization, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteOrganization(ctx, fc.Args["input"].(types.DeleteOrganizationInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.DeleteOrganizationPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.DeleteOrganizationPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalODeleteOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteOrganization(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 "deletedOrganizationId": - return ec.fieldContext_DeleteOrganizationPayload_deletedOrganizationId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteOrganizationPayload", 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_deleteOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteOrganizationHorizontalLogo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteOrganizationHorizontalLogo, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteOrganizationHorizontalLogo(ctx, fc.Args["input"].(types.DeleteOrganizationHorizontalLogoInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.DeleteOrganizationHorizontalLogoPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.DeleteOrganizationHorizontalLogoPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalODeleteOrganizationHorizontalLogoPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationHorizontalLogoPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteOrganizationHorizontalLogo(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 "organization": - return ec.fieldContext_DeleteOrganizationHorizontalLogoPayload_organization(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteOrganizationHorizontalLogoPayload", 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_deleteOrganizationHorizontalLogo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createUser, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateUser(ctx, fc.Args["input"].(types.CreateUserInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.CreateUserPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.CreateUserPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOCreateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateUserPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createUser(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 "profileEdge": - return ec.fieldContext_CreateUserPayload_profileEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateUserPayload", 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_createUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_inviteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_inviteUser, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().InviteUser(ctx, fc.Args["input"].(types.InviteUserInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.InviteUserPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.InviteUserPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOInviteUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInviteUserPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_inviteUser(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 "invitationEdge": - return ec.fieldContext_InviteUserPayload_invitationEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InviteUserPayload", 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_inviteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deactivateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deactivateUser, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeactivateUser(ctx, fc.Args["input"].(types.DeactivateUserInput)) - }, - nil, - ec.marshalODeactivateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeactivateUserPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deactivateUser(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 "success": - return ec.fieldContext_DeactivateUserPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeactivateUserPayload", 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_deactivateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateUser, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateUser(ctx, fc.Args["input"].(types.UpdateUserInput)) - }, - nil, - ec.marshalNUpdateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateUserPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateUser(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 "profile": - return ec.fieldContext_UpdateUserPayload_profile(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateUserPayload", 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_updateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateMembership, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateMembership(ctx, fc.Args["input"].(types.UpdateMembershipInput)) - }, - nil, - ec.marshalNUpdateMembershipPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateMembershipPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateMembership(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 "membership": - return ec.fieldContext_UpdateMembershipPayload_membership(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateMembershipPayload", 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_updateMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_removeUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_removeUser, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().RemoveUser(ctx, fc.Args["input"].(types.RemoveUserInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.RemoveUserPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.RemoveUserPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalORemoveUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRemoveUserPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_removeUser(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 "deletedProfileId": - return ec.fieldContext_RemoveUserPayload_deletedProfileId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RemoveUserPayload", 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_removeUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createSAMLConfiguration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createSAMLConfiguration, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateSAMLConfiguration(ctx, fc.Args["input"].(types.CreateSAMLConfigurationInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.CreateSAMLConfigurationPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.CreateSAMLConfigurationPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOCreateSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSAMLConfigurationPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createSAMLConfiguration(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 "samlConfigurationEdge": - return ec.fieldContext_CreateSAMLConfigurationPayload_samlConfigurationEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateSAMLConfigurationPayload", 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_createSAMLConfiguration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateSAMLConfiguration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateSAMLConfiguration, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateSAMLConfiguration(ctx, fc.Args["input"].(types.UpdateSAMLConfigurationInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.UpdateSAMLConfigurationPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.UpdateSAMLConfigurationPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOUpdateSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSAMLConfigurationPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateSAMLConfiguration(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 "samlConfiguration": - return ec.fieldContext_UpdateSAMLConfigurationPayload_samlConfiguration(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateSAMLConfigurationPayload", 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_updateSAMLConfiguration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteSAMLConfiguration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteSAMLConfiguration, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteSAMLConfiguration(ctx, fc.Args["input"].(types.DeleteSAMLConfigurationInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.DeleteSAMLConfigurationPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.DeleteSAMLConfigurationPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalODeleteSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSAMLConfigurationPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteSAMLConfiguration(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 "deletedSamlConfigurationId": - return ec.fieldContext_DeleteSAMLConfigurationPayload_deletedSamlConfigurationId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteSAMLConfigurationPayload", 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_deleteSAMLConfiguration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createSCIMConfiguration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createSCIMConfiguration, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateSCIMConfiguration(ctx, fc.Args["input"].(types.CreateSCIMConfigurationInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.CreateSCIMConfigurationPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.CreateSCIMConfigurationPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOCreateSCIMConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSCIMConfigurationPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createSCIMConfiguration(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 "scimConfiguration": - return ec.fieldContext_CreateSCIMConfigurationPayload_scimConfiguration(ctx, field) - case "scimBridge": - return ec.fieldContext_CreateSCIMConfigurationPayload_scimBridge(ctx, field) - case "token": - return ec.fieldContext_CreateSCIMConfigurationPayload_token(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateSCIMConfigurationPayload", 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_createSCIMConfiguration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteSCIMConfiguration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteSCIMConfiguration, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteSCIMConfiguration(ctx, fc.Args["input"].(types.DeleteSCIMConfigurationInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.DeleteSCIMConfigurationPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.DeleteSCIMConfigurationPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalODeleteSCIMConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSCIMConfigurationPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteSCIMConfiguration(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 "deletedScimConfigurationId": - return ec.fieldContext_DeleteSCIMConfigurationPayload_deletedScimConfigurationId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteSCIMConfigurationPayload", 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_deleteSCIMConfiguration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_regenerateSCIMToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_regenerateSCIMToken, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().RegenerateSCIMToken(ctx, fc.Args["input"].(types.RegenerateSCIMTokenInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.RegenerateSCIMTokenPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.RegenerateSCIMTokenPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalORegenerateSCIMTokenPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRegenerateSCIMTokenPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_regenerateSCIMToken(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 "scimConfiguration": - return ec.fieldContext_RegenerateSCIMTokenPayload_scimConfiguration(ctx, field) - case "token": - return ec.fieldContext_RegenerateSCIMTokenPayload_token(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RegenerateSCIMTokenPayload", 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_regenerateSCIMToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateSCIMBridge(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateSCIMBridge, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateSCIMBridge(ctx, fc.Args["input"].(types.UpdateSCIMBridgeInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.UpdateSCIMBridgePayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.UpdateSCIMBridgePayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOUpdateSCIMBridgePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSCIMBridgePayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateSCIMBridge(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 "scimBridge": - return ec.fieldContext_UpdateSCIMBridgePayload_scimBridge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateSCIMBridgePayload", 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_updateSCIMBridge_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_id(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_name(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_logoUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_logoUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Organization().LogoURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_logoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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) _Organization_horizontalLogoUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_horizontalLogoUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Organization().HorizontalLogoURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_horizontalLogoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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) _Organization_email(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_email, - func(ctx context.Context) (any, error) { - return obj.Email, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_description(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_websiteUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_websiteUrl, - func(ctx context.Context) (any, error) { - return obj.WebsiteURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_websiteUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_headquarterAddress(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_headquarterAddress, - func(ctx context.Context) (any, error) { - return obj.HeadquarterAddress, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_headquarterAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_profiles(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_profiles, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Profiles(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ProfileOrderBy)) - }, - nil, - ec.marshalOProfileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileConnection, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_profiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ProfileConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ProfileConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProfileConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProfileConnection", 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_Organization_profiles_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_samlConfigurations(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_samlConfigurations, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().SamlConfigurations(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - nil, - ec.marshalOSAMLConfigurationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationConnection, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_samlConfigurations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_SAMLConfigurationConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SAMLConfigurationConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_SAMLConfigurationConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SAMLConfigurationConnection", 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_Organization_samlConfigurations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_scimConfiguration(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_scimConfiguration, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Organization().ScimConfiguration(ctx, obj) - }, - nil, - ec.marshalOSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_scimConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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_SCIMConfiguration_id(ctx, field) - case "endpointUrl": - return ec.fieldContext_SCIMConfiguration_endpointUrl(ctx, field) - case "createdAt": - return ec.fieldContext_SCIMConfiguration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SCIMConfiguration_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_SCIMConfiguration_organization(ctx, field) - case "bridge": - return ec.fieldContext_SCIMConfiguration_bridge(ctx, field) - case "events": - return ec.fieldContext_SCIMConfiguration_events(ctx, field) - case "permission": - return ec.fieldContext_SCIMConfiguration_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SCIMConfiguration", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_viewer(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_viewer, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Organization().Viewer(ctx, obj) - }, - nil, - ec.marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_viewer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "source": - return ec.fieldContext_Profile_source(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "identity": - return ec.fieldContext_Profile_identity(ctx, field) - case "organization": - return ec.fieldContext_Profile_organization(ctx, field) - case "membership": - return ec.fieldContext_Profile_membership(ctx, field) - case "pendingInvitations": - return ec.fieldContext_Profile_pendingInvitations(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_permission(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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_Organization_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSessionCreated_session(ctx context.Context, field graphql.CollectedField, obj *types.OrganizationSessionCreated) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_OrganizationSessionCreated_session, - func(ctx context.Context) (any, error) { - return obj.Session, nil - }, - nil, - ec.marshalNSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_OrganizationSessionCreated_session(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSessionCreated", - 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_Session_id(ctx, field) - case "identity": - return ec.fieldContext_Session_identity(ctx, field) - case "ipAddress": - return ec.fieldContext_Session_ipAddress(ctx, field) - case "userAgent": - return ec.fieldContext_Session_userAgent(ctx, field) - case "updatedAt": - return ec.fieldContext_Session_updatedAt(ctx, field) - case "createdAt": - return ec.fieldContext_Session_createdAt(ctx, field) - case "expiresAt": - return ec.fieldContext_Session_expiresAt(ctx, field) - case "permission": - return ec.fieldContext_Session_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Session", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSessionCreated_membership(ctx context.Context, field graphql.CollectedField, obj *types.OrganizationSessionCreated) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_OrganizationSessionCreated_membership, - func(ctx context.Context) (any, error) { - return obj.Membership, nil - }, - nil, - ec.marshalNMembership2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐMembership, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_OrganizationSessionCreated_membership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSessionCreated", - 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_Membership_id(ctx, field) - case "createdAt": - return ec.fieldContext_Membership_createdAt(ctx, field) - case "role": - return ec.fieldContext_Membership_role(ctx, field) - case "lastSession": - return ec.fieldContext_Membership_lastSession(ctx, field) - case "permission": - return ec.fieldContext_Membership_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Membership", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_hasNextPage, - func(ctx context.Context) (any, error) { - return obj.HasNextPage, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - 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) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_hasPreviousPage, - func(ctx context.Context) (any, error) { - return obj.HasPreviousPage, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - 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) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_startCursor, - func(ctx context.Context) (any, error) { - return obj.StartCursor, nil - }, - nil, - ec.marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_endCursor, - func(ctx context.Context) (any, error) { - return obj.EndCursor, nil - }, - nil, - ec.marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PasswordRequired_reason(ctx context.Context, field graphql.CollectedField, obj *types.PasswordRequired) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PasswordRequired_reason, - func(ctx context.Context) (any, error) { - return obj.Reason, nil - }, - nil, - ec.marshalNReauthenticationReason2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐReauthenticationReason, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PasswordRequired_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PasswordRequired", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ReauthenticationReason does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAPIKey_id(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKey_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKey_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKey", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAPIKey_name(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKey_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKey_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKey", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAPIKey_expiresAt(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKey_expiresAt, - func(ctx context.Context) (any, error) { - return obj.ExpiresAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKey_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKey", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAPIKey_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKey_lastUsedAt, - func(ctx context.Context) (any, error) { - return obj.LastUsedAt, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKey_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKey", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAPIKey_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKey_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKey_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKey", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAPIKey_token(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKey_token, - func(ctx context.Context) (any, error) { - return ec.Resolvers.PersonalAPIKey().Token(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKey_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKey", - 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) _PersonalAPIKey_permission(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKey_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.PersonalAPIKey().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKey_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKey", - 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_PersonalAPIKey_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _PersonalAPIKeyConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKeyConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKeyConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNPersonalAPIKeyEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKeyConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKeyConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_PersonalAPIKeyEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_PersonalAPIKeyEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAPIKeyEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAPIKeyConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKeyConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKeyConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKeyConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKeyConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAPIKeyConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKeyConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKeyConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.PersonalAPIKeyConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalOInt2ᚖint, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKeyConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKeyConnection", - 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) _PersonalAPIKeyEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKeyEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKeyEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNPersonalAPIKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKeyEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKeyEdge", - 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_PersonalAPIKey_id(ctx, field) - case "name": - return ec.fieldContext_PersonalAPIKey_name(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAPIKey_expiresAt(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAPIKey_lastUsedAt(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAPIKey_createdAt(ctx, field) - case "token": - return ec.fieldContext_PersonalAPIKey_token(ctx, field) - case "permission": - return ec.fieldContext_PersonalAPIKey_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAPIKey", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAPIKeyEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKeyEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PersonalAPIKeyEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PersonalAPIKeyEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAPIKeyEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_id(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_fullName(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_fullName, - func(ctx context.Context) (any, error) { - return obj.FullName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_emailAddress(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_emailAddress, - func(ctx context.Context) (any, error) { - return obj.EmailAddress, nil - }, - nil, - ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_emailAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_source(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_source, - func(ctx context.Context) (any, error) { - return obj.Source, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_state(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_state, - func(ctx context.Context) (any, error) { - return obj.State, nil - }, - nil, - ec.marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProfileState does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_additionalEmailAddresses(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_additionalEmailAddresses, - func(ctx context.Context) (any, error) { - return obj.AdditionalEmailAddresses, nil - }, - nil, - ec.marshalNEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_additionalEmailAddresses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_kind(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_kind, - func(ctx context.Context) (any, error) { - return obj.Kind, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_position(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_position, - func(ctx context.Context) (any, error) { - return obj.Position, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_position(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_contractStartDate(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_contractStartDate, - func(ctx context.Context) (any, error) { - return obj.ContractStartDate, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_contractStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_contractEndDate(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_contractEndDate, - func(ctx context.Context) (any, error) { - return obj.ContractEndDate, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_contractEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_identity(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_identity, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Profile().Identity(ctx, obj) - }, - nil, - ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_identity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - 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_Identity_id(ctx, field) - case "email": - return ec.fieldContext_Identity_email(ctx, field) - case "fullName": - return ec.fieldContext_Identity_fullName(ctx, field) - case "emailVerified": - return ec.fieldContext_Identity_emailVerified(ctx, field) - case "createdAt": - return ec.fieldContext_Identity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Identity_updatedAt(ctx, field) - case "profiles": - return ec.fieldContext_Identity_profiles(ctx, field) - case "sessions": - return ec.fieldContext_Identity_sessions(ctx, field) - case "personalAPIKeys": - return ec.fieldContext_Identity_personalAPIKeys(ctx, field) - case "ssoLoginURL": - return ec.fieldContext_Identity_ssoLoginURL(ctx, field) - case "permission": - return ec.fieldContext_Identity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_organization(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Profile().Organization(ctx, obj) - }, - nil, - ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "samlConfigurations": - return ec.fieldContext_Organization_samlConfigurations(ctx, field) - case "scimConfiguration": - return ec.fieldContext_Organization_scimConfiguration(ctx, field) - case "viewer": - return ec.fieldContext_Organization_viewer(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_membership(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_membership, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Profile().Membership(ctx, obj) - }, - nil, - ec.marshalOMembership2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐMembership, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_membership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - 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_Membership_id(ctx, field) - case "createdAt": - return ec.fieldContext_Membership_createdAt(ctx, field) - case "role": - return ec.fieldContext_Membership_role(ctx, field) - case "lastSession": - return ec.fieldContext_Membership_lastSession(ctx, field) - case "permission": - return ec.fieldContext_Membership_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Membership", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_pendingInvitations(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_pendingInvitations, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Profile().PendingInvitations(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.InvitationOrderBy)) - }, - nil, - ec.marshalOInvitationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationConnection, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_pendingInvitations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_InvitationConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_InvitationConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InvitationConnection", 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_Profile_pendingInvitations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Profile_permission(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Profile().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - 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_Profile_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ProfileConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ProfileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProfileConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ProfileConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalOInt2ᚖint, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProfileConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProfileConnection", - 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) _ProfileConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ProfileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProfileConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNProfileEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProfileConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProfileConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ProfileEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ProfileEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProfileEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProfileConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ProfileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProfileConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProfileConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProfileConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProfileEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ProfileEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProfileEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProfileEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProfileEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProfileEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ProfileEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProfileEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProfileEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProfileEdge", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "source": - return ec.fieldContext_Profile_source(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "identity": - return ec.fieldContext_Profile_identity(ctx, field) - case "organization": - return ec.fieldContext_Profile_organization(ctx, field) - case "membership": - return ec.fieldContext_Profile_membership(ctx, field) - case "pendingInvitations": - return ec.fieldContext_Profile_pendingInvitations(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query_node, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Node(ctx, fc.Args["id"].(gid.GID)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal types.Node - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal types.Node - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalONode2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐNode, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Query_node(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) { - return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") - }, - } - 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_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query_viewer, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Query().Viewer(ctx) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.Identity - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.Identity - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Query_viewer(_ 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_Identity_id(ctx, field) - case "email": - return ec.fieldContext_Identity_email(ctx, field) - case "fullName": - return ec.fieldContext_Identity_fullName(ctx, field) - case "emailVerified": - return ec.fieldContext_Identity_emailVerified(ctx, field) - case "createdAt": - return ec.fieldContext_Identity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Identity_updatedAt(ctx, field) - case "profiles": - return ec.fieldContext_Identity_profiles(ctx, field) - case "sessions": - return ec.fieldContext_Identity_sessions(ctx, field) - case "personalAPIKeys": - return ec.fieldContext_Identity_personalAPIKeys(ctx, field) - case "ssoLoginURL": - return ec.fieldContext_Identity_ssoLoginURL(ctx, field) - case "permission": - return ec.fieldContext_Identity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_ssoLoginURL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query_ssoLoginURL, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().SsoLoginURL(ctx, fc.Args["email"].(mail.Addr)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL") - if err != nil { - var zeroVal *string - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *string - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Query_ssoLoginURL(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) { - 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_Query_ssoLoginURL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query___type, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.IntrospectType(fc.Args["name"].(string)) - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query___schema, - func(ctx context.Context) (any, error) { - return ec.IntrospectSchema() - }, - nil, - ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Query___schema(_ 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) _RegenerateSCIMTokenPayload_scimConfiguration(ctx context.Context, field graphql.CollectedField, obj *types.RegenerateSCIMTokenPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RegenerateSCIMTokenPayload_scimConfiguration, - func(ctx context.Context) (any, error) { - return obj.ScimConfiguration, nil - }, - nil, - ec.marshalNSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RegenerateSCIMTokenPayload_scimConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RegenerateSCIMTokenPayload", - 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_SCIMConfiguration_id(ctx, field) - case "endpointUrl": - return ec.fieldContext_SCIMConfiguration_endpointUrl(ctx, field) - case "createdAt": - return ec.fieldContext_SCIMConfiguration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SCIMConfiguration_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_SCIMConfiguration_organization(ctx, field) - case "bridge": - return ec.fieldContext_SCIMConfiguration_bridge(ctx, field) - case "events": - return ec.fieldContext_SCIMConfiguration_events(ctx, field) - case "permission": - return ec.fieldContext_SCIMConfiguration_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SCIMConfiguration", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RegenerateSCIMTokenPayload_token(ctx context.Context, field graphql.CollectedField, obj *types.RegenerateSCIMTokenPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RegenerateSCIMTokenPayload_token, - func(ctx context.Context) (any, error) { - return obj.Token, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RegenerateSCIMTokenPayload_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RegenerateSCIMTokenPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RemoveUserPayload_deletedProfileId(ctx context.Context, field graphql.CollectedField, obj *types.RemoveUserPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RemoveUserPayload_deletedProfileId, - func(ctx context.Context) (any, error) { - return obj.DeletedProfileID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RemoveUserPayload_deletedProfileId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RemoveUserPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ResetPasswordPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.ResetPasswordPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ResetPasswordPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ResetPasswordPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ResetPasswordPayload", - 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) _RevokeAllSessionsPayload_revokedCount(ctx context.Context, field graphql.CollectedField, obj *types.RevokeAllSessionsPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RevokeAllSessionsPayload_revokedCount, - func(ctx context.Context) (any, error) { - return obj.RevokedCount, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RevokeAllSessionsPayload_revokedCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RevokeAllSessionsPayload", - 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) _RevokePersonalAPIKeyPayload_personalAPIKeyId(ctx context.Context, field graphql.CollectedField, obj *types.RevokePersonalAPIKeyPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RevokePersonalAPIKeyPayload_personalAPIKeyId, - func(ctx context.Context) (any, error) { - return obj.PersonalAPIKeyID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RevokePersonalAPIKeyPayload_personalAPIKeyId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RevokePersonalAPIKeyPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RevokeSessionPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.RevokeSessionPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RevokeSessionPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RevokeSessionPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RevokeSessionPayload", - 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) _SAMLAttributeMappings_email(ctx context.Context, field graphql.CollectedField, obj *types.SAMLAttributeMappings) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLAttributeMappings_email, - func(ctx context.Context) (any, error) { - return obj.Email, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLAttributeMappings_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLAttributeMappings", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLAttributeMappings_firstName(ctx context.Context, field graphql.CollectedField, obj *types.SAMLAttributeMappings) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLAttributeMappings_firstName, - func(ctx context.Context) (any, error) { - return obj.FirstName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLAttributeMappings_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLAttributeMappings", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLAttributeMappings_lastName(ctx context.Context, field graphql.CollectedField, obj *types.SAMLAttributeMappings) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLAttributeMappings_lastName, - func(ctx context.Context) (any, error) { - return obj.LastName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLAttributeMappings_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLAttributeMappings", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLAttributeMappings_role(ctx context.Context, field graphql.CollectedField, obj *types.SAMLAttributeMappings) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLAttributeMappings_role, - func(ctx context.Context) (any, error) { - return obj.Role, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLAttributeMappings_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLAttributeMappings", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLAuthenticationRequired_reason(ctx context.Context, field graphql.CollectedField, obj *types.SAMLAuthenticationRequired) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLAuthenticationRequired_reason, - func(ctx context.Context) (any, error) { - return obj.Reason, nil - }, - nil, - ec.marshalNReauthenticationReason2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐReauthenticationReason, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLAuthenticationRequired_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLAuthenticationRequired", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ReauthenticationReason does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_id(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_emailDomain(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_emailDomain, - func(ctx context.Context) (any, error) { - return obj.EmailDomain, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_emailDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_enforcementPolicy(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_enforcementPolicy, - func(ctx context.Context) (any, error) { - return obj.EnforcementPolicy, nil - }, - nil, - ec.marshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_enforcementPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SAMLEnforcementPolicy does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_domainVerifiedAt(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_domainVerifiedAt, - func(ctx context.Context) (any, error) { - return obj.DomainVerifiedAt, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_domainVerifiedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_domainVerificationToken(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_domainVerificationToken, - func(ctx context.Context) (any, error) { - return obj.DomainVerificationToken, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_domainVerificationToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_idpEntityId(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_idpEntityId, - func(ctx context.Context) (any, error) { - return obj.IdpEntityID, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_idpEntityId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_idpSsoUrl(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_idpSsoUrl, - func(ctx context.Context) (any, error) { - return obj.IdpSsoURL, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_idpSsoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_idpCertificate(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_idpCertificate, - func(ctx context.Context) (any, error) { - return obj.IdpCertificate, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_idpCertificate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_autoSignupEnabled(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_autoSignupEnabled, - func(ctx context.Context) (any, error) { - return obj.AutoSignupEnabled, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_autoSignupEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - 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) _SAMLConfiguration_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_testLoginUrl(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_testLoginUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SAMLConfiguration().TestLoginURL(ctx, obj) - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_testLoginUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - 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) _SAMLConfiguration_attributeMappings(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_attributeMappings, - func(ctx context.Context) (any, error) { - return obj.AttributeMappings, nil - }, - nil, - ec.marshalNSAMLAttributeMappings2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLAttributeMappings, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_attributeMappings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "email": - return ec.fieldContext_SAMLAttributeMappings_email(ctx, field) - case "firstName": - return ec.fieldContext_SAMLAttributeMappings_firstName(ctx, field) - case "lastName": - return ec.fieldContext_SAMLAttributeMappings_lastName(ctx, field) - case "role": - return ec.fieldContext_SAMLAttributeMappings_role(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SAMLAttributeMappings", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfiguration_permission(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfiguration_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.SAMLConfiguration().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfiguration_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfiguration", - 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_SAMLConfiguration_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfigurationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfigurationConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfigurationConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNSAMLConfigurationEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfigurationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfigurationConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_SAMLConfigurationEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_SAMLConfigurationEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SAMLConfigurationEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfigurationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfigurationConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfigurationConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfigurationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfigurationConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfigurationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfigurationConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfigurationConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SAMLConfigurationConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalOInt2ᚖint, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfigurationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfigurationConnection", - 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) _SAMLConfigurationEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfigurationEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfigurationEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNSAMLConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfiguration, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfigurationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfigurationEdge", - 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_SAMLConfiguration_id(ctx, field) - case "emailDomain": - return ec.fieldContext_SAMLConfiguration_emailDomain(ctx, field) - case "enforcementPolicy": - return ec.fieldContext_SAMLConfiguration_enforcementPolicy(ctx, field) - case "domainVerifiedAt": - return ec.fieldContext_SAMLConfiguration_domainVerifiedAt(ctx, field) - case "domainVerificationToken": - return ec.fieldContext_SAMLConfiguration_domainVerificationToken(ctx, field) - case "idpEntityId": - return ec.fieldContext_SAMLConfiguration_idpEntityId(ctx, field) - case "idpSsoUrl": - return ec.fieldContext_SAMLConfiguration_idpSsoUrl(ctx, field) - case "idpCertificate": - return ec.fieldContext_SAMLConfiguration_idpCertificate(ctx, field) - case "autoSignupEnabled": - return ec.fieldContext_SAMLConfiguration_autoSignupEnabled(ctx, field) - case "createdAt": - return ec.fieldContext_SAMLConfiguration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SAMLConfiguration_updatedAt(ctx, field) - case "testLoginUrl": - return ec.fieldContext_SAMLConfiguration_testLoginUrl(ctx, field) - case "attributeMappings": - return ec.fieldContext_SAMLConfiguration_attributeMappings(ctx, field) - case "permission": - return ec.fieldContext_SAMLConfiguration_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SAMLConfiguration", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SAMLConfigurationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfigurationEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SAMLConfigurationEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SAMLConfigurationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SAMLConfigurationEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMBridge_id(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMBridge_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMBridge_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMBridge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMBridge_state(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMBridge_state, - func(ctx context.Context) (any, error) { - return obj.State, nil - }, - nil, - ec.marshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMBridge_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMBridge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SCIMBridgeState does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMBridge_scimConfiguration(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMBridge_scimConfiguration, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SCIMBridge().ScimConfiguration(ctx, obj) - }, - nil, - ec.marshalOSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SCIMBridge_scimConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMBridge", - 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_SCIMConfiguration_id(ctx, field) - case "endpointUrl": - return ec.fieldContext_SCIMConfiguration_endpointUrl(ctx, field) - case "createdAt": - return ec.fieldContext_SCIMConfiguration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SCIMConfiguration_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_SCIMConfiguration_organization(ctx, field) - case "bridge": - return ec.fieldContext_SCIMConfiguration_bridge(ctx, field) - case "events": - return ec.fieldContext_SCIMConfiguration_events(ctx, field) - case "permission": - return ec.fieldContext_SCIMConfiguration_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SCIMConfiguration", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMBridge_connector(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMBridge_connector, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SCIMBridge().Connector(ctx, obj) - }, - nil, - ec.marshalOConnector2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐConnector, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SCIMBridge_connector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMBridge", - 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_Connector_id(ctx, field) - case "provider": - return ec.fieldContext_Connector_provider(ctx, field) - case "createdAt": - return ec.fieldContext_Connector_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Connector_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Connector_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Connector", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMBridge_type(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMBridge_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMBridge_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMBridge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SCIMBridgeType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMBridge_excludedUserNames(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMBridge_excludedUserNames, - func(ctx context.Context) (any, error) { - return obj.ExcludedUserNames, nil - }, - nil, - ec.marshalNString2ᚕstringᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMBridge_excludedUserNames(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMBridge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMBridge_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMBridge_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMBridge_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMBridge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMBridge_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMBridge_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMBridge_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMBridge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMBridge_permission(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMBridge_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.SCIMBridge().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMBridge_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMBridge", - 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_SCIMBridge_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SCIMConfiguration_id(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMConfiguration_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMConfiguration_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMConfiguration_endpointUrl(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMConfiguration_endpointUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SCIMConfiguration().EndpointURL(ctx, obj) - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMConfiguration_endpointUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMConfiguration", - 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) _SCIMConfiguration_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMConfiguration_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMConfiguration_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMConfiguration_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMConfiguration_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMConfiguration_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMConfiguration", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMConfiguration_organization(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMConfiguration_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SCIMConfiguration().Organization(ctx, obj) - }, - nil, - ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SCIMConfiguration_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMConfiguration", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "samlConfigurations": - return ec.fieldContext_Organization_samlConfigurations(ctx, field) - case "scimConfiguration": - return ec.fieldContext_Organization_scimConfiguration(ctx, field) - case "viewer": - return ec.fieldContext_Organization_viewer(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMConfiguration_bridge(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMConfiguration_bridge, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SCIMConfiguration().Bridge(ctx, obj) - }, - nil, - ec.marshalOSCIMBridge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMBridge, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SCIMConfiguration_bridge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMConfiguration", - 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_SCIMBridge_id(ctx, field) - case "state": - return ec.fieldContext_SCIMBridge_state(ctx, field) - case "scimConfiguration": - return ec.fieldContext_SCIMBridge_scimConfiguration(ctx, field) - case "connector": - return ec.fieldContext_SCIMBridge_connector(ctx, field) - case "type": - return ec.fieldContext_SCIMBridge_type(ctx, field) - case "excludedUserNames": - return ec.fieldContext_SCIMBridge_excludedUserNames(ctx, field) - case "createdAt": - return ec.fieldContext_SCIMBridge_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SCIMBridge_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_SCIMBridge_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SCIMBridge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMConfiguration_events(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMConfiguration_events, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.SCIMConfiguration().Events(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.SCIMEventOrderBy)) - }, - nil, - ec.marshalOSCIMEventConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventConnection, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SCIMConfiguration_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMConfiguration", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_SCIMEventConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SCIMEventConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_SCIMEventConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SCIMEventConnection", 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_SCIMConfiguration_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SCIMConfiguration_permission(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMConfiguration_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.SCIMConfiguration().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMConfiguration_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMConfiguration", - 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_SCIMConfiguration_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SCIMEvent_id(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEvent_method(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_method, - func(ctx context.Context) (any, error) { - return obj.Method, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEvent_path(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_path, - func(ctx context.Context) (any, error) { - return obj.Path, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEvent_statusCode(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_statusCode, - func(ctx context.Context) (any, error) { - return obj.StatusCode, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_statusCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - 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) _SCIMEvent_requestBody(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_requestBody, - func(ctx context.Context) (any, error) { - return obj.RequestBody, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_requestBody(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEvent_responseBody(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_responseBody, - func(ctx context.Context) (any, error) { - return obj.ResponseBody, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_responseBody(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEvent_errorMessage(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_errorMessage, - func(ctx context.Context) (any, error) { - return obj.ErrorMessage, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_errorMessage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEvent_userName(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_userName, - func(ctx context.Context) (any, error) { - return obj.UserName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_userName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEvent_ipAddress(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_ipAddress, - func(ctx context.Context) (any, error) { - return obj.IPAddress, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_ipAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEvent_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEvent_permission(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEvent_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.SCIMEvent().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEvent_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEvent", - 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_SCIMEvent_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SCIMEventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEventConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEventConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNSCIMEventEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEventConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEventConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_SCIMEventEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_SCIMEventEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SCIMEventEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEventConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEventConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEventConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEventConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEventConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEventConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEventConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SCIMEventConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalOInt2ᚖint, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SCIMEventConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEventConnection", - 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) _SCIMEventEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEventEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEventEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNSCIMEvent2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEvent, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEventEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEventEdge", - 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_SCIMEvent_id(ctx, field) - case "method": - return ec.fieldContext_SCIMEvent_method(ctx, field) - case "path": - return ec.fieldContext_SCIMEvent_path(ctx, field) - case "statusCode": - return ec.fieldContext_SCIMEvent_statusCode(ctx, field) - case "requestBody": - return ec.fieldContext_SCIMEvent_requestBody(ctx, field) - case "responseBody": - return ec.fieldContext_SCIMEvent_responseBody(ctx, field) - case "errorMessage": - return ec.fieldContext_SCIMEvent_errorMessage(ctx, field) - case "userName": - return ec.fieldContext_SCIMEvent_userName(ctx, field) - case "ipAddress": - return ec.fieldContext_SCIMEvent_ipAddress(ctx, field) - case "createdAt": - return ec.fieldContext_SCIMEvent_createdAt(ctx, field) - case "permission": - return ec.fieldContext_SCIMEvent_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SCIMEvent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SCIMEventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEventEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SCIMEventEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SCIMEventEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SCIMEventEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Session_id(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Session_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Session_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Session", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Session_identity(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Session_identity, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Session().Identity(ctx, obj) - }, - nil, - ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Session_identity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Session", - 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_Identity_id(ctx, field) - case "email": - return ec.fieldContext_Identity_email(ctx, field) - case "fullName": - return ec.fieldContext_Identity_fullName(ctx, field) - case "emailVerified": - return ec.fieldContext_Identity_emailVerified(ctx, field) - case "createdAt": - return ec.fieldContext_Identity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Identity_updatedAt(ctx, field) - case "profiles": - return ec.fieldContext_Identity_profiles(ctx, field) - case "sessions": - return ec.fieldContext_Identity_sessions(ctx, field) - case "personalAPIKeys": - return ec.fieldContext_Identity_personalAPIKeys(ctx, field) - case "ssoLoginURL": - return ec.fieldContext_Identity_ssoLoginURL(ctx, field) - case "permission": - return ec.fieldContext_Identity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Session_ipAddress(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Session_ipAddress, - func(ctx context.Context) (any, error) { - return obj.IPAddress, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Session_ipAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Session", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Session_userAgent(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Session_userAgent, - func(ctx context.Context) (any, error) { - return obj.UserAgent, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Session_userAgent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Session", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Session_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Session_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Session_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Session", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Session_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Session_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Session_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Session", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Session_expiresAt(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Session_expiresAt, - func(ctx context.Context) (any, error) { - return obj.ExpiresAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Session_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Session", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Session_permission(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Session_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Session().Permission(ctx, obj, fc.Args["action"].(string)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal bool - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal bool - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, obj, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Session_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Session", - 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_Session_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SessionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.SessionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SessionConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNSessionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SessionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SessionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_SessionEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_SessionEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SessionEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SessionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.SessionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SessionConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SessionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SessionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SessionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.SessionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SessionConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SessionConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalOInt2ᚖint, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SessionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SessionConnection", - 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) _SessionEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.SessionEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SessionEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SessionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SessionEdge", - 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_Session_id(ctx, field) - case "identity": - return ec.fieldContext_Session_identity(ctx, field) - case "ipAddress": - return ec.fieldContext_Session_ipAddress(ctx, field) - case "userAgent": - return ec.fieldContext_Session_userAgent(ctx, field) - case "updatedAt": - return ec.fieldContext_Session_updatedAt(ctx, field) - case "createdAt": - return ec.fieldContext_Session_createdAt(ctx, field) - case "expiresAt": - return ec.fieldContext_Session_expiresAt(ctx, field) - case "permission": - return ec.fieldContext_Session_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Session", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SessionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.SessionEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SessionEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SessionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SessionEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SignInPayload_identity(ctx context.Context, field graphql.CollectedField, obj *types.SignInPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignInPayload_identity, - func(ctx context.Context) (any, error) { - return obj.Identity, nil - }, - nil, - ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SignInPayload_identity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignInPayload", - 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_Identity_id(ctx, field) - case "email": - return ec.fieldContext_Identity_email(ctx, field) - case "fullName": - return ec.fieldContext_Identity_fullName(ctx, field) - case "emailVerified": - return ec.fieldContext_Identity_emailVerified(ctx, field) - case "createdAt": - return ec.fieldContext_Identity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Identity_updatedAt(ctx, field) - case "profiles": - return ec.fieldContext_Identity_profiles(ctx, field) - case "sessions": - return ec.fieldContext_Identity_sessions(ctx, field) - case "personalAPIKeys": - return ec.fieldContext_Identity_personalAPIKeys(ctx, field) - case "ssoLoginURL": - return ec.fieldContext_Identity_ssoLoginURL(ctx, field) - case "permission": - return ec.fieldContext_Identity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SignInPayload_session(ctx context.Context, field graphql.CollectedField, obj *types.SignInPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignInPayload_session, - func(ctx context.Context) (any, error) { - return obj.Session, nil - }, - nil, - ec.marshalOSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SignInPayload_session(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignInPayload", - 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_Session_id(ctx, field) - case "identity": - return ec.fieldContext_Session_identity(ctx, field) - case "ipAddress": - return ec.fieldContext_Session_ipAddress(ctx, field) - case "userAgent": - return ec.fieldContext_Session_userAgent(ctx, field) - case "updatedAt": - return ec.fieldContext_Session_updatedAt(ctx, field) - case "createdAt": - return ec.fieldContext_Session_createdAt(ctx, field) - case "expiresAt": - return ec.fieldContext_Session_expiresAt(ctx, field) - case "permission": - return ec.fieldContext_Session_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Session", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SignOutPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.SignOutPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignOutPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignOutPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignOutPayload", - 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) _SignUpPayload_identity(ctx context.Context, field graphql.CollectedField, obj *types.SignUpPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignUpPayload_identity, - func(ctx context.Context) (any, error) { - return obj.Identity, nil - }, - nil, - ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SignUpPayload_identity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignUpPayload", - 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_Identity_id(ctx, field) - case "email": - return ec.fieldContext_Identity_email(ctx, field) - case "fullName": - return ec.fieldContext_Identity_fullName(ctx, field) - case "emailVerified": - return ec.fieldContext_Identity_emailVerified(ctx, field) - case "createdAt": - return ec.fieldContext_Identity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Identity_updatedAt(ctx, field) - case "profiles": - return ec.fieldContext_Identity_profiles(ctx, field) - case "sessions": - return ec.fieldContext_Identity_sessions(ctx, field) - case "personalAPIKeys": - return ec.fieldContext_Identity_personalAPIKeys(ctx, field) - case "ssoLoginURL": - return ec.fieldContext_Identity_ssoLoginURL(ctx, field) - case "permission": - return ec.fieldContext_Identity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateMembershipPayload_membership(ctx context.Context, field graphql.CollectedField, obj *types.UpdateMembershipPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateMembershipPayload_membership, - func(ctx context.Context) (any, error) { - return obj.Membership, nil - }, - nil, - ec.marshalNMembership2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐMembership, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateMembershipPayload_membership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateMembershipPayload", - 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_Membership_id(ctx, field) - case "createdAt": - return ec.fieldContext_Membership_createdAt(ctx, field) - case "role": - return ec.fieldContext_Membership_role(ctx, field) - case "lastSession": - return ec.fieldContext_Membership_lastSession(ctx, field) - case "permission": - return ec.fieldContext_Membership_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Membership", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateOrganizationPayload_organization(ctx context.Context, field graphql.CollectedField, obj *types.UpdateOrganizationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateOrganizationPayload_organization, - func(ctx context.Context) (any, error) { - return obj.Organization, nil - }, - nil, - ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_UpdateOrganizationPayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateOrganizationPayload", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "samlConfigurations": - return ec.fieldContext_Organization_samlConfigurations(ctx, field) - case "scimConfiguration": - return ec.fieldContext_Organization_scimConfiguration(ctx, field) - case "viewer": - return ec.fieldContext_Organization_viewer(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateSAMLConfigurationPayload_samlConfiguration(ctx context.Context, field graphql.CollectedField, obj *types.UpdateSAMLConfigurationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateSAMLConfigurationPayload_samlConfiguration, - func(ctx context.Context) (any, error) { - return obj.SamlConfiguration, nil - }, - nil, - ec.marshalOSAMLConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfiguration, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_UpdateSAMLConfigurationPayload_samlConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateSAMLConfigurationPayload", - 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_SAMLConfiguration_id(ctx, field) - case "emailDomain": - return ec.fieldContext_SAMLConfiguration_emailDomain(ctx, field) - case "enforcementPolicy": - return ec.fieldContext_SAMLConfiguration_enforcementPolicy(ctx, field) - case "domainVerifiedAt": - return ec.fieldContext_SAMLConfiguration_domainVerifiedAt(ctx, field) - case "domainVerificationToken": - return ec.fieldContext_SAMLConfiguration_domainVerificationToken(ctx, field) - case "idpEntityId": - return ec.fieldContext_SAMLConfiguration_idpEntityId(ctx, field) - case "idpSsoUrl": - return ec.fieldContext_SAMLConfiguration_idpSsoUrl(ctx, field) - case "idpCertificate": - return ec.fieldContext_SAMLConfiguration_idpCertificate(ctx, field) - case "autoSignupEnabled": - return ec.fieldContext_SAMLConfiguration_autoSignupEnabled(ctx, field) - case "createdAt": - return ec.fieldContext_SAMLConfiguration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SAMLConfiguration_updatedAt(ctx, field) - case "testLoginUrl": - return ec.fieldContext_SAMLConfiguration_testLoginUrl(ctx, field) - case "attributeMappings": - return ec.fieldContext_SAMLConfiguration_attributeMappings(ctx, field) - case "permission": - return ec.fieldContext_SAMLConfiguration_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SAMLConfiguration", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateSCIMBridgePayload_scimBridge(ctx context.Context, field graphql.CollectedField, obj *types.UpdateSCIMBridgePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateSCIMBridgePayload_scimBridge, - func(ctx context.Context) (any, error) { - return obj.ScimBridge, nil - }, - nil, - ec.marshalNSCIMBridge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMBridge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateSCIMBridgePayload_scimBridge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateSCIMBridgePayload", - 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_SCIMBridge_id(ctx, field) - case "state": - return ec.fieldContext_SCIMBridge_state(ctx, field) - case "scimConfiguration": - return ec.fieldContext_SCIMBridge_scimConfiguration(ctx, field) - case "connector": - return ec.fieldContext_SCIMBridge_connector(ctx, field) - case "type": - return ec.fieldContext_SCIMBridge_type(ctx, field) - case "excludedUserNames": - return ec.fieldContext_SCIMBridge_excludedUserNames(ctx, field) - case "createdAt": - return ec.fieldContext_SCIMBridge_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SCIMBridge_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_SCIMBridge_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SCIMBridge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateUserPayload_profile(ctx context.Context, field graphql.CollectedField, obj *types.UpdateUserPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateUserPayload_profile, - func(ctx context.Context) (any, error) { - return obj.Profile, nil - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateUserPayload_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateUserPayload", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "source": - return ec.fieldContext_Profile_source(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "identity": - return ec.fieldContext_Profile_identity(ctx, field) - case "organization": - return ec.fieldContext_Profile_organization(ctx, field) - case "membership": - return ec.fieldContext_Profile_membership(ctx, field) - case "pendingInvitations": - return ec.fieldContext_Profile_pendingInvitations(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VerifyEmailPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.VerifyEmailPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VerifyEmailPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VerifyEmailPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VerifyEmailPayload", - 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) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Directive_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Directive_description(_ 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_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_isRepeatable, - func(ctx context.Context) (any, error) { - return obj.IsRepeatable, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Directive_isRepeatable(_ 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) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_locations, - func(ctx context.Context) (any, error) { - return obj.Locations, nil - }, - nil, - ec.marshalN__DirectiveLocation2ᚕstringᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Directive_locations(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_args, - func(ctx context.Context) (any, error) { - return obj.Args, nil - }, - nil, - ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ, - true, - true, - ) -} - -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) - case "isDeprecated": - return ec.fieldContext___InputValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___InputValue_deprecationReason(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", 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___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_isDeprecated, - func(ctx context.Context) (any, error) { - return obj.IsDeprecated(), nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_deprecationReason, - func(ctx context.Context) (any, error) { - return obj.DeprecationReason(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Field_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Field_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_args, - func(ctx context.Context) (any, error) { - return obj.Args, nil - }, - nil, - ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ, - true, - true, - ) -} - -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) - case "isDeprecated": - return ec.fieldContext___InputValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___InputValue_deprecationReason(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", 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___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Field_type(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_isDeprecated, - func(ctx context.Context) (any, error) { - return obj.IsDeprecated(), nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Field_isDeprecated(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_deprecationReason, - func(ctx context.Context) (any, error) { - return obj.DeprecationReason(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Field_deprecationReason(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___InputValue_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___InputValue_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___InputValue_type(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_defaultValue, - func(ctx context.Context) (any, error) { - return obj.DefaultValue, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___InputValue_defaultValue(_ 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_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_isDeprecated, - func(ctx context.Context) (any, error) { - return obj.IsDeprecated(), nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ 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 Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_deprecationReason, - func(ctx context.Context) (any, error) { - return obj.DeprecationReason(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ 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) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Schema_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_types, - func(ctx context.Context) (any, error) { - return obj.Types(), nil - }, - nil, - ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Schema_types(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_queryType, - func(ctx context.Context) (any, error) { - return obj.QueryType(), nil - }, - nil, - ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Schema_queryType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_mutationType, - func(ctx context.Context) (any, error) { - return obj.MutationType(), nil - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Schema_mutationType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_subscriptionType, - func(ctx context.Context) (any, error) { - return obj.SubscriptionType(), nil - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Schema_subscriptionType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_directives, - func(ctx context.Context) (any, error) { - return obj.Directives(), nil - }, - nil, - ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Schema_directives(_ 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 "isRepeatable": - return ec.fieldContext___Directive_isRepeatable(ctx, field) - case "locations": - return ec.fieldContext___Directive_locations(ctx, field) - case "args": - return ec.fieldContext___Directive_args(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_kind, - func(ctx context.Context) (any, error) { - return obj.Kind(), nil - }, - nil, - ec.marshalN__TypeKind2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Type_kind(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_name, - func(ctx context.Context) (any, error) { - return obj.Name(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_description(_ 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_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_specifiedByURL, - func(ctx context.Context) (any, error) { - return obj.SpecifiedByURL(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_specifiedByURL(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_fields, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil - }, - nil, - ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ, - true, - false, - ) -} - -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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_interfaces, - func(ctx context.Context) (any, error) { - return obj.Interfaces(), nil - }, - nil, - ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_interfaces(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_possibleTypes, - func(ctx context.Context) (any, error) { - return obj.PossibleTypes(), nil - }, - nil, - ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_possibleTypes(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_enumValues, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil - }, - nil, - ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ, - true, - false, - ) -} - -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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_inputFields, - func(ctx context.Context) (any, error) { - return obj.InputFields(), nil - }, - nil, - ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_inputFields(_ 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) - case "isDeprecated": - return ec.fieldContext___InputValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___InputValue_deprecationReason(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_ofType, - func(ctx context.Context) (any, error) { - return obj.OfType(), nil - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_ofType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_isOneOf, - func(ctx context.Context) (any, error) { - return obj.IsOneOf(), nil - }, - nil, - ec.marshalOBoolean2bool, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_isOneOf(_ 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 Boolean does not have child fields") - }, - } - return fc, nil -} - -// endregion **************************** field.gotpl ***************************** - -// region **************************** input.gotpl ***************************** - -func (ec *executionContext) unmarshalInputActivateAccountInput(ctx context.Context, obj any) (types.ActivateAccountInput, error) { - var it types.ActivateAccountInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"token"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "token": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Token = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputActivateUserInput(ctx context.Context, obj any) (types.ActivateUserInput, error) { - var it types.ActivateUserInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "profileId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "profileId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("profileId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ProfileID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputAssumeOrganizationSessionInput(ctx context.Context, obj any) (types.AssumeOrganizationSessionInput, error) { - var it types.AssumeOrganizationSessionInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "continue"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "continue": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continue")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Continue = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputChangeEmailInput(ctx context.Context, obj any) (types.ChangeEmailInput, error) { - var it types.ChangeEmailInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"newEmail", "password"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "newEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("newEmail")) - data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.NewEmail = data - case "password": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Password = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputChangePasswordInput(ctx context.Context, obj any) (types.ChangePasswordInput, error) { - var it types.ChangePasswordInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"currentPassword", "newPassword"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "currentPassword": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("currentPassword")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.CurrentPassword = data - case "newPassword": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("newPassword")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.NewPassword = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Context, obj any) (types.CreateOrganizationInput, error) { - var it types.CreateOrganizationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"name", "logoFile", "horizontalLogoFile"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "logoFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoFile")) - data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.LogoFile = data - case "horizontalLogoFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("horizontalLogoFile")) - data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.HorizontalLogoFile = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreatePersonalAPIKeyInput(ctx context.Context, obj any) (types.CreatePersonalAPIKeyInput, error) { - var it types.CreatePersonalAPIKeyInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"name", "expiresAt"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) - data, err := ec.unmarshalNDatetime2timeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ExpiresAt = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateSAMLConfigurationInput(ctx context.Context, obj any) (types.CreateSAMLConfigurationInput, error) { - var it types.CreateSAMLConfigurationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "emailDomain", "idpEntityId", "idpSsoUrl", "idpCertificate", "autoSignupEnabled", "attributeMappings"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "emailDomain": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailDomain")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.EmailDomain = data - case "idpEntityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpEntityId")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.IdpEntityID = data - case "idpSsoUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpSsoUrl")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.IdpSsoURL = data - case "idpCertificate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpCertificate")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.IdpCertificate = data - case "autoSignupEnabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("autoSignupEnabled")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.AutoSignupEnabled = data - case "attributeMappings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attributeMappings")) - data, err := ec.unmarshalOSAMLAttributeMappingsInput2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLAttributeMappingsInput(ctx, v) - if err != nil { - return it, err - } - it.AttributeMappings = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateSCIMConfigurationInput(ctx context.Context, obj any) (types.CreateSCIMConfigurationInput, error) { - var it types.CreateSCIMConfigurationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "connectorId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "connectorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ConnectorID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj any) (types.CreateUserInput, error) { - var it types.CreateUserInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "fullName", "emailAddress", "role", "additionalEmailAddresses", "kind", "position", "contractStartDate", "contractEndDate"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.FullName = data - case "emailAddress": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailAddress")) - data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.EmailAddress = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole(ctx, v) - if err != nil { - return it, err - } - it.Role = data - case "additionalEmailAddresses": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("additionalEmailAddresses")) - data, err := ec.unmarshalOEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx, v) - if err != nil { - return it, err - } - it.AdditionalEmailAddresses = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Kind = data - case "position": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("position")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Position = data - case "contractStartDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractStartDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ContractStartDate = graphql.OmittableOf(data) - case "contractEndDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractEndDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ContractEndDate = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeactivateUserInput(ctx context.Context, obj any) (types.DeactivateUserInput, error) { - var it types.DeactivateUserInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "profileId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "profileId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("profileId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ProfileID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteOrganizationHorizontalLogoInput(ctx context.Context, obj any) (types.DeleteOrganizationHorizontalLogoInput, error) { - var it types.DeleteOrganizationHorizontalLogoInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteOrganizationInput(ctx context.Context, obj any) (types.DeleteOrganizationInput, error) { - var it types.DeleteOrganizationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteSAMLConfigurationInput(ctx context.Context, obj any) (types.DeleteSAMLConfigurationInput, error) { - var it types.DeleteSAMLConfigurationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "samlConfigurationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "samlConfigurationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("samlConfigurationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SamlConfigurationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteSCIMConfigurationInput(ctx context.Context, obj any) (types.DeleteSCIMConfigurationInput, error) { - var it types.DeleteSCIMConfigurationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "scimConfigurationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "scimConfigurationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scimConfigurationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ScimConfigurationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputForgotPasswordInput(ctx context.Context, obj any) (types.ForgotPasswordInput, error) { - var it types.ForgotPasswordInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"email"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.Email = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputInvitationOrder(ctx context.Context, obj any) (types.InvitationOrderBy, error) { - var it types.InvitationOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputInviteUserInput(ctx context.Context, obj any) (types.InviteUserInput, error) { - var it types.InviteUserInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "profileId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "profileId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("profileId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ProfileID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputProfileFilter(ctx context.Context, obj any) (types.ProfileFilter, error) { - var it types.ProfileFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"excludeContractEnded", "state"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "excludeContractEnded": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("excludeContractEnded")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.ExcludeContractEnded = data - case "state": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) - data, err := ec.unmarshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx, v) - if err != nil { - return it, err - } - it.State = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputProfileOrder(ctx context.Context, obj any) (types.ProfileOrderBy, error) { - var it types.ProfileOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRegenerateSCIMTokenInput(ctx context.Context, obj any) (types.RegenerateSCIMTokenInput, error) { - var it types.RegenerateSCIMTokenInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "scimConfigurationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "scimConfigurationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scimConfigurationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ScimConfigurationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRemoveUserInput(ctx context.Context, obj any) (types.RemoveUserInput, error) { - var it types.RemoveUserInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "profileId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "profileId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("profileId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ProfileID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputResetPasswordInput(ctx context.Context, obj any) (types.ResetPasswordInput, error) { - var it types.ResetPasswordInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"token", "password"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "token": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Token = data - case "password": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Password = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRevokePersonalAPIKeyInput(ctx context.Context, obj any) (types.RevokePersonalAPIKeyInput, error) { - var it types.RevokePersonalAPIKeyInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"personalAPIKeyId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "personalAPIKeyId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalAPIKeyId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.PersonalAPIKeyID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRevokeSessionInput(ctx context.Context, obj any) (types.RevokeSessionInput, error) { - var it types.RevokeSessionInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"sessionId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "sessionId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sessionId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SessionID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputSAMLAttributeMappingsInput(ctx context.Context, obj any) (types.SAMLAttributeMappingsInput, error) { - var it types.SAMLAttributeMappingsInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"email", "firstName", "lastName", "role"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Email = data - case "firstName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.FirstName = data - case "lastName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.LastName = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Role = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputSCIMEventOrder(ctx context.Context, obj any) (types.SCIMEventOrderBy, error) { - var it types.SCIMEventOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputSessionOrder(ctx context.Context, obj any) (types.SessionOrder, error) { - var it types.SessionOrder - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputSignInInput(ctx context.Context, obj any) (types.SignInInput, error) { - var it types.SignInInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "email", "password"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.Email = data - case "password": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Password = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputSignUpInput(ctx context.Context, obj any) (types.SignUpInput, error) { - var it types.SignUpInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"email", "password", "fullName"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.Email = data - case "password": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Password = data - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.FullName = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateMembershipInput(ctx context.Context, obj any) (types.UpdateMembershipInput, error) { - var it types.UpdateMembershipInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "membershipId", "role"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "membershipId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("membershipId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MembershipID = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole(ctx, v) - if err != nil { - return it, err - } - it.Role = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Context, obj any) (types.UpdateOrganizationInput, error) { - var it types.UpdateOrganizationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "logoFile", "horizontalLogoFile", "description", "websiteUrl", "email", "headquarterAddress"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "logoFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoFile")) - data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.LogoFile = data - case "horizontalLogoFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("horizontalLogoFile")) - data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.HorizontalLogoFile = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "websiteUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.WebsiteURL = graphql.OmittableOf(data) - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Email = graphql.OmittableOf(data) - case "headquarterAddress": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("headquarterAddress")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.HeadquarterAddress = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateSAMLConfigurationInput(ctx context.Context, obj any) (types.UpdateSAMLConfigurationInput, error) { - var it types.UpdateSAMLConfigurationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "samlConfigurationId", "idpEntityId", "idpSsoUrl", "idpCertificate", "autoSignupEnabled", "enforcementPolicy", "attributeMappings"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "samlConfigurationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("samlConfigurationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SamlConfigurationID = data - case "idpEntityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpEntityId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IdpEntityID = data - case "idpSsoUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpSsoUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IdpSsoURL = data - case "idpCertificate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpCertificate")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IdpCertificate = data - case "autoSignupEnabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("autoSignupEnabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.AutoSignupEnabled = data - case "enforcementPolicy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enforcementPolicy")) - data, err := ec.unmarshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy(ctx, v) - if err != nil { - return it, err - } - it.EnforcementPolicy = data - case "attributeMappings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attributeMappings")) - data, err := ec.unmarshalOSAMLAttributeMappingsInput2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLAttributeMappingsInput(ctx, v) - if err != nil { - return it, err - } - it.AttributeMappings = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateSCIMBridgeInput(ctx context.Context, obj any) (types.UpdateSCIMBridgeInput, error) { - var it types.UpdateSCIMBridgeInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "scimBridgeId", "excludedUserNames"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "scimBridgeId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scimBridgeId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ScimBridgeID = data - case "excludedUserNames": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("excludedUserNames")) - data, err := ec.unmarshalNString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ExcludedUserNames = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj any) (types.UpdateUserInput, error) { - var it types.UpdateUserInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "fullName", "additionalEmailAddresses", "kind", "position", "contractStartDate", "contractEndDate"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.FullName = data - case "additionalEmailAddresses": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("additionalEmailAddresses")) - data, err := ec.unmarshalOEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx, v) - if err != nil { - return it, err - } - it.AdditionalEmailAddresses = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Kind = data - case "position": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("position")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Position = data - case "contractStartDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractStartDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ContractStartDate = graphql.OmittableOf(data) - case "contractEndDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractEndDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ContractEndDate = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputVerifyEmailInput(ctx context.Context, obj any) (types.VerifyEmailInput, error) { - var it types.VerifyEmailInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"token"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "token": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Token = data - } - } - return it, nil -} - -// endregion **************************** input.gotpl ***************************** - -// region ************************** interface.gotpl *************************** - -func (ec *executionContext) _AssumeOrganizationSessionResult(ctx context.Context, sel ast.SelectionSet, obj types.AssumeOrganizationSessionResult) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case types.SAMLAuthenticationRequired: - return ec._SAMLAuthenticationRequired(ctx, sel, &obj) - case *types.SAMLAuthenticationRequired: - if obj == nil { - return graphql.Null - } - return ec._SAMLAuthenticationRequired(ctx, sel, obj) - case types.PasswordRequired: - return ec._PasswordRequired(ctx, sel, &obj) - case *types.PasswordRequired: - if obj == nil { - return graphql.Null - } - return ec._PasswordRequired(ctx, sel, obj) - case types.OrganizationSessionCreated: - return ec._OrganizationSessionCreated(ctx, sel, &obj) - case *types.OrganizationSessionCreated: - if obj == nil { - return graphql.Null - } - return ec._OrganizationSessionCreated(ctx, sel, obj) - default: - if typedObj, ok := obj.(graphql.Marshaler); ok { - return typedObj - } else { - panic(fmt.Errorf("unexpected type %T; non-generated variants of AssumeOrganizationSessionResult must implement graphql.Marshaler", obj)) - } - } -} - -func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj types.Node) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case types.Session: - return ec._Session(ctx, sel, &obj) - case *types.Session: - if obj == nil { - return graphql.Null - } - return ec._Session(ctx, sel, obj) - case types.SCIMEvent: - return ec._SCIMEvent(ctx, sel, &obj) - case *types.SCIMEvent: - if obj == nil { - return graphql.Null - } - return ec._SCIMEvent(ctx, sel, obj) - case types.SCIMConfiguration: - return ec._SCIMConfiguration(ctx, sel, &obj) - case *types.SCIMConfiguration: - if obj == nil { - return graphql.Null - } - return ec._SCIMConfiguration(ctx, sel, obj) - case types.SCIMBridge: - return ec._SCIMBridge(ctx, sel, &obj) - case *types.SCIMBridge: - if obj == nil { - return graphql.Null - } - return ec._SCIMBridge(ctx, sel, obj) - case types.SAMLConfiguration: - return ec._SAMLConfiguration(ctx, sel, &obj) - case *types.SAMLConfiguration: - if obj == nil { - return graphql.Null - } - return ec._SAMLConfiguration(ctx, sel, obj) - case types.Profile: - return ec._Profile(ctx, sel, &obj) - case *types.Profile: - if obj == nil { - return graphql.Null - } - return ec._Profile(ctx, sel, obj) - case types.PersonalAPIKey: - return ec._PersonalAPIKey(ctx, sel, &obj) - case *types.PersonalAPIKey: - if obj == nil { - return graphql.Null - } - return ec._PersonalAPIKey(ctx, sel, obj) - case types.Organization: - return ec._Organization(ctx, sel, &obj) - case *types.Organization: - if obj == nil { - return graphql.Null - } - return ec._Organization(ctx, sel, obj) - case types.Membership: - return ec._Membership(ctx, sel, &obj) - case *types.Membership: - if obj == nil { - return graphql.Null - } - return ec._Membership(ctx, sel, obj) - case types.Invitation: - return ec._Invitation(ctx, sel, &obj) - case *types.Invitation: - if obj == nil { - return graphql.Null - } - return ec._Invitation(ctx, sel, obj) - case types.Identity: - return ec._Identity(ctx, sel, &obj) - case *types.Identity: - if obj == nil { - return graphql.Null - } - return ec._Identity(ctx, sel, obj) - case types.Connector: - return ec._Connector(ctx, sel, &obj) - case *types.Connector: - if obj == nil { - return graphql.Null - } - return ec._Connector(ctx, sel, obj) - default: - if typedObj, ok := obj.(graphql.Marshaler); ok { - return typedObj - } else { - panic(fmt.Errorf("unexpected type %T; non-generated variants of Node must implement graphql.Marshaler", obj)) - } - } -} - -// endregion ************************** interface.gotpl *************************** - -// region **************************** object.gotpl **************************** - -var activateAccountPayloadImplementors = []string{"ActivateAccountPayload"} - -func (ec *executionContext) _ActivateAccountPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ActivateAccountPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, activateAccountPayloadImplementors) - - 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("ActivateAccountPayload") - case "createPasswordToken": - out.Values[i] = ec._ActivateAccountPayload_createPasswordToken(ctx, field, obj) - case "ssoLoginUrl": - out.Values[i] = ec._ActivateAccountPayload_ssoLoginUrl(ctx, field, obj) - case "profile": - out.Values[i] = ec._ActivateAccountPayload_profile(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 assumeOrganizationSessionPayloadImplementors = []string{"AssumeOrganizationSessionPayload"} - -func (ec *executionContext) _AssumeOrganizationSessionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.AssumeOrganizationSessionPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assumeOrganizationSessionPayloadImplementors) - - 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("AssumeOrganizationSessionPayload") - case "result": - out.Values[i] = ec._AssumeOrganizationSessionPayload_result(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 changeEmailPayloadImplementors = []string{"ChangeEmailPayload"} - -func (ec *executionContext) _ChangeEmailPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ChangeEmailPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, changeEmailPayloadImplementors) - - 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("ChangeEmailPayload") - case "success": - out.Values[i] = ec._ChangeEmailPayload_success(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 changePasswordPayloadImplementors = []string{"ChangePasswordPayload"} - -func (ec *executionContext) _ChangePasswordPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ChangePasswordPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, changePasswordPayloadImplementors) - - 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("ChangePasswordPayload") - case "success": - out.Values[i] = ec._ChangePasswordPayload_success(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 connectorImplementors = []string{"Connector", "Node"} - -func (ec *executionContext) _Connector(ctx context.Context, sel ast.SelectionSet, obj *types.Connector) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, connectorImplementors) - - 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("Connector") - case "id": - out.Values[i] = ec._Connector_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "provider": - out.Values[i] = ec._Connector_provider(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Connector_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Connector_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Connector_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 createOrganizationPayloadImplementors = []string{"CreateOrganizationPayload"} - -func (ec *executionContext) _CreateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateOrganizationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createOrganizationPayloadImplementors) - - 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("CreateOrganizationPayload") - case "organization": - out.Values[i] = ec._CreateOrganizationPayload_organization(ctx, field, obj) - case "profile": - out.Values[i] = ec._CreateOrganizationPayload_profile(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 createPersonalAPIKeyPayloadImplementors = []string{"CreatePersonalAPIKeyPayload"} - -func (ec *executionContext) _CreatePersonalAPIKeyPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreatePersonalAPIKeyPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createPersonalAPIKeyPayloadImplementors) - - 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("CreatePersonalAPIKeyPayload") - case "personalAPIKeyEdge": - out.Values[i] = ec._CreatePersonalAPIKeyPayload_personalAPIKeyEdge(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "token": - out.Values[i] = ec._CreatePersonalAPIKeyPayload_token(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 createSAMLConfigurationPayloadImplementors = []string{"CreateSAMLConfigurationPayload"} - -func (ec *executionContext) _CreateSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateSAMLConfigurationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createSAMLConfigurationPayloadImplementors) - - 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("CreateSAMLConfigurationPayload") - case "samlConfigurationEdge": - out.Values[i] = ec._CreateSAMLConfigurationPayload_samlConfigurationEdge(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 createSCIMConfigurationPayloadImplementors = []string{"CreateSCIMConfigurationPayload"} - -func (ec *executionContext) _CreateSCIMConfigurationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateSCIMConfigurationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createSCIMConfigurationPayloadImplementors) - - 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("CreateSCIMConfigurationPayload") - case "scimConfiguration": - out.Values[i] = ec._CreateSCIMConfigurationPayload_scimConfiguration(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "scimBridge": - out.Values[i] = ec._CreateSCIMConfigurationPayload_scimBridge(ctx, field, obj) - case "token": - out.Values[i] = ec._CreateSCIMConfigurationPayload_token(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 createUserPayloadImplementors = []string{"CreateUserPayload"} - -func (ec *executionContext) _CreateUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateUserPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createUserPayloadImplementors) - - 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("CreateUserPayload") - case "profileEdge": - out.Values[i] = ec._CreateUserPayload_profileEdge(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 deactivateUserPayloadImplementors = []string{"DeactivateUserPayload"} - -func (ec *executionContext) _DeactivateUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeactivateUserPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deactivateUserPayloadImplementors) - - 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("DeactivateUserPayload") - case "success": - out.Values[i] = ec._DeactivateUserPayload_success(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 deleteOrganizationHorizontalLogoPayloadImplementors = []string{"DeleteOrganizationHorizontalLogoPayload"} - -func (ec *executionContext) _DeleteOrganizationHorizontalLogoPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteOrganizationHorizontalLogoPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteOrganizationHorizontalLogoPayloadImplementors) - - 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("DeleteOrganizationHorizontalLogoPayload") - case "organization": - out.Values[i] = ec._DeleteOrganizationHorizontalLogoPayload_organization(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 deleteOrganizationPayloadImplementors = []string{"DeleteOrganizationPayload"} - -func (ec *executionContext) _DeleteOrganizationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteOrganizationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteOrganizationPayloadImplementors) - - 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("DeleteOrganizationPayload") - case "deletedOrganizationId": - out.Values[i] = ec._DeleteOrganizationPayload_deletedOrganizationId(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 deleteSAMLConfigurationPayloadImplementors = []string{"DeleteSAMLConfigurationPayload"} - -func (ec *executionContext) _DeleteSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteSAMLConfigurationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteSAMLConfigurationPayloadImplementors) - - 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("DeleteSAMLConfigurationPayload") - case "deletedSamlConfigurationId": - out.Values[i] = ec._DeleteSAMLConfigurationPayload_deletedSamlConfigurationId(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 deleteSCIMConfigurationPayloadImplementors = []string{"DeleteSCIMConfigurationPayload"} - -func (ec *executionContext) _DeleteSCIMConfigurationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteSCIMConfigurationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteSCIMConfigurationPayloadImplementors) - - 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("DeleteSCIMConfigurationPayload") - case "deletedScimConfigurationId": - out.Values[i] = ec._DeleteSCIMConfigurationPayload_deletedScimConfigurationId(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 forgotPasswordPayloadImplementors = []string{"ForgotPasswordPayload"} - -func (ec *executionContext) _ForgotPasswordPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ForgotPasswordPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, forgotPasswordPayloadImplementors) - - 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("ForgotPasswordPayload") - case "success": - out.Values[i] = ec._ForgotPasswordPayload_success(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 identityImplementors = []string{"Identity", "Node"} - -func (ec *executionContext) _Identity(ctx context.Context, sel ast.SelectionSet, obj *types.Identity) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, identityImplementors) - - 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("Identity") - case "id": - out.Values[i] = ec._Identity_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "email": - out.Values[i] = ec._Identity_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fullName": - out.Values[i] = ec._Identity_fullName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "emailVerified": - out.Values[i] = ec._Identity_emailVerified(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Identity_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Identity_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "profiles": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Identity_profiles(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 "sessions": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Identity_sessions(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 "personalAPIKeys": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Identity_personalAPIKeys(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 "ssoLoginURL": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Identity_ssoLoginURL(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 "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Identity_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 invitationImplementors = []string{"Invitation", "Node"} - -func (ec *executionContext) _Invitation(ctx context.Context, sel ast.SelectionSet, obj *types.Invitation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, invitationImplementors) - - 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("Invitation") - case "id": - out.Values[i] = ec._Invitation_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "expiresAt": - out.Values[i] = ec._Invitation_expiresAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "acceptedAt": - out.Values[i] = ec._Invitation_acceptedAt(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._Invitation_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "status": - out.Values[i] = ec._Invitation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Invitation_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 invitationConnectionImplementors = []string{"InvitationConnection"} - -func (ec *executionContext) _InvitationConnection(ctx context.Context, sel ast.SelectionSet, obj *types.InvitationConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, invitationConnectionImplementors) - - 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("InvitationConnection") - case "edges": - out.Values[i] = ec._InvitationConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._InvitationConnection_pageInfo(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 invitationEdgeImplementors = []string{"InvitationEdge"} - -func (ec *executionContext) _InvitationEdge(ctx context.Context, sel ast.SelectionSet, obj *types.InvitationEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, invitationEdgeImplementors) - - 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("InvitationEdge") - case "node": - out.Values[i] = ec._InvitationEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._InvitationEdge_cursor(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 inviteUserPayloadImplementors = []string{"InviteUserPayload"} - -func (ec *executionContext) _InviteUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.InviteUserPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteUserPayloadImplementors) - - 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("InviteUserPayload") - case "invitationEdge": - out.Values[i] = ec._InviteUserPayload_invitationEdge(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 membershipImplementors = []string{"Membership", "Node"} - -func (ec *executionContext) _Membership(ctx context.Context, sel ast.SelectionSet, obj *types.Membership) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, membershipImplementors) - - 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("Membership") - case "id": - out.Values[i] = ec._Membership_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Membership_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "role": - out.Values[i] = ec._Membership_role(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "lastSession": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Membership_lastSession(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 "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Membership_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 "signIn": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_signIn(ctx, field) - }) - case "signUp": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_signUp(ctx, field) - }) - case "signOut": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_signOut(ctx, field) - }) - case "activateAccount": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_activateAccount(ctx, field) - }) - case "forgotPassword": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_forgotPassword(ctx, field) - }) - case "resetPassword": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_resetPassword(ctx, field) - }) - case "verifyEmail": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_verifyEmail(ctx, field) - }) - case "changePassword": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_changePassword(ctx, field) - }) - case "changeEmail": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_changeEmail(ctx, field) - }) - case "assumeOrganizationSession": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_assumeOrganizationSession(ctx, field) - }) - case "revokeSession": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_revokeSession(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "revokeAllSessions": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_revokeAllSessions(ctx, field) - }) - case "createPersonalAPIKey": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createPersonalAPIKey(ctx, field) - }) - case "revokePersonalAPIKey": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_revokePersonalAPIKey(ctx, field) - }) - case "createOrganization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOrganization(ctx, field) - }) - case "updateOrganization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOrganization(ctx, field) - }) - case "deleteOrganization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOrganization(ctx, field) - }) - case "deleteOrganizationHorizontalLogo": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOrganizationHorizontalLogo(ctx, field) - }) - case "createUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createUser(ctx, field) - }) - case "inviteUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_inviteUser(ctx, field) - }) - case "deactivateUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deactivateUser(ctx, field) - }) - case "updateUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateUser(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "removeUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_removeUser(ctx, field) - }) - case "createSAMLConfiguration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createSAMLConfiguration(ctx, field) - }) - case "updateSAMLConfiguration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateSAMLConfiguration(ctx, field) - }) - case "deleteSAMLConfiguration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteSAMLConfiguration(ctx, field) - }) - case "createSCIMConfiguration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createSCIMConfiguration(ctx, field) - }) - case "deleteSCIMConfiguration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteSCIMConfiguration(ctx, field) - }) - case "regenerateSCIMToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_regenerateSCIMToken(ctx, field) - }) - case "updateSCIMBridge": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateSCIMBridge(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 organizationImplementors = []string{"Organization", "Node"} - -func (ec *executionContext) _Organization(ctx context.Context, sel ast.SelectionSet, obj *types.Organization) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationImplementors) - - 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("Organization") - case "id": - out.Values[i] = ec._Organization_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Organization_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "logoUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_logoUrl(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 "horizontalLogoUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_horizontalLogoUrl(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 "email": - out.Values[i] = ec._Organization_email(ctx, field, obj) - case "description": - out.Values[i] = ec._Organization_description(ctx, field, obj) - case "websiteUrl": - out.Values[i] = ec._Organization_websiteUrl(ctx, field, obj) - case "headquarterAddress": - out.Values[i] = ec._Organization_headquarterAddress(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._Organization_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Organization_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "profiles": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_profiles(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 "samlConfigurations": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_samlConfigurations(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 "scimConfiguration": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_scimConfiguration(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 "viewer": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_viewer(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 "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 organizationSessionCreatedImplementors = []string{"OrganizationSessionCreated", "AssumeOrganizationSessionResult"} - -func (ec *executionContext) _OrganizationSessionCreated(ctx context.Context, sel ast.SelectionSet, obj *types.OrganizationSessionCreated) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSessionCreatedImplementors) - - 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("OrganizationSessionCreated") - case "session": - out.Values[i] = ec._OrganizationSessionCreated_session(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "membership": - out.Values[i] = ec._OrganizationSessionCreated_membership(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 pageInfoImplementors = []string{"PageInfo"} - -func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *types.PageInfo) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors) - - 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("PageInfo") - case "hasNextPage": - out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "hasPreviousPage": - out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "startCursor": - out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) - case "endCursor": - out.Values[i] = ec._PageInfo_endCursor(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 passwordRequiredImplementors = []string{"PasswordRequired", "AssumeOrganizationSessionResult"} - -func (ec *executionContext) _PasswordRequired(ctx context.Context, sel ast.SelectionSet, obj *types.PasswordRequired) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, passwordRequiredImplementors) - - 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("PasswordRequired") - case "reason": - out.Values[i] = ec._PasswordRequired_reason(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 personalAPIKeyImplementors = []string{"PersonalAPIKey", "Node"} - -func (ec *executionContext) _PersonalAPIKey(ctx context.Context, sel ast.SelectionSet, obj *types.PersonalAPIKey) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAPIKeyImplementors) - - 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("PersonalAPIKey") - case "id": - out.Values[i] = ec._PersonalAPIKey_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._PersonalAPIKey_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "expiresAt": - out.Values[i] = ec._PersonalAPIKey_expiresAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "lastUsedAt": - out.Values[i] = ec._PersonalAPIKey_lastUsedAt(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._PersonalAPIKey_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "token": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PersonalAPIKey_token(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 "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PersonalAPIKey_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 personalAPIKeyConnectionImplementors = []string{"PersonalAPIKeyConnection"} - -func (ec *executionContext) _PersonalAPIKeyConnection(ctx context.Context, sel ast.SelectionSet, obj *types.PersonalAPIKeyConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAPIKeyConnectionImplementors) - - 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("PersonalAPIKeyConnection") - case "edges": - out.Values[i] = ec._PersonalAPIKeyConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._PersonalAPIKeyConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._PersonalAPIKeyConnection_totalCount(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 personalAPIKeyEdgeImplementors = []string{"PersonalAPIKeyEdge"} - -func (ec *executionContext) _PersonalAPIKeyEdge(ctx context.Context, sel ast.SelectionSet, obj *types.PersonalAPIKeyEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAPIKeyEdgeImplementors) - - 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("PersonalAPIKeyEdge") - case "node": - out.Values[i] = ec._PersonalAPIKeyEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._PersonalAPIKeyEdge_cursor(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 profileImplementors = []string{"Profile", "Node"} - -func (ec *executionContext) _Profile(ctx context.Context, sel ast.SelectionSet, obj *types.Profile) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, profileImplementors) - - 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("Profile") - case "id": - out.Values[i] = ec._Profile_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fullName": - out.Values[i] = ec._Profile_fullName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "emailAddress": - out.Values[i] = ec._Profile_emailAddress(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "source": - out.Values[i] = ec._Profile_source(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "state": - out.Values[i] = ec._Profile_state(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "additionalEmailAddresses": - out.Values[i] = ec._Profile_additionalEmailAddresses(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "kind": - out.Values[i] = ec._Profile_kind(ctx, field, obj) - case "position": - out.Values[i] = ec._Profile_position(ctx, field, obj) - case "contractStartDate": - out.Values[i] = ec._Profile_contractStartDate(ctx, field, obj) - case "contractEndDate": - out.Values[i] = ec._Profile_contractEndDate(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._Profile_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Profile_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "identity": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Profile_identity(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 "organization": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Profile_organization(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 "membership": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Profile_membership(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 "pendingInvitations": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Profile_pendingInvitations(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 "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Profile_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 profileConnectionImplementors = []string{"ProfileConnection"} - -func (ec *executionContext) _ProfileConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ProfileConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, profileConnectionImplementors) - - 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("ProfileConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ProfileConnection_totalCount(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 "edges": - out.Values[i] = ec._ProfileConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._ProfileConnection_pageInfo(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 profileEdgeImplementors = []string{"ProfileEdge"} - -func (ec *executionContext) _ProfileEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ProfileEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, profileEdgeImplementors) - - 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("ProfileEdge") - case "cursor": - out.Values[i] = ec._ProfileEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ProfileEdge_node(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 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 "node": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_node(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 "viewer": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_viewer(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 "ssoLoginURL": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ssoLoginURL(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 "__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 regenerateSCIMTokenPayloadImplementors = []string{"RegenerateSCIMTokenPayload"} - -func (ec *executionContext) _RegenerateSCIMTokenPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RegenerateSCIMTokenPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, regenerateSCIMTokenPayloadImplementors) - - 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("RegenerateSCIMTokenPayload") - case "scimConfiguration": - out.Values[i] = ec._RegenerateSCIMTokenPayload_scimConfiguration(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "token": - out.Values[i] = ec._RegenerateSCIMTokenPayload_token(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 removeUserPayloadImplementors = []string{"RemoveUserPayload"} - -func (ec *executionContext) _RemoveUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RemoveUserPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, removeUserPayloadImplementors) - - 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("RemoveUserPayload") - case "deletedProfileId": - out.Values[i] = ec._RemoveUserPayload_deletedProfileId(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 resetPasswordPayloadImplementors = []string{"ResetPasswordPayload"} - -func (ec *executionContext) _ResetPasswordPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ResetPasswordPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, resetPasswordPayloadImplementors) - - 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("ResetPasswordPayload") - case "success": - out.Values[i] = ec._ResetPasswordPayload_success(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 revokeAllSessionsPayloadImplementors = []string{"RevokeAllSessionsPayload"} - -func (ec *executionContext) _RevokeAllSessionsPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RevokeAllSessionsPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, revokeAllSessionsPayloadImplementors) - - 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("RevokeAllSessionsPayload") - case "revokedCount": - out.Values[i] = ec._RevokeAllSessionsPayload_revokedCount(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 revokePersonalAPIKeyPayloadImplementors = []string{"RevokePersonalAPIKeyPayload"} - -func (ec *executionContext) _RevokePersonalAPIKeyPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RevokePersonalAPIKeyPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, revokePersonalAPIKeyPayloadImplementors) - - 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("RevokePersonalAPIKeyPayload") - case "personalAPIKeyId": - out.Values[i] = ec._RevokePersonalAPIKeyPayload_personalAPIKeyId(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 revokeSessionPayloadImplementors = []string{"RevokeSessionPayload"} - -func (ec *executionContext) _RevokeSessionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RevokeSessionPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, revokeSessionPayloadImplementors) - - 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("RevokeSessionPayload") - case "success": - out.Values[i] = ec._RevokeSessionPayload_success(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 sAMLAttributeMappingsImplementors = []string{"SAMLAttributeMappings"} - -func (ec *executionContext) _SAMLAttributeMappings(ctx context.Context, sel ast.SelectionSet, obj *types.SAMLAttributeMappings) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sAMLAttributeMappingsImplementors) - - 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("SAMLAttributeMappings") - case "email": - out.Values[i] = ec._SAMLAttributeMappings_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "firstName": - out.Values[i] = ec._SAMLAttributeMappings_firstName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "lastName": - out.Values[i] = ec._SAMLAttributeMappings_lastName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "role": - out.Values[i] = ec._SAMLAttributeMappings_role(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 sAMLAuthenticationRequiredImplementors = []string{"SAMLAuthenticationRequired", "AssumeOrganizationSessionResult"} - -func (ec *executionContext) _SAMLAuthenticationRequired(ctx context.Context, sel ast.SelectionSet, obj *types.SAMLAuthenticationRequired) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sAMLAuthenticationRequiredImplementors) - - 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("SAMLAuthenticationRequired") - case "reason": - out.Values[i] = ec._SAMLAuthenticationRequired_reason(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 sAMLConfigurationImplementors = []string{"SAMLConfiguration", "Node"} - -func (ec *executionContext) _SAMLConfiguration(ctx context.Context, sel ast.SelectionSet, obj *types.SAMLConfiguration) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sAMLConfigurationImplementors) - - 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("SAMLConfiguration") - case "id": - out.Values[i] = ec._SAMLConfiguration_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "emailDomain": - out.Values[i] = ec._SAMLConfiguration_emailDomain(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "enforcementPolicy": - out.Values[i] = ec._SAMLConfiguration_enforcementPolicy(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "domainVerifiedAt": - out.Values[i] = ec._SAMLConfiguration_domainVerifiedAt(ctx, field, obj) - case "domainVerificationToken": - out.Values[i] = ec._SAMLConfiguration_domainVerificationToken(ctx, field, obj) - case "idpEntityId": - out.Values[i] = ec._SAMLConfiguration_idpEntityId(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "idpSsoUrl": - out.Values[i] = ec._SAMLConfiguration_idpSsoUrl(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "idpCertificate": - out.Values[i] = ec._SAMLConfiguration_idpCertificate(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "autoSignupEnabled": - out.Values[i] = ec._SAMLConfiguration_autoSignupEnabled(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._SAMLConfiguration_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._SAMLConfiguration_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "testLoginUrl": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SAMLConfiguration_testLoginUrl(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "attributeMappings": - out.Values[i] = ec._SAMLConfiguration_attributeMappings(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SAMLConfiguration_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 sAMLConfigurationConnectionImplementors = []string{"SAMLConfigurationConnection"} - -func (ec *executionContext) _SAMLConfigurationConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SAMLConfigurationConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sAMLConfigurationConnectionImplementors) - - 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("SAMLConfigurationConnection") - case "edges": - out.Values[i] = ec._SAMLConfigurationConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._SAMLConfigurationConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SAMLConfigurationConnection_totalCount(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 sAMLConfigurationEdgeImplementors = []string{"SAMLConfigurationEdge"} - -func (ec *executionContext) _SAMLConfigurationEdge(ctx context.Context, sel ast.SelectionSet, obj *types.SAMLConfigurationEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sAMLConfigurationEdgeImplementors) - - 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("SAMLConfigurationEdge") - case "node": - out.Values[i] = ec._SAMLConfigurationEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._SAMLConfigurationEdge_cursor(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 sCIMBridgeImplementors = []string{"SCIMBridge", "Node"} - -func (ec *executionContext) _SCIMBridge(ctx context.Context, sel ast.SelectionSet, obj *types.SCIMBridge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sCIMBridgeImplementors) - - 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("SCIMBridge") - case "id": - out.Values[i] = ec._SCIMBridge_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "state": - out.Values[i] = ec._SCIMBridge_state(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "scimConfiguration": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SCIMBridge_scimConfiguration(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 "connector": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SCIMBridge_connector(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 "type": - out.Values[i] = ec._SCIMBridge_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "excludedUserNames": - out.Values[i] = ec._SCIMBridge_excludedUserNames(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._SCIMBridge_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._SCIMBridge_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SCIMBridge_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 sCIMConfigurationImplementors = []string{"SCIMConfiguration", "Node"} - -func (ec *executionContext) _SCIMConfiguration(ctx context.Context, sel ast.SelectionSet, obj *types.SCIMConfiguration) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sCIMConfigurationImplementors) - - 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("SCIMConfiguration") - case "id": - out.Values[i] = ec._SCIMConfiguration_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "endpointUrl": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SCIMConfiguration_endpointUrl(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._SCIMConfiguration_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._SCIMConfiguration_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organization": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SCIMConfiguration_organization(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 "bridge": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SCIMConfiguration_bridge(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 "events": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SCIMConfiguration_events(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 "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SCIMConfiguration_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 sCIMEventImplementors = []string{"SCIMEvent", "Node"} - -func (ec *executionContext) _SCIMEvent(ctx context.Context, sel ast.SelectionSet, obj *types.SCIMEvent) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sCIMEventImplementors) - - 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("SCIMEvent") - case "id": - out.Values[i] = ec._SCIMEvent_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "method": - out.Values[i] = ec._SCIMEvent_method(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "path": - out.Values[i] = ec._SCIMEvent_path(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "statusCode": - out.Values[i] = ec._SCIMEvent_statusCode(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "requestBody": - out.Values[i] = ec._SCIMEvent_requestBody(ctx, field, obj) - case "responseBody": - out.Values[i] = ec._SCIMEvent_responseBody(ctx, field, obj) - case "errorMessage": - out.Values[i] = ec._SCIMEvent_errorMessage(ctx, field, obj) - case "userName": - out.Values[i] = ec._SCIMEvent_userName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "ipAddress": - out.Values[i] = ec._SCIMEvent_ipAddress(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._SCIMEvent_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SCIMEvent_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 sCIMEventConnectionImplementors = []string{"SCIMEventConnection"} - -func (ec *executionContext) _SCIMEventConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SCIMEventConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sCIMEventConnectionImplementors) - - 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("SCIMEventConnection") - case "edges": - out.Values[i] = ec._SCIMEventConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._SCIMEventConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SCIMEventConnection_totalCount(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 sCIMEventEdgeImplementors = []string{"SCIMEventEdge"} - -func (ec *executionContext) _SCIMEventEdge(ctx context.Context, sel ast.SelectionSet, obj *types.SCIMEventEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sCIMEventEdgeImplementors) - - 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("SCIMEventEdge") - case "node": - out.Values[i] = ec._SCIMEventEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._SCIMEventEdge_cursor(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 sessionImplementors = []string{"Session", "Node"} - -func (ec *executionContext) _Session(ctx context.Context, sel ast.SelectionSet, obj *types.Session) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sessionImplementors) - - 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("Session") - case "id": - out.Values[i] = ec._Session_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "identity": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Session_identity(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 "ipAddress": - out.Values[i] = ec._Session_ipAddress(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userAgent": - out.Values[i] = ec._Session_userAgent(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Session_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Session_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "expiresAt": - out.Values[i] = ec._Session_expiresAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Session_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 sessionConnectionImplementors = []string{"SessionConnection"} - -func (ec *executionContext) _SessionConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SessionConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sessionConnectionImplementors) - - 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("SessionConnection") - case "edges": - out.Values[i] = ec._SessionConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._SessionConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SessionConnection_totalCount(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 sessionEdgeImplementors = []string{"SessionEdge"} - -func (ec *executionContext) _SessionEdge(ctx context.Context, sel ast.SelectionSet, obj *types.SessionEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sessionEdgeImplementors) - - 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("SessionEdge") - case "node": - out.Values[i] = ec._SessionEdge_node(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cursor": - out.Values[i] = ec._SessionEdge_cursor(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 signInPayloadImplementors = []string{"SignInPayload"} - -func (ec *executionContext) _SignInPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SignInPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, signInPayloadImplementors) - - 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("SignInPayload") - case "identity": - out.Values[i] = ec._SignInPayload_identity(ctx, field, obj) - case "session": - out.Values[i] = ec._SignInPayload_session(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 signOutPayloadImplementors = []string{"SignOutPayload"} - -func (ec *executionContext) _SignOutPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SignOutPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, signOutPayloadImplementors) - - 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("SignOutPayload") - case "success": - out.Values[i] = ec._SignOutPayload_success(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 signUpPayloadImplementors = []string{"SignUpPayload"} - -func (ec *executionContext) _SignUpPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SignUpPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, signUpPayloadImplementors) - - 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("SignUpPayload") - case "identity": - out.Values[i] = ec._SignUpPayload_identity(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 updateMembershipPayloadImplementors = []string{"UpdateMembershipPayload"} - -func (ec *executionContext) _UpdateMembershipPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateMembershipPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateMembershipPayloadImplementors) - - 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("UpdateMembershipPayload") - case "membership": - out.Values[i] = ec._UpdateMembershipPayload_membership(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 updateOrganizationPayloadImplementors = []string{"UpdateOrganizationPayload"} - -func (ec *executionContext) _UpdateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateOrganizationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateOrganizationPayloadImplementors) - - 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("UpdateOrganizationPayload") - case "organization": - out.Values[i] = ec._UpdateOrganizationPayload_organization(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 updateSAMLConfigurationPayloadImplementors = []string{"UpdateSAMLConfigurationPayload"} - -func (ec *executionContext) _UpdateSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateSAMLConfigurationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateSAMLConfigurationPayloadImplementors) - - 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("UpdateSAMLConfigurationPayload") - case "samlConfiguration": - out.Values[i] = ec._UpdateSAMLConfigurationPayload_samlConfiguration(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 updateSCIMBridgePayloadImplementors = []string{"UpdateSCIMBridgePayload"} - -func (ec *executionContext) _UpdateSCIMBridgePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateSCIMBridgePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateSCIMBridgePayloadImplementors) - - 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("UpdateSCIMBridgePayload") - case "scimBridge": - out.Values[i] = ec._UpdateSCIMBridgePayload_scimBridge(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 updateUserPayloadImplementors = []string{"UpdateUserPayload"} - -func (ec *executionContext) _UpdateUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateUserPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateUserPayloadImplementors) - - 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("UpdateUserPayload") - case "profile": - out.Values[i] = ec._UpdateUserPayload_profile(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 verifyEmailPayloadImplementors = []string{"VerifyEmailPayload"} - -func (ec *executionContext) _VerifyEmailPayload(ctx context.Context, sel ast.SelectionSet, obj *types.VerifyEmailPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, verifyEmailPayloadImplementors) - - 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("VerifyEmailPayload") - case "success": - out.Values[i] = ec._VerifyEmailPayload_success(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 __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 "isRepeatable": - out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - 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++ - } - 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) - case "isDeprecated": - out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___InputValue_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 __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 "specifiedByURL": - out.Values[i] = ec.___Type_specifiedByURL(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 "isOneOf": - out.Values[i] = ec.___Type_isOneOf(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) unmarshalNActivateAccountInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐActivateAccountInput(ctx context.Context, v any) (types.ActivateAccountInput, error) { - res, err := ec.unmarshalInputActivateAccountInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNAssumeOrganizationSessionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionInput(ctx context.Context, v any) (types.AssumeOrganizationSessionInput, error) { - res, err := ec.unmarshalInputAssumeOrganizationSessionInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAssumeOrganizationSessionResult2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionResult(ctx context.Context, sel ast.SelectionSet, v types.AssumeOrganizationSessionResult) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AssumeOrganizationSessionResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalBoolean(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNChangeEmailInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangeEmailInput(ctx context.Context, v any) (types.ChangeEmailInput, error) { - res, err := ec.unmarshalInputChangeEmailInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNChangePasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangePasswordInput(ctx context.Context, v any) (types.ChangePasswordInput, error) { - res, err := ec.unmarshalInputChangePasswordInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider(ctx context.Context, v any) (coredata.ConnectorProvider, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider(ctx context.Context, sel ast.SelectionSet, v coredata.ConnectorProvider) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider = map[string]coredata.ConnectorProvider{ - "SLACK": coredata.ConnectorProviderSlack, - "GOOGLE_WORKSPACE": coredata.ConnectorProviderGoogleWorkspace, - } - marshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider = map[coredata.ConnectorProvider]string{ - coredata.ConnectorProviderSlack: "SLACK", - coredata.ConnectorProviderGoogleWorkspace: "GOOGLE_WORKSPACE", - } -) - -func (ec *executionContext) unmarshalNCreateOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateOrganizationInput(ctx context.Context, v any) (types.CreateOrganizationInput, error) { - res, err := ec.unmarshalInputCreateOrganizationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNCreatePersonalAPIKeyInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreatePersonalAPIKeyInput(ctx context.Context, v any) (types.CreatePersonalAPIKeyInput, error) { - res, err := ec.unmarshalInputCreatePersonalAPIKeyInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNCreateSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSAMLConfigurationInput(ctx context.Context, v any) (types.CreateSAMLConfigurationInput, error) { - res, err := ec.unmarshalInputCreateSAMLConfigurationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNCreateSCIMConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSCIMConfigurationInput(ctx context.Context, v any) (types.CreateSCIMConfigurationInput, error) { - res, err := ec.unmarshalInputCreateSCIMConfigurationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNCreateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateUserInput(ctx context.Context, v any) (types.CreateUserInput, error) { - res, err := ec.unmarshalInputCreateUserInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (page.CursorKey, error) { - res, err := cursor.UnmarshalCursorKeyScalar(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, sel ast.SelectionSet, v page.CursorKey) graphql.Marshaler { - _ = sel - res := cursor.MarshalCursorKeyScalar(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNDatetime2timeᚐTime(ctx context.Context, v any) (time.Time, error) { - res, err := graphql.UnmarshalTime(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDatetime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { - _ = sel - res := graphql.MarshalTime(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNDeactivateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeactivateUserInput(ctx context.Context, v any) (types.DeactivateUserInput, error) { - res, err := ec.unmarshalInputDeactivateUserInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNDeleteOrganizationHorizontalLogoInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationHorizontalLogoInput(ctx context.Context, v any) (types.DeleteOrganizationHorizontalLogoInput, error) { - res, err := ec.unmarshalInputDeleteOrganizationHorizontalLogoInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNDeleteOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationInput(ctx context.Context, v any) (types.DeleteOrganizationInput, error) { - res, err := ec.unmarshalInputDeleteOrganizationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNDeleteSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSAMLConfigurationInput(ctx context.Context, v any) (types.DeleteSAMLConfigurationInput, error) { - res, err := ec.unmarshalInputDeleteSAMLConfigurationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNDeleteSCIMConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSCIMConfigurationInput(ctx context.Context, v any) (types.DeleteSCIMConfigurationInput, error) { - res, err := ec.unmarshalInputDeleteSCIMConfigurationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx context.Context, v any) (mail.Addr, error) { - res, err := mail1.UnmarshalAddrScalar(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx context.Context, sel ast.SelectionSet, v mail.Addr) graphql.Marshaler { - _ = sel - res := mail1.MarshalAddrScalar(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx context.Context, v any) ([]mail.Addr, error) { - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]mail.Addr, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx context.Context, sel ast.SelectionSet, v []mail.Addr) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNForgotPasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐForgotPasswordInput(ctx context.Context, v any) (types.ForgotPasswordInput, error) { - res, err := ec.unmarshalInputForgotPasswordInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (gid.GID, error) { - res, err := gid1.UnmarshalGIDScalar(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, sel ast.SelectionSet, v gid.GID) graphql.Marshaler { - _ = sel - res := gid1.MarshalGIDScalar(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalInt(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNInvitation2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitation(ctx context.Context, sel ast.SelectionSet, v *types.Invitation) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Invitation(ctx, sel, v) -} - -func (ec *executionContext) marshalNInvitationEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.InvitationEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNInvitationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNInvitationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationEdge(ctx context.Context, sel ast.SelectionSet, v *types.InvitationEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._InvitationEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField(ctx context.Context, v any) (coredata.InvitationOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.InvitationOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField = map[string]coredata.InvitationOrderField{ - "CREATED_AT": coredata.InvitationOrderFieldCreatedAt, - } - marshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField = map[coredata.InvitationOrderField]string{ - coredata.InvitationOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) unmarshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus(ctx context.Context, v any) (coredata.InvitationStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus(ctx context.Context, sel ast.SelectionSet, v coredata.InvitationStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus = map[string]coredata.InvitationStatus{ - "PENDING": coredata.InvitationStatusPending, - "ACCEPTED": coredata.InvitationStatusAccepted, - "EXPIRED": coredata.InvitationStatusExpired, - } - marshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus = map[coredata.InvitationStatus]string{ - coredata.InvitationStatusPending: "PENDING", - coredata.InvitationStatusAccepted: "ACCEPTED", - coredata.InvitationStatusExpired: "EXPIRED", - } -) - -func (ec *executionContext) unmarshalNInviteUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInviteUserInput(ctx context.Context, v any) (types.InviteUserInput, error) { - res, err := ec.unmarshalInputInviteUserInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMembership2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐMembership(ctx context.Context, sel ast.SelectionSet, v *types.Membership) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Membership(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole(ctx context.Context, v any) (coredata.MembershipRole, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole(ctx context.Context, sel ast.SelectionSet, v coredata.MembershipRole) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole = map[string]coredata.MembershipRole{ - "OWNER": coredata.MembershipRoleOwner, - "ADMIN": coredata.MembershipRoleAdmin, - "EMPLOYEE": coredata.MembershipRoleEmployee, - "VIEWER": coredata.MembershipRoleViewer, - "AUDITOR": coredata.MembershipRoleAuditor, - } - marshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole = map[coredata.MembershipRole]string{ - coredata.MembershipRoleOwner: "OWNER", - coredata.MembershipRoleAdmin: "ADMIN", - coredata.MembershipRoleEmployee: "EMPLOYEE", - coredata.MembershipRoleViewer: "VIEWER", - coredata.MembershipRoleAuditor: "AUDITOR", - } -) - -func (ec *executionContext) unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx context.Context, v any) (page.OrderDirection, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx context.Context, sel ast.SelectionSet, v page.OrderDirection) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection = map[string]page.OrderDirection{ - "ASC": page.OrderDirectionAsc, - "DESC": page.OrderDirectionDesc, - } - marshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection = map[page.OrderDirection]string{ - page.OrderDirectionAsc: "ASC", - page.OrderDirectionDesc: "DESC", - } -) - -func (ec *executionContext) marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *types.Organization) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Organization(ctx, sel, v) -} - -func (ec *executionContext) marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v types.PageInfo) graphql.Marshaler { - return ec._PageInfo(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPersonalAPIKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKey(ctx context.Context, sel ast.SelectionSet, v *types.PersonalAPIKey) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PersonalAPIKey(ctx, sel, v) -} - -func (ec *executionContext) marshalNPersonalAPIKeyEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.PersonalAPIKeyEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNPersonalAPIKeyEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNPersonalAPIKeyEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyEdge(ctx context.Context, sel ast.SelectionSet, v *types.PersonalAPIKeyEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PersonalAPIKeyEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile(ctx context.Context, sel ast.SelectionSet, v *types.Profile) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Profile(ctx, sel, v) -} - -func (ec *executionContext) marshalNProfileEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ProfileEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNProfileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNProfileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileEdge(ctx context.Context, sel ast.SelectionSet, v *types.ProfileEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProfileEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField(ctx context.Context, v any) (coredata.MembershipProfileOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.MembershipProfileOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField = map[string]coredata.MembershipProfileOrderField{ - "FULL_NAME": coredata.MembershipProfileOrderFieldFullName, - "CREATED_AT": coredata.MembershipProfileOrderFieldCreatedAt, - "KIND": coredata.MembershipProfileOrderFieldKind, - "ORGANIZATION_NAME": coredata.MembershipProfileOrderFieldOrganizationName, - "STATE": coredata.MembershipProfileOrderFieldState, - } - marshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField = map[coredata.MembershipProfileOrderField]string{ - coredata.MembershipProfileOrderFieldFullName: "FULL_NAME", - coredata.MembershipProfileOrderFieldCreatedAt: "CREATED_AT", - coredata.MembershipProfileOrderFieldKind: "KIND", - coredata.MembershipProfileOrderFieldOrganizationName: "ORGANIZATION_NAME", - coredata.MembershipProfileOrderFieldState: "STATE", - } -) - -func (ec *executionContext) unmarshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx context.Context, v any) (coredata.ProfileState, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx context.Context, sel ast.SelectionSet, v coredata.ProfileState) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState = map[string]coredata.ProfileState{ - "ACTIVE": coredata.ProfileStateActive, - "INACTIVE": coredata.ProfileStateInactive, - } - marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState = map[coredata.ProfileState]string{ - coredata.ProfileStateActive: "ACTIVE", - coredata.ProfileStateInactive: "INACTIVE", - } -) - -func (ec *executionContext) unmarshalNReauthenticationReason2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐReauthenticationReason(ctx context.Context, v any) (types.ReauthenticationReason, error) { - var res types.ReauthenticationReason - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNReauthenticationReason2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐReauthenticationReason(ctx context.Context, sel ast.SelectionSet, v types.ReauthenticationReason) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNRegenerateSCIMTokenInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRegenerateSCIMTokenInput(ctx context.Context, v any) (types.RegenerateSCIMTokenInput, error) { - res, err := ec.unmarshalInputRegenerateSCIMTokenInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNRemoveUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRemoveUserInput(ctx context.Context, v any) (types.RemoveUserInput, error) { - res, err := ec.unmarshalInputRemoveUserInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNResetPasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐResetPasswordInput(ctx context.Context, v any) (types.ResetPasswordInput, error) { - res, err := ec.unmarshalInputResetPasswordInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNRevokePersonalAPIKeyInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokePersonalAPIKeyInput(ctx context.Context, v any) (types.RevokePersonalAPIKeyInput, error) { - res, err := ec.unmarshalInputRevokePersonalAPIKeyInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNRevokeSessionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeSessionInput(ctx context.Context, v any) (types.RevokeSessionInput, error) { - res, err := ec.unmarshalInputRevokeSessionInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRevokeSessionPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeSessionPayload(ctx context.Context, sel ast.SelectionSet, v types.RevokeSessionPayload) graphql.Marshaler { - return ec._RevokeSessionPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRevokeSessionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeSessionPayload(ctx context.Context, sel ast.SelectionSet, v *types.RevokeSessionPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RevokeSessionPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNSAMLAttributeMappings2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLAttributeMappings(ctx context.Context, sel ast.SelectionSet, v *types.SAMLAttributeMappings) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SAMLAttributeMappings(ctx, sel, v) -} - -func (ec *executionContext) marshalNSAMLConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfiguration(ctx context.Context, sel ast.SelectionSet, v *types.SAMLConfiguration) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SAMLConfiguration(ctx, sel, v) -} - -func (ec *executionContext) marshalNSAMLConfigurationEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.SAMLConfigurationEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNSAMLConfigurationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNSAMLConfigurationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationEdge(ctx context.Context, sel ast.SelectionSet, v *types.SAMLConfigurationEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SAMLConfigurationEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy(ctx context.Context, v any) (coredata.SAMLEnforcementPolicy, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy(ctx context.Context, sel ast.SelectionSet, v coredata.SAMLEnforcementPolicy) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy = map[string]coredata.SAMLEnforcementPolicy{ - "OFF": coredata.SAMLEnforcementPolicyOff, - "OPTIONAL": coredata.SAMLEnforcementPolicyOptional, - "REQUIRED": coredata.SAMLEnforcementPolicyRequired, - } - marshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy = map[coredata.SAMLEnforcementPolicy]string{ - coredata.SAMLEnforcementPolicyOff: "OFF", - coredata.SAMLEnforcementPolicyOptional: "OPTIONAL", - coredata.SAMLEnforcementPolicyRequired: "REQUIRED", - } -) - -func (ec *executionContext) marshalNSCIMBridge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMBridge(ctx context.Context, sel ast.SelectionSet, v *types.SCIMBridge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SCIMBridge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState(ctx context.Context, v any) (coredata.SCIMBridgeState, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState(ctx context.Context, sel ast.SelectionSet, v coredata.SCIMBridgeState) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState = map[string]coredata.SCIMBridgeState{ - "PENDING": coredata.SCIMBridgeStatePending, - "ACTIVE": coredata.SCIMBridgeStateActive, - "FAILED": coredata.SCIMBridgeStateFailed, - } - marshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState = map[coredata.SCIMBridgeState]string{ - coredata.SCIMBridgeStatePending: "PENDING", - coredata.SCIMBridgeStateActive: "ACTIVE", - coredata.SCIMBridgeStateFailed: "FAILED", - } -) - -func (ec *executionContext) unmarshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType(ctx context.Context, v any) (coredata.SCIMBridgeType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType(ctx context.Context, sel ast.SelectionSet, v coredata.SCIMBridgeType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType = map[string]coredata.SCIMBridgeType{ - "GOOGLE_WORKSPACE": coredata.SCIMBridgeTypeGoogleWorkspace, - } - marshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType = map[coredata.SCIMBridgeType]string{ - coredata.SCIMBridgeTypeGoogleWorkspace: "GOOGLE_WORKSPACE", - } -) - -func (ec *executionContext) marshalNSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration(ctx context.Context, sel ast.SelectionSet, v *types.SCIMConfiguration) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SCIMConfiguration(ctx, sel, v) -} - -func (ec *executionContext) marshalNSCIMEvent2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEvent(ctx context.Context, sel ast.SelectionSet, v *types.SCIMEvent) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SCIMEvent(ctx, sel, v) -} - -func (ec *executionContext) marshalNSCIMEventEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.SCIMEventEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNSCIMEventEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNSCIMEventEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventEdge(ctx context.Context, sel ast.SelectionSet, v *types.SCIMEventEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SCIMEventEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField(ctx context.Context, v any) (coredata.SCIMEventOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.SCIMEventOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField = map[string]coredata.SCIMEventOrderField{ - "CREATED_AT": coredata.SCIMEventOrderFieldCreatedAt, - } - marshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField = map[coredata.SCIMEventOrderField]string{ - coredata.SCIMEventOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) marshalNSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession(ctx context.Context, sel ast.SelectionSet, v *types.Session) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Session(ctx, sel, v) -} - -func (ec *executionContext) marshalNSessionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.SessionEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNSessionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNSessionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionEdge(ctx context.Context, sel ast.SelectionSet, v *types.SessionEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SessionEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField(ctx context.Context, v any) (coredata.SessionOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.SessionOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField = map[string]coredata.SessionOrderField{ - "CREATED_AT": coredata.SessionOrderFieldCreatedAt, - "EXPIRED_AT": coredata.SessionOrderFieldExpiredAt, - "UPDATED_AT": coredata.SessionOrderFieldUpdatedAt, - } - marshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField = map[coredata.SessionOrderField]string{ - coredata.SessionOrderFieldCreatedAt: "CREATED_AT", - coredata.SessionOrderFieldExpiredAt: "EXPIRED_AT", - coredata.SessionOrderFieldUpdatedAt: "UPDATED_AT", - } -) - -func (ec *executionContext) unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx context.Context, v any) (session.SessionRequirement, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx context.Context, sel ast.SelectionSet, v session.SessionRequirement) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement = map[string]session.SessionRequirement{ - "PRESENT": session.SessionRequirementPresent, - "NONE": session.SessionRequirementNone, - "OPTIONAL": session.SessionRequirementOptional, - } - marshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement = map[session.SessionRequirement]string{ - session.SessionRequirementPresent: "PRESENT", - session.SessionRequirementNone: "NONE", - session.SessionRequirementOptional: "OPTIONAL", - } -) - -func (ec *executionContext) unmarshalNSignInInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignInInput(ctx context.Context, v any) (types.SignInInput, error) { - res, err := ec.unmarshalInputSignInInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNSignUpInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignUpInput(ctx context.Context, v any) (types.SignUpInput, error) { - res, err := ec.unmarshalInputSignUpInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { - var vSlice []any - 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) unmarshalNUpdateMembershipInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateMembershipInput(ctx context.Context, v any) (types.UpdateMembershipInput, error) { - res, err := ec.unmarshalInputUpdateMembershipInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateMembershipPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateMembershipPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateMembershipPayload) graphql.Marshaler { - return ec._UpdateMembershipPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateMembershipPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateMembershipPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateMembershipPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateMembershipPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateOrganizationInput(ctx context.Context, v any) (types.UpdateOrganizationInput, error) { - res, err := ec.unmarshalInputUpdateOrganizationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSAMLConfigurationInput(ctx context.Context, v any) (types.UpdateSAMLConfigurationInput, error) { - res, err := ec.unmarshalInputUpdateSAMLConfigurationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateSCIMBridgeInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSCIMBridgeInput(ctx context.Context, v any) (types.UpdateSCIMBridgeInput, error) { - res, err := ec.unmarshalInputUpdateSCIMBridgeInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateUserInput(ctx context.Context, v any) (types.UpdateUserInput, error) { - res, err := ec.unmarshalInputUpdateUserInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateUserPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateUserPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateUserPayload) graphql.Marshaler { - return ec._UpdateUserPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateUserPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateUserPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNVerifyEmailInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐVerifyEmailInput(ctx context.Context, v any) (types.VerifyEmailInput, error) { - res, err := ec.unmarshalInputVerifyEmailInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { - var vSlice []any - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - }) - - 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)) { - graphql.AddErrorf(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 any) (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 { - _ = sel - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalOActivateAccountPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐActivateAccountPayload(ctx context.Context, sel ast.SelectionSet, v *types.ActivateAccountPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ActivateAccountPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOAssumeOrganizationSessionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionPayload(ctx context.Context, sel ast.SelectionSet, v *types.AssumeOrganizationSessionPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AssumeOrganizationSessionPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (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 { - _ = sel - _ = ctx - res := graphql.MarshalBoolean(v) - return res -} - -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*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 - } - _ = sel - _ = ctx - res := graphql.MarshalBoolean(*v) - return res -} - -func (ec *executionContext) marshalOChangeEmailPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangeEmailPayload(ctx context.Context, sel ast.SelectionSet, v *types.ChangeEmailPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ChangeEmailPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOChangePasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangePasswordPayload(ctx context.Context, sel ast.SelectionSet, v *types.ChangePasswordPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ChangePasswordPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOConnector2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐConnector(ctx context.Context, sel ast.SelectionSet, v *types.Connector) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Connector(ctx, sel, v) -} - -func (ec *executionContext) marshalOCreateOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateOrganizationPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CreateOrganizationPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOCreatePersonalAPIKeyPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreatePersonalAPIKeyPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreatePersonalAPIKeyPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CreatePersonalAPIKeyPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOCreateSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateSAMLConfigurationPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CreateSAMLConfigurationPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOCreateSCIMConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSCIMConfigurationPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateSCIMConfigurationPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CreateSCIMConfigurationPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOCreateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateUserPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CreateUserPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (*page.CursorKey, error) { - if v == nil { - return nil, nil - } - res, err := cursor.UnmarshalCursorKeyScalar(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, sel ast.SelectionSet, v *page.CursorKey) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := cursor.MarshalCursorKeyScalar(*v) - return res -} - -func (ec *executionContext) unmarshalODatetime2ᚖtimeᚐTime(ctx context.Context, v any) (*time.Time, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalTime(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODatetime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalTime(*v) - return res -} - -func (ec *executionContext) marshalODeactivateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeactivateUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeactivateUserPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DeactivateUserPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalODeleteOrganizationHorizontalLogoPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationHorizontalLogoPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteOrganizationHorizontalLogoPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DeleteOrganizationHorizontalLogoPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalODeleteOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteOrganizationPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DeleteOrganizationPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalODeleteSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteSAMLConfigurationPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DeleteSAMLConfigurationPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalODeleteSCIMConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSCIMConfigurationPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteSCIMConfigurationPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DeleteSCIMConfigurationPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx context.Context, v any) ([]mail.Addr, error) { - if v == nil { - return nil, nil - } - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]mail.Addr, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx context.Context, sel ast.SelectionSet, v []mail.Addr) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalOForgotPasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐForgotPasswordPayload(ctx context.Context, sel ast.SelectionSet, v *types.ForgotPasswordPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ForgotPasswordPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (*gid.GID, error) { - if v == nil { - return nil, nil - } - res, err := gid1.UnmarshalGIDScalar(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, sel ast.SelectionSet, v *gid.GID) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := gid1.MarshalGIDScalar(*v) - return res -} - -func (ec *executionContext) marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity(ctx context.Context, sel ast.SelectionSet, v *types.Identity) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Identity(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*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 - } - _ = sel - _ = ctx - res := graphql.MarshalInt(*v) - return res -} - -func (ec *executionContext) marshalOInvitationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationConnection(ctx context.Context, sel ast.SelectionSet, v *types.InvitationConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._InvitationConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOInvitationOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationOrderBy(ctx context.Context, v any) (*types.InvitationOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputInvitationOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOInviteUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInviteUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.InviteUserPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._InviteUserPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOMembership2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐMembership(ctx context.Context, sel ast.SelectionSet, v *types.Membership) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Membership(ctx, sel, v) -} - -func (ec *executionContext) marshalONode2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐNode(ctx context.Context, sel ast.SelectionSet, v types.Node) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Node(ctx, sel, v) -} - -func (ec *executionContext) marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *types.Organization) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Organization(ctx, sel, v) -} - -func (ec *executionContext) marshalOPersonalAPIKeyConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyConnection(ctx context.Context, sel ast.SelectionSet, v *types.PersonalAPIKeyConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._PersonalAPIKeyConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile(ctx context.Context, sel ast.SelectionSet, v *types.Profile) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Profile(ctx, sel, v) -} - -func (ec *executionContext) marshalOProfileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileConnection(ctx context.Context, sel ast.SelectionSet, v *types.ProfileConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ProfileConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOProfileFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileFilter(ctx context.Context, v any) (*types.ProfileFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputProfileFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOProfileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileOrderBy(ctx context.Context, v any) (*types.ProfileOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputProfileOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx context.Context, v any) (*coredata.ProfileState, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx context.Context, sel ast.SelectionSet, v *coredata.ProfileState) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState[*v]) - return res -} - -var ( - unmarshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState = map[string]coredata.ProfileState{ - "ACTIVE": coredata.ProfileStateActive, - "INACTIVE": coredata.ProfileStateInactive, - } - marshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState = map[coredata.ProfileState]string{ - coredata.ProfileStateActive: "ACTIVE", - coredata.ProfileStateInactive: "INACTIVE", - } -) - -func (ec *executionContext) marshalORegenerateSCIMTokenPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRegenerateSCIMTokenPayload(ctx context.Context, sel ast.SelectionSet, v *types.RegenerateSCIMTokenPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._RegenerateSCIMTokenPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalORemoveUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRemoveUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.RemoveUserPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._RemoveUserPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOResetPasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐResetPasswordPayload(ctx context.Context, sel ast.SelectionSet, v *types.ResetPasswordPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ResetPasswordPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalORevokeAllSessionsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeAllSessionsPayload(ctx context.Context, sel ast.SelectionSet, v *types.RevokeAllSessionsPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._RevokeAllSessionsPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalORevokePersonalAPIKeyPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokePersonalAPIKeyPayload(ctx context.Context, sel ast.SelectionSet, v *types.RevokePersonalAPIKeyPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._RevokePersonalAPIKeyPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOSAMLAttributeMappingsInput2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLAttributeMappingsInput(ctx context.Context, v any) (*types.SAMLAttributeMappingsInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputSAMLAttributeMappingsInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOSAMLConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfiguration(ctx context.Context, sel ast.SelectionSet, v *types.SAMLConfiguration) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SAMLConfiguration(ctx, sel, v) -} - -func (ec *executionContext) marshalOSAMLConfigurationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationConnection(ctx context.Context, sel ast.SelectionSet, v *types.SAMLConfigurationConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SAMLConfigurationConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalOSCIMBridge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMBridge(ctx context.Context, sel ast.SelectionSet, v *types.SCIMBridge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SCIMBridge(ctx, sel, v) -} - -func (ec *executionContext) marshalOSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration(ctx context.Context, sel ast.SelectionSet, v *types.SCIMConfiguration) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SCIMConfiguration(ctx, sel, v) -} - -func (ec *executionContext) marshalOSCIMEventConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventConnection(ctx context.Context, sel ast.SelectionSet, v *types.SCIMEventConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SCIMEventConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOSCIMEventOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventOrderBy(ctx context.Context, v any) (*types.SCIMEventOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputSCIMEventOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession(ctx context.Context, sel ast.SelectionSet, v *types.Session) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Session(ctx, sel, v) -} - -func (ec *executionContext) marshalOSessionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionConnection(ctx context.Context, sel ast.SelectionSet, v *types.SessionConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SessionConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOSessionOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionOrder(ctx context.Context, v any) (*types.SessionOrder, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputSessionOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOSignInPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignInPayload(ctx context.Context, sel ast.SelectionSet, v *types.SignInPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SignInPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOSignOutPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignOutPayload(ctx context.Context, sel ast.SelectionSet, v *types.SignOutPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SignOutPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOSignUpPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignUpPayload(ctx context.Context, sel ast.SelectionSet, v *types.SignUpPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SignUpPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { - if v == nil { - return nil, nil - } - var vSlice []any - 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 any) (*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 - } - _ = sel - _ = ctx - res := graphql.MarshalString(*v) - return res -} - -func (ec *executionContext) marshalOUpdateOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateOrganizationPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._UpdateOrganizationPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOUpdateSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateSAMLConfigurationPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._UpdateSAMLConfigurationPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOUpdateSCIMBridgePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSCIMBridgePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateSCIMBridgePayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._UpdateSCIMBridgePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v any) (*graphql.Upload, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalUpload(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v *graphql.Upload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalUpload(*v) - return res -} - -func (ec *executionContext) marshalOVerifyEmailPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐVerifyEmailPayload(ctx context.Context, sel ast.SelectionSet, v *types.VerifyEmailPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._VerifyEmailPayload(ctx, sel, v) -} - -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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - }) - - 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/server/api/connect/v1/types/types.go b/pkg/server/api/connect/v1/types/types.go deleted file mode 100644 index 97277f481..000000000 --- a/pkg/server/api/connect/v1/types/types.go +++ /dev/null @@ -1,666 +0,0 @@ -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package types - -import ( - "bytes" - "fmt" - "io" - "strconv" - "time" - - "github.com/99designs/gqlgen/graphql" - "go.probo.inc/probo/pkg/coredata" - "go.probo.inc/probo/pkg/gid" - "go.probo.inc/probo/pkg/mail" - "go.probo.inc/probo/pkg/page" -) - -type AssumeOrganizationSessionResult interface { - IsAssumeOrganizationSessionResult() -} - -type Node interface { - IsNode() - GetID() gid.GID -} - -type ActivateAccountInput struct { - Token string `json:"token"` -} - -type ActivateAccountPayload struct { - CreatePasswordToken *string `json:"createPasswordToken,omitempty"` - SsoLoginURL *string `json:"ssoLoginUrl,omitempty"` - Profile *Profile `json:"profile,omitempty"` -} - -type ActivateUserInput struct { - OrganizationID gid.GID `json:"organizationId"` - ProfileID gid.GID `json:"profileId"` -} - -type AssumeOrganizationSessionInput struct { - OrganizationID gid.GID `json:"organizationId"` - Continue string `json:"continue"` -} - -type AssumeOrganizationSessionPayload struct { - Result AssumeOrganizationSessionResult `json:"result"` -} - -type ChangeEmailInput struct { - NewEmail mail.Addr `json:"newEmail"` - Password string `json:"password"` -} - -type ChangeEmailPayload struct { - Success bool `json:"success"` -} - -type ChangePasswordInput struct { - CurrentPassword string `json:"currentPassword"` - NewPassword string `json:"newPassword"` -} - -type ChangePasswordPayload struct { - Success bool `json:"success"` -} - -type Connector struct { - ID gid.GID `json:"id"` - Provider coredata.ConnectorProvider `json:"provider"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Connector) IsNode() {} -func (this Connector) GetID() gid.GID { return this.ID } - -type CreateOrganizationInput struct { - Name string `json:"name"` - LogoFile *graphql.Upload `json:"logoFile,omitempty"` - HorizontalLogoFile *graphql.Upload `json:"horizontalLogoFile,omitempty"` -} - -type CreateOrganizationPayload struct { - Organization *Organization `json:"organization,omitempty"` - Profile *Profile `json:"profile"` -} - -type CreatePersonalAPIKeyInput struct { - Name string `json:"name"` - ExpiresAt time.Time `json:"expiresAt"` -} - -type CreatePersonalAPIKeyPayload struct { - PersonalAPIKeyEdge *PersonalAPIKeyEdge `json:"personalAPIKeyEdge"` - Token string `json:"token"` -} - -type CreateSAMLConfigurationInput struct { - OrganizationID gid.GID `json:"organizationId"` - EmailDomain string `json:"emailDomain"` - IdpEntityID string `json:"idpEntityId"` - IdpSsoURL string `json:"idpSsoUrl"` - IdpCertificate string `json:"idpCertificate"` - AutoSignupEnabled bool `json:"autoSignupEnabled"` - AttributeMappings *SAMLAttributeMappingsInput `json:"attributeMappings,omitempty"` -} - -type CreateSAMLConfigurationPayload struct { - SamlConfigurationEdge *SAMLConfigurationEdge `json:"samlConfigurationEdge"` -} - -type CreateSCIMConfigurationInput struct { - OrganizationID gid.GID `json:"organizationId"` - ConnectorID *gid.GID `json:"connectorId,omitempty"` -} - -type CreateSCIMConfigurationPayload struct { - ScimConfiguration *SCIMConfiguration `json:"scimConfiguration"` - ScimBridge *SCIMBridge `json:"scimBridge,omitempty"` - Token string `json:"token"` -} - -type CreateUserInput struct { - OrganizationID gid.GID `json:"organizationId"` - FullName string `json:"fullName"` - EmailAddress mail.Addr `json:"emailAddress"` - Role coredata.MembershipRole `json:"role"` - AdditionalEmailAddresses []mail.Addr `json:"additionalEmailAddresses,omitempty"` - Kind *string `json:"kind,omitempty"` - Position *string `json:"position,omitempty"` - ContractStartDate graphql.Omittable[*time.Time] `json:"contractStartDate,omitempty"` - ContractEndDate graphql.Omittable[*time.Time] `json:"contractEndDate,omitempty"` -} - -type CreateUserPayload struct { - ProfileEdge *ProfileEdge `json:"profileEdge"` -} - -type DeactivateUserInput struct { - OrganizationID gid.GID `json:"organizationId"` - ProfileID gid.GID `json:"profileId"` -} - -type DeactivateUserPayload struct { - Success bool `json:"success"` -} - -type DeleteOrganizationHorizontalLogoInput struct { - OrganizationID gid.GID `json:"organizationId"` -} - -type DeleteOrganizationHorizontalLogoPayload struct { - Organization *Organization `json:"organization"` -} - -type DeleteOrganizationInput struct { - OrganizationID gid.GID `json:"organizationId"` -} - -type DeleteOrganizationPayload struct { - DeletedOrganizationID gid.GID `json:"deletedOrganizationId"` -} - -type DeleteSAMLConfigurationInput struct { - OrganizationID gid.GID `json:"organizationId"` - SamlConfigurationID gid.GID `json:"samlConfigurationId"` -} - -type DeleteSAMLConfigurationPayload struct { - DeletedSamlConfigurationID gid.GID `json:"deletedSamlConfigurationId"` -} - -type DeleteSCIMConfigurationInput struct { - OrganizationID gid.GID `json:"organizationId"` - ScimConfigurationID gid.GID `json:"scimConfigurationId"` -} - -type DeleteSCIMConfigurationPayload struct { - DeletedScimConfigurationID gid.GID `json:"deletedScimConfigurationId"` -} - -type ForgotPasswordInput struct { - Email mail.Addr `json:"email"` -} - -type ForgotPasswordPayload struct { - Success bool `json:"success"` -} - -type Identity struct { - ID gid.GID `json:"id"` - Email mail.Addr `json:"email"` - FullName string `json:"fullName"` - EmailVerified bool `json:"emailVerified"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Profiles *ProfileConnection `json:"profiles,omitempty"` - Sessions *SessionConnection `json:"sessions,omitempty"` - PersonalAPIKeys *PersonalAPIKeyConnection `json:"personalAPIKeys,omitempty"` - SsoLoginURL *string `json:"ssoLoginURL,omitempty"` - Permission bool `json:"permission"` -} - -func (Identity) IsNode() {} -func (this Identity) GetID() gid.GID { return this.ID } - -type Invitation struct { - ID gid.GID `json:"id"` - ExpiresAt time.Time `json:"expiresAt"` - AcceptedAt *time.Time `json:"acceptedAt,omitempty"` - CreatedAt time.Time `json:"createdAt"` - Status coredata.InvitationStatus `json:"status"` - Permission bool `json:"permission"` -} - -func (Invitation) IsNode() {} -func (this Invitation) GetID() gid.GID { return this.ID } - -type InvitationEdge struct { - Node *Invitation `json:"node"` - Cursor page.CursorKey `json:"cursor"` -} - -type InviteUserInput struct { - OrganizationID gid.GID `json:"organizationId"` - ProfileID gid.GID `json:"profileId"` -} - -type InviteUserPayload struct { - InvitationEdge *InvitationEdge `json:"invitationEdge"` -} - -type Membership struct { - ID gid.GID `json:"id"` - CreatedAt time.Time `json:"createdAt"` - Role coredata.MembershipRole `json:"role"` - LastSession *Session `json:"lastSession,omitempty"` - Permission bool `json:"permission"` -} - -func (Membership) IsNode() {} -func (this Membership) GetID() gid.GID { return this.ID } - -type Mutation struct { -} - -type Organization struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - LogoURL *string `json:"logoUrl,omitempty"` - HorizontalLogoURL *string `json:"horizontalLogoUrl,omitempty"` - Email *string `json:"email,omitempty"` - Description *string `json:"description,omitempty"` - WebsiteURL *string `json:"websiteUrl,omitempty"` - HeadquarterAddress *string `json:"headquarterAddress,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Profiles *ProfileConnection `json:"profiles,omitempty"` - SamlConfigurations *SAMLConfigurationConnection `json:"samlConfigurations,omitempty"` - ScimConfiguration *SCIMConfiguration `json:"scimConfiguration,omitempty"` - Viewer *Profile `json:"viewer,omitempty"` - Permission bool `json:"permission"` -} - -func (Organization) IsNode() {} -func (this Organization) GetID() gid.GID { return this.ID } - -type OrganizationSessionCreated struct { - Session *Session `json:"session"` - Membership *Membership `json:"membership"` -} - -func (OrganizationSessionCreated) IsAssumeOrganizationSessionResult() {} - -type PageInfo struct { - HasNextPage bool `json:"hasNextPage"` - HasPreviousPage bool `json:"hasPreviousPage"` - StartCursor *page.CursorKey `json:"startCursor,omitempty"` - EndCursor *page.CursorKey `json:"endCursor,omitempty"` -} - -type PasswordRequired struct { - Reason ReauthenticationReason `json:"reason"` -} - -func (PasswordRequired) IsAssumeOrganizationSessionResult() {} - -type PersonalAPIKey struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - ExpiresAt time.Time `json:"expiresAt"` - LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` - CreatedAt time.Time `json:"createdAt"` - Token *string `json:"token,omitempty"` - Permission bool `json:"permission"` -} - -func (PersonalAPIKey) IsNode() {} -func (this PersonalAPIKey) GetID() gid.GID { return this.ID } - -type PersonalAPIKeyEdge struct { - Node *PersonalAPIKey `json:"node"` - Cursor page.CursorKey `json:"cursor"` -} - -type Profile struct { - ID gid.GID `json:"id"` - FullName string `json:"fullName"` - EmailAddress mail.Addr `json:"emailAddress"` - Source string `json:"source"` - State coredata.ProfileState `json:"state"` - AdditionalEmailAddresses []mail.Addr `json:"additionalEmailAddresses"` - Kind *string `json:"kind,omitempty"` - Position *string `json:"position,omitempty"` - ContractStartDate *time.Time `json:"contractStartDate,omitempty"` - ContractEndDate *time.Time `json:"contractEndDate,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Identity *Identity `json:"identity,omitempty"` - Organization *Organization `json:"organization,omitempty"` - Membership *Membership `json:"membership,omitempty"` - PendingInvitations *InvitationConnection `json:"pendingInvitations,omitempty"` - Permission bool `json:"permission"` -} - -func (Profile) IsNode() {} -func (this Profile) GetID() gid.GID { return this.ID } - -type ProfileEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Profile `json:"node"` -} - -type ProfileFilter struct { - ExcludeContractEnded *bool `json:"excludeContractEnded,omitempty"` - State *coredata.ProfileState `json:"state,omitempty"` -} - -type Query struct { -} - -type RegenerateSCIMTokenInput struct { - OrganizationID gid.GID `json:"organizationId"` - ScimConfigurationID gid.GID `json:"scimConfigurationId"` -} - -type RegenerateSCIMTokenPayload struct { - ScimConfiguration *SCIMConfiguration `json:"scimConfiguration"` - Token string `json:"token"` -} - -type RemoveUserInput struct { - OrganizationID gid.GID `json:"organizationId"` - ProfileID gid.GID `json:"profileId"` -} - -type RemoveUserPayload struct { - DeletedProfileID gid.GID `json:"deletedProfileId"` -} - -type ResetPasswordInput struct { - Token string `json:"token"` - Password string `json:"password"` -} - -type ResetPasswordPayload struct { - Success bool `json:"success"` -} - -type RevokeAllSessionsPayload struct { - RevokedCount int `json:"revokedCount"` -} - -type RevokePersonalAPIKeyInput struct { - PersonalAPIKeyID gid.GID `json:"personalAPIKeyId"` -} - -type RevokePersonalAPIKeyPayload struct { - PersonalAPIKeyID gid.GID `json:"personalAPIKeyId"` -} - -type RevokeSessionInput struct { - SessionID gid.GID `json:"sessionId"` -} - -type RevokeSessionPayload struct { - Success bool `json:"success"` -} - -type SAMLAttributeMappings struct { - Email string `json:"email"` - FirstName string `json:"firstName"` - LastName string `json:"lastName"` - Role string `json:"role"` -} - -type SAMLAttributeMappingsInput struct { - Email *string `json:"email,omitempty"` - FirstName *string `json:"firstName,omitempty"` - LastName *string `json:"lastName,omitempty"` - Role *string `json:"role,omitempty"` -} - -type SAMLAuthenticationRequired struct { - Reason ReauthenticationReason `json:"reason"` -} - -func (SAMLAuthenticationRequired) IsAssumeOrganizationSessionResult() {} - -type SAMLConfiguration struct { - ID gid.GID `json:"id"` - EmailDomain string `json:"emailDomain"` - EnforcementPolicy coredata.SAMLEnforcementPolicy `json:"enforcementPolicy"` - DomainVerifiedAt *time.Time `json:"domainVerifiedAt,omitempty"` - DomainVerificationToken *string `json:"domainVerificationToken,omitempty"` - IdpEntityID string `json:"idpEntityId"` - IdpSsoURL string `json:"idpSsoUrl"` - IdpCertificate string `json:"idpCertificate"` - AutoSignupEnabled bool `json:"autoSignupEnabled"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - TestLoginURL string `json:"testLoginUrl"` - AttributeMappings *SAMLAttributeMappings `json:"attributeMappings"` - Permission bool `json:"permission"` -} - -func (SAMLConfiguration) IsNode() {} -func (this SAMLConfiguration) GetID() gid.GID { return this.ID } - -type SAMLConfigurationEdge struct { - Node *SAMLConfiguration `json:"node"` - Cursor page.CursorKey `json:"cursor"` -} - -type SCIMBridge struct { - ID gid.GID `json:"id"` - State coredata.SCIMBridgeState `json:"state"` - ScimConfiguration *SCIMConfiguration `json:"scimConfiguration,omitempty"` - Connector *Connector `json:"connector,omitempty"` - Type coredata.SCIMBridgeType `json:"type"` - ExcludedUserNames []string `json:"excludedUserNames"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (SCIMBridge) IsNode() {} -func (this SCIMBridge) GetID() gid.GID { return this.ID } - -type SCIMConfiguration struct { - ID gid.GID `json:"id"` - EndpointURL string `json:"endpointUrl"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Organization *Organization `json:"organization,omitempty"` - Bridge *SCIMBridge `json:"bridge,omitempty"` - Events *SCIMEventConnection `json:"events,omitempty"` - Permission bool `json:"permission"` -} - -func (SCIMConfiguration) IsNode() {} -func (this SCIMConfiguration) GetID() gid.GID { return this.ID } - -type SCIMEvent struct { - ID gid.GID `json:"id"` - Method string `json:"method"` - Path string `json:"path"` - StatusCode int `json:"statusCode"` - RequestBody *string `json:"requestBody,omitempty"` - ResponseBody *string `json:"responseBody,omitempty"` - ErrorMessage *string `json:"errorMessage,omitempty"` - UserName string `json:"userName"` - IPAddress string `json:"ipAddress"` - CreatedAt time.Time `json:"createdAt"` - Permission bool `json:"permission"` -} - -func (SCIMEvent) IsNode() {} -func (this SCIMEvent) GetID() gid.GID { return this.ID } - -type SCIMEventEdge struct { - Node *SCIMEvent `json:"node"` - Cursor page.CursorKey `json:"cursor"` -} - -type Session struct { - ID gid.GID `json:"id"` - Identity *Identity `json:"identity,omitempty"` - IPAddress string `json:"ipAddress"` - UserAgent string `json:"userAgent"` - UpdatedAt time.Time `json:"updatedAt"` - CreatedAt time.Time `json:"createdAt"` - ExpiresAt time.Time `json:"expiresAt"` - Permission bool `json:"permission"` -} - -func (Session) IsNode() {} -func (this Session) GetID() gid.GID { return this.ID } - -type SessionEdge struct { - Node *Session `json:"node"` - Cursor page.CursorKey `json:"cursor"` -} - -type SessionOrder struct { - Direction page.OrderDirection `json:"direction"` - Field coredata.SessionOrderField `json:"field"` -} - -type SignInInput struct { - OrganizationID *gid.GID `json:"organizationId,omitempty"` - Email mail.Addr `json:"email"` - Password string `json:"password"` -} - -type SignInPayload struct { - Identity *Identity `json:"identity,omitempty"` - Session *Session `json:"session,omitempty"` -} - -type SignOutPayload struct { - Success bool `json:"success"` -} - -type SignUpInput struct { - Email mail.Addr `json:"email"` - Password string `json:"password"` - FullName string `json:"fullName"` -} - -type SignUpPayload struct { - Identity *Identity `json:"identity,omitempty"` -} - -type UpdateMembershipInput struct { - OrganizationID gid.GID `json:"organizationId"` - MembershipID gid.GID `json:"membershipId"` - Role coredata.MembershipRole `json:"role"` -} - -type UpdateMembershipPayload struct { - Membership *Membership `json:"membership"` -} - -type UpdateOrganizationInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name *string `json:"name,omitempty"` - LogoFile *graphql.Upload `json:"logoFile,omitempty"` - HorizontalLogoFile *graphql.Upload `json:"horizontalLogoFile,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - WebsiteURL graphql.Omittable[*string] `json:"websiteUrl,omitempty"` - Email graphql.Omittable[*string] `json:"email,omitempty"` - HeadquarterAddress graphql.Omittable[*string] `json:"headquarterAddress,omitempty"` -} - -type UpdateOrganizationPayload struct { - Organization *Organization `json:"organization,omitempty"` -} - -type UpdateSAMLConfigurationInput struct { - OrganizationID gid.GID `json:"organizationId"` - SamlConfigurationID gid.GID `json:"samlConfigurationId"` - IdpEntityID *string `json:"idpEntityId,omitempty"` - IdpSsoURL *string `json:"idpSsoUrl,omitempty"` - IdpCertificate *string `json:"idpCertificate,omitempty"` - AutoSignupEnabled *bool `json:"autoSignupEnabled,omitempty"` - EnforcementPolicy coredata.SAMLEnforcementPolicy `json:"enforcementPolicy"` - AttributeMappings *SAMLAttributeMappingsInput `json:"attributeMappings,omitempty"` -} - -type UpdateSAMLConfigurationPayload struct { - SamlConfiguration *SAMLConfiguration `json:"samlConfiguration,omitempty"` -} - -type UpdateSCIMBridgeInput struct { - OrganizationID gid.GID `json:"organizationId"` - ScimBridgeID gid.GID `json:"scimBridgeId"` - ExcludedUserNames []string `json:"excludedUserNames"` -} - -type UpdateSCIMBridgePayload struct { - ScimBridge *SCIMBridge `json:"scimBridge"` -} - -type UpdateUserInput struct { - ID gid.GID `json:"id"` - FullName string `json:"fullName"` - AdditionalEmailAddresses []mail.Addr `json:"additionalEmailAddresses,omitempty"` - Kind *string `json:"kind,omitempty"` - Position *string `json:"position,omitempty"` - ContractStartDate graphql.Omittable[*time.Time] `json:"contractStartDate,omitempty"` - ContractEndDate graphql.Omittable[*time.Time] `json:"contractEndDate,omitempty"` -} - -type UpdateUserPayload struct { - Profile *Profile `json:"profile"` -} - -type VerifyEmailInput struct { - Token string `json:"token"` -} - -type VerifyEmailPayload struct { - Success bool `json:"success"` -} - -type ReauthenticationReason string - -const ( - ReauthenticationReasonSessionExpired ReauthenticationReason = "SESSION_EXPIRED" - ReauthenticationReasonSensitiveAction ReauthenticationReason = "SENSITIVE_ACTION" - ReauthenticationReasonPolicyRequirement ReauthenticationReason = "POLICY_REQUIREMENT" -) - -var AllReauthenticationReason = []ReauthenticationReason{ - ReauthenticationReasonSessionExpired, - ReauthenticationReasonSensitiveAction, - ReauthenticationReasonPolicyRequirement, -} - -func (e ReauthenticationReason) IsValid() bool { - switch e { - case ReauthenticationReasonSessionExpired, ReauthenticationReasonSensitiveAction, ReauthenticationReasonPolicyRequirement: - return true - } - return false -} - -func (e ReauthenticationReason) String() string { - return string(e) -} - -func (e *ReauthenticationReason) UnmarshalGQL(v any) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("enums must be strings") - } - - *e = ReauthenticationReason(str) - if !e.IsValid() { - return fmt.Errorf("%s is not a valid ReauthenticationReason", str) - } - return nil -} - -func (e ReauthenticationReason) MarshalGQL(w io.Writer) { - fmt.Fprint(w, strconv.Quote(e.String())) -} - -func (e *ReauthenticationReason) UnmarshalJSON(b []byte) error { - s, err := strconv.Unquote(string(b)) - if err != nil { - return err - } - return e.UnmarshalGQL(s) -} - -func (e ReauthenticationReason) MarshalJSON() ([]byte, error) { - var buf bytes.Buffer - e.MarshalGQL(&buf) - return buf.Bytes(), nil -} diff --git a/pkg/server/api/console/v1/schema.graphql b/pkg/server/api/console/v1/schema.graphql index 006b1c51d..07d6389aa 100644 --- a/pkg/server/api/console/v1/schema.graphql +++ b/pkg/server/api/console/v1/schema.graphql @@ -3902,8 +3902,8 @@ input CreateMailingListUpdateInput { input UpdateMailingListUpdateInput { id: ID! - title: String - body: String + title: String! + body: String! } input SendMailingListUpdateInput { diff --git a/pkg/server/api/console/v1/schema/.gitignore b/pkg/server/api/console/v1/schema/.gitignore new file mode 100644 index 000000000..4103f224a --- /dev/null +++ b/pkg/server/api/console/v1/schema/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!doc.go diff --git a/pkg/server/api/console/v1/schema/doc.go b/pkg/server/api/console/v1/schema/doc.go new file mode 100644 index 000000000..9664d3f3f --- /dev/null +++ b/pkg/server/api/console/v1/schema/doc.go @@ -0,0 +1,17 @@ +// Copyright (c) 2025 Probo Inc . +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +// PERFORMANCE OF THIS SOFTWARE. + +// Package schema contains the generated GraphQL executable schema for the +// Console API. +package schema diff --git a/pkg/server/api/console/v1/schema/schema.go b/pkg/server/api/console/v1/schema/schema.go deleted file mode 100644 index 599f57d22..000000000 --- a/pkg/server/api/console/v1/schema/schema.go +++ /dev/null @@ -1,109415 +0,0 @@ -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package schema - -import ( - "bytes" - "context" - "errors" - "fmt" - "strconv" - "sync/atomic" - "time" - - "github.com/99designs/gqlgen/graphql" - "github.com/99designs/gqlgen/graphql/introspection" - gqlparser "github.com/vektah/gqlparser/v2" - "github.com/vektah/gqlparser/v2/ast" - "go.probo.inc/probo/pkg/coredata" - "go.probo.inc/probo/pkg/gid" - "go.probo.inc/probo/pkg/mail" - "go.probo.inc/probo/pkg/page" - "go.probo.inc/probo/pkg/server/api/console/v1/types" - "go.probo.inc/probo/pkg/server/gqlutils/types/bigint" - "go.probo.inc/probo/pkg/server/gqlutils/types/cursor" - gid1 "go.probo.inc/probo/pkg/server/gqlutils/types/gid" - mail1 "go.probo.inc/probo/pkg/server/gqlutils/types/mail" -) - -// region ************************** generated!.gotpl ************************** - -// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. -func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { - return &executableSchema{SchemaData: cfg.Schema, Resolvers: cfg.Resolvers, Directives: cfg.Directives, ComplexityRoot: cfg.Complexity} -} - -type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot] - -type ResolverRoot interface { - ApplicabilityStatement() ApplicabilityStatementResolver - ApplicabilityStatementConnection() ApplicabilityStatementConnectionResolver - Asset() AssetResolver - AssetConnection() AssetConnectionResolver - Audit() AuditResolver - AuditConnection() AuditConnectionResolver - ComplianceExternalURL() ComplianceExternalURLResolver - ComplianceFramework() ComplianceFrameworkResolver - ContinualImprovement() ContinualImprovementResolver - ContinualImprovementConnection() ContinualImprovementConnectionResolver - Control() ControlResolver - ControlConnection() ControlConnectionResolver - CustomDomain() CustomDomainResolver - DataProtectionImpactAssessment() DataProtectionImpactAssessmentResolver - DataProtectionImpactAssessmentConnection() DataProtectionImpactAssessmentConnectionResolver - Datum() DatumResolver - DatumConnection() DatumConnectionResolver - Document() DocumentResolver - DocumentConnection() DocumentConnectionResolver - DocumentVersion() DocumentVersionResolver - DocumentVersionConnection() DocumentVersionConnectionResolver - DocumentVersionSignature() DocumentVersionSignatureResolver - DocumentVersionSignatureConnection() DocumentVersionSignatureConnectionResolver - ElectronicSignature() ElectronicSignatureResolver - Evidence() EvidenceResolver - EvidenceConnection() EvidenceConnectionResolver - File() FileResolver - Framework() FrameworkResolver - FrameworkConnection() FrameworkConnectionResolver - MailingList() MailingListResolver - MailingListSubscriberConnection() MailingListSubscriberConnectionResolver - MailingListUpdateConnection() MailingListUpdateConnectionResolver - Measure() MeasureResolver - MeasureConnection() MeasureConnectionResolver - Meeting() MeetingResolver - MeetingConnection() MeetingConnectionResolver - Mutation() MutationResolver - Nonconformity() NonconformityResolver - NonconformityConnection() NonconformityConnectionResolver - Obligation() ObligationResolver - ObligationConnection() ObligationConnectionResolver - Organization() OrganizationResolver - ProcessingActivity() ProcessingActivityResolver - ProcessingActivityConnection() ProcessingActivityConnectionResolver - Profile() ProfileResolver - ProfileConnection() ProfileConnectionResolver - Query() QueryResolver - Report() ReportResolver - RightsRequest() RightsRequestResolver - RightsRequestConnection() RightsRequestConnectionResolver - Risk() RiskResolver - RiskConnection() RiskConnectionResolver - SignableDocument() SignableDocumentResolver - Snapshot() SnapshotResolver - SnapshotConnection() SnapshotConnectionResolver - StateOfApplicability() StateOfApplicabilityResolver - StateOfApplicabilityConnection() StateOfApplicabilityConnectionResolver - Task() TaskResolver - TaskConnection() TaskConnectionResolver - TransferImpactAssessment() TransferImpactAssessmentResolver - TransferImpactAssessmentConnection() TransferImpactAssessmentConnectionResolver - TrustCenter() TrustCenterResolver - TrustCenterAccess() TrustCenterAccessResolver - TrustCenterDocumentAccess() TrustCenterDocumentAccessResolver - TrustCenterDocumentAccessConnection() TrustCenterDocumentAccessConnectionResolver - TrustCenterFile() TrustCenterFileResolver - TrustCenterFileConnection() TrustCenterFileConnectionResolver - TrustCenterReference() TrustCenterReferenceResolver - TrustCenterReferenceConnection() TrustCenterReferenceConnectionResolver - Vendor() VendorResolver - VendorBusinessAssociateAgreement() VendorBusinessAssociateAgreementResolver - VendorComplianceReport() VendorComplianceReportResolver - VendorConnection() VendorConnectionResolver - VendorContact() VendorContactResolver - VendorDataPrivacyAgreement() VendorDataPrivacyAgreementResolver - VendorRiskAssessment() VendorRiskAssessmentResolver - VendorService() VendorServiceResolver - Viewer() ViewerResolver - WebhookEventConnection() WebhookEventConnectionResolver - WebhookSubscription() WebhookSubscriptionResolver - WebhookSubscriptionConnection() WebhookSubscriptionConnectionResolver -} - -type DirectiveRoot struct { -} - -type ComplexityRoot struct { - ApplicabilityStatement struct { - Applicability func(childComplexity int) int - Control func(childComplexity int) int - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - Justification func(childComplexity int) int - Permission func(childComplexity int, action string) int - StateOfApplicability func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - ApplicabilityStatementConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ApplicabilityStatementEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - AssessVendorPayload struct { - Vendor func(childComplexity int) int - } - - Asset struct { - Amount func(childComplexity int) int - AssetType func(childComplexity int) int - CreatedAt func(childComplexity int) int - DataTypesStored func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - Owner func(childComplexity int) int - Permission func(childComplexity int, action string) int - SnapshotID func(childComplexity int) int - UpdatedAt func(childComplexity int) int - Vendors func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) int - } - - AssetConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - AssetEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Audit struct { - Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int - CreatedAt func(childComplexity int) int - Framework func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - Report func(childComplexity int) int - ReportURL func(childComplexity int) int - State func(childComplexity int) int - TrustCenterVisibility func(childComplexity int) int - UpdatedAt func(childComplexity int) int - ValidFrom func(childComplexity int) int - ValidUntil func(childComplexity int) int - } - - AuditConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - AuditEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - BulkDeleteDocumentsPayload struct { - DeletedDocumentIds func(childComplexity int) int - } - - BulkExportDocumentsPayload struct { - ExportJobID func(childComplexity int) int - } - - BulkPublishDocumentVersionsPayload struct { - DocumentEdges func(childComplexity int) int - DocumentVersionEdges func(childComplexity int) int - } - - BulkRequestSignaturesPayload struct { - DocumentVersionSignatureEdges func(childComplexity int) int - } - - CancelSignatureRequestPayload struct { - DeletedDocumentVersionSignatureID func(childComplexity int) int - } - - ComplianceExternalURL struct { - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Permission func(childComplexity int, action string) int - Rank func(childComplexity int) int - URL func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - ComplianceExternalURLConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - ComplianceExternalURLEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ComplianceFramework struct { - CreatedAt func(childComplexity int) int - Framework func(childComplexity int) int - ID func(childComplexity int) int - Rank func(childComplexity int) int - UpdatedAt func(childComplexity int) int - Visibility func(childComplexity int) int - } - - ComplianceFrameworkConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - ComplianceFrameworkEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ContinualImprovement struct { - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - ID func(childComplexity int) int - Organization func(childComplexity int) int - Owner func(childComplexity int) int - Permission func(childComplexity int, action string) int - Priority func(childComplexity int) int - ReferenceID func(childComplexity int) int - SnapshotID func(childComplexity int) int - Source func(childComplexity int) int - SourceID func(childComplexity int) int - Status func(childComplexity int) int - TargetDate func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - ContinualImprovementConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ContinualImprovementEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Control struct { - Audits func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AuditOrderBy) int - BestPractice func(childComplexity int) int - Contractual func(childComplexity int) int - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - Documents func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) int - Framework func(childComplexity int) int - ID func(childComplexity int) int - Measures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) int - Name func(childComplexity int) int - Obligations func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ObligationOrderBy, filter *types.ObligationFilter) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - Regulatory func(childComplexity int) int - RiskAssessment func(childComplexity int) int - SectionTitle func(childComplexity int) int - Snapshots func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SnapshotOrderBy) int - UpdatedAt func(childComplexity int) int - } - - ControlConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ControlEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - CreateApplicabilityStatementPayload struct { - ApplicabilityStatementEdge func(childComplexity int) int - } - - CreateAssetPayload struct { - AssetEdge func(childComplexity int) int - } - - CreateAuditPayload struct { - AuditEdge func(childComplexity int) int - } - - CreateComplianceExternalURLPayload struct { - ComplianceExternalURLEdge func(childComplexity int) int - } - - CreateComplianceFrameworkPayload struct { - ComplianceFrameworkEdge func(childComplexity int) int - } - - CreateContinualImprovementPayload struct { - ContinualImprovementEdge func(childComplexity int) int - } - - CreateControlAuditMappingPayload struct { - AuditEdge func(childComplexity int) int - ControlEdge func(childComplexity int) int - } - - CreateControlDocumentMappingPayload struct { - ControlEdge func(childComplexity int) int - DocumentEdge func(childComplexity int) int - } - - CreateControlMeasureMappingPayload struct { - ControlEdge func(childComplexity int) int - MeasureEdge func(childComplexity int) int - } - - CreateControlObligationMappingPayload struct { - ControlEdge func(childComplexity int) int - ObligationEdge func(childComplexity int) int - } - - CreateControlPayload struct { - ControlEdge func(childComplexity int) int - } - - CreateControlSnapshotMappingPayload struct { - ControlEdge func(childComplexity int) int - SnapshotEdge func(childComplexity int) int - } - - CreateCustomDomainPayload struct { - CustomDomain func(childComplexity int) int - } - - CreateDataProtectionImpactAssessmentPayload struct { - DataProtectionImpactAssessment func(childComplexity int) int - } - - CreateDatumPayload struct { - DatumEdge func(childComplexity int) int - } - - CreateDocumentPayload struct { - DocumentEdge func(childComplexity int) int - DocumentVersionEdge func(childComplexity int) int - } - - CreateDraftDocumentVersionPayload struct { - DocumentVersionEdge func(childComplexity int) int - } - - CreateFrameworkPayload struct { - FrameworkEdge func(childComplexity int) int - } - - CreateMailingListSubscriberPayload struct { - MailingListSubscriberEdge func(childComplexity int) int - } - - CreateMailingListUpdatePayload struct { - MailingListUpdate func(childComplexity int) int - } - - CreateMeasurePayload struct { - MeasureEdge func(childComplexity int) int - } - - CreateMeetingPayload struct { - MeetingEdge func(childComplexity int) int - } - - CreateNonconformityPayload struct { - NonconformityEdge func(childComplexity int) int - } - - CreateObligationPayload struct { - ObligationEdge func(childComplexity int) int - } - - CreateProcessingActivityPayload struct { - ProcessingActivityEdge func(childComplexity int) int - } - - CreateRightsRequestPayload struct { - RightsRequestEdge func(childComplexity int) int - } - - CreateRiskDocumentMappingPayload struct { - DocumentEdge func(childComplexity int) int - RiskEdge func(childComplexity int) int - } - - CreateRiskMeasureMappingPayload struct { - MeasureEdge func(childComplexity int) int - RiskEdge func(childComplexity int) int - } - - CreateRiskObligationMappingPayload struct { - ObligationEdge func(childComplexity int) int - RiskEdge func(childComplexity int) int - } - - CreateRiskPayload struct { - RiskEdge func(childComplexity int) int - } - - CreateSnapshotPayload struct { - SnapshotEdge func(childComplexity int) int - } - - CreateStateOfApplicabilityPayload struct { - StateOfApplicabilityEdge func(childComplexity int) int - } - - CreateTaskPayload struct { - TaskEdge func(childComplexity int) int - } - - CreateTransferImpactAssessmentPayload struct { - TransferImpactAssessment func(childComplexity int) int - } - - CreateTrustCenterFilePayload struct { - TrustCenterFileEdge func(childComplexity int) int - } - - CreateTrustCenterReferencePayload struct { - TrustCenterReferenceEdge func(childComplexity int) int - } - - CreateVendorContactPayload struct { - VendorContactEdge func(childComplexity int) int - } - - CreateVendorPayload struct { - VendorEdge func(childComplexity int) int - } - - CreateVendorRiskAssessmentPayload struct { - VendorRiskAssessmentEdge func(childComplexity int) int - } - - CreateVendorServicePayload struct { - VendorServiceEdge func(childComplexity int) int - } - - CreateWebhookSubscriptionPayload struct { - WebhookSubscriptionEdge func(childComplexity int) int - } - - CustomDomain struct { - CreatedAt func(childComplexity int) int - DNSRecords func(childComplexity int) int - Domain func(childComplexity int) int - ID func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - SslExpiresAt func(childComplexity int) int - SslStatus func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - DNSRecordInstruction struct { - Name func(childComplexity int) int - Purpose func(childComplexity int) int - TTL func(childComplexity int) int - Type func(childComplexity int) int - Value func(childComplexity int) int - } - - DataProtectionImpactAssessment struct { - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - ID func(childComplexity int) int - Mitigations func(childComplexity int) int - NecessityAndProportionality func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - PotentialRisk func(childComplexity int) int - ProcessingActivity func(childComplexity int) int - ResidualRisk func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - DataProtectionImpactAssessmentConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - DataProtectionImpactAssessmentEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Datum struct { - CreatedAt func(childComplexity int) int - DataClassification func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - Owner func(childComplexity int) int - Permission func(childComplexity int, action string) int - SnapshotID func(childComplexity int) int - UpdatedAt func(childComplexity int) int - Vendors func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) int - } - - DatumConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - DatumEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - DeleteApplicabilityStatementPayload struct { - DeletedApplicabilityStatementID func(childComplexity int) int - } - - DeleteAssetPayload struct { - DeletedAssetID func(childComplexity int) int - } - - DeleteAuditPayload struct { - DeletedAuditID func(childComplexity int) int - } - - DeleteAuditReportPayload struct { - Audit func(childComplexity int) int - } - - DeleteComplianceExternalURLPayload struct { - DeletedComplianceExternalURLID func(childComplexity int) int - } - - DeleteComplianceFrameworkPayload struct { - DeletedComplianceFrameworkID func(childComplexity int) int - } - - DeleteContinualImprovementPayload struct { - DeletedContinualImprovementID func(childComplexity int) int - } - - DeleteControlAuditMappingPayload struct { - DeletedAuditID func(childComplexity int) int - DeletedControlID func(childComplexity int) int - } - - DeleteControlDocumentMappingPayload struct { - DeletedControlID func(childComplexity int) int - DeletedDocumentID func(childComplexity int) int - } - - DeleteControlMeasureMappingPayload struct { - DeletedControlID func(childComplexity int) int - DeletedMeasureID func(childComplexity int) int - } - - DeleteControlObligationMappingPayload struct { - DeletedControlID func(childComplexity int) int - DeletedObligationID func(childComplexity int) int - } - - DeleteControlPayload struct { - DeletedControlID func(childComplexity int) int - } - - DeleteControlSnapshotMappingPayload struct { - DeletedControlID func(childComplexity int) int - DeletedSnapshotID func(childComplexity int) int - } - - DeleteCustomDomainPayload struct { - DeletedCustomDomainID func(childComplexity int) int - } - - DeleteDataProtectionImpactAssessmentPayload struct { - DeletedDataProtectionImpactAssessmentID func(childComplexity int) int - } - - DeleteDatumPayload struct { - DeletedDatumID func(childComplexity int) int - } - - DeleteDocumentPayload struct { - DeletedDocumentID func(childComplexity int) int - } - - DeleteDraftDocumentVersionPayload struct { - DeletedDocumentVersionID func(childComplexity int) int - } - - DeleteEvidencePayload struct { - DeletedEvidenceID func(childComplexity int) int - } - - DeleteFrameworkPayload struct { - DeletedFrameworkID func(childComplexity int) int - } - - DeleteMailingListSubscriberPayload struct { - DeletedMailingListSubscriberID func(childComplexity int) int - } - - DeleteMailingListUpdatePayload struct { - DeletedMailingListUpdateID func(childComplexity int) int - } - - DeleteMeasurePayload struct { - DeletedMeasureID func(childComplexity int) int - } - - DeleteMeetingPayload struct { - DeletedMeetingID func(childComplexity int) int - } - - DeleteNonconformityPayload struct { - DeletedNonconformityID func(childComplexity int) int - } - - DeleteObligationPayload struct { - DeletedObligationID func(childComplexity int) int - } - - DeleteProcessingActivityPayload struct { - DeletedProcessingActivityID func(childComplexity int) int - } - - DeleteRightsRequestPayload struct { - DeletedRightsRequestID func(childComplexity int) int - } - - DeleteRiskDocumentMappingPayload struct { - DeletedDocumentID func(childComplexity int) int - DeletedRiskID func(childComplexity int) int - } - - DeleteRiskMeasureMappingPayload struct { - DeletedMeasureID func(childComplexity int) int - DeletedRiskID func(childComplexity int) int - } - - DeleteRiskObligationMappingPayload struct { - DeletedObligationID func(childComplexity int) int - DeletedRiskID func(childComplexity int) int - } - - DeleteRiskPayload struct { - DeletedRiskID func(childComplexity int) int - } - - DeleteSnapshotPayload struct { - DeletedSnapshotID func(childComplexity int) int - } - - DeleteStateOfApplicabilityPayload struct { - DeletedStateOfApplicabilityID func(childComplexity int) int - } - - DeleteTaskPayload struct { - DeletedTaskID func(childComplexity int) int - } - - DeleteTransferImpactAssessmentPayload struct { - DeletedTransferImpactAssessmentID func(childComplexity int) int - } - - DeleteTrustCenterAccessPayload struct { - DeletedTrustCenterAccessID func(childComplexity int) int - } - - DeleteTrustCenterFilePayload struct { - DeletedTrustCenterFileID func(childComplexity int) int - } - - DeleteTrustCenterNDAPayload struct { - TrustCenter func(childComplexity int) int - } - - DeleteTrustCenterReferencePayload struct { - DeletedTrustCenterReferenceID func(childComplexity int) int - } - - DeleteVendorBusinessAssociateAgreementPayload struct { - DeletedVendorID func(childComplexity int) int - } - - DeleteVendorComplianceReportPayload struct { - DeletedVendorComplianceReportID func(childComplexity int) int - } - - DeleteVendorContactPayload struct { - DeletedVendorContactID func(childComplexity int) int - } - - DeleteVendorDataPrivacyAgreementPayload struct { - DeletedVendorID func(childComplexity int) int - } - - DeleteVendorPayload struct { - DeletedVendorID func(childComplexity int) int - } - - DeleteVendorServicePayload struct { - DeletedVendorServiceID func(childComplexity int) int - } - - DeleteWebhookSubscriptionPayload struct { - DeletedWebhookSubscriptionID func(childComplexity int) int - } - - Document struct { - Approvers func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy) int - Classification func(childComplexity int) int - Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int - CreatedAt func(childComplexity int) int - CurrentPublishedVersion func(childComplexity int) int - Description func(childComplexity int) int - DocumentType func(childComplexity int) int - ID func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - Title func(childComplexity int) int - TrustCenterVisibility func(childComplexity int) int - UpdatedAt func(childComplexity int) int - Versions func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentVersionOrderBy, filter *types.DocumentVersionFilter) int - } - - DocumentConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - DocumentEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - DocumentVersion struct { - Approvers func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy) int - Changelog func(childComplexity int) int - Classification func(childComplexity int) int - Content func(childComplexity int) int - CreatedAt func(childComplexity int) int - Document func(childComplexity int) int - ID func(childComplexity int) int - Permission func(childComplexity int, action string) int - PublishedAt func(childComplexity int) int - Signatures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentVersionSignatureOrder, filter *types.DocumentVersionSignatureFilter) int - Signed func(childComplexity int) int - Status func(childComplexity int) int - Title func(childComplexity int) int - UpdatedAt func(childComplexity int) int - Version func(childComplexity int) int - } - - DocumentVersionConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - DocumentVersionEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - DocumentVersionSignature struct { - CreatedAt func(childComplexity int) int - DocumentVersion func(childComplexity int) int - ID func(childComplexity int) int - Permission func(childComplexity int, action string) int - RequestedAt func(childComplexity int) int - SignedAt func(childComplexity int) int - SignedBy func(childComplexity int) int - State func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - DocumentVersionSignatureConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - DocumentVersionSignatureEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ElectronicSignature struct { - CertificateFileURL func(childComplexity int) int - ConsentText func(childComplexity int) int - CreatedAt func(childComplexity int) int - DocumentType func(childComplexity int) int - Events func(childComplexity int) int - ID func(childComplexity int) int - LastError func(childComplexity int) int - SignedAt func(childComplexity int) int - Status func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - ElectronicSignatureEvent struct { - ActorEmail func(childComplexity int) int - ActorIPAddress func(childComplexity int) int - ActorUserAgent func(childComplexity int) int - CreatedAt func(childComplexity int) int - EventSource func(childComplexity int) int - EventType func(childComplexity int) int - ID func(childComplexity int) int - OccurredAt func(childComplexity int) int - } - - Evidence struct { - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - File func(childComplexity int) int - ID func(childComplexity int) int - Measure func(childComplexity int) int - Permission func(childComplexity int, action string) int - Size func(childComplexity int) int - State func(childComplexity int) int - Task func(childComplexity int) int - Type func(childComplexity int) int - URL func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - EvidenceConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - EvidenceEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ExportDataProtectionImpactAssessmentsPDFPayload struct { - Data func(childComplexity int) int - } - - ExportDocumentVersionPDFPayload struct { - Data func(childComplexity int) int - } - - ExportFrameworkPayload struct { - ExportJobID func(childComplexity int) int - } - - ExportProcessingActivitiesPDFPayload struct { - Data func(childComplexity int) int - } - - ExportSignableDocumentVersionPDFPayload struct { - Data func(childComplexity int) int - } - - ExportStateOfApplicabilityPDFPayload struct { - Data func(childComplexity int) int - } - - ExportTransferImpactAssessmentsPDFPayload struct { - Data func(childComplexity int) int - } - - File struct { - CreatedAt func(childComplexity int) int - DownloadURL func(childComplexity int) int - FileName func(childComplexity int) int - ID func(childComplexity int) int - MimeType func(childComplexity int) int - Size func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - Framework struct { - Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int - CreatedAt func(childComplexity int) int - DarkLogoURL func(childComplexity int) int - Description func(childComplexity int) int - ID func(childComplexity int) int - LightLogoURL func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - UpdatedAt func(childComplexity int) int - } - - FrameworkConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - FrameworkEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - GenerateDocumentChangelogPayload struct { - Changelog func(childComplexity int) int - } - - GetTrustCenterFilePayload struct { - TrustCenterFile func(childComplexity int) int - } - - ImportFrameworkPayload struct { - FrameworkEdge func(childComplexity int) int - } - - ImportMeasurePayload struct { - MeasureEdges func(childComplexity int) int - } - - MailingList struct { - ID func(childComplexity int) int - ReplyTo func(childComplexity int) int - Subscribers func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - Updates func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - } - - MailingListSubscriber struct { - CreatedAt func(childComplexity int) int - Email func(childComplexity int) int - FullName func(childComplexity int) int - ID func(childComplexity int) int - Status func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - MailingListSubscriberConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - MailingListSubscriberEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - MailingListUpdate struct { - Body func(childComplexity int) int - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - Status func(childComplexity int) int - Title func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - MailingListUpdateConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - MailingListUpdateEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Measure struct { - Category func(childComplexity int) int - Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - Evidences func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.EvidenceOrderBy) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Permission func(childComplexity int, action string) int - Risks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy, filter *types.RiskFilter) int - State func(childComplexity int) int - Tasks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TaskOrderBy) int - UpdatedAt func(childComplexity int) int - } - - MeasureConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - MeasureEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Meeting struct { - Attendees func(childComplexity int) int - CreatedAt func(childComplexity int) int - Date func(childComplexity int) int - ID func(childComplexity int) int - Minutes func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - UpdatedAt func(childComplexity int) int - } - - MeetingConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - MeetingEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Mutation struct { - AssessVendor func(childComplexity int, input types.AssessVendorInput) int - BulkDeleteDocuments func(childComplexity int, input types.BulkDeleteDocumentsInput) int - BulkExportDocuments func(childComplexity int, input types.BulkExportDocumentsInput) int - BulkPublishDocumentVersions func(childComplexity int, input types.BulkPublishDocumentVersionsInput) int - BulkRequestSignatures func(childComplexity int, input types.BulkRequestSignaturesInput) int - CancelSignatureRequest func(childComplexity int, input types.CancelSignatureRequestInput) int - CreateApplicabilityStatement func(childComplexity int, input types.CreateApplicabilityStatementInput) int - CreateAsset func(childComplexity int, input types.CreateAssetInput) int - CreateAudit func(childComplexity int, input types.CreateAuditInput) int - CreateComplianceExternalURL func(childComplexity int, input types.CreateComplianceExternalURLInput) int - CreateComplianceFramework func(childComplexity int, input types.CreateComplianceFrameworkInput) int - CreateContinualImprovement func(childComplexity int, input types.CreateContinualImprovementInput) int - CreateControl func(childComplexity int, input types.CreateControlInput) int - CreateControlAuditMapping func(childComplexity int, input types.CreateControlAuditMappingInput) int - CreateControlDocumentMapping func(childComplexity int, input types.CreateControlDocumentMappingInput) int - CreateControlMeasureMapping func(childComplexity int, input types.CreateControlMeasureMappingInput) int - CreateControlObligationMapping func(childComplexity int, input types.CreateControlObligationMappingInput) int - CreateControlSnapshotMapping func(childComplexity int, input types.CreateControlSnapshotMappingInput) int - CreateCustomDomain func(childComplexity int, input types.CreateCustomDomainInput) int - CreateDataProtectionImpactAssessment func(childComplexity int, input types.CreateDataProtectionImpactAssessmentInput) int - CreateDatum func(childComplexity int, input types.CreateDatumInput) int - CreateDocument func(childComplexity int, input types.CreateDocumentInput) int - CreateDraftDocumentVersion func(childComplexity int, input types.CreateDraftDocumentVersionInput) int - CreateFramework func(childComplexity int, input types.CreateFrameworkInput) int - CreateMailingListSubscriber func(childComplexity int, input types.CreateMailingListSubscriberInput) int - CreateMailingListUpdate func(childComplexity int, input types.CreateMailingListUpdateInput) int - CreateMeasure func(childComplexity int, input types.CreateMeasureInput) int - CreateMeeting func(childComplexity int, input types.CreateMeetingInput) int - CreateNonconformity func(childComplexity int, input types.CreateNonconformityInput) int - CreateObligation func(childComplexity int, input types.CreateObligationInput) int - CreateProcessingActivity func(childComplexity int, input types.CreateProcessingActivityInput) int - CreateRightsRequest func(childComplexity int, input types.CreateRightsRequestInput) int - CreateRisk func(childComplexity int, input types.CreateRiskInput) int - CreateRiskDocumentMapping func(childComplexity int, input types.CreateRiskDocumentMappingInput) int - CreateRiskMeasureMapping func(childComplexity int, input types.CreateRiskMeasureMappingInput) int - CreateRiskObligationMapping func(childComplexity int, input types.CreateRiskObligationMappingInput) int - CreateSnapshot func(childComplexity int, input types.CreateSnapshotInput) int - CreateStateOfApplicability func(childComplexity int, input types.CreateStateOfApplicabilityInput) int - CreateTask func(childComplexity int, input types.CreateTaskInput) int - CreateTransferImpactAssessment func(childComplexity int, input types.CreateTransferImpactAssessmentInput) int - CreateTrustCenterFile func(childComplexity int, input types.CreateTrustCenterFileInput) int - CreateTrustCenterReference func(childComplexity int, input types.CreateTrustCenterReferenceInput) int - CreateVendor func(childComplexity int, input types.CreateVendorInput) int - CreateVendorContact func(childComplexity int, input types.CreateVendorContactInput) int - CreateVendorRiskAssessment func(childComplexity int, input types.CreateVendorRiskAssessmentInput) int - CreateVendorService func(childComplexity int, input types.CreateVendorServiceInput) int - CreateWebhookSubscription func(childComplexity int, input types.CreateWebhookSubscriptionInput) int - DeleteApplicabilityStatement func(childComplexity int, input types.DeleteApplicabilityStatementInput) int - DeleteAsset func(childComplexity int, input types.DeleteAssetInput) int - DeleteAudit func(childComplexity int, input types.DeleteAuditInput) int - DeleteAuditReport func(childComplexity int, input types.DeleteAuditReportInput) int - DeleteComplianceExternalURL func(childComplexity int, input types.DeleteComplianceExternalURLInput) int - DeleteComplianceFramework func(childComplexity int, input types.DeleteComplianceFrameworkInput) int - DeleteContinualImprovement func(childComplexity int, input types.DeleteContinualImprovementInput) int - DeleteControl func(childComplexity int, input types.DeleteControlInput) int - DeleteControlAuditMapping func(childComplexity int, input types.DeleteControlAuditMappingInput) int - DeleteControlDocumentMapping func(childComplexity int, input types.DeleteControlDocumentMappingInput) int - DeleteControlMeasureMapping func(childComplexity int, input types.DeleteControlMeasureMappingInput) int - DeleteControlObligationMapping func(childComplexity int, input types.DeleteControlObligationMappingInput) int - DeleteControlSnapshotMapping func(childComplexity int, input types.DeleteControlSnapshotMappingInput) int - DeleteCustomDomain func(childComplexity int, input types.DeleteCustomDomainInput) int - DeleteDataProtectionImpactAssessment func(childComplexity int, input types.DeleteDataProtectionImpactAssessmentInput) int - DeleteDatum func(childComplexity int, input types.DeleteDatumInput) int - DeleteDocument func(childComplexity int, input types.DeleteDocumentInput) int - DeleteDraftDocumentVersion func(childComplexity int, input types.DeleteDraftDocumentVersionInput) int - DeleteEvidence func(childComplexity int, input types.DeleteEvidenceInput) int - DeleteFramework func(childComplexity int, input types.DeleteFrameworkInput) int - DeleteMailingListSubscriber func(childComplexity int, input types.DeleteMailingListSubscriberInput) int - DeleteMailingListUpdate func(childComplexity int, input types.DeleteMailingListUpdateInput) int - DeleteMeasure func(childComplexity int, input types.DeleteMeasureInput) int - DeleteMeeting func(childComplexity int, input types.DeleteMeetingInput) int - DeleteNonconformity func(childComplexity int, input types.DeleteNonconformityInput) int - DeleteObligation func(childComplexity int, input types.DeleteObligationInput) int - DeleteProcessingActivity func(childComplexity int, input types.DeleteProcessingActivityInput) int - DeleteRightsRequest func(childComplexity int, input types.DeleteRightsRequestInput) int - DeleteRisk func(childComplexity int, input types.DeleteRiskInput) int - DeleteRiskDocumentMapping func(childComplexity int, input types.DeleteRiskDocumentMappingInput) int - DeleteRiskMeasureMapping func(childComplexity int, input types.DeleteRiskMeasureMappingInput) int - DeleteRiskObligationMapping func(childComplexity int, input types.DeleteRiskObligationMappingInput) int - DeleteSnapshot func(childComplexity int, input types.DeleteSnapshotInput) int - DeleteStateOfApplicability func(childComplexity int, input types.DeleteStateOfApplicabilityInput) int - DeleteTask func(childComplexity int, input types.DeleteTaskInput) int - DeleteTransferImpactAssessment func(childComplexity int, input types.DeleteTransferImpactAssessmentInput) int - DeleteTrustCenterAccess func(childComplexity int, input types.DeleteTrustCenterAccessInput) int - DeleteTrustCenterFile func(childComplexity int, input types.DeleteTrustCenterFileInput) int - DeleteTrustCenterNda func(childComplexity int, input types.DeleteTrustCenterNDAInput) int - DeleteTrustCenterReference func(childComplexity int, input types.DeleteTrustCenterReferenceInput) int - DeleteVendor func(childComplexity int, input types.DeleteVendorInput) int - DeleteVendorBusinessAssociateAgreement func(childComplexity int, input types.DeleteVendorBusinessAssociateAgreementInput) int - DeleteVendorComplianceReport func(childComplexity int, input types.DeleteVendorComplianceReportInput) int - DeleteVendorContact func(childComplexity int, input types.DeleteVendorContactInput) int - DeleteVendorDataPrivacyAgreement func(childComplexity int, input types.DeleteVendorDataPrivacyAgreementInput) int - DeleteVendorService func(childComplexity int, input types.DeleteVendorServiceInput) int - DeleteWebhookSubscription func(childComplexity int, input types.DeleteWebhookSubscriptionInput) int - ExportDataProtectionImpactAssessmentsPDF func(childComplexity int, input types.ExportDataProtectionImpactAssessmentsPDFInput) int - ExportDocumentVersionPDF func(childComplexity int, input types.ExportDocumentVersionPDFInput) int - ExportFramework func(childComplexity int, input types.ExportFrameworkInput) int - ExportProcessingActivitiesPDF func(childComplexity int, input types.ExportProcessingActivitiesPDFInput) int - ExportSignableVersionDocumentPDF func(childComplexity int, input types.ExportSignableDocumentVersionPDFInput) int - ExportStateOfApplicabilityPDF func(childComplexity int, input types.ExportStateOfApplicabilityPDFInput) int - ExportTransferImpactAssessmentsPDF func(childComplexity int, input types.ExportTransferImpactAssessmentsPDFInput) int - GenerateDocumentChangelog func(childComplexity int, input types.GenerateDocumentChangelogInput) int - GetTrustCenterFile func(childComplexity int, input types.GetTrustCenterFileInput) int - ImportFramework func(childComplexity int, input types.ImportFrameworkInput) int - ImportMeasure func(childComplexity int, input types.ImportMeasureInput) int - PublishDocumentVersion func(childComplexity int, input types.PublishDocumentVersionInput) int - RequestSignature func(childComplexity int, input types.RequestSignatureInput) int - SendMailingListUpdate func(childComplexity int, input types.SendMailingListUpdateInput) int - SendSigningNotifications func(childComplexity int, input types.SendSigningNotificationsInput) int - SignDocument func(childComplexity int, input types.SignDocumentInput) int - UpdateApplicabilityStatement func(childComplexity int, input types.UpdateApplicabilityStatementInput) int - UpdateAsset func(childComplexity int, input types.UpdateAssetInput) int - UpdateAudit func(childComplexity int, input types.UpdateAuditInput) int - UpdateComplianceExternalURL func(childComplexity int, input types.UpdateComplianceExternalURLInput) int - UpdateComplianceFramework func(childComplexity int, input types.UpdateComplianceFrameworkInput) int - UpdateContinualImprovement func(childComplexity int, input types.UpdateContinualImprovementInput) int - UpdateControl func(childComplexity int, input types.UpdateControlInput) int - UpdateDataProtectionImpactAssessment func(childComplexity int, input types.UpdateDataProtectionImpactAssessmentInput) int - UpdateDatum func(childComplexity int, input types.UpdateDatumInput) int - UpdateDocument func(childComplexity int, input types.UpdateDocumentInput) int - UpdateDocumentVersion func(childComplexity int, input types.UpdateDocumentVersionInput) int - UpdateFramework func(childComplexity int, input types.UpdateFrameworkInput) int - UpdateMailingList func(childComplexity int, input types.UpdateMailingListInput) int - UpdateMailingListUpdate func(childComplexity int, input types.UpdateMailingListUpdateInput) int - UpdateMeasure func(childComplexity int, input types.UpdateMeasureInput) int - UpdateMeeting func(childComplexity int, input types.UpdateMeetingInput) int - UpdateNonconformity func(childComplexity int, input types.UpdateNonconformityInput) int - UpdateObligation func(childComplexity int, input types.UpdateObligationInput) int - UpdateOrganizationContext func(childComplexity int, input types.UpdateOrganizationContextInput) int - UpdateProcessingActivity func(childComplexity int, input types.UpdateProcessingActivityInput) int - UpdateRightsRequest func(childComplexity int, input types.UpdateRightsRequestInput) int - UpdateRisk func(childComplexity int, input types.UpdateRiskInput) int - UpdateStateOfApplicability func(childComplexity int, input types.UpdateStateOfApplicabilityInput) int - UpdateTask func(childComplexity int, input types.UpdateTaskInput) int - UpdateTransferImpactAssessment func(childComplexity int, input types.UpdateTransferImpactAssessmentInput) int - UpdateTrustCenter func(childComplexity int, input types.UpdateTrustCenterInput) int - UpdateTrustCenterAccess func(childComplexity int, input types.UpdateTrustCenterAccessInput) int - UpdateTrustCenterBrand func(childComplexity int, input types.UpdateTrustCenterBrandInput) int - UpdateTrustCenterFile func(childComplexity int, input types.UpdateTrustCenterFileInput) int - UpdateTrustCenterReference func(childComplexity int, input types.UpdateTrustCenterReferenceInput) int - UpdateVendor func(childComplexity int, input types.UpdateVendorInput) int - UpdateVendorBusinessAssociateAgreement func(childComplexity int, input types.UpdateVendorBusinessAssociateAgreementInput) int - UpdateVendorContact func(childComplexity int, input types.UpdateVendorContactInput) int - UpdateVendorDataPrivacyAgreement func(childComplexity int, input types.UpdateVendorDataPrivacyAgreementInput) int - UpdateVendorService func(childComplexity int, input types.UpdateVendorServiceInput) int - UpdateWebhookSubscription func(childComplexity int, input types.UpdateWebhookSubscriptionInput) int - UploadAuditReport func(childComplexity int, input types.UploadAuditReportInput) int - UploadMeasureEvidence func(childComplexity int, input types.UploadMeasureEvidenceInput) int - UploadTrustCenterNda func(childComplexity int, input types.UploadTrustCenterNDAInput) int - UploadVendorBusinessAssociateAgreement func(childComplexity int, input types.UploadVendorBusinessAssociateAgreementInput) int - UploadVendorComplianceReport func(childComplexity int, input types.UploadVendorComplianceReportInput) int - UploadVendorDataPrivacyAgreement func(childComplexity int, input types.UploadVendorDataPrivacyAgreementInput) int - } - - Nonconformity struct { - Audit func(childComplexity int) int - CorrectiveAction func(childComplexity int) int - CreatedAt func(childComplexity int) int - DateIdentified func(childComplexity int) int - Description func(childComplexity int) int - DueDate func(childComplexity int) int - EffectivenessCheck func(childComplexity int) int - ID func(childComplexity int) int - Organization func(childComplexity int) int - Owner func(childComplexity int) int - Permission func(childComplexity int, action string) int - ReferenceID func(childComplexity int) int - RootCause func(childComplexity int) int - SnapshotID func(childComplexity int) int - Status func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - NonconformityConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - NonconformityEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Obligation struct { - ActionsToBeImplemented func(childComplexity int) int - Area func(childComplexity int) int - CreatedAt func(childComplexity int) int - DueDate func(childComplexity int) int - ID func(childComplexity int) int - LastReviewDate func(childComplexity int) int - Organization func(childComplexity int) int - Owner func(childComplexity int) int - Permission func(childComplexity int, action string) int - Regulator func(childComplexity int) int - Requirement func(childComplexity int) int - SnapshotID func(childComplexity int) int - Source func(childComplexity int) int - SourceID func(childComplexity int) int - Status func(childComplexity int) int - Type func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - ObligationConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ObligationEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Organization struct { - Assets func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AssetOrderBy, filter *types.AssetFilter) int - Audits func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AuditOrderBy) int - Context func(childComplexity int) int - ContinualImprovements func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ContinualImprovementOrderBy, filter *types.ContinualImprovementFilter) int - Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int - CreatedAt func(childComplexity int) int - CustomDomain func(childComplexity int) int - Data func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DatumOrderBy, filter *types.DatumFilter) int - DataProtectionImpactAssessments func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DataProtectionImpactAssessmentOrderBy, filter *types.DataProtectionImpactAssessmentFilter) int - Description func(childComplexity int) int - Documents func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) int - Email func(childComplexity int) int - Frameworks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.FrameworkOrderBy) int - HeadquarterAddress func(childComplexity int) int - HorizontalLogoURL func(childComplexity int) int - ID func(childComplexity int) int - LogoURL func(childComplexity int) int - Measures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) int - Meetings func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeetingOrderBy) int - Name func(childComplexity int) int - Nonconformities func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.NonconformityOrderBy, filter *types.NonconformityFilter) int - Obligations func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ObligationOrderBy, filter *types.ObligationFilter) int - Permission func(childComplexity int, action string) int - ProcessingActivities func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProcessingActivityOrderBy, filter *types.ProcessingActivityFilter) int - Profiles func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy, filter *types.ProfileFilter) int - RightsRequests func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RightsRequestOrderBy) int - Risks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy, filter *types.RiskFilter) int - SlackConnections func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - Snapshots func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SnapshotOrderBy) int - StatesOfApplicability func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.StateOfApplicabilityOrderBy, filter *types.StateOfApplicabilityFilter) int - Tasks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TaskOrderBy) int - TransferImpactAssessments func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TransferImpactAssessmentOrderBy, filter *types.TransferImpactAssessmentFilter) int - TrustCenter func(childComplexity int) int - TrustCenterFiles func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.TrustCenterFileOrderField]) int - UpdatedAt func(childComplexity int) int - Vendors func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy, filter *types.VendorFilter) int - WebhookSubscriptions func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.WebhookSubscriptionOrderBy) int - WebsiteURL func(childComplexity int) int - } - - OrganizationContext struct { - OrganizationID func(childComplexity int) int - Summary func(childComplexity int) int - } - - PageInfo struct { - EndCursor func(childComplexity int) int - HasNextPage func(childComplexity int) int - HasPreviousPage func(childComplexity int) int - StartCursor func(childComplexity int) int - } - - ProcessingActivity struct { - ConsentEvidenceLink func(childComplexity int) int - CreatedAt func(childComplexity int) int - DataProtectionImpactAssessment func(childComplexity int) int - DataProtectionImpactAssessmentNeeded func(childComplexity int) int - DataProtectionOfficer func(childComplexity int) int - DataSubjectCategory func(childComplexity int) int - ID func(childComplexity int) int - InternationalTransfers func(childComplexity int) int - LastReviewDate func(childComplexity int) int - LawfulBasis func(childComplexity int) int - Location func(childComplexity int) int - Name func(childComplexity int) int - NextReviewDate func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - PersonalDataCategory func(childComplexity int) int - Purpose func(childComplexity int) int - Recipients func(childComplexity int) int - RetentionPeriod func(childComplexity int) int - Role func(childComplexity int) int - SecurityMeasures func(childComplexity int) int - SnapshotID func(childComplexity int) int - SourceID func(childComplexity int) int - SpecialOrCriminalData func(childComplexity int) int - TransferImpactAssessment func(childComplexity int) int - TransferImpactAssessmentNeeded func(childComplexity int) int - TransferSafeguards func(childComplexity int) int - UpdatedAt func(childComplexity int) int - Vendors func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) int - } - - ProcessingActivityConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ProcessingActivityEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Profile struct { - AdditionalEmailAddresses func(childComplexity int) int - ContractEndDate func(childComplexity int) int - ContractStartDate func(childComplexity int) int - CreatedAt func(childComplexity int) int - EmailAddress func(childComplexity int) int - FullName func(childComplexity int) int - ID func(childComplexity int) int - Kind func(childComplexity int) int - Permission func(childComplexity int, action string) int - Position func(childComplexity int) int - State func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - ProfileConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ProfileEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - PublishDocumentVersionPayload struct { - Document func(childComplexity int) int - DocumentVersion func(childComplexity int) int - } - - Query struct { - Node func(childComplexity int, id gid.GID) int - Viewer func(childComplexity int) int - } - - Report struct { - Audit func(childComplexity int) int - CreatedAt func(childComplexity int) int - DownloadURL func(childComplexity int) int - Filename func(childComplexity int) int - ID func(childComplexity int) int - MimeType func(childComplexity int) int - ObjectKey func(childComplexity int) int - Permission func(childComplexity int, action string) int - Size func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - RequestSignaturePayload struct { - DocumentVersionSignatureEdge func(childComplexity int) int - } - - RightsRequest struct { - ActionTaken func(childComplexity int) int - Contact func(childComplexity int) int - CreatedAt func(childComplexity int) int - DataSubject func(childComplexity int) int - Deadline func(childComplexity int) int - Details func(childComplexity int) int - ID func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - RequestState func(childComplexity int) int - RequestType func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - RightsRequestConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - RightsRequestEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Risk struct { - Category func(childComplexity int) int - Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - Documents func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) int - ID func(childComplexity int) int - InherentImpact func(childComplexity int) int - InherentLikelihood func(childComplexity int) int - InherentRiskScore func(childComplexity int) int - Measures func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) int - Name func(childComplexity int) int - Note func(childComplexity int) int - Obligations func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ObligationOrderBy, filter *types.ObligationFilter) int - Organization func(childComplexity int) int - Owner func(childComplexity int) int - Permission func(childComplexity int, action string) int - ResidualImpact func(childComplexity int) int - ResidualLikelihood func(childComplexity int) int - ResidualRiskScore func(childComplexity int) int - SnapshotID func(childComplexity int) int - Treatment func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - RiskConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - RiskEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - SendMailingListUpdatePayload struct { - MailingListUpdate func(childComplexity int) int - } - - SendSigningNotificationsPayload struct { - Success func(childComplexity int) int - } - - SignDocumentPayload struct { - DocumentVersionSignature func(childComplexity int) int - } - - SignableDocument struct { - Classification func(childComplexity int) int - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - DocumentType func(childComplexity int) int - ID func(childComplexity int) int - Signed func(childComplexity int) int - Title func(childComplexity int) int - UpdatedAt func(childComplexity int) int - Versions func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentVersionOrderBy, filter *types.DocumentVersionFilter) int - } - - SignableDocumentConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - SignableDocumentEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - SlackConnection struct { - Channel func(childComplexity int) int - ChannelID func(childComplexity int) int - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - SlackConnectionConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - SlackConnectionEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Snapshot struct { - Controls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) int - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - Type func(childComplexity int) int - } - - SnapshotConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - SnapshotEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - StateOfApplicability struct { - ApplicabilityStatements func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ApplicabilityStatementOrderBy) int - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - Owner func(childComplexity int) int - Permission func(childComplexity int, action string) int - SnapshotID func(childComplexity int) int - SourceID func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - StateOfApplicabilityConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - StateOfApplicabilityEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Task struct { - AssignedTo func(childComplexity int) int - CreatedAt func(childComplexity int) int - Deadline func(childComplexity int) int - Description func(childComplexity int) int - Evidences func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.EvidenceOrderBy) int - ID func(childComplexity int) int - Measure func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - State func(childComplexity int) int - TimeEstimate func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - TaskConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - TaskEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - TransferImpactAssessment struct { - CreatedAt func(childComplexity int) int - DataSubjects func(childComplexity int) int - ID func(childComplexity int) int - LegalMechanism func(childComplexity int) int - LocalLawRisk func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - ProcessingActivity func(childComplexity int) int - SupplementaryMeasures func(childComplexity int) int - Transfer func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - TransferImpactAssessmentConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - TransferImpactAssessmentEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - TrustCenter struct { - Accesses func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.TrustCenterAccessOrderField]) int - Active func(childComplexity int) int - ComplianceFrameworks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.ComplianceFrameworkOrderField]) int - CreatedAt func(childComplexity int) int - DarkLogoFileURL func(childComplexity int) int - ExternalUrls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.ComplianceExternalURLOrderField]) int - ID func(childComplexity int) int - LogoFileURL func(childComplexity int) int - MailingList func(childComplexity int) int - NdaFileName func(childComplexity int) int - NdaFileURL func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - References func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.TrustCenterReferenceOrderField]) int - UpdatedAt func(childComplexity int) int - } - - TrustCenterAccess struct { - ActiveCount func(childComplexity int) int - AvailableDocumentAccesses func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.TrustCenterDocumentAccessOrderField]) int - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - IdentityID func(childComplexity int) int - NdaSignature func(childComplexity int) int - OrganizationID func(childComplexity int) int - PendingRequestCount func(childComplexity int) int - Permission func(childComplexity int, action string) int - Profile func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - TrustCenterAccessConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - TrustCenterAccessEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - TrustCenterConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - TrustCenterDocumentAccess struct { - Document func(childComplexity int) int - ID func(childComplexity int) int - Report func(childComplexity int) int - Status func(childComplexity int) int - TrustCenterFile func(childComplexity int) int - } - - TrustCenterDocumentAccessConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - TrustCenterDocumentAccessEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - TrustCenterEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - TrustCenterFile struct { - Category func(childComplexity int) int - CreatedAt func(childComplexity int) int - FileURL func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - TrustCenterVisibility func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - TrustCenterFileConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - TrustCenterFileEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - TrustCenterReference struct { - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - ID func(childComplexity int) int - LogoURL func(childComplexity int) int - Name func(childComplexity int) int - Permission func(childComplexity int, action string) int - Rank func(childComplexity int) int - UpdatedAt func(childComplexity int) int - WebsiteURL func(childComplexity int) int - } - - TrustCenterReferenceConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - TrustCenterReferenceEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - UpdateApplicabilityStatementPayload struct { - ApplicabilityStatement func(childComplexity int) int - } - - UpdateAssetPayload struct { - Asset func(childComplexity int) int - } - - UpdateAuditPayload struct { - Audit func(childComplexity int) int - } - - UpdateComplianceExternalURLPayload struct { - ComplianceExternalURL func(childComplexity int) int - } - - UpdateComplianceFrameworkPayload struct { - ComplianceFramework func(childComplexity int) int - } - - UpdateContinualImprovementPayload struct { - ContinualImprovement func(childComplexity int) int - } - - UpdateControlPayload struct { - Control func(childComplexity int) int - } - - UpdateDataProtectionImpactAssessmentPayload struct { - DataProtectionImpactAssessment func(childComplexity int) int - } - - UpdateDatumPayload struct { - Datum func(childComplexity int) int - } - - UpdateDocumentPayload struct { - Document func(childComplexity int) int - } - - UpdateDocumentVersionPayload struct { - DocumentVersion func(childComplexity int) int - } - - UpdateFrameworkPayload struct { - Framework func(childComplexity int) int - } - - UpdateMailingListPayload struct { - MailingList func(childComplexity int) int - } - - UpdateMailingListUpdatePayload struct { - MailingListUpdate func(childComplexity int) int - } - - UpdateMeasurePayload struct { - Measure func(childComplexity int) int - } - - UpdateMeetingPayload struct { - Meeting func(childComplexity int) int - } - - UpdateNonconformityPayload struct { - Nonconformity func(childComplexity int) int - } - - UpdateObligationPayload struct { - Obligation func(childComplexity int) int - } - - UpdateOrganizationContextPayload struct { - Context func(childComplexity int) int - } - - UpdateProcessingActivityPayload struct { - ProcessingActivity func(childComplexity int) int - } - - UpdateRightsRequestPayload struct { - RightsRequest func(childComplexity int) int - } - - UpdateRiskPayload struct { - Risk func(childComplexity int) int - } - - UpdateStateOfApplicabilityPayload struct { - StateOfApplicability func(childComplexity int) int - } - - UpdateTaskPayload struct { - Task func(childComplexity int) int - } - - UpdateTransferImpactAssessmentPayload struct { - TransferImpactAssessment func(childComplexity int) int - } - - UpdateTrustCenterAccessPayload struct { - TrustCenterAccess func(childComplexity int) int - } - - UpdateTrustCenterBrandPayload struct { - TrustCenter func(childComplexity int) int - } - - UpdateTrustCenterFilePayload struct { - TrustCenterFile func(childComplexity int) int - } - - UpdateTrustCenterPayload struct { - TrustCenter func(childComplexity int) int - } - - UpdateTrustCenterReferencePayload struct { - TrustCenterReference func(childComplexity int) int - } - - UpdateVendorBusinessAssociateAgreementPayload struct { - VendorBusinessAssociateAgreement func(childComplexity int) int - } - - UpdateVendorContactPayload struct { - VendorContact func(childComplexity int) int - } - - UpdateVendorDataPrivacyAgreementPayload struct { - VendorDataPrivacyAgreement func(childComplexity int) int - } - - UpdateVendorPayload struct { - Vendor func(childComplexity int) int - } - - UpdateVendorServicePayload struct { - VendorService func(childComplexity int) int - } - - UpdateWebhookSubscriptionPayload struct { - WebhookSubscription func(childComplexity int) int - } - - UploadAuditReportPayload struct { - Audit func(childComplexity int) int - } - - UploadMeasureEvidencePayload struct { - EvidenceEdge func(childComplexity int) int - } - - UploadTrustCenterNDAPayload struct { - TrustCenter func(childComplexity int) int - } - - UploadVendorBusinessAssociateAgreementPayload struct { - VendorBusinessAssociateAgreement func(childComplexity int) int - } - - UploadVendorComplianceReportPayload struct { - VendorComplianceReportEdge func(childComplexity int) int - } - - UploadVendorDataPrivacyAgreementPayload struct { - VendorDataPrivacyAgreement func(childComplexity int) int - } - - Vendor struct { - BusinessAssociateAgreement func(childComplexity int) int - BusinessAssociateAgreementURL func(childComplexity int) int - BusinessOwner func(childComplexity int) int - Category func(childComplexity int) int - Certifications func(childComplexity int) int - ComplianceReports func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorComplianceReportOrderBy) int - Contacts func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorContactOrderBy) int - Countries func(childComplexity int) int - CreatedAt func(childComplexity int) int - DataPrivacyAgreement func(childComplexity int) int - DataProcessingAgreementURL func(childComplexity int) int - Description func(childComplexity int) int - HeadquarterAddress func(childComplexity int) int - ID func(childComplexity int) int - LegalName func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - PrivacyPolicyURL func(childComplexity int) int - RiskAssessments func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorRiskAssessmentOrder) int - SecurityOwner func(childComplexity int) int - SecurityPageURL func(childComplexity int) int - ServiceLevelAgreementURL func(childComplexity int) int - Services func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorServiceOrderBy) int - ShowOnTrustCenter func(childComplexity int) int - SnapshotID func(childComplexity int) int - StatusPageURL func(childComplexity int) int - SubprocessorsListURL func(childComplexity int) int - TermsOfServiceURL func(childComplexity int) int - TrustPageURL func(childComplexity int) int - UpdatedAt func(childComplexity int) int - WebsiteURL func(childComplexity int) int - } - - VendorBusinessAssociateAgreement struct { - CreatedAt func(childComplexity int) int - FileName func(childComplexity int) int - FileSize func(childComplexity int) int - FileURL func(childComplexity int) int - ID func(childComplexity int) int - Permission func(childComplexity int, action string) int - UpdatedAt func(childComplexity int) int - ValidFrom func(childComplexity int) int - ValidUntil func(childComplexity int) int - Vendor func(childComplexity int) int - } - - VendorComplianceReport struct { - CreatedAt func(childComplexity int) int - File func(childComplexity int) int - ID func(childComplexity int) int - Permission func(childComplexity int, action string) int - ReportDate func(childComplexity int) int - ReportName func(childComplexity int) int - UpdatedAt func(childComplexity int) int - ValidUntil func(childComplexity int) int - Vendor func(childComplexity int) int - } - - VendorComplianceReportConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - VendorComplianceReportEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - VendorConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - VendorContact struct { - CreatedAt func(childComplexity int) int - Email func(childComplexity int) int - FullName func(childComplexity int) int - ID func(childComplexity int) int - Permission func(childComplexity int, action string) int - Phone func(childComplexity int) int - Role func(childComplexity int) int - UpdatedAt func(childComplexity int) int - Vendor func(childComplexity int) int - } - - VendorContactConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - VendorContactEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - VendorDataPrivacyAgreement struct { - CreatedAt func(childComplexity int) int - FileName func(childComplexity int) int - FileSize func(childComplexity int) int - FileURL func(childComplexity int) int - ID func(childComplexity int) int - Permission func(childComplexity int, action string) int - UpdatedAt func(childComplexity int) int - ValidFrom func(childComplexity int) int - ValidUntil func(childComplexity int) int - Vendor func(childComplexity int) int - } - - VendorEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - VendorRiskAssessment struct { - BusinessImpact func(childComplexity int) int - CreatedAt func(childComplexity int) int - DataSensitivity func(childComplexity int) int - ExpiresAt func(childComplexity int) int - ID func(childComplexity int) int - Notes func(childComplexity int) int - Permission func(childComplexity int, action string) int - UpdatedAt func(childComplexity int) int - Vendor func(childComplexity int) int - } - - VendorRiskAssessmentConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - VendorRiskAssessmentEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - VendorService struct { - CreatedAt func(childComplexity int) int - Description func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Permission func(childComplexity int, action string) int - UpdatedAt func(childComplexity int) int - Vendor func(childComplexity int) int - } - - VendorServiceConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - VendorServiceEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Viewer struct { - ID func(childComplexity int) int - SignableDocument func(childComplexity int, id gid.GID) int - SignableDocuments func(childComplexity int, organizationID gid.GID, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy) int - } - - WebhookEvent struct { - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - Response func(childComplexity int) int - Status func(childComplexity int) int - WebhookSubscriptionID func(childComplexity int) int - } - - WebhookEventConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - WebhookEventEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - WebhookSubscription struct { - CreatedAt func(childComplexity int) int - EndpointURL func(childComplexity int) int - Events func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.WebhookEventOrderBy) int - ID func(childComplexity int) int - Organization func(childComplexity int) int - Permission func(childComplexity int, action string) int - SelectedEvents func(childComplexity int) int - SigningSecret func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - WebhookSubscriptionConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - WebhookSubscriptionEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } -} - -type ApplicabilityStatementResolver interface { - StateOfApplicability(ctx context.Context, obj *types.ApplicabilityStatement) (*types.StateOfApplicability, error) - Control(ctx context.Context, obj *types.ApplicabilityStatement) (*types.Control, error) - - Permission(ctx context.Context, obj *types.ApplicabilityStatement, action string) (bool, error) -} -type ApplicabilityStatementConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.ApplicabilityStatementConnection) (int, error) -} -type AssetResolver interface { - Owner(ctx context.Context, obj *types.Asset) (*types.Profile, error) - Vendors(ctx context.Context, obj *types.Asset, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) (*types.VendorConnection, error) - - Organization(ctx context.Context, obj *types.Asset) (*types.Organization, error) - - Permission(ctx context.Context, obj *types.Asset, action string) (bool, error) -} -type AssetConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.AssetConnection) (int, error) -} -type AuditResolver interface { - Organization(ctx context.Context, obj *types.Audit) (*types.Organization, error) - Framework(ctx context.Context, obj *types.Audit) (*types.Framework, error) - - Report(ctx context.Context, obj *types.Audit) (*types.Report, error) - ReportURL(ctx context.Context, obj *types.Audit) (*string, error) - - Controls(ctx context.Context, obj *types.Audit, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error) - - Permission(ctx context.Context, obj *types.Audit, action string) (bool, error) -} -type AuditConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.AuditConnection) (int, error) -} -type ComplianceExternalURLResolver interface { - Permission(ctx context.Context, obj *types.ComplianceExternalURL, action string) (bool, error) -} -type ComplianceFrameworkResolver interface { - Framework(ctx context.Context, obj *types.ComplianceFramework) (*types.Framework, error) -} -type ContinualImprovementResolver interface { - Organization(ctx context.Context, obj *types.ContinualImprovement) (*types.Organization, error) - - Owner(ctx context.Context, obj *types.ContinualImprovement) (*types.Profile, error) - - Permission(ctx context.Context, obj *types.ContinualImprovement, action string) (bool, error) -} -type ContinualImprovementConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.ContinualImprovementConnection) (int, error) -} -type ControlResolver interface { - Organization(ctx context.Context, obj *types.Control) (*types.Organization, error) - - Regulatory(ctx context.Context, obj *types.Control) (bool, error) - Contractual(ctx context.Context, obj *types.Control) (bool, error) - RiskAssessment(ctx context.Context, obj *types.Control) (bool, error) - Framework(ctx context.Context, obj *types.Control) (*types.Framework, error) - Measures(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) (*types.MeasureConnection, error) - Documents(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) (*types.DocumentConnection, error) - Audits(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AuditOrderBy) (*types.AuditConnection, error) - Obligations(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ObligationOrderBy, filter *types.ObligationFilter) (*types.ObligationConnection, error) - Snapshots(ctx context.Context, obj *types.Control, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SnapshotOrderBy) (*types.SnapshotConnection, error) - - Permission(ctx context.Context, obj *types.Control, action string) (bool, error) -} -type ControlConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.ControlConnection) (int, error) -} -type CustomDomainResolver interface { - Permission(ctx context.Context, obj *types.CustomDomain, action string) (bool, error) -} -type DataProtectionImpactAssessmentResolver interface { - ProcessingActivity(ctx context.Context, obj *types.DataProtectionImpactAssessment) (*types.ProcessingActivity, error) - Organization(ctx context.Context, obj *types.DataProtectionImpactAssessment) (*types.Organization, error) - - Permission(ctx context.Context, obj *types.DataProtectionImpactAssessment, action string) (bool, error) -} -type DataProtectionImpactAssessmentConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.DataProtectionImpactAssessmentConnection) (int, error) -} -type DatumResolver interface { - Owner(ctx context.Context, obj *types.Datum) (*types.Profile, error) - Vendors(ctx context.Context, obj *types.Datum, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) (*types.VendorConnection, error) - Organization(ctx context.Context, obj *types.Datum) (*types.Organization, error) - - Permission(ctx context.Context, obj *types.Datum, action string) (bool, error) -} -type DatumConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.DatumConnection) (int, error) -} -type DocumentResolver interface { - Approvers(ctx context.Context, obj *types.Document, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy) (*types.ProfileConnection, error) - Organization(ctx context.Context, obj *types.Document) (*types.Organization, error) - Versions(ctx context.Context, obj *types.Document, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentVersionOrderBy, filter *types.DocumentVersionFilter) (*types.DocumentVersionConnection, error) - Controls(ctx context.Context, obj *types.Document, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error) - - Permission(ctx context.Context, obj *types.Document, action string) (bool, error) -} -type DocumentConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.DocumentConnection) (int, error) -} -type DocumentVersionResolver interface { - Document(ctx context.Context, obj *types.DocumentVersion) (*types.Document, error) - - Approvers(ctx context.Context, obj *types.DocumentVersion, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy) (*types.ProfileConnection, error) - Signatures(ctx context.Context, obj *types.DocumentVersion, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentVersionSignatureOrder, filter *types.DocumentVersionSignatureFilter) (*types.DocumentVersionSignatureConnection, error) - Signed(ctx context.Context, obj *types.DocumentVersion) (bool, error) - - Permission(ctx context.Context, obj *types.DocumentVersion, action string) (bool, error) -} -type DocumentVersionConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.DocumentVersionConnection) (int, error) -} -type DocumentVersionSignatureResolver interface { - DocumentVersion(ctx context.Context, obj *types.DocumentVersionSignature) (*types.DocumentVersion, error) - - SignedBy(ctx context.Context, obj *types.DocumentVersionSignature) (*types.Profile, error) - - Permission(ctx context.Context, obj *types.DocumentVersionSignature, action string) (bool, error) -} -type DocumentVersionSignatureConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.DocumentVersionSignatureConnection) (int, error) -} -type ElectronicSignatureResolver interface { - CertificateFileURL(ctx context.Context, obj *types.ElectronicSignature) (*string, error) - Events(ctx context.Context, obj *types.ElectronicSignature) ([]*types.ElectronicSignatureEvent, error) -} -type EvidenceResolver interface { - File(ctx context.Context, obj *types.Evidence) (*types.File, error) - - Task(ctx context.Context, obj *types.Evidence) (*types.Task, error) - Measure(ctx context.Context, obj *types.Evidence) (*types.Measure, error) - - Permission(ctx context.Context, obj *types.Evidence, action string) (bool, error) -} -type EvidenceConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.EvidenceConnection) (int, error) -} -type FileResolver interface { - DownloadURL(ctx context.Context, obj *types.File) (string, error) -} -type FrameworkResolver interface { - Organization(ctx context.Context, obj *types.Framework) (*types.Organization, error) - Controls(ctx context.Context, obj *types.Framework, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error) - LightLogoURL(ctx context.Context, obj *types.Framework) (*string, error) - DarkLogoURL(ctx context.Context, obj *types.Framework) (*string, error) - - Permission(ctx context.Context, obj *types.Framework, action string) (bool, error) -} -type FrameworkConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.FrameworkConnection) (int, error) -} -type MailingListResolver interface { - Subscribers(ctx context.Context, obj *types.MailingList, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.MailingListSubscriberConnection, error) - Updates(ctx context.Context, obj *types.MailingList, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.MailingListUpdateConnection, error) -} -type MailingListSubscriberConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.MailingListSubscriberConnection) (int, error) -} -type MailingListUpdateConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.MailingListUpdateConnection) (int, error) -} -type MeasureResolver interface { - Evidences(ctx context.Context, obj *types.Measure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.EvidenceOrderBy) (*types.EvidenceConnection, error) - Tasks(ctx context.Context, obj *types.Measure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TaskOrderBy) (*types.TaskConnection, error) - Risks(ctx context.Context, obj *types.Measure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy, filter *types.RiskFilter) (*types.RiskConnection, error) - Controls(ctx context.Context, obj *types.Measure, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error) - - Permission(ctx context.Context, obj *types.Measure, action string) (bool, error) -} -type MeasureConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.MeasureConnection) (int, error) -} -type MeetingResolver interface { - Attendees(ctx context.Context, obj *types.Meeting) ([]*types.Profile, error) - Organization(ctx context.Context, obj *types.Meeting) (*types.Organization, error) - - Permission(ctx context.Context, obj *types.Meeting, action string) (bool, error) -} -type MeetingConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.MeetingConnection) (int, error) -} -type MutationResolver interface { - UpdateOrganizationContext(ctx context.Context, input types.UpdateOrganizationContextInput) (*types.UpdateOrganizationContextPayload, error) - UpdateTrustCenter(ctx context.Context, input types.UpdateTrustCenterInput) (*types.UpdateTrustCenterPayload, error) - UploadTrustCenterNda(ctx context.Context, input types.UploadTrustCenterNDAInput) (*types.UploadTrustCenterNDAPayload, error) - DeleteTrustCenterNda(ctx context.Context, input types.DeleteTrustCenterNDAInput) (*types.DeleteTrustCenterNDAPayload, error) - UpdateTrustCenterBrand(ctx context.Context, input types.UpdateTrustCenterBrandInput) (*types.UpdateTrustCenterBrandPayload, error) - UpdateTrustCenterAccess(ctx context.Context, input types.UpdateTrustCenterAccessInput) (*types.UpdateTrustCenterAccessPayload, error) - DeleteTrustCenterAccess(ctx context.Context, input types.DeleteTrustCenterAccessInput) (*types.DeleteTrustCenterAccessPayload, error) - CreateMailingListUpdate(ctx context.Context, input types.CreateMailingListUpdateInput) (*types.CreateMailingListUpdatePayload, error) - UpdateMailingListUpdate(ctx context.Context, input types.UpdateMailingListUpdateInput) (*types.UpdateMailingListUpdatePayload, error) - SendMailingListUpdate(ctx context.Context, input types.SendMailingListUpdateInput) (*types.SendMailingListUpdatePayload, error) - DeleteMailingListUpdate(ctx context.Context, input types.DeleteMailingListUpdateInput) (*types.DeleteMailingListUpdatePayload, error) - UpdateMailingList(ctx context.Context, input types.UpdateMailingListInput) (*types.UpdateMailingListPayload, error) - CreateMailingListSubscriber(ctx context.Context, input types.CreateMailingListSubscriberInput) (*types.CreateMailingListSubscriberPayload, error) - DeleteMailingListSubscriber(ctx context.Context, input types.DeleteMailingListSubscriberInput) (*types.DeleteMailingListSubscriberPayload, error) - CreateTrustCenterReference(ctx context.Context, input types.CreateTrustCenterReferenceInput) (*types.CreateTrustCenterReferencePayload, error) - UpdateTrustCenterReference(ctx context.Context, input types.UpdateTrustCenterReferenceInput) (*types.UpdateTrustCenterReferencePayload, error) - DeleteTrustCenterReference(ctx context.Context, input types.DeleteTrustCenterReferenceInput) (*types.DeleteTrustCenterReferencePayload, error) - CreateComplianceFramework(ctx context.Context, input types.CreateComplianceFrameworkInput) (*types.CreateComplianceFrameworkPayload, error) - UpdateComplianceFramework(ctx context.Context, input types.UpdateComplianceFrameworkInput) (*types.UpdateComplianceFrameworkPayload, error) - DeleteComplianceFramework(ctx context.Context, input types.DeleteComplianceFrameworkInput) (*types.DeleteComplianceFrameworkPayload, error) - CreateComplianceExternalURL(ctx context.Context, input types.CreateComplianceExternalURLInput) (*types.CreateComplianceExternalURLPayload, error) - UpdateComplianceExternalURL(ctx context.Context, input types.UpdateComplianceExternalURLInput) (*types.UpdateComplianceExternalURLPayload, error) - DeleteComplianceExternalURL(ctx context.Context, input types.DeleteComplianceExternalURLInput) (*types.DeleteComplianceExternalURLPayload, error) - CreateTrustCenterFile(ctx context.Context, input types.CreateTrustCenterFileInput) (*types.CreateTrustCenterFilePayload, error) - UpdateTrustCenterFile(ctx context.Context, input types.UpdateTrustCenterFileInput) (*types.UpdateTrustCenterFilePayload, error) - GetTrustCenterFile(ctx context.Context, input types.GetTrustCenterFileInput) (*types.GetTrustCenterFilePayload, error) - DeleteTrustCenterFile(ctx context.Context, input types.DeleteTrustCenterFileInput) (*types.DeleteTrustCenterFilePayload, error) - CreateVendor(ctx context.Context, input types.CreateVendorInput) (*types.CreateVendorPayload, error) - UpdateVendor(ctx context.Context, input types.UpdateVendorInput) (*types.UpdateVendorPayload, error) - DeleteVendor(ctx context.Context, input types.DeleteVendorInput) (*types.DeleteVendorPayload, error) - CreateVendorContact(ctx context.Context, input types.CreateVendorContactInput) (*types.CreateVendorContactPayload, error) - UpdateVendorContact(ctx context.Context, input types.UpdateVendorContactInput) (*types.UpdateVendorContactPayload, error) - DeleteVendorContact(ctx context.Context, input types.DeleteVendorContactInput) (*types.DeleteVendorContactPayload, error) - CreateVendorService(ctx context.Context, input types.CreateVendorServiceInput) (*types.CreateVendorServicePayload, error) - UpdateVendorService(ctx context.Context, input types.UpdateVendorServiceInput) (*types.UpdateVendorServicePayload, error) - DeleteVendorService(ctx context.Context, input types.DeleteVendorServiceInput) (*types.DeleteVendorServicePayload, error) - CreateFramework(ctx context.Context, input types.CreateFrameworkInput) (*types.CreateFrameworkPayload, error) - UpdateFramework(ctx context.Context, input types.UpdateFrameworkInput) (*types.UpdateFrameworkPayload, error) - ImportFramework(ctx context.Context, input types.ImportFrameworkInput) (*types.ImportFrameworkPayload, error) - DeleteFramework(ctx context.Context, input types.DeleteFrameworkInput) (*types.DeleteFrameworkPayload, error) - ExportFramework(ctx context.Context, input types.ExportFrameworkInput) (*types.ExportFrameworkPayload, error) - CreateControl(ctx context.Context, input types.CreateControlInput) (*types.CreateControlPayload, error) - UpdateControl(ctx context.Context, input types.UpdateControlInput) (*types.UpdateControlPayload, error) - DeleteControl(ctx context.Context, input types.DeleteControlInput) (*types.DeleteControlPayload, error) - CreateMeasure(ctx context.Context, input types.CreateMeasureInput) (*types.CreateMeasurePayload, error) - UpdateMeasure(ctx context.Context, input types.UpdateMeasureInput) (*types.UpdateMeasurePayload, error) - ImportMeasure(ctx context.Context, input types.ImportMeasureInput) (*types.ImportMeasurePayload, error) - DeleteMeasure(ctx context.Context, input types.DeleteMeasureInput) (*types.DeleteMeasurePayload, error) - CreateControlMeasureMapping(ctx context.Context, input types.CreateControlMeasureMappingInput) (*types.CreateControlMeasureMappingPayload, error) - CreateControlDocumentMapping(ctx context.Context, input types.CreateControlDocumentMappingInput) (*types.CreateControlDocumentMappingPayload, error) - DeleteControlMeasureMapping(ctx context.Context, input types.DeleteControlMeasureMappingInput) (*types.DeleteControlMeasureMappingPayload, error) - DeleteControlDocumentMapping(ctx context.Context, input types.DeleteControlDocumentMappingInput) (*types.DeleteControlDocumentMappingPayload, error) - CreateApplicabilityStatement(ctx context.Context, input types.CreateApplicabilityStatementInput) (*types.CreateApplicabilityStatementPayload, error) - UpdateApplicabilityStatement(ctx context.Context, input types.UpdateApplicabilityStatementInput) (*types.UpdateApplicabilityStatementPayload, error) - DeleteApplicabilityStatement(ctx context.Context, input types.DeleteApplicabilityStatementInput) (*types.DeleteApplicabilityStatementPayload, error) - CreateControlAuditMapping(ctx context.Context, input types.CreateControlAuditMappingInput) (*types.CreateControlAuditMappingPayload, error) - DeleteControlAuditMapping(ctx context.Context, input types.DeleteControlAuditMappingInput) (*types.DeleteControlAuditMappingPayload, error) - CreateControlObligationMapping(ctx context.Context, input types.CreateControlObligationMappingInput) (*types.CreateControlObligationMappingPayload, error) - DeleteControlObligationMapping(ctx context.Context, input types.DeleteControlObligationMappingInput) (*types.DeleteControlObligationMappingPayload, error) - CreateControlSnapshotMapping(ctx context.Context, input types.CreateControlSnapshotMappingInput) (*types.CreateControlSnapshotMappingPayload, error) - DeleteControlSnapshotMapping(ctx context.Context, input types.DeleteControlSnapshotMappingInput) (*types.DeleteControlSnapshotMappingPayload, error) - CreateTask(ctx context.Context, input types.CreateTaskInput) (*types.CreateTaskPayload, error) - UpdateTask(ctx context.Context, input types.UpdateTaskInput) (*types.UpdateTaskPayload, error) - DeleteTask(ctx context.Context, input types.DeleteTaskInput) (*types.DeleteTaskPayload, error) - CreateRisk(ctx context.Context, input types.CreateRiskInput) (*types.CreateRiskPayload, error) - UpdateRisk(ctx context.Context, input types.UpdateRiskInput) (*types.UpdateRiskPayload, error) - DeleteRisk(ctx context.Context, input types.DeleteRiskInput) (*types.DeleteRiskPayload, error) - CreateRiskMeasureMapping(ctx context.Context, input types.CreateRiskMeasureMappingInput) (*types.CreateRiskMeasureMappingPayload, error) - DeleteRiskMeasureMapping(ctx context.Context, input types.DeleteRiskMeasureMappingInput) (*types.DeleteRiskMeasureMappingPayload, error) - CreateRiskDocumentMapping(ctx context.Context, input types.CreateRiskDocumentMappingInput) (*types.CreateRiskDocumentMappingPayload, error) - DeleteRiskDocumentMapping(ctx context.Context, input types.DeleteRiskDocumentMappingInput) (*types.DeleteRiskDocumentMappingPayload, error) - CreateRiskObligationMapping(ctx context.Context, input types.CreateRiskObligationMappingInput) (*types.CreateRiskObligationMappingPayload, error) - DeleteRiskObligationMapping(ctx context.Context, input types.DeleteRiskObligationMappingInput) (*types.DeleteRiskObligationMappingPayload, error) - DeleteEvidence(ctx context.Context, input types.DeleteEvidenceInput) (*types.DeleteEvidencePayload, error) - UploadMeasureEvidence(ctx context.Context, input types.UploadMeasureEvidenceInput) (*types.UploadMeasureEvidencePayload, error) - UploadVendorComplianceReport(ctx context.Context, input types.UploadVendorComplianceReportInput) (*types.UploadVendorComplianceReportPayload, error) - DeleteVendorComplianceReport(ctx context.Context, input types.DeleteVendorComplianceReportInput) (*types.DeleteVendorComplianceReportPayload, error) - UploadVendorBusinessAssociateAgreement(ctx context.Context, input types.UploadVendorBusinessAssociateAgreementInput) (*types.UploadVendorBusinessAssociateAgreementPayload, error) - UpdateVendorBusinessAssociateAgreement(ctx context.Context, input types.UpdateVendorBusinessAssociateAgreementInput) (*types.UpdateVendorBusinessAssociateAgreementPayload, error) - DeleteVendorBusinessAssociateAgreement(ctx context.Context, input types.DeleteVendorBusinessAssociateAgreementInput) (*types.DeleteVendorBusinessAssociateAgreementPayload, error) - UploadVendorDataPrivacyAgreement(ctx context.Context, input types.UploadVendorDataPrivacyAgreementInput) (*types.UploadVendorDataPrivacyAgreementPayload, error) - UpdateVendorDataPrivacyAgreement(ctx context.Context, input types.UpdateVendorDataPrivacyAgreementInput) (*types.UpdateVendorDataPrivacyAgreementPayload, error) - DeleteVendorDataPrivacyAgreement(ctx context.Context, input types.DeleteVendorDataPrivacyAgreementInput) (*types.DeleteVendorDataPrivacyAgreementPayload, error) - CreateDocument(ctx context.Context, input types.CreateDocumentInput) (*types.CreateDocumentPayload, error) - UpdateDocument(ctx context.Context, input types.UpdateDocumentInput) (*types.UpdateDocumentPayload, error) - DeleteDocument(ctx context.Context, input types.DeleteDocumentInput) (*types.DeleteDocumentPayload, error) - CreateMeeting(ctx context.Context, input types.CreateMeetingInput) (*types.CreateMeetingPayload, error) - UpdateMeeting(ctx context.Context, input types.UpdateMeetingInput) (*types.UpdateMeetingPayload, error) - DeleteMeeting(ctx context.Context, input types.DeleteMeetingInput) (*types.DeleteMeetingPayload, error) - CreateWebhookSubscription(ctx context.Context, input types.CreateWebhookSubscriptionInput) (*types.CreateWebhookSubscriptionPayload, error) - UpdateWebhookSubscription(ctx context.Context, input types.UpdateWebhookSubscriptionInput) (*types.UpdateWebhookSubscriptionPayload, error) - DeleteWebhookSubscription(ctx context.Context, input types.DeleteWebhookSubscriptionInput) (*types.DeleteWebhookSubscriptionPayload, error) - CreateStateOfApplicability(ctx context.Context, input types.CreateStateOfApplicabilityInput) (*types.CreateStateOfApplicabilityPayload, error) - UpdateStateOfApplicability(ctx context.Context, input types.UpdateStateOfApplicabilityInput) (*types.UpdateStateOfApplicabilityPayload, error) - DeleteStateOfApplicability(ctx context.Context, input types.DeleteStateOfApplicabilityInput) (*types.DeleteStateOfApplicabilityPayload, error) - ExportStateOfApplicabilityPDF(ctx context.Context, input types.ExportStateOfApplicabilityPDFInput) (*types.ExportStateOfApplicabilityPDFPayload, error) - PublishDocumentVersion(ctx context.Context, input types.PublishDocumentVersionInput) (*types.PublishDocumentVersionPayload, error) - BulkPublishDocumentVersions(ctx context.Context, input types.BulkPublishDocumentVersionsInput) (*types.BulkPublishDocumentVersionsPayload, error) - BulkDeleteDocuments(ctx context.Context, input types.BulkDeleteDocumentsInput) (*types.BulkDeleteDocumentsPayload, error) - BulkExportDocuments(ctx context.Context, input types.BulkExportDocumentsInput) (*types.BulkExportDocumentsPayload, error) - GenerateDocumentChangelog(ctx context.Context, input types.GenerateDocumentChangelogInput) (*types.GenerateDocumentChangelogPayload, error) - CreateDraftDocumentVersion(ctx context.Context, input types.CreateDraftDocumentVersionInput) (*types.CreateDraftDocumentVersionPayload, error) - DeleteDraftDocumentVersion(ctx context.Context, input types.DeleteDraftDocumentVersionInput) (*types.DeleteDraftDocumentVersionPayload, error) - UpdateDocumentVersion(ctx context.Context, input types.UpdateDocumentVersionInput) (*types.UpdateDocumentVersionPayload, error) - RequestSignature(ctx context.Context, input types.RequestSignatureInput) (*types.RequestSignaturePayload, error) - BulkRequestSignatures(ctx context.Context, input types.BulkRequestSignaturesInput) (*types.BulkRequestSignaturesPayload, error) - SendSigningNotifications(ctx context.Context, input types.SendSigningNotificationsInput) (*types.SendSigningNotificationsPayload, error) - CancelSignatureRequest(ctx context.Context, input types.CancelSignatureRequestInput) (*types.CancelSignatureRequestPayload, error) - SignDocument(ctx context.Context, input types.SignDocumentInput) (*types.SignDocumentPayload, error) - ExportDocumentVersionPDF(ctx context.Context, input types.ExportDocumentVersionPDFInput) (*types.ExportDocumentVersionPDFPayload, error) - ExportSignableVersionDocumentPDF(ctx context.Context, input types.ExportSignableDocumentVersionPDFInput) (*types.ExportSignableDocumentVersionPDFPayload, error) - ExportProcessingActivitiesPDF(ctx context.Context, input types.ExportProcessingActivitiesPDFInput) (*types.ExportProcessingActivitiesPDFPayload, error) - ExportDataProtectionImpactAssessmentsPDF(ctx context.Context, input types.ExportDataProtectionImpactAssessmentsPDFInput) (*types.ExportDataProtectionImpactAssessmentsPDFPayload, error) - ExportTransferImpactAssessmentsPDF(ctx context.Context, input types.ExportTransferImpactAssessmentsPDFInput) (*types.ExportTransferImpactAssessmentsPDFPayload, error) - CreateVendorRiskAssessment(ctx context.Context, input types.CreateVendorRiskAssessmentInput) (*types.CreateVendorRiskAssessmentPayload, error) - AssessVendor(ctx context.Context, input types.AssessVendorInput) (*types.AssessVendorPayload, error) - CreateAsset(ctx context.Context, input types.CreateAssetInput) (*types.CreateAssetPayload, error) - UpdateAsset(ctx context.Context, input types.UpdateAssetInput) (*types.UpdateAssetPayload, error) - DeleteAsset(ctx context.Context, input types.DeleteAssetInput) (*types.DeleteAssetPayload, error) - CreateDatum(ctx context.Context, input types.CreateDatumInput) (*types.CreateDatumPayload, error) - UpdateDatum(ctx context.Context, input types.UpdateDatumInput) (*types.UpdateDatumPayload, error) - DeleteDatum(ctx context.Context, input types.DeleteDatumInput) (*types.DeleteDatumPayload, error) - CreateAudit(ctx context.Context, input types.CreateAuditInput) (*types.CreateAuditPayload, error) - UpdateAudit(ctx context.Context, input types.UpdateAuditInput) (*types.UpdateAuditPayload, error) - DeleteAudit(ctx context.Context, input types.DeleteAuditInput) (*types.DeleteAuditPayload, error) - UploadAuditReport(ctx context.Context, input types.UploadAuditReportInput) (*types.UploadAuditReportPayload, error) - DeleteAuditReport(ctx context.Context, input types.DeleteAuditReportInput) (*types.DeleteAuditReportPayload, error) - CreateNonconformity(ctx context.Context, input types.CreateNonconformityInput) (*types.CreateNonconformityPayload, error) - UpdateNonconformity(ctx context.Context, input types.UpdateNonconformityInput) (*types.UpdateNonconformityPayload, error) - DeleteNonconformity(ctx context.Context, input types.DeleteNonconformityInput) (*types.DeleteNonconformityPayload, error) - CreateObligation(ctx context.Context, input types.CreateObligationInput) (*types.CreateObligationPayload, error) - UpdateObligation(ctx context.Context, input types.UpdateObligationInput) (*types.UpdateObligationPayload, error) - DeleteObligation(ctx context.Context, input types.DeleteObligationInput) (*types.DeleteObligationPayload, error) - CreateContinualImprovement(ctx context.Context, input types.CreateContinualImprovementInput) (*types.CreateContinualImprovementPayload, error) - UpdateContinualImprovement(ctx context.Context, input types.UpdateContinualImprovementInput) (*types.UpdateContinualImprovementPayload, error) - DeleteContinualImprovement(ctx context.Context, input types.DeleteContinualImprovementInput) (*types.DeleteContinualImprovementPayload, error) - CreateRightsRequest(ctx context.Context, input types.CreateRightsRequestInput) (*types.CreateRightsRequestPayload, error) - UpdateRightsRequest(ctx context.Context, input types.UpdateRightsRequestInput) (*types.UpdateRightsRequestPayload, error) - DeleteRightsRequest(ctx context.Context, input types.DeleteRightsRequestInput) (*types.DeleteRightsRequestPayload, error) - CreateProcessingActivity(ctx context.Context, input types.CreateProcessingActivityInput) (*types.CreateProcessingActivityPayload, error) - UpdateProcessingActivity(ctx context.Context, input types.UpdateProcessingActivityInput) (*types.UpdateProcessingActivityPayload, error) - DeleteProcessingActivity(ctx context.Context, input types.DeleteProcessingActivityInput) (*types.DeleteProcessingActivityPayload, error) - CreateDataProtectionImpactAssessment(ctx context.Context, input types.CreateDataProtectionImpactAssessmentInput) (*types.CreateDataProtectionImpactAssessmentPayload, error) - UpdateDataProtectionImpactAssessment(ctx context.Context, input types.UpdateDataProtectionImpactAssessmentInput) (*types.UpdateDataProtectionImpactAssessmentPayload, error) - DeleteDataProtectionImpactAssessment(ctx context.Context, input types.DeleteDataProtectionImpactAssessmentInput) (*types.DeleteDataProtectionImpactAssessmentPayload, error) - CreateTransferImpactAssessment(ctx context.Context, input types.CreateTransferImpactAssessmentInput) (*types.CreateTransferImpactAssessmentPayload, error) - UpdateTransferImpactAssessment(ctx context.Context, input types.UpdateTransferImpactAssessmentInput) (*types.UpdateTransferImpactAssessmentPayload, error) - DeleteTransferImpactAssessment(ctx context.Context, input types.DeleteTransferImpactAssessmentInput) (*types.DeleteTransferImpactAssessmentPayload, error) - CreateSnapshot(ctx context.Context, input types.CreateSnapshotInput) (*types.CreateSnapshotPayload, error) - DeleteSnapshot(ctx context.Context, input types.DeleteSnapshotInput) (*types.DeleteSnapshotPayload, error) - CreateCustomDomain(ctx context.Context, input types.CreateCustomDomainInput) (*types.CreateCustomDomainPayload, error) - DeleteCustomDomain(ctx context.Context, input types.DeleteCustomDomainInput) (*types.DeleteCustomDomainPayload, error) -} -type NonconformityResolver interface { - Organization(ctx context.Context, obj *types.Nonconformity) (*types.Organization, error) - - Audit(ctx context.Context, obj *types.Nonconformity) (*types.Audit, error) - - Owner(ctx context.Context, obj *types.Nonconformity) (*types.Profile, error) - - Permission(ctx context.Context, obj *types.Nonconformity, action string) (bool, error) -} -type NonconformityConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.NonconformityConnection) (int, error) -} -type ObligationResolver interface { - Organization(ctx context.Context, obj *types.Obligation) (*types.Organization, error) - - Owner(ctx context.Context, obj *types.Obligation) (*types.Profile, error) - - Permission(ctx context.Context, obj *types.Obligation, action string) (bool, error) -} -type ObligationConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.ObligationConnection) (int, error) -} -type OrganizationResolver interface { - LogoURL(ctx context.Context, obj *types.Organization) (*string, error) - HorizontalLogoURL(ctx context.Context, obj *types.Organization) (*string, error) - - Context(ctx context.Context, obj *types.Organization) (*types.OrganizationContext, error) - Profiles(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy, filter *types.ProfileFilter) (*types.ProfileConnection, error) - SlackConnections(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.SlackConnectionConnection, error) - Frameworks(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.FrameworkOrderBy) (*types.FrameworkConnection, error) - Controls(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error) - Vendors(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy, filter *types.VendorFilter) (*types.VendorConnection, error) - Documents(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) (*types.DocumentConnection, error) - Meetings(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeetingOrderBy) (*types.MeetingConnection, error) - StatesOfApplicability(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.StateOfApplicabilityOrderBy, filter *types.StateOfApplicabilityFilter) (*types.StateOfApplicabilityConnection, error) - Measures(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) (*types.MeasureConnection, error) - Risks(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RiskOrderBy, filter *types.RiskFilter) (*types.RiskConnection, error) - Tasks(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TaskOrderBy) (*types.TaskConnection, error) - Assets(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AssetOrderBy, filter *types.AssetFilter) (*types.AssetConnection, error) - Data(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DatumOrderBy, filter *types.DatumFilter) (*types.DatumConnection, error) - Audits(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.AuditOrderBy) (*types.AuditConnection, error) - Nonconformities(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.NonconformityOrderBy, filter *types.NonconformityFilter) (*types.NonconformityConnection, error) - Obligations(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ObligationOrderBy, filter *types.ObligationFilter) (*types.ObligationConnection, error) - ContinualImprovements(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ContinualImprovementOrderBy, filter *types.ContinualImprovementFilter) (*types.ContinualImprovementConnection, error) - RightsRequests(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.RightsRequestOrderBy) (*types.RightsRequestConnection, error) - ProcessingActivities(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProcessingActivityOrderBy, filter *types.ProcessingActivityFilter) (*types.ProcessingActivityConnection, error) - DataProtectionImpactAssessments(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DataProtectionImpactAssessmentOrderBy, filter *types.DataProtectionImpactAssessmentFilter) (*types.DataProtectionImpactAssessmentConnection, error) - TransferImpactAssessments(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.TransferImpactAssessmentOrderBy, filter *types.TransferImpactAssessmentFilter) (*types.TransferImpactAssessmentConnection, error) - Snapshots(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SnapshotOrderBy) (*types.SnapshotConnection, error) - TrustCenterFiles(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.TrustCenterFileOrderField]) (*types.TrustCenterFileConnection, error) - TrustCenter(ctx context.Context, obj *types.Organization) (*types.TrustCenter, error) - CustomDomain(ctx context.Context, obj *types.Organization) (*types.CustomDomain, error) - WebhookSubscriptions(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.WebhookSubscriptionOrderBy) (*types.WebhookSubscriptionConnection, error) - - Permission(ctx context.Context, obj *types.Organization, action string) (bool, error) -} -type ProcessingActivityResolver interface { - Organization(ctx context.Context, obj *types.ProcessingActivity) (*types.Organization, error) - - DataProtectionOfficer(ctx context.Context, obj *types.ProcessingActivity) (*types.Profile, error) - Vendors(ctx context.Context, obj *types.ProcessingActivity, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorOrderBy) (*types.VendorConnection, error) - DataProtectionImpactAssessment(ctx context.Context, obj *types.ProcessingActivity) (*types.DataProtectionImpactAssessment, error) - TransferImpactAssessment(ctx context.Context, obj *types.ProcessingActivity) (*types.TransferImpactAssessment, error) - - Permission(ctx context.Context, obj *types.ProcessingActivity, action string) (bool, error) -} -type ProcessingActivityConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.ProcessingActivityConnection) (int, error) -} -type ProfileResolver interface { - Permission(ctx context.Context, obj *types.Profile, action string) (bool, error) -} -type ProfileConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.ProfileConnection) (int, error) -} -type QueryResolver interface { - Node(ctx context.Context, id gid.GID) (types.Node, error) - Viewer(ctx context.Context) (*types.Viewer, error) -} -type ReportResolver interface { - DownloadURL(ctx context.Context, obj *types.Report) (*string, error) - - Audit(ctx context.Context, obj *types.Report) (*types.Audit, error) - Permission(ctx context.Context, obj *types.Report, action string) (bool, error) -} -type RightsRequestResolver interface { - Organization(ctx context.Context, obj *types.RightsRequest) (*types.Organization, error) - - Permission(ctx context.Context, obj *types.RightsRequest, action string) (bool, error) -} -type RightsRequestConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.RightsRequestConnection) (int, error) -} -type RiskResolver interface { - Owner(ctx context.Context, obj *types.Risk) (*types.Profile, error) - Organization(ctx context.Context, obj *types.Risk) (*types.Organization, error) - Measures(ctx context.Context, obj *types.Risk, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.MeasureOrderBy, filter *types.MeasureFilter) (*types.MeasureConnection, error) - Documents(ctx context.Context, obj *types.Risk, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy, filter *types.DocumentFilter) (*types.DocumentConnection, error) - Controls(ctx context.Context, obj *types.Risk, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error) - Obligations(ctx context.Context, obj *types.Risk, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ObligationOrderBy, filter *types.ObligationFilter) (*types.ObligationConnection, error) - - Permission(ctx context.Context, obj *types.Risk, action string) (bool, error) -} -type RiskConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.RiskConnection) (int, error) -} -type SignableDocumentResolver interface { - Signed(ctx context.Context, obj *types.SignableDocument) (bool, error) - Versions(ctx context.Context, obj *types.SignableDocument, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentVersionOrderBy, filter *types.DocumentVersionFilter) (*types.DocumentVersionConnection, error) -} -type SnapshotResolver interface { - Organization(ctx context.Context, obj *types.Snapshot) (*types.Organization, error) - - Controls(ctx context.Context, obj *types.Snapshot, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ControlOrderBy, filter *types.ControlFilter) (*types.ControlConnection, error) - - Permission(ctx context.Context, obj *types.Snapshot, action string) (bool, error) -} -type SnapshotConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.SnapshotConnection) (int, error) -} -type StateOfApplicabilityResolver interface { - Organization(ctx context.Context, obj *types.StateOfApplicability) (*types.Organization, error) - Owner(ctx context.Context, obj *types.StateOfApplicability) (*types.Profile, error) - - ApplicabilityStatements(ctx context.Context, obj *types.StateOfApplicability, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ApplicabilityStatementOrderBy) (*types.ApplicabilityStatementConnection, error) - Permission(ctx context.Context, obj *types.StateOfApplicability, action string) (bool, error) -} -type StateOfApplicabilityConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.StateOfApplicabilityConnection) (int, error) -} -type TaskResolver interface { - AssignedTo(ctx context.Context, obj *types.Task) (*types.Profile, error) - Organization(ctx context.Context, obj *types.Task) (*types.Organization, error) - Measure(ctx context.Context, obj *types.Task) (*types.Measure, error) - Evidences(ctx context.Context, obj *types.Task, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.EvidenceOrderBy) (*types.EvidenceConnection, error) - - Permission(ctx context.Context, obj *types.Task, action string) (bool, error) -} -type TaskConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.TaskConnection) (int, error) -} -type TransferImpactAssessmentResolver interface { - ProcessingActivity(ctx context.Context, obj *types.TransferImpactAssessment) (*types.ProcessingActivity, error) - Organization(ctx context.Context, obj *types.TransferImpactAssessment) (*types.Organization, error) - - Permission(ctx context.Context, obj *types.TransferImpactAssessment, action string) (bool, error) -} -type TransferImpactAssessmentConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.TransferImpactAssessmentConnection) (int, error) -} -type TrustCenterResolver interface { - LogoFileURL(ctx context.Context, obj *types.TrustCenter) (*string, error) - DarkLogoFileURL(ctx context.Context, obj *types.TrustCenter) (*string, error) - - NdaFileURL(ctx context.Context, obj *types.TrustCenter) (*string, error) - - Organization(ctx context.Context, obj *types.TrustCenter) (*types.Organization, error) - Accesses(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.TrustCenterAccessOrderField]) (*types.TrustCenterAccessConnection, error) - References(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.TrustCenterReferenceOrderField]) (*types.TrustCenterReferenceConnection, error) - ComplianceFrameworks(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.ComplianceFrameworkOrderField]) (*types.ComplianceFrameworkConnection, error) - ExternalUrls(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.ComplianceExternalURLOrderField]) (*types.ComplianceExternalURLConnection, error) - MailingList(ctx context.Context, obj *types.TrustCenter) (*types.MailingList, error) - Permission(ctx context.Context, obj *types.TrustCenter, action string) (bool, error) -} -type TrustCenterAccessResolver interface { - NdaSignature(ctx context.Context, obj *types.TrustCenterAccess) (*types.ElectronicSignature, error) - - PendingRequestCount(ctx context.Context, obj *types.TrustCenterAccess) (int, error) - ActiveCount(ctx context.Context, obj *types.TrustCenterAccess) (int, error) - - Profile(ctx context.Context, obj *types.TrustCenterAccess) (*types.Profile, error) - AvailableDocumentAccesses(ctx context.Context, obj *types.TrustCenterAccess, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.OrderBy[coredata.TrustCenterDocumentAccessOrderField]) (*types.TrustCenterDocumentAccessConnection, error) - Permission(ctx context.Context, obj *types.TrustCenterAccess, action string) (bool, error) -} -type TrustCenterDocumentAccessResolver interface { - Document(ctx context.Context, obj *types.TrustCenterDocumentAccess) (*types.Document, error) - Report(ctx context.Context, obj *types.TrustCenterDocumentAccess) (*types.Report, error) - TrustCenterFile(ctx context.Context, obj *types.TrustCenterDocumentAccess) (*types.TrustCenterFile, error) -} -type TrustCenterDocumentAccessConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.TrustCenterDocumentAccessConnection) (int, error) -} -type TrustCenterFileResolver interface { - FileURL(ctx context.Context, obj *types.TrustCenterFile) (string, error) - - Organization(ctx context.Context, obj *types.TrustCenterFile) (*types.Organization, error) - Permission(ctx context.Context, obj *types.TrustCenterFile, action string) (bool, error) -} -type TrustCenterFileConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.TrustCenterFileConnection) (int, error) -} -type TrustCenterReferenceResolver interface { - LogoURL(ctx context.Context, obj *types.TrustCenterReference) (string, error) - - Permission(ctx context.Context, obj *types.TrustCenterReference, action string) (bool, error) -} -type TrustCenterReferenceConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.TrustCenterReferenceConnection) (int, error) -} -type VendorResolver interface { - Organization(ctx context.Context, obj *types.Vendor) (*types.Organization, error) - ComplianceReports(ctx context.Context, obj *types.Vendor, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorComplianceReportOrderBy) (*types.VendorComplianceReportConnection, error) - BusinessAssociateAgreement(ctx context.Context, obj *types.Vendor) (*types.VendorBusinessAssociateAgreement, error) - DataPrivacyAgreement(ctx context.Context, obj *types.Vendor) (*types.VendorDataPrivacyAgreement, error) - Contacts(ctx context.Context, obj *types.Vendor, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorContactOrderBy) (*types.VendorContactConnection, error) - Services(ctx context.Context, obj *types.Vendor, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorServiceOrderBy) (*types.VendorServiceConnection, error) - RiskAssessments(ctx context.Context, obj *types.Vendor, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.VendorRiskAssessmentOrder) (*types.VendorRiskAssessmentConnection, error) - BusinessOwner(ctx context.Context, obj *types.Vendor) (*types.Profile, error) - SecurityOwner(ctx context.Context, obj *types.Vendor) (*types.Profile, error) - - Permission(ctx context.Context, obj *types.Vendor, action string) (bool, error) -} -type VendorBusinessAssociateAgreementResolver interface { - Vendor(ctx context.Context, obj *types.VendorBusinessAssociateAgreement) (*types.Vendor, error) - - FileURL(ctx context.Context, obj *types.VendorBusinessAssociateAgreement) (string, error) - - Permission(ctx context.Context, obj *types.VendorBusinessAssociateAgreement, action string) (bool, error) -} -type VendorComplianceReportResolver interface { - Vendor(ctx context.Context, obj *types.VendorComplianceReport) (*types.Vendor, error) - - File(ctx context.Context, obj *types.VendorComplianceReport) (*types.File, error) - - Permission(ctx context.Context, obj *types.VendorComplianceReport, action string) (bool, error) -} -type VendorConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.VendorConnection) (int, error) -} -type VendorContactResolver interface { - Vendor(ctx context.Context, obj *types.VendorContact) (*types.Vendor, error) - - Permission(ctx context.Context, obj *types.VendorContact, action string) (bool, error) -} -type VendorDataPrivacyAgreementResolver interface { - Vendor(ctx context.Context, obj *types.VendorDataPrivacyAgreement) (*types.Vendor, error) - - FileURL(ctx context.Context, obj *types.VendorDataPrivacyAgreement) (string, error) - - Permission(ctx context.Context, obj *types.VendorDataPrivacyAgreement, action string) (bool, error) -} -type VendorRiskAssessmentResolver interface { - Vendor(ctx context.Context, obj *types.VendorRiskAssessment) (*types.Vendor, error) - - Permission(ctx context.Context, obj *types.VendorRiskAssessment, action string) (bool, error) -} -type VendorServiceResolver interface { - Vendor(ctx context.Context, obj *types.VendorService) (*types.Vendor, error) - - Permission(ctx context.Context, obj *types.VendorService, action string) (bool, error) -} -type ViewerResolver interface { - SignableDocuments(ctx context.Context, obj *types.Viewer, organizationID gid.GID, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.DocumentOrderBy) (*types.SignableDocumentConnection, error) - SignableDocument(ctx context.Context, obj *types.Viewer, id gid.GID) (*types.SignableDocument, error) -} -type WebhookEventConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.WebhookEventConnection) (int, error) -} -type WebhookSubscriptionResolver interface { - Organization(ctx context.Context, obj *types.WebhookSubscription) (*types.Organization, error) - - SigningSecret(ctx context.Context, obj *types.WebhookSubscription) (string, error) - - Events(ctx context.Context, obj *types.WebhookSubscription, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.WebhookEventOrderBy) (*types.WebhookEventConnection, error) - Permission(ctx context.Context, obj *types.WebhookSubscription, action string) (bool, error) -} -type WebhookSubscriptionConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.WebhookSubscriptionConnection) (int, error) -} - -type executableSchema graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot] - -func (e *executableSchema) Schema() *ast.Schema { - if e.SchemaData != nil { - return e.SchemaData - } - return parsedSchema -} - -func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { - ec := newExecutionContext(nil, e, nil) - _ = ec - switch typeName + "." + field { - - case "ApplicabilityStatement.applicability": - if e.ComplexityRoot.ApplicabilityStatement.Applicability == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatement.Applicability(childComplexity), true - case "ApplicabilityStatement.control": - if e.ComplexityRoot.ApplicabilityStatement.Control == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatement.Control(childComplexity), true - case "ApplicabilityStatement.createdAt": - if e.ComplexityRoot.ApplicabilityStatement.CreatedAt == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatement.CreatedAt(childComplexity), true - case "ApplicabilityStatement.id": - if e.ComplexityRoot.ApplicabilityStatement.ID == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatement.ID(childComplexity), true - case "ApplicabilityStatement.justification": - if e.ComplexityRoot.ApplicabilityStatement.Justification == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatement.Justification(childComplexity), true - case "ApplicabilityStatement.permission": - if e.ComplexityRoot.ApplicabilityStatement.Permission == nil { - break - } - - args, err := ec.field_ApplicabilityStatement_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.ApplicabilityStatement.Permission(childComplexity, args["action"].(string)), true - case "ApplicabilityStatement.stateOfApplicability": - if e.ComplexityRoot.ApplicabilityStatement.StateOfApplicability == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatement.StateOfApplicability(childComplexity), true - case "ApplicabilityStatement.updatedAt": - if e.ComplexityRoot.ApplicabilityStatement.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatement.UpdatedAt(childComplexity), true - - case "ApplicabilityStatementConnection.edges": - if e.ComplexityRoot.ApplicabilityStatementConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatementConnection.Edges(childComplexity), true - case "ApplicabilityStatementConnection.pageInfo": - if e.ComplexityRoot.ApplicabilityStatementConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatementConnection.PageInfo(childComplexity), true - case "ApplicabilityStatementConnection.totalCount": - if e.ComplexityRoot.ApplicabilityStatementConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatementConnection.TotalCount(childComplexity), true - - case "ApplicabilityStatementEdge.cursor": - if e.ComplexityRoot.ApplicabilityStatementEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatementEdge.Cursor(childComplexity), true - case "ApplicabilityStatementEdge.node": - if e.ComplexityRoot.ApplicabilityStatementEdge.Node == nil { - break - } - - return e.ComplexityRoot.ApplicabilityStatementEdge.Node(childComplexity), true - - case "AssessVendorPayload.vendor": - if e.ComplexityRoot.AssessVendorPayload.Vendor == nil { - break - } - - return e.ComplexityRoot.AssessVendorPayload.Vendor(childComplexity), true - - case "Asset.amount": - if e.ComplexityRoot.Asset.Amount == nil { - break - } - - return e.ComplexityRoot.Asset.Amount(childComplexity), true - case "Asset.assetType": - if e.ComplexityRoot.Asset.AssetType == nil { - break - } - - return e.ComplexityRoot.Asset.AssetType(childComplexity), true - case "Asset.createdAt": - if e.ComplexityRoot.Asset.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Asset.CreatedAt(childComplexity), true - case "Asset.dataTypesStored": - if e.ComplexityRoot.Asset.DataTypesStored == nil { - break - } - - return e.ComplexityRoot.Asset.DataTypesStored(childComplexity), true - case "Asset.id": - if e.ComplexityRoot.Asset.ID == nil { - break - } - - return e.ComplexityRoot.Asset.ID(childComplexity), true - case "Asset.name": - if e.ComplexityRoot.Asset.Name == nil { - break - } - - return e.ComplexityRoot.Asset.Name(childComplexity), true - case "Asset.organization": - if e.ComplexityRoot.Asset.Organization == nil { - break - } - - return e.ComplexityRoot.Asset.Organization(childComplexity), true - case "Asset.owner": - if e.ComplexityRoot.Asset.Owner == nil { - break - } - - return e.ComplexityRoot.Asset.Owner(childComplexity), true - case "Asset.permission": - if e.ComplexityRoot.Asset.Permission == nil { - break - } - - args, err := ec.field_Asset_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Asset.Permission(childComplexity, args["action"].(string)), true - case "Asset.snapshotId": - if e.ComplexityRoot.Asset.SnapshotID == nil { - break - } - - return e.ComplexityRoot.Asset.SnapshotID(childComplexity), true - case "Asset.updatedAt": - if e.ComplexityRoot.Asset.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Asset.UpdatedAt(childComplexity), true - case "Asset.vendors": - if e.ComplexityRoot.Asset.Vendors == nil { - break - } - - args, err := ec.field_Asset_vendors_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Asset.Vendors(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorOrderBy)), true - - case "AssetConnection.edges": - if e.ComplexityRoot.AssetConnection.Edges == nil { - break - } - - return e.ComplexityRoot.AssetConnection.Edges(childComplexity), true - case "AssetConnection.pageInfo": - if e.ComplexityRoot.AssetConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.AssetConnection.PageInfo(childComplexity), true - case "AssetConnection.totalCount": - if e.ComplexityRoot.AssetConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.AssetConnection.TotalCount(childComplexity), true - - case "AssetEdge.cursor": - if e.ComplexityRoot.AssetEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.AssetEdge.Cursor(childComplexity), true - case "AssetEdge.node": - if e.ComplexityRoot.AssetEdge.Node == nil { - break - } - - return e.ComplexityRoot.AssetEdge.Node(childComplexity), true - - case "Audit.controls": - if e.ComplexityRoot.Audit.Controls == nil { - break - } - - args, err := ec.field_Audit_controls_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Audit.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true - case "Audit.createdAt": - if e.ComplexityRoot.Audit.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Audit.CreatedAt(childComplexity), true - case "Audit.framework": - if e.ComplexityRoot.Audit.Framework == nil { - break - } - - return e.ComplexityRoot.Audit.Framework(childComplexity), true - case "Audit.id": - if e.ComplexityRoot.Audit.ID == nil { - break - } - - return e.ComplexityRoot.Audit.ID(childComplexity), true - case "Audit.name": - if e.ComplexityRoot.Audit.Name == nil { - break - } - - return e.ComplexityRoot.Audit.Name(childComplexity), true - case "Audit.organization": - if e.ComplexityRoot.Audit.Organization == nil { - break - } - - return e.ComplexityRoot.Audit.Organization(childComplexity), true - case "Audit.permission": - if e.ComplexityRoot.Audit.Permission == nil { - break - } - - args, err := ec.field_Audit_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Audit.Permission(childComplexity, args["action"].(string)), true - case "Audit.report": - if e.ComplexityRoot.Audit.Report == nil { - break - } - - return e.ComplexityRoot.Audit.Report(childComplexity), true - case "Audit.reportUrl": - if e.ComplexityRoot.Audit.ReportURL == nil { - break - } - - return e.ComplexityRoot.Audit.ReportURL(childComplexity), true - case "Audit.state": - if e.ComplexityRoot.Audit.State == nil { - break - } - - return e.ComplexityRoot.Audit.State(childComplexity), true - case "Audit.trustCenterVisibility": - if e.ComplexityRoot.Audit.TrustCenterVisibility == nil { - break - } - - return e.ComplexityRoot.Audit.TrustCenterVisibility(childComplexity), true - case "Audit.updatedAt": - if e.ComplexityRoot.Audit.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Audit.UpdatedAt(childComplexity), true - case "Audit.validFrom": - if e.ComplexityRoot.Audit.ValidFrom == nil { - break - } - - return e.ComplexityRoot.Audit.ValidFrom(childComplexity), true - case "Audit.validUntil": - if e.ComplexityRoot.Audit.ValidUntil == nil { - break - } - - return e.ComplexityRoot.Audit.ValidUntil(childComplexity), true - - case "AuditConnection.edges": - if e.ComplexityRoot.AuditConnection.Edges == nil { - break - } - - return e.ComplexityRoot.AuditConnection.Edges(childComplexity), true - case "AuditConnection.pageInfo": - if e.ComplexityRoot.AuditConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.AuditConnection.PageInfo(childComplexity), true - case "AuditConnection.totalCount": - if e.ComplexityRoot.AuditConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.AuditConnection.TotalCount(childComplexity), true - - case "AuditEdge.cursor": - if e.ComplexityRoot.AuditEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.AuditEdge.Cursor(childComplexity), true - case "AuditEdge.node": - if e.ComplexityRoot.AuditEdge.Node == nil { - break - } - - return e.ComplexityRoot.AuditEdge.Node(childComplexity), true - - case "BulkDeleteDocumentsPayload.deletedDocumentIds": - if e.ComplexityRoot.BulkDeleteDocumentsPayload.DeletedDocumentIds == nil { - break - } - - return e.ComplexityRoot.BulkDeleteDocumentsPayload.DeletedDocumentIds(childComplexity), true - - case "BulkExportDocumentsPayload.exportJobId": - if e.ComplexityRoot.BulkExportDocumentsPayload.ExportJobID == nil { - break - } - - return e.ComplexityRoot.BulkExportDocumentsPayload.ExportJobID(childComplexity), true - - case "BulkPublishDocumentVersionsPayload.documentEdges": - if e.ComplexityRoot.BulkPublishDocumentVersionsPayload.DocumentEdges == nil { - break - } - - return e.ComplexityRoot.BulkPublishDocumentVersionsPayload.DocumentEdges(childComplexity), true - case "BulkPublishDocumentVersionsPayload.documentVersionEdges": - if e.ComplexityRoot.BulkPublishDocumentVersionsPayload.DocumentVersionEdges == nil { - break - } - - return e.ComplexityRoot.BulkPublishDocumentVersionsPayload.DocumentVersionEdges(childComplexity), true - - case "BulkRequestSignaturesPayload.documentVersionSignatureEdges": - if e.ComplexityRoot.BulkRequestSignaturesPayload.DocumentVersionSignatureEdges == nil { - break - } - - return e.ComplexityRoot.BulkRequestSignaturesPayload.DocumentVersionSignatureEdges(childComplexity), true - - case "CancelSignatureRequestPayload.deletedDocumentVersionSignatureId": - if e.ComplexityRoot.CancelSignatureRequestPayload.DeletedDocumentVersionSignatureID == nil { - break - } - - return e.ComplexityRoot.CancelSignatureRequestPayload.DeletedDocumentVersionSignatureID(childComplexity), true - - case "ComplianceExternalURL.createdAt": - if e.ComplexityRoot.ComplianceExternalURL.CreatedAt == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURL.CreatedAt(childComplexity), true - case "ComplianceExternalURL.id": - if e.ComplexityRoot.ComplianceExternalURL.ID == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURL.ID(childComplexity), true - case "ComplianceExternalURL.name": - if e.ComplexityRoot.ComplianceExternalURL.Name == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURL.Name(childComplexity), true - case "ComplianceExternalURL.permission": - if e.ComplexityRoot.ComplianceExternalURL.Permission == nil { - break - } - - args, err := ec.field_ComplianceExternalURL_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.ComplianceExternalURL.Permission(childComplexity, args["action"].(string)), true - case "ComplianceExternalURL.rank": - if e.ComplexityRoot.ComplianceExternalURL.Rank == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURL.Rank(childComplexity), true - case "ComplianceExternalURL.url": - if e.ComplexityRoot.ComplianceExternalURL.URL == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURL.URL(childComplexity), true - case "ComplianceExternalURL.updatedAt": - if e.ComplexityRoot.ComplianceExternalURL.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURL.UpdatedAt(childComplexity), true - - case "ComplianceExternalURLConnection.edges": - if e.ComplexityRoot.ComplianceExternalURLConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURLConnection.Edges(childComplexity), true - case "ComplianceExternalURLConnection.pageInfo": - if e.ComplexityRoot.ComplianceExternalURLConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURLConnection.PageInfo(childComplexity), true - - case "ComplianceExternalURLEdge.cursor": - if e.ComplexityRoot.ComplianceExternalURLEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURLEdge.Cursor(childComplexity), true - case "ComplianceExternalURLEdge.node": - if e.ComplexityRoot.ComplianceExternalURLEdge.Node == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURLEdge.Node(childComplexity), true - - case "ComplianceFramework.createdAt": - if e.ComplexityRoot.ComplianceFramework.CreatedAt == nil { - break - } - - return e.ComplexityRoot.ComplianceFramework.CreatedAt(childComplexity), true - case "ComplianceFramework.framework": - if e.ComplexityRoot.ComplianceFramework.Framework == nil { - break - } - - return e.ComplexityRoot.ComplianceFramework.Framework(childComplexity), true - case "ComplianceFramework.id": - if e.ComplexityRoot.ComplianceFramework.ID == nil { - break - } - - return e.ComplexityRoot.ComplianceFramework.ID(childComplexity), true - case "ComplianceFramework.rank": - if e.ComplexityRoot.ComplianceFramework.Rank == nil { - break - } - - return e.ComplexityRoot.ComplianceFramework.Rank(childComplexity), true - case "ComplianceFramework.updatedAt": - if e.ComplexityRoot.ComplianceFramework.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.ComplianceFramework.UpdatedAt(childComplexity), true - case "ComplianceFramework.visibility": - if e.ComplexityRoot.ComplianceFramework.Visibility == nil { - break - } - - return e.ComplexityRoot.ComplianceFramework.Visibility(childComplexity), true - - case "ComplianceFrameworkConnection.edges": - if e.ComplexityRoot.ComplianceFrameworkConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ComplianceFrameworkConnection.Edges(childComplexity), true - case "ComplianceFrameworkConnection.pageInfo": - if e.ComplexityRoot.ComplianceFrameworkConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ComplianceFrameworkConnection.PageInfo(childComplexity), true - - case "ComplianceFrameworkEdge.cursor": - if e.ComplexityRoot.ComplianceFrameworkEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ComplianceFrameworkEdge.Cursor(childComplexity), true - case "ComplianceFrameworkEdge.node": - if e.ComplexityRoot.ComplianceFrameworkEdge.Node == nil { - break - } - - return e.ComplexityRoot.ComplianceFrameworkEdge.Node(childComplexity), true - - case "ContinualImprovement.createdAt": - if e.ComplexityRoot.ContinualImprovement.CreatedAt == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.CreatedAt(childComplexity), true - case "ContinualImprovement.description": - if e.ComplexityRoot.ContinualImprovement.Description == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.Description(childComplexity), true - case "ContinualImprovement.id": - if e.ComplexityRoot.ContinualImprovement.ID == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.ID(childComplexity), true - case "ContinualImprovement.organization": - if e.ComplexityRoot.ContinualImprovement.Organization == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.Organization(childComplexity), true - case "ContinualImprovement.owner": - if e.ComplexityRoot.ContinualImprovement.Owner == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.Owner(childComplexity), true - case "ContinualImprovement.permission": - if e.ComplexityRoot.ContinualImprovement.Permission == nil { - break - } - - args, err := ec.field_ContinualImprovement_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.ContinualImprovement.Permission(childComplexity, args["action"].(string)), true - case "ContinualImprovement.priority": - if e.ComplexityRoot.ContinualImprovement.Priority == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.Priority(childComplexity), true - case "ContinualImprovement.referenceId": - if e.ComplexityRoot.ContinualImprovement.ReferenceID == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.ReferenceID(childComplexity), true - case "ContinualImprovement.snapshotId": - if e.ComplexityRoot.ContinualImprovement.SnapshotID == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.SnapshotID(childComplexity), true - case "ContinualImprovement.source": - if e.ComplexityRoot.ContinualImprovement.Source == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.Source(childComplexity), true - case "ContinualImprovement.sourceId": - if e.ComplexityRoot.ContinualImprovement.SourceID == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.SourceID(childComplexity), true - case "ContinualImprovement.status": - if e.ComplexityRoot.ContinualImprovement.Status == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.Status(childComplexity), true - case "ContinualImprovement.targetDate": - if e.ComplexityRoot.ContinualImprovement.TargetDate == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.TargetDate(childComplexity), true - case "ContinualImprovement.updatedAt": - if e.ComplexityRoot.ContinualImprovement.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.ContinualImprovement.UpdatedAt(childComplexity), true - - case "ContinualImprovementConnection.edges": - if e.ComplexityRoot.ContinualImprovementConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ContinualImprovementConnection.Edges(childComplexity), true - case "ContinualImprovementConnection.pageInfo": - if e.ComplexityRoot.ContinualImprovementConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ContinualImprovementConnection.PageInfo(childComplexity), true - case "ContinualImprovementConnection.totalCount": - if e.ComplexityRoot.ContinualImprovementConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.ContinualImprovementConnection.TotalCount(childComplexity), true - - case "ContinualImprovementEdge.cursor": - if e.ComplexityRoot.ContinualImprovementEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ContinualImprovementEdge.Cursor(childComplexity), true - case "ContinualImprovementEdge.node": - if e.ComplexityRoot.ContinualImprovementEdge.Node == nil { - break - } - - return e.ComplexityRoot.ContinualImprovementEdge.Node(childComplexity), true - - case "Control.audits": - if e.ComplexityRoot.Control.Audits == nil { - break - } - - args, err := ec.field_Control_audits_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Control.Audits(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.AuditOrderBy)), true - case "Control.bestPractice": - if e.ComplexityRoot.Control.BestPractice == nil { - break - } - - return e.ComplexityRoot.Control.BestPractice(childComplexity), true - case "Control.contractual": - if e.ComplexityRoot.Control.Contractual == nil { - break - } - - return e.ComplexityRoot.Control.Contractual(childComplexity), true - case "Control.createdAt": - if e.ComplexityRoot.Control.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Control.CreatedAt(childComplexity), true - case "Control.description": - if e.ComplexityRoot.Control.Description == nil { - break - } - - return e.ComplexityRoot.Control.Description(childComplexity), true - case "Control.documents": - if e.ComplexityRoot.Control.Documents == nil { - break - } - - args, err := ec.field_Control_documents_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Control.Documents(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentOrderBy), args["filter"].(*types.DocumentFilter)), true - case "Control.framework": - if e.ComplexityRoot.Control.Framework == nil { - break - } - - return e.ComplexityRoot.Control.Framework(childComplexity), true - case "Control.id": - if e.ComplexityRoot.Control.ID == nil { - break - } - - return e.ComplexityRoot.Control.ID(childComplexity), true - case "Control.measures": - if e.ComplexityRoot.Control.Measures == nil { - break - } - - args, err := ec.field_Control_measures_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Control.Measures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.MeasureOrderBy), args["filter"].(*types.MeasureFilter)), true - case "Control.name": - if e.ComplexityRoot.Control.Name == nil { - break - } - - return e.ComplexityRoot.Control.Name(childComplexity), true - case "Control.obligations": - if e.ComplexityRoot.Control.Obligations == nil { - break - } - - args, err := ec.field_Control_obligations_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Control.Obligations(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ObligationOrderBy), args["filter"].(*types.ObligationFilter)), true - case "Control.organization": - if e.ComplexityRoot.Control.Organization == nil { - break - } - - return e.ComplexityRoot.Control.Organization(childComplexity), true - case "Control.permission": - if e.ComplexityRoot.Control.Permission == nil { - break - } - - args, err := ec.field_Control_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Control.Permission(childComplexity, args["action"].(string)), true - case "Control.regulatory": - if e.ComplexityRoot.Control.Regulatory == nil { - break - } - - return e.ComplexityRoot.Control.Regulatory(childComplexity), true - case "Control.riskAssessment": - if e.ComplexityRoot.Control.RiskAssessment == nil { - break - } - - return e.ComplexityRoot.Control.RiskAssessment(childComplexity), true - case "Control.sectionTitle": - if e.ComplexityRoot.Control.SectionTitle == nil { - break - } - - return e.ComplexityRoot.Control.SectionTitle(childComplexity), true - case "Control.snapshots": - if e.ComplexityRoot.Control.Snapshots == nil { - break - } - - args, err := ec.field_Control_snapshots_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Control.Snapshots(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.SnapshotOrderBy)), true - case "Control.updatedAt": - if e.ComplexityRoot.Control.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Control.UpdatedAt(childComplexity), true - - case "ControlConnection.edges": - if e.ComplexityRoot.ControlConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ControlConnection.Edges(childComplexity), true - case "ControlConnection.pageInfo": - if e.ComplexityRoot.ControlConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ControlConnection.PageInfo(childComplexity), true - case "ControlConnection.totalCount": - if e.ComplexityRoot.ControlConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.ControlConnection.TotalCount(childComplexity), true - - case "ControlEdge.cursor": - if e.ComplexityRoot.ControlEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ControlEdge.Cursor(childComplexity), true - case "ControlEdge.node": - if e.ComplexityRoot.ControlEdge.Node == nil { - break - } - - return e.ComplexityRoot.ControlEdge.Node(childComplexity), true - - case "CreateApplicabilityStatementPayload.applicabilityStatementEdge": - if e.ComplexityRoot.CreateApplicabilityStatementPayload.ApplicabilityStatementEdge == nil { - break - } - - return e.ComplexityRoot.CreateApplicabilityStatementPayload.ApplicabilityStatementEdge(childComplexity), true - - case "CreateAssetPayload.assetEdge": - if e.ComplexityRoot.CreateAssetPayload.AssetEdge == nil { - break - } - - return e.ComplexityRoot.CreateAssetPayload.AssetEdge(childComplexity), true - - case "CreateAuditPayload.auditEdge": - if e.ComplexityRoot.CreateAuditPayload.AuditEdge == nil { - break - } - - return e.ComplexityRoot.CreateAuditPayload.AuditEdge(childComplexity), true - - case "CreateComplianceExternalURLPayload.complianceExternalUrlEdge": - if e.ComplexityRoot.CreateComplianceExternalURLPayload.ComplianceExternalURLEdge == nil { - break - } - - return e.ComplexityRoot.CreateComplianceExternalURLPayload.ComplianceExternalURLEdge(childComplexity), true - - case "CreateComplianceFrameworkPayload.complianceFrameworkEdge": - if e.ComplexityRoot.CreateComplianceFrameworkPayload.ComplianceFrameworkEdge == nil { - break - } - - return e.ComplexityRoot.CreateComplianceFrameworkPayload.ComplianceFrameworkEdge(childComplexity), true - - case "CreateContinualImprovementPayload.continualImprovementEdge": - if e.ComplexityRoot.CreateContinualImprovementPayload.ContinualImprovementEdge == nil { - break - } - - return e.ComplexityRoot.CreateContinualImprovementPayload.ContinualImprovementEdge(childComplexity), true - - case "CreateControlAuditMappingPayload.auditEdge": - if e.ComplexityRoot.CreateControlAuditMappingPayload.AuditEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlAuditMappingPayload.AuditEdge(childComplexity), true - case "CreateControlAuditMappingPayload.controlEdge": - if e.ComplexityRoot.CreateControlAuditMappingPayload.ControlEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlAuditMappingPayload.ControlEdge(childComplexity), true - - case "CreateControlDocumentMappingPayload.controlEdge": - if e.ComplexityRoot.CreateControlDocumentMappingPayload.ControlEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlDocumentMappingPayload.ControlEdge(childComplexity), true - case "CreateControlDocumentMappingPayload.documentEdge": - if e.ComplexityRoot.CreateControlDocumentMappingPayload.DocumentEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlDocumentMappingPayload.DocumentEdge(childComplexity), true - - case "CreateControlMeasureMappingPayload.controlEdge": - if e.ComplexityRoot.CreateControlMeasureMappingPayload.ControlEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlMeasureMappingPayload.ControlEdge(childComplexity), true - case "CreateControlMeasureMappingPayload.measureEdge": - if e.ComplexityRoot.CreateControlMeasureMappingPayload.MeasureEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlMeasureMappingPayload.MeasureEdge(childComplexity), true - - case "CreateControlObligationMappingPayload.controlEdge": - if e.ComplexityRoot.CreateControlObligationMappingPayload.ControlEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlObligationMappingPayload.ControlEdge(childComplexity), true - case "CreateControlObligationMappingPayload.obligationEdge": - if e.ComplexityRoot.CreateControlObligationMappingPayload.ObligationEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlObligationMappingPayload.ObligationEdge(childComplexity), true - - case "CreateControlPayload.controlEdge": - if e.ComplexityRoot.CreateControlPayload.ControlEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlPayload.ControlEdge(childComplexity), true - - case "CreateControlSnapshotMappingPayload.controlEdge": - if e.ComplexityRoot.CreateControlSnapshotMappingPayload.ControlEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlSnapshotMappingPayload.ControlEdge(childComplexity), true - case "CreateControlSnapshotMappingPayload.snapshotEdge": - if e.ComplexityRoot.CreateControlSnapshotMappingPayload.SnapshotEdge == nil { - break - } - - return e.ComplexityRoot.CreateControlSnapshotMappingPayload.SnapshotEdge(childComplexity), true - - case "CreateCustomDomainPayload.customDomain": - if e.ComplexityRoot.CreateCustomDomainPayload.CustomDomain == nil { - break - } - - return e.ComplexityRoot.CreateCustomDomainPayload.CustomDomain(childComplexity), true - - case "CreateDataProtectionImpactAssessmentPayload.dataProtectionImpactAssessment": - if e.ComplexityRoot.CreateDataProtectionImpactAssessmentPayload.DataProtectionImpactAssessment == nil { - break - } - - return e.ComplexityRoot.CreateDataProtectionImpactAssessmentPayload.DataProtectionImpactAssessment(childComplexity), true - - case "CreateDatumPayload.datumEdge": - if e.ComplexityRoot.CreateDatumPayload.DatumEdge == nil { - break - } - - return e.ComplexityRoot.CreateDatumPayload.DatumEdge(childComplexity), true - - case "CreateDocumentPayload.documentEdge": - if e.ComplexityRoot.CreateDocumentPayload.DocumentEdge == nil { - break - } - - return e.ComplexityRoot.CreateDocumentPayload.DocumentEdge(childComplexity), true - case "CreateDocumentPayload.documentVersionEdge": - if e.ComplexityRoot.CreateDocumentPayload.DocumentVersionEdge == nil { - break - } - - return e.ComplexityRoot.CreateDocumentPayload.DocumentVersionEdge(childComplexity), true - - case "CreateDraftDocumentVersionPayload.documentVersionEdge": - if e.ComplexityRoot.CreateDraftDocumentVersionPayload.DocumentVersionEdge == nil { - break - } - - return e.ComplexityRoot.CreateDraftDocumentVersionPayload.DocumentVersionEdge(childComplexity), true - - case "CreateFrameworkPayload.frameworkEdge": - if e.ComplexityRoot.CreateFrameworkPayload.FrameworkEdge == nil { - break - } - - return e.ComplexityRoot.CreateFrameworkPayload.FrameworkEdge(childComplexity), true - - case "CreateMailingListSubscriberPayload.mailingListSubscriberEdge": - if e.ComplexityRoot.CreateMailingListSubscriberPayload.MailingListSubscriberEdge == nil { - break - } - - return e.ComplexityRoot.CreateMailingListSubscriberPayload.MailingListSubscriberEdge(childComplexity), true - - case "CreateMailingListUpdatePayload.mailingListUpdate": - if e.ComplexityRoot.CreateMailingListUpdatePayload.MailingListUpdate == nil { - break - } - - return e.ComplexityRoot.CreateMailingListUpdatePayload.MailingListUpdate(childComplexity), true - - case "CreateMeasurePayload.measureEdge": - if e.ComplexityRoot.CreateMeasurePayload.MeasureEdge == nil { - break - } - - return e.ComplexityRoot.CreateMeasurePayload.MeasureEdge(childComplexity), true - - case "CreateMeetingPayload.meetingEdge": - if e.ComplexityRoot.CreateMeetingPayload.MeetingEdge == nil { - break - } - - return e.ComplexityRoot.CreateMeetingPayload.MeetingEdge(childComplexity), true - - case "CreateNonconformityPayload.nonconformityEdge": - if e.ComplexityRoot.CreateNonconformityPayload.NonconformityEdge == nil { - break - } - - return e.ComplexityRoot.CreateNonconformityPayload.NonconformityEdge(childComplexity), true - - case "CreateObligationPayload.obligationEdge": - if e.ComplexityRoot.CreateObligationPayload.ObligationEdge == nil { - break - } - - return e.ComplexityRoot.CreateObligationPayload.ObligationEdge(childComplexity), true - - case "CreateProcessingActivityPayload.processingActivityEdge": - if e.ComplexityRoot.CreateProcessingActivityPayload.ProcessingActivityEdge == nil { - break - } - - return e.ComplexityRoot.CreateProcessingActivityPayload.ProcessingActivityEdge(childComplexity), true - - case "CreateRightsRequestPayload.rightsRequestEdge": - if e.ComplexityRoot.CreateRightsRequestPayload.RightsRequestEdge == nil { - break - } - - return e.ComplexityRoot.CreateRightsRequestPayload.RightsRequestEdge(childComplexity), true - - case "CreateRiskDocumentMappingPayload.documentEdge": - if e.ComplexityRoot.CreateRiskDocumentMappingPayload.DocumentEdge == nil { - break - } - - return e.ComplexityRoot.CreateRiskDocumentMappingPayload.DocumentEdge(childComplexity), true - case "CreateRiskDocumentMappingPayload.riskEdge": - if e.ComplexityRoot.CreateRiskDocumentMappingPayload.RiskEdge == nil { - break - } - - return e.ComplexityRoot.CreateRiskDocumentMappingPayload.RiskEdge(childComplexity), true - - case "CreateRiskMeasureMappingPayload.measureEdge": - if e.ComplexityRoot.CreateRiskMeasureMappingPayload.MeasureEdge == nil { - break - } - - return e.ComplexityRoot.CreateRiskMeasureMappingPayload.MeasureEdge(childComplexity), true - case "CreateRiskMeasureMappingPayload.riskEdge": - if e.ComplexityRoot.CreateRiskMeasureMappingPayload.RiskEdge == nil { - break - } - - return e.ComplexityRoot.CreateRiskMeasureMappingPayload.RiskEdge(childComplexity), true - - case "CreateRiskObligationMappingPayload.obligationEdge": - if e.ComplexityRoot.CreateRiskObligationMappingPayload.ObligationEdge == nil { - break - } - - return e.ComplexityRoot.CreateRiskObligationMappingPayload.ObligationEdge(childComplexity), true - case "CreateRiskObligationMappingPayload.riskEdge": - if e.ComplexityRoot.CreateRiskObligationMappingPayload.RiskEdge == nil { - break - } - - return e.ComplexityRoot.CreateRiskObligationMappingPayload.RiskEdge(childComplexity), true - - case "CreateRiskPayload.riskEdge": - if e.ComplexityRoot.CreateRiskPayload.RiskEdge == nil { - break - } - - return e.ComplexityRoot.CreateRiskPayload.RiskEdge(childComplexity), true - - case "CreateSnapshotPayload.snapshotEdge": - if e.ComplexityRoot.CreateSnapshotPayload.SnapshotEdge == nil { - break - } - - return e.ComplexityRoot.CreateSnapshotPayload.SnapshotEdge(childComplexity), true - - case "CreateStateOfApplicabilityPayload.stateOfApplicabilityEdge": - if e.ComplexityRoot.CreateStateOfApplicabilityPayload.StateOfApplicabilityEdge == nil { - break - } - - return e.ComplexityRoot.CreateStateOfApplicabilityPayload.StateOfApplicabilityEdge(childComplexity), true - - case "CreateTaskPayload.taskEdge": - if e.ComplexityRoot.CreateTaskPayload.TaskEdge == nil { - break - } - - return e.ComplexityRoot.CreateTaskPayload.TaskEdge(childComplexity), true - - case "CreateTransferImpactAssessmentPayload.transferImpactAssessment": - if e.ComplexityRoot.CreateTransferImpactAssessmentPayload.TransferImpactAssessment == nil { - break - } - - return e.ComplexityRoot.CreateTransferImpactAssessmentPayload.TransferImpactAssessment(childComplexity), true - - case "CreateTrustCenterFilePayload.trustCenterFileEdge": - if e.ComplexityRoot.CreateTrustCenterFilePayload.TrustCenterFileEdge == nil { - break - } - - return e.ComplexityRoot.CreateTrustCenterFilePayload.TrustCenterFileEdge(childComplexity), true - - case "CreateTrustCenterReferencePayload.trustCenterReferenceEdge": - if e.ComplexityRoot.CreateTrustCenterReferencePayload.TrustCenterReferenceEdge == nil { - break - } - - return e.ComplexityRoot.CreateTrustCenterReferencePayload.TrustCenterReferenceEdge(childComplexity), true - - case "CreateVendorContactPayload.vendorContactEdge": - if e.ComplexityRoot.CreateVendorContactPayload.VendorContactEdge == nil { - break - } - - return e.ComplexityRoot.CreateVendorContactPayload.VendorContactEdge(childComplexity), true - - case "CreateVendorPayload.vendorEdge": - if e.ComplexityRoot.CreateVendorPayload.VendorEdge == nil { - break - } - - return e.ComplexityRoot.CreateVendorPayload.VendorEdge(childComplexity), true - - case "CreateVendorRiskAssessmentPayload.vendorRiskAssessmentEdge": - if e.ComplexityRoot.CreateVendorRiskAssessmentPayload.VendorRiskAssessmentEdge == nil { - break - } - - return e.ComplexityRoot.CreateVendorRiskAssessmentPayload.VendorRiskAssessmentEdge(childComplexity), true - - case "CreateVendorServicePayload.vendorServiceEdge": - if e.ComplexityRoot.CreateVendorServicePayload.VendorServiceEdge == nil { - break - } - - return e.ComplexityRoot.CreateVendorServicePayload.VendorServiceEdge(childComplexity), true - - case "CreateWebhookSubscriptionPayload.webhookSubscriptionEdge": - if e.ComplexityRoot.CreateWebhookSubscriptionPayload.WebhookSubscriptionEdge == nil { - break - } - - return e.ComplexityRoot.CreateWebhookSubscriptionPayload.WebhookSubscriptionEdge(childComplexity), true - - case "CustomDomain.createdAt": - if e.ComplexityRoot.CustomDomain.CreatedAt == nil { - break - } - - return e.ComplexityRoot.CustomDomain.CreatedAt(childComplexity), true - case "CustomDomain.dnsRecords": - if e.ComplexityRoot.CustomDomain.DNSRecords == nil { - break - } - - return e.ComplexityRoot.CustomDomain.DNSRecords(childComplexity), true - case "CustomDomain.domain": - if e.ComplexityRoot.CustomDomain.Domain == nil { - break - } - - return e.ComplexityRoot.CustomDomain.Domain(childComplexity), true - case "CustomDomain.id": - if e.ComplexityRoot.CustomDomain.ID == nil { - break - } - - return e.ComplexityRoot.CustomDomain.ID(childComplexity), true - case "CustomDomain.organization": - if e.ComplexityRoot.CustomDomain.Organization == nil { - break - } - - return e.ComplexityRoot.CustomDomain.Organization(childComplexity), true - case "CustomDomain.permission": - if e.ComplexityRoot.CustomDomain.Permission == nil { - break - } - - args, err := ec.field_CustomDomain_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.CustomDomain.Permission(childComplexity, args["action"].(string)), true - case "CustomDomain.sslExpiresAt": - if e.ComplexityRoot.CustomDomain.SslExpiresAt == nil { - break - } - - return e.ComplexityRoot.CustomDomain.SslExpiresAt(childComplexity), true - case "CustomDomain.sslStatus": - if e.ComplexityRoot.CustomDomain.SslStatus == nil { - break - } - - return e.ComplexityRoot.CustomDomain.SslStatus(childComplexity), true - case "CustomDomain.updatedAt": - if e.ComplexityRoot.CustomDomain.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.CustomDomain.UpdatedAt(childComplexity), true - - case "DNSRecordInstruction.name": - if e.ComplexityRoot.DNSRecordInstruction.Name == nil { - break - } - - return e.ComplexityRoot.DNSRecordInstruction.Name(childComplexity), true - case "DNSRecordInstruction.purpose": - if e.ComplexityRoot.DNSRecordInstruction.Purpose == nil { - break - } - - return e.ComplexityRoot.DNSRecordInstruction.Purpose(childComplexity), true - case "DNSRecordInstruction.ttl": - if e.ComplexityRoot.DNSRecordInstruction.TTL == nil { - break - } - - return e.ComplexityRoot.DNSRecordInstruction.TTL(childComplexity), true - case "DNSRecordInstruction.type": - if e.ComplexityRoot.DNSRecordInstruction.Type == nil { - break - } - - return e.ComplexityRoot.DNSRecordInstruction.Type(childComplexity), true - case "DNSRecordInstruction.value": - if e.ComplexityRoot.DNSRecordInstruction.Value == nil { - break - } - - return e.ComplexityRoot.DNSRecordInstruction.Value(childComplexity), true - - case "DataProtectionImpactAssessment.createdAt": - if e.ComplexityRoot.DataProtectionImpactAssessment.CreatedAt == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.CreatedAt(childComplexity), true - case "DataProtectionImpactAssessment.description": - if e.ComplexityRoot.DataProtectionImpactAssessment.Description == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.Description(childComplexity), true - case "DataProtectionImpactAssessment.id": - if e.ComplexityRoot.DataProtectionImpactAssessment.ID == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.ID(childComplexity), true - case "DataProtectionImpactAssessment.mitigations": - if e.ComplexityRoot.DataProtectionImpactAssessment.Mitigations == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.Mitigations(childComplexity), true - case "DataProtectionImpactAssessment.necessityAndProportionality": - if e.ComplexityRoot.DataProtectionImpactAssessment.NecessityAndProportionality == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.NecessityAndProportionality(childComplexity), true - case "DataProtectionImpactAssessment.organization": - if e.ComplexityRoot.DataProtectionImpactAssessment.Organization == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.Organization(childComplexity), true - case "DataProtectionImpactAssessment.permission": - if e.ComplexityRoot.DataProtectionImpactAssessment.Permission == nil { - break - } - - args, err := ec.field_DataProtectionImpactAssessment_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.Permission(childComplexity, args["action"].(string)), true - case "DataProtectionImpactAssessment.potentialRisk": - if e.ComplexityRoot.DataProtectionImpactAssessment.PotentialRisk == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.PotentialRisk(childComplexity), true - case "DataProtectionImpactAssessment.processingActivity": - if e.ComplexityRoot.DataProtectionImpactAssessment.ProcessingActivity == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.ProcessingActivity(childComplexity), true - case "DataProtectionImpactAssessment.residualRisk": - if e.ComplexityRoot.DataProtectionImpactAssessment.ResidualRisk == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.ResidualRisk(childComplexity), true - case "DataProtectionImpactAssessment.updatedAt": - if e.ComplexityRoot.DataProtectionImpactAssessment.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessment.UpdatedAt(childComplexity), true - - case "DataProtectionImpactAssessmentConnection.edges": - if e.ComplexityRoot.DataProtectionImpactAssessmentConnection.Edges == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessmentConnection.Edges(childComplexity), true - case "DataProtectionImpactAssessmentConnection.pageInfo": - if e.ComplexityRoot.DataProtectionImpactAssessmentConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessmentConnection.PageInfo(childComplexity), true - case "DataProtectionImpactAssessmentConnection.totalCount": - if e.ComplexityRoot.DataProtectionImpactAssessmentConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessmentConnection.TotalCount(childComplexity), true - - case "DataProtectionImpactAssessmentEdge.cursor": - if e.ComplexityRoot.DataProtectionImpactAssessmentEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessmentEdge.Cursor(childComplexity), true - case "DataProtectionImpactAssessmentEdge.node": - if e.ComplexityRoot.DataProtectionImpactAssessmentEdge.Node == nil { - break - } - - return e.ComplexityRoot.DataProtectionImpactAssessmentEdge.Node(childComplexity), true - - case "Datum.createdAt": - if e.ComplexityRoot.Datum.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Datum.CreatedAt(childComplexity), true - case "Datum.dataClassification": - if e.ComplexityRoot.Datum.DataClassification == nil { - break - } - - return e.ComplexityRoot.Datum.DataClassification(childComplexity), true - case "Datum.id": - if e.ComplexityRoot.Datum.ID == nil { - break - } - - return e.ComplexityRoot.Datum.ID(childComplexity), true - case "Datum.name": - if e.ComplexityRoot.Datum.Name == nil { - break - } - - return e.ComplexityRoot.Datum.Name(childComplexity), true - case "Datum.organization": - if e.ComplexityRoot.Datum.Organization == nil { - break - } - - return e.ComplexityRoot.Datum.Organization(childComplexity), true - case "Datum.owner": - if e.ComplexityRoot.Datum.Owner == nil { - break - } - - return e.ComplexityRoot.Datum.Owner(childComplexity), true - case "Datum.permission": - if e.ComplexityRoot.Datum.Permission == nil { - break - } - - args, err := ec.field_Datum_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Datum.Permission(childComplexity, args["action"].(string)), true - case "Datum.snapshotId": - if e.ComplexityRoot.Datum.SnapshotID == nil { - break - } - - return e.ComplexityRoot.Datum.SnapshotID(childComplexity), true - case "Datum.updatedAt": - if e.ComplexityRoot.Datum.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Datum.UpdatedAt(childComplexity), true - case "Datum.vendors": - if e.ComplexityRoot.Datum.Vendors == nil { - break - } - - args, err := ec.field_Datum_vendors_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Datum.Vendors(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorOrderBy)), true - - case "DatumConnection.edges": - if e.ComplexityRoot.DatumConnection.Edges == nil { - break - } - - return e.ComplexityRoot.DatumConnection.Edges(childComplexity), true - case "DatumConnection.pageInfo": - if e.ComplexityRoot.DatumConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.DatumConnection.PageInfo(childComplexity), true - case "DatumConnection.totalCount": - if e.ComplexityRoot.DatumConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.DatumConnection.TotalCount(childComplexity), true - - case "DatumEdge.cursor": - if e.ComplexityRoot.DatumEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.DatumEdge.Cursor(childComplexity), true - case "DatumEdge.node": - if e.ComplexityRoot.DatumEdge.Node == nil { - break - } - - return e.ComplexityRoot.DatumEdge.Node(childComplexity), true - - case "DeleteApplicabilityStatementPayload.deletedApplicabilityStatementId": - if e.ComplexityRoot.DeleteApplicabilityStatementPayload.DeletedApplicabilityStatementID == nil { - break - } - - return e.ComplexityRoot.DeleteApplicabilityStatementPayload.DeletedApplicabilityStatementID(childComplexity), true - - case "DeleteAssetPayload.deletedAssetId": - if e.ComplexityRoot.DeleteAssetPayload.DeletedAssetID == nil { - break - } - - return e.ComplexityRoot.DeleteAssetPayload.DeletedAssetID(childComplexity), true - - case "DeleteAuditPayload.deletedAuditId": - if e.ComplexityRoot.DeleteAuditPayload.DeletedAuditID == nil { - break - } - - return e.ComplexityRoot.DeleteAuditPayload.DeletedAuditID(childComplexity), true - - case "DeleteAuditReportPayload.audit": - if e.ComplexityRoot.DeleteAuditReportPayload.Audit == nil { - break - } - - return e.ComplexityRoot.DeleteAuditReportPayload.Audit(childComplexity), true - - case "DeleteComplianceExternalURLPayload.deletedComplianceExternalUrlId": - if e.ComplexityRoot.DeleteComplianceExternalURLPayload.DeletedComplianceExternalURLID == nil { - break - } - - return e.ComplexityRoot.DeleteComplianceExternalURLPayload.DeletedComplianceExternalURLID(childComplexity), true - - case "DeleteComplianceFrameworkPayload.deletedComplianceFrameworkId": - if e.ComplexityRoot.DeleteComplianceFrameworkPayload.DeletedComplianceFrameworkID == nil { - break - } - - return e.ComplexityRoot.DeleteComplianceFrameworkPayload.DeletedComplianceFrameworkID(childComplexity), true - - case "DeleteContinualImprovementPayload.deletedContinualImprovementId": - if e.ComplexityRoot.DeleteContinualImprovementPayload.DeletedContinualImprovementID == nil { - break - } - - return e.ComplexityRoot.DeleteContinualImprovementPayload.DeletedContinualImprovementID(childComplexity), true - - case "DeleteControlAuditMappingPayload.deletedAuditId": - if e.ComplexityRoot.DeleteControlAuditMappingPayload.DeletedAuditID == nil { - break - } - - return e.ComplexityRoot.DeleteControlAuditMappingPayload.DeletedAuditID(childComplexity), true - case "DeleteControlAuditMappingPayload.deletedControlId": - if e.ComplexityRoot.DeleteControlAuditMappingPayload.DeletedControlID == nil { - break - } - - return e.ComplexityRoot.DeleteControlAuditMappingPayload.DeletedControlID(childComplexity), true - - case "DeleteControlDocumentMappingPayload.deletedControlId": - if e.ComplexityRoot.DeleteControlDocumentMappingPayload.DeletedControlID == nil { - break - } - - return e.ComplexityRoot.DeleteControlDocumentMappingPayload.DeletedControlID(childComplexity), true - case "DeleteControlDocumentMappingPayload.deletedDocumentId": - if e.ComplexityRoot.DeleteControlDocumentMappingPayload.DeletedDocumentID == nil { - break - } - - return e.ComplexityRoot.DeleteControlDocumentMappingPayload.DeletedDocumentID(childComplexity), true - - case "DeleteControlMeasureMappingPayload.deletedControlId": - if e.ComplexityRoot.DeleteControlMeasureMappingPayload.DeletedControlID == nil { - break - } - - return e.ComplexityRoot.DeleteControlMeasureMappingPayload.DeletedControlID(childComplexity), true - case "DeleteControlMeasureMappingPayload.deletedMeasureId": - if e.ComplexityRoot.DeleteControlMeasureMappingPayload.DeletedMeasureID == nil { - break - } - - return e.ComplexityRoot.DeleteControlMeasureMappingPayload.DeletedMeasureID(childComplexity), true - - case "DeleteControlObligationMappingPayload.deletedControlId": - if e.ComplexityRoot.DeleteControlObligationMappingPayload.DeletedControlID == nil { - break - } - - return e.ComplexityRoot.DeleteControlObligationMappingPayload.DeletedControlID(childComplexity), true - case "DeleteControlObligationMappingPayload.deletedObligationId": - if e.ComplexityRoot.DeleteControlObligationMappingPayload.DeletedObligationID == nil { - break - } - - return e.ComplexityRoot.DeleteControlObligationMappingPayload.DeletedObligationID(childComplexity), true - - case "DeleteControlPayload.deletedControlId": - if e.ComplexityRoot.DeleteControlPayload.DeletedControlID == nil { - break - } - - return e.ComplexityRoot.DeleteControlPayload.DeletedControlID(childComplexity), true - - case "DeleteControlSnapshotMappingPayload.deletedControlId": - if e.ComplexityRoot.DeleteControlSnapshotMappingPayload.DeletedControlID == nil { - break - } - - return e.ComplexityRoot.DeleteControlSnapshotMappingPayload.DeletedControlID(childComplexity), true - case "DeleteControlSnapshotMappingPayload.deletedSnapshotId": - if e.ComplexityRoot.DeleteControlSnapshotMappingPayload.DeletedSnapshotID == nil { - break - } - - return e.ComplexityRoot.DeleteControlSnapshotMappingPayload.DeletedSnapshotID(childComplexity), true - - case "DeleteCustomDomainPayload.deletedCustomDomainId": - if e.ComplexityRoot.DeleteCustomDomainPayload.DeletedCustomDomainID == nil { - break - } - - return e.ComplexityRoot.DeleteCustomDomainPayload.DeletedCustomDomainID(childComplexity), true - - case "DeleteDataProtectionImpactAssessmentPayload.deletedDataProtectionImpactAssessmentId": - if e.ComplexityRoot.DeleteDataProtectionImpactAssessmentPayload.DeletedDataProtectionImpactAssessmentID == nil { - break - } - - return e.ComplexityRoot.DeleteDataProtectionImpactAssessmentPayload.DeletedDataProtectionImpactAssessmentID(childComplexity), true - - case "DeleteDatumPayload.deletedDatumId": - if e.ComplexityRoot.DeleteDatumPayload.DeletedDatumID == nil { - break - } - - return e.ComplexityRoot.DeleteDatumPayload.DeletedDatumID(childComplexity), true - - case "DeleteDocumentPayload.deletedDocumentId": - if e.ComplexityRoot.DeleteDocumentPayload.DeletedDocumentID == nil { - break - } - - return e.ComplexityRoot.DeleteDocumentPayload.DeletedDocumentID(childComplexity), true - - case "DeleteDraftDocumentVersionPayload.deletedDocumentVersionId": - if e.ComplexityRoot.DeleteDraftDocumentVersionPayload.DeletedDocumentVersionID == nil { - break - } - - return e.ComplexityRoot.DeleteDraftDocumentVersionPayload.DeletedDocumentVersionID(childComplexity), true - - case "DeleteEvidencePayload.deletedEvidenceId": - if e.ComplexityRoot.DeleteEvidencePayload.DeletedEvidenceID == nil { - break - } - - return e.ComplexityRoot.DeleteEvidencePayload.DeletedEvidenceID(childComplexity), true - - case "DeleteFrameworkPayload.deletedFrameworkId": - if e.ComplexityRoot.DeleteFrameworkPayload.DeletedFrameworkID == nil { - break - } - - return e.ComplexityRoot.DeleteFrameworkPayload.DeletedFrameworkID(childComplexity), true - - case "DeleteMailingListSubscriberPayload.deletedMailingListSubscriberId": - if e.ComplexityRoot.DeleteMailingListSubscriberPayload.DeletedMailingListSubscriberID == nil { - break - } - - return e.ComplexityRoot.DeleteMailingListSubscriberPayload.DeletedMailingListSubscriberID(childComplexity), true - - case "DeleteMailingListUpdatePayload.deletedMailingListUpdateId": - if e.ComplexityRoot.DeleteMailingListUpdatePayload.DeletedMailingListUpdateID == nil { - break - } - - return e.ComplexityRoot.DeleteMailingListUpdatePayload.DeletedMailingListUpdateID(childComplexity), true - - case "DeleteMeasurePayload.deletedMeasureId": - if e.ComplexityRoot.DeleteMeasurePayload.DeletedMeasureID == nil { - break - } - - return e.ComplexityRoot.DeleteMeasurePayload.DeletedMeasureID(childComplexity), true - - case "DeleteMeetingPayload.deletedMeetingId": - if e.ComplexityRoot.DeleteMeetingPayload.DeletedMeetingID == nil { - break - } - - return e.ComplexityRoot.DeleteMeetingPayload.DeletedMeetingID(childComplexity), true - - case "DeleteNonconformityPayload.deletedNonconformityId": - if e.ComplexityRoot.DeleteNonconformityPayload.DeletedNonconformityID == nil { - break - } - - return e.ComplexityRoot.DeleteNonconformityPayload.DeletedNonconformityID(childComplexity), true - - case "DeleteObligationPayload.deletedObligationId": - if e.ComplexityRoot.DeleteObligationPayload.DeletedObligationID == nil { - break - } - - return e.ComplexityRoot.DeleteObligationPayload.DeletedObligationID(childComplexity), true - - case "DeleteProcessingActivityPayload.deletedProcessingActivityId": - if e.ComplexityRoot.DeleteProcessingActivityPayload.DeletedProcessingActivityID == nil { - break - } - - return e.ComplexityRoot.DeleteProcessingActivityPayload.DeletedProcessingActivityID(childComplexity), true - - case "DeleteRightsRequestPayload.deletedRightsRequestId": - if e.ComplexityRoot.DeleteRightsRequestPayload.DeletedRightsRequestID == nil { - break - } - - return e.ComplexityRoot.DeleteRightsRequestPayload.DeletedRightsRequestID(childComplexity), true - - case "DeleteRiskDocumentMappingPayload.deletedDocumentId": - if e.ComplexityRoot.DeleteRiskDocumentMappingPayload.DeletedDocumentID == nil { - break - } - - return e.ComplexityRoot.DeleteRiskDocumentMappingPayload.DeletedDocumentID(childComplexity), true - case "DeleteRiskDocumentMappingPayload.deletedRiskId": - if e.ComplexityRoot.DeleteRiskDocumentMappingPayload.DeletedRiskID == nil { - break - } - - return e.ComplexityRoot.DeleteRiskDocumentMappingPayload.DeletedRiskID(childComplexity), true - - case "DeleteRiskMeasureMappingPayload.deletedMeasureId": - if e.ComplexityRoot.DeleteRiskMeasureMappingPayload.DeletedMeasureID == nil { - break - } - - return e.ComplexityRoot.DeleteRiskMeasureMappingPayload.DeletedMeasureID(childComplexity), true - case "DeleteRiskMeasureMappingPayload.deletedRiskId": - if e.ComplexityRoot.DeleteRiskMeasureMappingPayload.DeletedRiskID == nil { - break - } - - return e.ComplexityRoot.DeleteRiskMeasureMappingPayload.DeletedRiskID(childComplexity), true - - case "DeleteRiskObligationMappingPayload.deletedObligationId": - if e.ComplexityRoot.DeleteRiskObligationMappingPayload.DeletedObligationID == nil { - break - } - - return e.ComplexityRoot.DeleteRiskObligationMappingPayload.DeletedObligationID(childComplexity), true - case "DeleteRiskObligationMappingPayload.deletedRiskId": - if e.ComplexityRoot.DeleteRiskObligationMappingPayload.DeletedRiskID == nil { - break - } - - return e.ComplexityRoot.DeleteRiskObligationMappingPayload.DeletedRiskID(childComplexity), true - - case "DeleteRiskPayload.deletedRiskId": - if e.ComplexityRoot.DeleteRiskPayload.DeletedRiskID == nil { - break - } - - return e.ComplexityRoot.DeleteRiskPayload.DeletedRiskID(childComplexity), true - - case "DeleteSnapshotPayload.deletedSnapshotId": - if e.ComplexityRoot.DeleteSnapshotPayload.DeletedSnapshotID == nil { - break - } - - return e.ComplexityRoot.DeleteSnapshotPayload.DeletedSnapshotID(childComplexity), true - - case "DeleteStateOfApplicabilityPayload.deletedStateOfApplicabilityId": - if e.ComplexityRoot.DeleteStateOfApplicabilityPayload.DeletedStateOfApplicabilityID == nil { - break - } - - return e.ComplexityRoot.DeleteStateOfApplicabilityPayload.DeletedStateOfApplicabilityID(childComplexity), true - - case "DeleteTaskPayload.deletedTaskId": - if e.ComplexityRoot.DeleteTaskPayload.DeletedTaskID == nil { - break - } - - return e.ComplexityRoot.DeleteTaskPayload.DeletedTaskID(childComplexity), true - - case "DeleteTransferImpactAssessmentPayload.deletedTransferImpactAssessmentId": - if e.ComplexityRoot.DeleteTransferImpactAssessmentPayload.DeletedTransferImpactAssessmentID == nil { - break - } - - return e.ComplexityRoot.DeleteTransferImpactAssessmentPayload.DeletedTransferImpactAssessmentID(childComplexity), true - - case "DeleteTrustCenterAccessPayload.deletedTrustCenterAccessId": - if e.ComplexityRoot.DeleteTrustCenterAccessPayload.DeletedTrustCenterAccessID == nil { - break - } - - return e.ComplexityRoot.DeleteTrustCenterAccessPayload.DeletedTrustCenterAccessID(childComplexity), true - - case "DeleteTrustCenterFilePayload.deletedTrustCenterFileId": - if e.ComplexityRoot.DeleteTrustCenterFilePayload.DeletedTrustCenterFileID == nil { - break - } - - return e.ComplexityRoot.DeleteTrustCenterFilePayload.DeletedTrustCenterFileID(childComplexity), true - - case "DeleteTrustCenterNDAPayload.trustCenter": - if e.ComplexityRoot.DeleteTrustCenterNDAPayload.TrustCenter == nil { - break - } - - return e.ComplexityRoot.DeleteTrustCenterNDAPayload.TrustCenter(childComplexity), true - - case "DeleteTrustCenterReferencePayload.deletedTrustCenterReferenceId": - if e.ComplexityRoot.DeleteTrustCenterReferencePayload.DeletedTrustCenterReferenceID == nil { - break - } - - return e.ComplexityRoot.DeleteTrustCenterReferencePayload.DeletedTrustCenterReferenceID(childComplexity), true - - case "DeleteVendorBusinessAssociateAgreementPayload.deletedVendorId": - if e.ComplexityRoot.DeleteVendorBusinessAssociateAgreementPayload.DeletedVendorID == nil { - break - } - - return e.ComplexityRoot.DeleteVendorBusinessAssociateAgreementPayload.DeletedVendorID(childComplexity), true - - case "DeleteVendorComplianceReportPayload.deletedVendorComplianceReportId": - if e.ComplexityRoot.DeleteVendorComplianceReportPayload.DeletedVendorComplianceReportID == nil { - break - } - - return e.ComplexityRoot.DeleteVendorComplianceReportPayload.DeletedVendorComplianceReportID(childComplexity), true - - case "DeleteVendorContactPayload.deletedVendorContactId": - if e.ComplexityRoot.DeleteVendorContactPayload.DeletedVendorContactID == nil { - break - } - - return e.ComplexityRoot.DeleteVendorContactPayload.DeletedVendorContactID(childComplexity), true - - case "DeleteVendorDataPrivacyAgreementPayload.deletedVendorId": - if e.ComplexityRoot.DeleteVendorDataPrivacyAgreementPayload.DeletedVendorID == nil { - break - } - - return e.ComplexityRoot.DeleteVendorDataPrivacyAgreementPayload.DeletedVendorID(childComplexity), true - - case "DeleteVendorPayload.deletedVendorId": - if e.ComplexityRoot.DeleteVendorPayload.DeletedVendorID == nil { - break - } - - return e.ComplexityRoot.DeleteVendorPayload.DeletedVendorID(childComplexity), true - - case "DeleteVendorServicePayload.deletedVendorServiceId": - if e.ComplexityRoot.DeleteVendorServicePayload.DeletedVendorServiceID == nil { - break - } - - return e.ComplexityRoot.DeleteVendorServicePayload.DeletedVendorServiceID(childComplexity), true - - case "DeleteWebhookSubscriptionPayload.deletedWebhookSubscriptionId": - if e.ComplexityRoot.DeleteWebhookSubscriptionPayload.DeletedWebhookSubscriptionID == nil { - break - } - - return e.ComplexityRoot.DeleteWebhookSubscriptionPayload.DeletedWebhookSubscriptionID(childComplexity), true - - case "Document.approvers": - if e.ComplexityRoot.Document.Approvers == nil { - break - } - - args, err := ec.field_Document_approvers_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Document.Approvers(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ProfileOrderBy)), true - case "Document.classification": - if e.ComplexityRoot.Document.Classification == nil { - break - } - - return e.ComplexityRoot.Document.Classification(childComplexity), true - case "Document.controls": - if e.ComplexityRoot.Document.Controls == nil { - break - } - - args, err := ec.field_Document_controls_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Document.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true - case "Document.createdAt": - if e.ComplexityRoot.Document.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Document.CreatedAt(childComplexity), true - case "Document.currentPublishedVersion": - if e.ComplexityRoot.Document.CurrentPublishedVersion == nil { - break - } - - return e.ComplexityRoot.Document.CurrentPublishedVersion(childComplexity), true - case "Document.description": - if e.ComplexityRoot.Document.Description == nil { - break - } - - return e.ComplexityRoot.Document.Description(childComplexity), true - case "Document.documentType": - if e.ComplexityRoot.Document.DocumentType == nil { - break - } - - return e.ComplexityRoot.Document.DocumentType(childComplexity), true - case "Document.id": - if e.ComplexityRoot.Document.ID == nil { - break - } - - return e.ComplexityRoot.Document.ID(childComplexity), true - case "Document.organization": - if e.ComplexityRoot.Document.Organization == nil { - break - } - - return e.ComplexityRoot.Document.Organization(childComplexity), true - case "Document.permission": - if e.ComplexityRoot.Document.Permission == nil { - break - } - - args, err := ec.field_Document_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Document.Permission(childComplexity, args["action"].(string)), true - case "Document.title": - if e.ComplexityRoot.Document.Title == nil { - break - } - - return e.ComplexityRoot.Document.Title(childComplexity), true - case "Document.trustCenterVisibility": - if e.ComplexityRoot.Document.TrustCenterVisibility == nil { - break - } - - return e.ComplexityRoot.Document.TrustCenterVisibility(childComplexity), true - case "Document.updatedAt": - if e.ComplexityRoot.Document.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Document.UpdatedAt(childComplexity), true - case "Document.versions": - if e.ComplexityRoot.Document.Versions == nil { - break - } - - args, err := ec.field_Document_versions_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Document.Versions(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentVersionOrderBy), args["filter"].(*types.DocumentVersionFilter)), true - - case "DocumentConnection.edges": - if e.ComplexityRoot.DocumentConnection.Edges == nil { - break - } - - return e.ComplexityRoot.DocumentConnection.Edges(childComplexity), true - case "DocumentConnection.pageInfo": - if e.ComplexityRoot.DocumentConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.DocumentConnection.PageInfo(childComplexity), true - case "DocumentConnection.totalCount": - if e.ComplexityRoot.DocumentConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.DocumentConnection.TotalCount(childComplexity), true - - case "DocumentEdge.cursor": - if e.ComplexityRoot.DocumentEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.DocumentEdge.Cursor(childComplexity), true - case "DocumentEdge.node": - if e.ComplexityRoot.DocumentEdge.Node == nil { - break - } - - return e.ComplexityRoot.DocumentEdge.Node(childComplexity), true - - case "DocumentVersion.approvers": - if e.ComplexityRoot.DocumentVersion.Approvers == nil { - break - } - - args, err := ec.field_DocumentVersion_approvers_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.DocumentVersion.Approvers(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ProfileOrderBy)), true - case "DocumentVersion.changelog": - if e.ComplexityRoot.DocumentVersion.Changelog == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.Changelog(childComplexity), true - case "DocumentVersion.classification": - if e.ComplexityRoot.DocumentVersion.Classification == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.Classification(childComplexity), true - case "DocumentVersion.content": - if e.ComplexityRoot.DocumentVersion.Content == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.Content(childComplexity), true - case "DocumentVersion.createdAt": - if e.ComplexityRoot.DocumentVersion.CreatedAt == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.CreatedAt(childComplexity), true - case "DocumentVersion.document": - if e.ComplexityRoot.DocumentVersion.Document == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.Document(childComplexity), true - case "DocumentVersion.id": - if e.ComplexityRoot.DocumentVersion.ID == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.ID(childComplexity), true - case "DocumentVersion.permission": - if e.ComplexityRoot.DocumentVersion.Permission == nil { - break - } - - args, err := ec.field_DocumentVersion_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.DocumentVersion.Permission(childComplexity, args["action"].(string)), true - case "DocumentVersion.publishedAt": - if e.ComplexityRoot.DocumentVersion.PublishedAt == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.PublishedAt(childComplexity), true - case "DocumentVersion.signatures": - if e.ComplexityRoot.DocumentVersion.Signatures == nil { - break - } - - args, err := ec.field_DocumentVersion_signatures_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.DocumentVersion.Signatures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentVersionSignatureOrder), args["filter"].(*types.DocumentVersionSignatureFilter)), true - case "DocumentVersion.signed": - if e.ComplexityRoot.DocumentVersion.Signed == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.Signed(childComplexity), true - case "DocumentVersion.status": - if e.ComplexityRoot.DocumentVersion.Status == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.Status(childComplexity), true - case "DocumentVersion.title": - if e.ComplexityRoot.DocumentVersion.Title == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.Title(childComplexity), true - case "DocumentVersion.updatedAt": - if e.ComplexityRoot.DocumentVersion.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.UpdatedAt(childComplexity), true - case "DocumentVersion.version": - if e.ComplexityRoot.DocumentVersion.Version == nil { - break - } - - return e.ComplexityRoot.DocumentVersion.Version(childComplexity), true - - case "DocumentVersionConnection.edges": - if e.ComplexityRoot.DocumentVersionConnection.Edges == nil { - break - } - - return e.ComplexityRoot.DocumentVersionConnection.Edges(childComplexity), true - case "DocumentVersionConnection.pageInfo": - if e.ComplexityRoot.DocumentVersionConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.DocumentVersionConnection.PageInfo(childComplexity), true - case "DocumentVersionConnection.totalCount": - if e.ComplexityRoot.DocumentVersionConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.DocumentVersionConnection.TotalCount(childComplexity), true - - case "DocumentVersionEdge.cursor": - if e.ComplexityRoot.DocumentVersionEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.DocumentVersionEdge.Cursor(childComplexity), true - case "DocumentVersionEdge.node": - if e.ComplexityRoot.DocumentVersionEdge.Node == nil { - break - } - - return e.ComplexityRoot.DocumentVersionEdge.Node(childComplexity), true - - case "DocumentVersionSignature.createdAt": - if e.ComplexityRoot.DocumentVersionSignature.CreatedAt == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignature.CreatedAt(childComplexity), true - case "DocumentVersionSignature.documentVersion": - if e.ComplexityRoot.DocumentVersionSignature.DocumentVersion == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignature.DocumentVersion(childComplexity), true - case "DocumentVersionSignature.id": - if e.ComplexityRoot.DocumentVersionSignature.ID == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignature.ID(childComplexity), true - case "DocumentVersionSignature.permission": - if e.ComplexityRoot.DocumentVersionSignature.Permission == nil { - break - } - - args, err := ec.field_DocumentVersionSignature_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.DocumentVersionSignature.Permission(childComplexity, args["action"].(string)), true - case "DocumentVersionSignature.requestedAt": - if e.ComplexityRoot.DocumentVersionSignature.RequestedAt == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignature.RequestedAt(childComplexity), true - case "DocumentVersionSignature.signedAt": - if e.ComplexityRoot.DocumentVersionSignature.SignedAt == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignature.SignedAt(childComplexity), true - case "DocumentVersionSignature.signedBy": - if e.ComplexityRoot.DocumentVersionSignature.SignedBy == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignature.SignedBy(childComplexity), true - case "DocumentVersionSignature.state": - if e.ComplexityRoot.DocumentVersionSignature.State == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignature.State(childComplexity), true - case "DocumentVersionSignature.updatedAt": - if e.ComplexityRoot.DocumentVersionSignature.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignature.UpdatedAt(childComplexity), true - - case "DocumentVersionSignatureConnection.edges": - if e.ComplexityRoot.DocumentVersionSignatureConnection.Edges == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignatureConnection.Edges(childComplexity), true - case "DocumentVersionSignatureConnection.pageInfo": - if e.ComplexityRoot.DocumentVersionSignatureConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignatureConnection.PageInfo(childComplexity), true - case "DocumentVersionSignatureConnection.totalCount": - if e.ComplexityRoot.DocumentVersionSignatureConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignatureConnection.TotalCount(childComplexity), true - - case "DocumentVersionSignatureEdge.cursor": - if e.ComplexityRoot.DocumentVersionSignatureEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignatureEdge.Cursor(childComplexity), true - case "DocumentVersionSignatureEdge.node": - if e.ComplexityRoot.DocumentVersionSignatureEdge.Node == nil { - break - } - - return e.ComplexityRoot.DocumentVersionSignatureEdge.Node(childComplexity), true - - case "ElectronicSignature.certificateFileUrl": - if e.ComplexityRoot.ElectronicSignature.CertificateFileURL == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.CertificateFileURL(childComplexity), true - case "ElectronicSignature.consentText": - if e.ComplexityRoot.ElectronicSignature.ConsentText == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.ConsentText(childComplexity), true - case "ElectronicSignature.createdAt": - if e.ComplexityRoot.ElectronicSignature.CreatedAt == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.CreatedAt(childComplexity), true - case "ElectronicSignature.documentType": - if e.ComplexityRoot.ElectronicSignature.DocumentType == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.DocumentType(childComplexity), true - case "ElectronicSignature.events": - if e.ComplexityRoot.ElectronicSignature.Events == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.Events(childComplexity), true - case "ElectronicSignature.id": - if e.ComplexityRoot.ElectronicSignature.ID == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.ID(childComplexity), true - case "ElectronicSignature.lastError": - if e.ComplexityRoot.ElectronicSignature.LastError == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.LastError(childComplexity), true - case "ElectronicSignature.signedAt": - if e.ComplexityRoot.ElectronicSignature.SignedAt == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.SignedAt(childComplexity), true - case "ElectronicSignature.status": - if e.ComplexityRoot.ElectronicSignature.Status == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.Status(childComplexity), true - case "ElectronicSignature.updatedAt": - if e.ComplexityRoot.ElectronicSignature.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.UpdatedAt(childComplexity), true - - case "ElectronicSignatureEvent.actorEmail": - if e.ComplexityRoot.ElectronicSignatureEvent.ActorEmail == nil { - break - } - - return e.ComplexityRoot.ElectronicSignatureEvent.ActorEmail(childComplexity), true - case "ElectronicSignatureEvent.actorIpAddress": - if e.ComplexityRoot.ElectronicSignatureEvent.ActorIPAddress == nil { - break - } - - return e.ComplexityRoot.ElectronicSignatureEvent.ActorIPAddress(childComplexity), true - case "ElectronicSignatureEvent.actorUserAgent": - if e.ComplexityRoot.ElectronicSignatureEvent.ActorUserAgent == nil { - break - } - - return e.ComplexityRoot.ElectronicSignatureEvent.ActorUserAgent(childComplexity), true - case "ElectronicSignatureEvent.createdAt": - if e.ComplexityRoot.ElectronicSignatureEvent.CreatedAt == nil { - break - } - - return e.ComplexityRoot.ElectronicSignatureEvent.CreatedAt(childComplexity), true - case "ElectronicSignatureEvent.eventSource": - if e.ComplexityRoot.ElectronicSignatureEvent.EventSource == nil { - break - } - - return e.ComplexityRoot.ElectronicSignatureEvent.EventSource(childComplexity), true - case "ElectronicSignatureEvent.eventType": - if e.ComplexityRoot.ElectronicSignatureEvent.EventType == nil { - break - } - - return e.ComplexityRoot.ElectronicSignatureEvent.EventType(childComplexity), true - case "ElectronicSignatureEvent.id": - if e.ComplexityRoot.ElectronicSignatureEvent.ID == nil { - break - } - - return e.ComplexityRoot.ElectronicSignatureEvent.ID(childComplexity), true - case "ElectronicSignatureEvent.occurredAt": - if e.ComplexityRoot.ElectronicSignatureEvent.OccurredAt == nil { - break - } - - return e.ComplexityRoot.ElectronicSignatureEvent.OccurredAt(childComplexity), true - - case "Evidence.createdAt": - if e.ComplexityRoot.Evidence.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Evidence.CreatedAt(childComplexity), true - case "Evidence.description": - if e.ComplexityRoot.Evidence.Description == nil { - break - } - - return e.ComplexityRoot.Evidence.Description(childComplexity), true - case "Evidence.file": - if e.ComplexityRoot.Evidence.File == nil { - break - } - - return e.ComplexityRoot.Evidence.File(childComplexity), true - case "Evidence.id": - if e.ComplexityRoot.Evidence.ID == nil { - break - } - - return e.ComplexityRoot.Evidence.ID(childComplexity), true - case "Evidence.measure": - if e.ComplexityRoot.Evidence.Measure == nil { - break - } - - return e.ComplexityRoot.Evidence.Measure(childComplexity), true - case "Evidence.permission": - if e.ComplexityRoot.Evidence.Permission == nil { - break - } - - args, err := ec.field_Evidence_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Evidence.Permission(childComplexity, args["action"].(string)), true - case "Evidence.size": - if e.ComplexityRoot.Evidence.Size == nil { - break - } - - return e.ComplexityRoot.Evidence.Size(childComplexity), true - case "Evidence.state": - if e.ComplexityRoot.Evidence.State == nil { - break - } - - return e.ComplexityRoot.Evidence.State(childComplexity), true - case "Evidence.task": - if e.ComplexityRoot.Evidence.Task == nil { - break - } - - return e.ComplexityRoot.Evidence.Task(childComplexity), true - case "Evidence.type": - if e.ComplexityRoot.Evidence.Type == nil { - break - } - - return e.ComplexityRoot.Evidence.Type(childComplexity), true - case "Evidence.url": - if e.ComplexityRoot.Evidence.URL == nil { - break - } - - return e.ComplexityRoot.Evidence.URL(childComplexity), true - case "Evidence.updatedAt": - if e.ComplexityRoot.Evidence.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Evidence.UpdatedAt(childComplexity), true - - case "EvidenceConnection.edges": - if e.ComplexityRoot.EvidenceConnection.Edges == nil { - break - } - - return e.ComplexityRoot.EvidenceConnection.Edges(childComplexity), true - case "EvidenceConnection.pageInfo": - if e.ComplexityRoot.EvidenceConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.EvidenceConnection.PageInfo(childComplexity), true - case "EvidenceConnection.totalCount": - if e.ComplexityRoot.EvidenceConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.EvidenceConnection.TotalCount(childComplexity), true - - case "EvidenceEdge.cursor": - if e.ComplexityRoot.EvidenceEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.EvidenceEdge.Cursor(childComplexity), true - case "EvidenceEdge.node": - if e.ComplexityRoot.EvidenceEdge.Node == nil { - break - } - - return e.ComplexityRoot.EvidenceEdge.Node(childComplexity), true - - case "ExportDataProtectionImpactAssessmentsPDFPayload.data": - if e.ComplexityRoot.ExportDataProtectionImpactAssessmentsPDFPayload.Data == nil { - break - } - - return e.ComplexityRoot.ExportDataProtectionImpactAssessmentsPDFPayload.Data(childComplexity), true - - case "ExportDocumentVersionPDFPayload.data": - if e.ComplexityRoot.ExportDocumentVersionPDFPayload.Data == nil { - break - } - - return e.ComplexityRoot.ExportDocumentVersionPDFPayload.Data(childComplexity), true - - case "ExportFrameworkPayload.exportJobId": - if e.ComplexityRoot.ExportFrameworkPayload.ExportJobID == nil { - break - } - - return e.ComplexityRoot.ExportFrameworkPayload.ExportJobID(childComplexity), true - - case "ExportProcessingActivitiesPDFPayload.data": - if e.ComplexityRoot.ExportProcessingActivitiesPDFPayload.Data == nil { - break - } - - return e.ComplexityRoot.ExportProcessingActivitiesPDFPayload.Data(childComplexity), true - - case "ExportSignableDocumentVersionPDFPayload.data": - if e.ComplexityRoot.ExportSignableDocumentVersionPDFPayload.Data == nil { - break - } - - return e.ComplexityRoot.ExportSignableDocumentVersionPDFPayload.Data(childComplexity), true - - case "ExportStateOfApplicabilityPDFPayload.data": - if e.ComplexityRoot.ExportStateOfApplicabilityPDFPayload.Data == nil { - break - } - - return e.ComplexityRoot.ExportStateOfApplicabilityPDFPayload.Data(childComplexity), true - - case "ExportTransferImpactAssessmentsPDFPayload.data": - if e.ComplexityRoot.ExportTransferImpactAssessmentsPDFPayload.Data == nil { - break - } - - return e.ComplexityRoot.ExportTransferImpactAssessmentsPDFPayload.Data(childComplexity), true - - case "File.createdAt": - if e.ComplexityRoot.File.CreatedAt == nil { - break - } - - return e.ComplexityRoot.File.CreatedAt(childComplexity), true - case "File.downloadUrl": - if e.ComplexityRoot.File.DownloadURL == nil { - break - } - - return e.ComplexityRoot.File.DownloadURL(childComplexity), true - case "File.fileName": - if e.ComplexityRoot.File.FileName == nil { - break - } - - return e.ComplexityRoot.File.FileName(childComplexity), true - case "File.id": - if e.ComplexityRoot.File.ID == nil { - break - } - - return e.ComplexityRoot.File.ID(childComplexity), true - case "File.mimeType": - if e.ComplexityRoot.File.MimeType == nil { - break - } - - return e.ComplexityRoot.File.MimeType(childComplexity), true - case "File.size": - if e.ComplexityRoot.File.Size == nil { - break - } - - return e.ComplexityRoot.File.Size(childComplexity), true - case "File.updatedAt": - if e.ComplexityRoot.File.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.File.UpdatedAt(childComplexity), true - - case "Framework.controls": - if e.ComplexityRoot.Framework.Controls == nil { - break - } - - args, err := ec.field_Framework_controls_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Framework.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true - case "Framework.createdAt": - if e.ComplexityRoot.Framework.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Framework.CreatedAt(childComplexity), true - case "Framework.darkLogoURL": - if e.ComplexityRoot.Framework.DarkLogoURL == nil { - break - } - - return e.ComplexityRoot.Framework.DarkLogoURL(childComplexity), true - case "Framework.description": - if e.ComplexityRoot.Framework.Description == nil { - break - } - - return e.ComplexityRoot.Framework.Description(childComplexity), true - case "Framework.id": - if e.ComplexityRoot.Framework.ID == nil { - break - } - - return e.ComplexityRoot.Framework.ID(childComplexity), true - case "Framework.lightLogoURL": - if e.ComplexityRoot.Framework.LightLogoURL == nil { - break - } - - return e.ComplexityRoot.Framework.LightLogoURL(childComplexity), true - case "Framework.name": - if e.ComplexityRoot.Framework.Name == nil { - break - } - - return e.ComplexityRoot.Framework.Name(childComplexity), true - case "Framework.organization": - if e.ComplexityRoot.Framework.Organization == nil { - break - } - - return e.ComplexityRoot.Framework.Organization(childComplexity), true - case "Framework.permission": - if e.ComplexityRoot.Framework.Permission == nil { - break - } - - args, err := ec.field_Framework_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Framework.Permission(childComplexity, args["action"].(string)), true - case "Framework.updatedAt": - if e.ComplexityRoot.Framework.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Framework.UpdatedAt(childComplexity), true - - case "FrameworkConnection.edges": - if e.ComplexityRoot.FrameworkConnection.Edges == nil { - break - } - - return e.ComplexityRoot.FrameworkConnection.Edges(childComplexity), true - case "FrameworkConnection.pageInfo": - if e.ComplexityRoot.FrameworkConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.FrameworkConnection.PageInfo(childComplexity), true - case "FrameworkConnection.totalCount": - if e.ComplexityRoot.FrameworkConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.FrameworkConnection.TotalCount(childComplexity), true - - case "FrameworkEdge.cursor": - if e.ComplexityRoot.FrameworkEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.FrameworkEdge.Cursor(childComplexity), true - case "FrameworkEdge.node": - if e.ComplexityRoot.FrameworkEdge.Node == nil { - break - } - - return e.ComplexityRoot.FrameworkEdge.Node(childComplexity), true - - case "GenerateDocumentChangelogPayload.changelog": - if e.ComplexityRoot.GenerateDocumentChangelogPayload.Changelog == nil { - break - } - - return e.ComplexityRoot.GenerateDocumentChangelogPayload.Changelog(childComplexity), true - - case "GetTrustCenterFilePayload.trustCenterFile": - if e.ComplexityRoot.GetTrustCenterFilePayload.TrustCenterFile == nil { - break - } - - return e.ComplexityRoot.GetTrustCenterFilePayload.TrustCenterFile(childComplexity), true - - case "ImportFrameworkPayload.frameworkEdge": - if e.ComplexityRoot.ImportFrameworkPayload.FrameworkEdge == nil { - break - } - - return e.ComplexityRoot.ImportFrameworkPayload.FrameworkEdge(childComplexity), true - - case "ImportMeasurePayload.measureEdges": - if e.ComplexityRoot.ImportMeasurePayload.MeasureEdges == nil { - break - } - - return e.ComplexityRoot.ImportMeasurePayload.MeasureEdges(childComplexity), true - - case "MailingList.id": - if e.ComplexityRoot.MailingList.ID == nil { - break - } - - return e.ComplexityRoot.MailingList.ID(childComplexity), true - case "MailingList.replyTo": - if e.ComplexityRoot.MailingList.ReplyTo == nil { - break - } - - return e.ComplexityRoot.MailingList.ReplyTo(childComplexity), true - case "MailingList.subscribers": - if e.ComplexityRoot.MailingList.Subscribers == nil { - break - } - - args, err := ec.field_MailingList_subscribers_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.MailingList.Subscribers(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "MailingList.updates": - if e.ComplexityRoot.MailingList.Updates == nil { - break - } - - args, err := ec.field_MailingList_updates_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.MailingList.Updates(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - - case "MailingListSubscriber.createdAt": - if e.ComplexityRoot.MailingListSubscriber.CreatedAt == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.CreatedAt(childComplexity), true - case "MailingListSubscriber.email": - if e.ComplexityRoot.MailingListSubscriber.Email == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.Email(childComplexity), true - case "MailingListSubscriber.fullName": - if e.ComplexityRoot.MailingListSubscriber.FullName == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.FullName(childComplexity), true - case "MailingListSubscriber.id": - if e.ComplexityRoot.MailingListSubscriber.ID == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.ID(childComplexity), true - case "MailingListSubscriber.status": - if e.ComplexityRoot.MailingListSubscriber.Status == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.Status(childComplexity), true - case "MailingListSubscriber.updatedAt": - if e.ComplexityRoot.MailingListSubscriber.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.UpdatedAt(childComplexity), true - - case "MailingListSubscriberConnection.edges": - if e.ComplexityRoot.MailingListSubscriberConnection.Edges == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriberConnection.Edges(childComplexity), true - case "MailingListSubscriberConnection.pageInfo": - if e.ComplexityRoot.MailingListSubscriberConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriberConnection.PageInfo(childComplexity), true - case "MailingListSubscriberConnection.totalCount": - if e.ComplexityRoot.MailingListSubscriberConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriberConnection.TotalCount(childComplexity), true - - case "MailingListSubscriberEdge.cursor": - if e.ComplexityRoot.MailingListSubscriberEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriberEdge.Cursor(childComplexity), true - case "MailingListSubscriberEdge.node": - if e.ComplexityRoot.MailingListSubscriberEdge.Node == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriberEdge.Node(childComplexity), true - - case "MailingListUpdate.body": - if e.ComplexityRoot.MailingListUpdate.Body == nil { - break - } - - return e.ComplexityRoot.MailingListUpdate.Body(childComplexity), true - case "MailingListUpdate.createdAt": - if e.ComplexityRoot.MailingListUpdate.CreatedAt == nil { - break - } - - return e.ComplexityRoot.MailingListUpdate.CreatedAt(childComplexity), true - case "MailingListUpdate.id": - if e.ComplexityRoot.MailingListUpdate.ID == nil { - break - } - - return e.ComplexityRoot.MailingListUpdate.ID(childComplexity), true - case "MailingListUpdate.status": - if e.ComplexityRoot.MailingListUpdate.Status == nil { - break - } - - return e.ComplexityRoot.MailingListUpdate.Status(childComplexity), true - case "MailingListUpdate.title": - if e.ComplexityRoot.MailingListUpdate.Title == nil { - break - } - - return e.ComplexityRoot.MailingListUpdate.Title(childComplexity), true - case "MailingListUpdate.updatedAt": - if e.ComplexityRoot.MailingListUpdate.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.MailingListUpdate.UpdatedAt(childComplexity), true - - case "MailingListUpdateConnection.edges": - if e.ComplexityRoot.MailingListUpdateConnection.Edges == nil { - break - } - - return e.ComplexityRoot.MailingListUpdateConnection.Edges(childComplexity), true - case "MailingListUpdateConnection.pageInfo": - if e.ComplexityRoot.MailingListUpdateConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.MailingListUpdateConnection.PageInfo(childComplexity), true - case "MailingListUpdateConnection.totalCount": - if e.ComplexityRoot.MailingListUpdateConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.MailingListUpdateConnection.TotalCount(childComplexity), true - - case "MailingListUpdateEdge.cursor": - if e.ComplexityRoot.MailingListUpdateEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.MailingListUpdateEdge.Cursor(childComplexity), true - case "MailingListUpdateEdge.node": - if e.ComplexityRoot.MailingListUpdateEdge.Node == nil { - break - } - - return e.ComplexityRoot.MailingListUpdateEdge.Node(childComplexity), true - - case "Measure.category": - if e.ComplexityRoot.Measure.Category == nil { - break - } - - return e.ComplexityRoot.Measure.Category(childComplexity), true - case "Measure.controls": - if e.ComplexityRoot.Measure.Controls == nil { - break - } - - args, err := ec.field_Measure_controls_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Measure.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true - case "Measure.createdAt": - if e.ComplexityRoot.Measure.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Measure.CreatedAt(childComplexity), true - case "Measure.description": - if e.ComplexityRoot.Measure.Description == nil { - break - } - - return e.ComplexityRoot.Measure.Description(childComplexity), true - case "Measure.evidences": - if e.ComplexityRoot.Measure.Evidences == nil { - break - } - - args, err := ec.field_Measure_evidences_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Measure.Evidences(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.EvidenceOrderBy)), true - case "Measure.id": - if e.ComplexityRoot.Measure.ID == nil { - break - } - - return e.ComplexityRoot.Measure.ID(childComplexity), true - case "Measure.name": - if e.ComplexityRoot.Measure.Name == nil { - break - } - - return e.ComplexityRoot.Measure.Name(childComplexity), true - case "Measure.permission": - if e.ComplexityRoot.Measure.Permission == nil { - break - } - - args, err := ec.field_Measure_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Measure.Permission(childComplexity, args["action"].(string)), true - case "Measure.risks": - if e.ComplexityRoot.Measure.Risks == nil { - break - } - - args, err := ec.field_Measure_risks_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Measure.Risks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.RiskOrderBy), args["filter"].(*types.RiskFilter)), true - case "Measure.state": - if e.ComplexityRoot.Measure.State == nil { - break - } - - return e.ComplexityRoot.Measure.State(childComplexity), true - case "Measure.tasks": - if e.ComplexityRoot.Measure.Tasks == nil { - break - } - - args, err := ec.field_Measure_tasks_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Measure.Tasks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.TaskOrderBy)), true - case "Measure.updatedAt": - if e.ComplexityRoot.Measure.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Measure.UpdatedAt(childComplexity), true - - case "MeasureConnection.edges": - if e.ComplexityRoot.MeasureConnection.Edges == nil { - break - } - - return e.ComplexityRoot.MeasureConnection.Edges(childComplexity), true - case "MeasureConnection.pageInfo": - if e.ComplexityRoot.MeasureConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.MeasureConnection.PageInfo(childComplexity), true - case "MeasureConnection.totalCount": - if e.ComplexityRoot.MeasureConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.MeasureConnection.TotalCount(childComplexity), true - - case "MeasureEdge.cursor": - if e.ComplexityRoot.MeasureEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.MeasureEdge.Cursor(childComplexity), true - case "MeasureEdge.node": - if e.ComplexityRoot.MeasureEdge.Node == nil { - break - } - - return e.ComplexityRoot.MeasureEdge.Node(childComplexity), true - - case "Meeting.attendees": - if e.ComplexityRoot.Meeting.Attendees == nil { - break - } - - return e.ComplexityRoot.Meeting.Attendees(childComplexity), true - case "Meeting.createdAt": - if e.ComplexityRoot.Meeting.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Meeting.CreatedAt(childComplexity), true - case "Meeting.date": - if e.ComplexityRoot.Meeting.Date == nil { - break - } - - return e.ComplexityRoot.Meeting.Date(childComplexity), true - case "Meeting.id": - if e.ComplexityRoot.Meeting.ID == nil { - break - } - - return e.ComplexityRoot.Meeting.ID(childComplexity), true - case "Meeting.minutes": - if e.ComplexityRoot.Meeting.Minutes == nil { - break - } - - return e.ComplexityRoot.Meeting.Minutes(childComplexity), true - case "Meeting.name": - if e.ComplexityRoot.Meeting.Name == nil { - break - } - - return e.ComplexityRoot.Meeting.Name(childComplexity), true - case "Meeting.organization": - if e.ComplexityRoot.Meeting.Organization == nil { - break - } - - return e.ComplexityRoot.Meeting.Organization(childComplexity), true - case "Meeting.permission": - if e.ComplexityRoot.Meeting.Permission == nil { - break - } - - args, err := ec.field_Meeting_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Meeting.Permission(childComplexity, args["action"].(string)), true - case "Meeting.updatedAt": - if e.ComplexityRoot.Meeting.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Meeting.UpdatedAt(childComplexity), true - - case "MeetingConnection.edges": - if e.ComplexityRoot.MeetingConnection.Edges == nil { - break - } - - return e.ComplexityRoot.MeetingConnection.Edges(childComplexity), true - case "MeetingConnection.pageInfo": - if e.ComplexityRoot.MeetingConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.MeetingConnection.PageInfo(childComplexity), true - case "MeetingConnection.totalCount": - if e.ComplexityRoot.MeetingConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.MeetingConnection.TotalCount(childComplexity), true - - case "MeetingEdge.cursor": - if e.ComplexityRoot.MeetingEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.MeetingEdge.Cursor(childComplexity), true - case "MeetingEdge.node": - if e.ComplexityRoot.MeetingEdge.Node == nil { - break - } - - return e.ComplexityRoot.MeetingEdge.Node(childComplexity), true - - case "Mutation.assessVendor": - if e.ComplexityRoot.Mutation.AssessVendor == nil { - break - } - - args, err := ec.field_Mutation_assessVendor_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.AssessVendor(childComplexity, args["input"].(types.AssessVendorInput)), true - case "Mutation.bulkDeleteDocuments": - if e.ComplexityRoot.Mutation.BulkDeleteDocuments == nil { - break - } - - args, err := ec.field_Mutation_bulkDeleteDocuments_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.BulkDeleteDocuments(childComplexity, args["input"].(types.BulkDeleteDocumentsInput)), true - case "Mutation.bulkExportDocuments": - if e.ComplexityRoot.Mutation.BulkExportDocuments == nil { - break - } - - args, err := ec.field_Mutation_bulkExportDocuments_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.BulkExportDocuments(childComplexity, args["input"].(types.BulkExportDocumentsInput)), true - case "Mutation.bulkPublishDocumentVersions": - if e.ComplexityRoot.Mutation.BulkPublishDocumentVersions == nil { - break - } - - args, err := ec.field_Mutation_bulkPublishDocumentVersions_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.BulkPublishDocumentVersions(childComplexity, args["input"].(types.BulkPublishDocumentVersionsInput)), true - case "Mutation.bulkRequestSignatures": - if e.ComplexityRoot.Mutation.BulkRequestSignatures == nil { - break - } - - args, err := ec.field_Mutation_bulkRequestSignatures_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.BulkRequestSignatures(childComplexity, args["input"].(types.BulkRequestSignaturesInput)), true - case "Mutation.cancelSignatureRequest": - if e.ComplexityRoot.Mutation.CancelSignatureRequest == nil { - break - } - - args, err := ec.field_Mutation_cancelSignatureRequest_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CancelSignatureRequest(childComplexity, args["input"].(types.CancelSignatureRequestInput)), true - case "Mutation.createApplicabilityStatement": - if e.ComplexityRoot.Mutation.CreateApplicabilityStatement == nil { - break - } - - args, err := ec.field_Mutation_createApplicabilityStatement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateApplicabilityStatement(childComplexity, args["input"].(types.CreateApplicabilityStatementInput)), true - case "Mutation.createAsset": - if e.ComplexityRoot.Mutation.CreateAsset == nil { - break - } - - args, err := ec.field_Mutation_createAsset_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateAsset(childComplexity, args["input"].(types.CreateAssetInput)), true - case "Mutation.createAudit": - if e.ComplexityRoot.Mutation.CreateAudit == nil { - break - } - - args, err := ec.field_Mutation_createAudit_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateAudit(childComplexity, args["input"].(types.CreateAuditInput)), true - case "Mutation.createComplianceExternalURL": - if e.ComplexityRoot.Mutation.CreateComplianceExternalURL == nil { - break - } - - args, err := ec.field_Mutation_createComplianceExternalURL_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateComplianceExternalURL(childComplexity, args["input"].(types.CreateComplianceExternalURLInput)), true - case "Mutation.createComplianceFramework": - if e.ComplexityRoot.Mutation.CreateComplianceFramework == nil { - break - } - - args, err := ec.field_Mutation_createComplianceFramework_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateComplianceFramework(childComplexity, args["input"].(types.CreateComplianceFrameworkInput)), true - case "Mutation.createContinualImprovement": - if e.ComplexityRoot.Mutation.CreateContinualImprovement == nil { - break - } - - args, err := ec.field_Mutation_createContinualImprovement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateContinualImprovement(childComplexity, args["input"].(types.CreateContinualImprovementInput)), true - case "Mutation.createControl": - if e.ComplexityRoot.Mutation.CreateControl == nil { - break - } - - args, err := ec.field_Mutation_createControl_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateControl(childComplexity, args["input"].(types.CreateControlInput)), true - case "Mutation.createControlAuditMapping": - if e.ComplexityRoot.Mutation.CreateControlAuditMapping == nil { - break - } - - args, err := ec.field_Mutation_createControlAuditMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateControlAuditMapping(childComplexity, args["input"].(types.CreateControlAuditMappingInput)), true - case "Mutation.createControlDocumentMapping": - if e.ComplexityRoot.Mutation.CreateControlDocumentMapping == nil { - break - } - - args, err := ec.field_Mutation_createControlDocumentMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateControlDocumentMapping(childComplexity, args["input"].(types.CreateControlDocumentMappingInput)), true - case "Mutation.createControlMeasureMapping": - if e.ComplexityRoot.Mutation.CreateControlMeasureMapping == nil { - break - } - - args, err := ec.field_Mutation_createControlMeasureMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateControlMeasureMapping(childComplexity, args["input"].(types.CreateControlMeasureMappingInput)), true - case "Mutation.createControlObligationMapping": - if e.ComplexityRoot.Mutation.CreateControlObligationMapping == nil { - break - } - - args, err := ec.field_Mutation_createControlObligationMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateControlObligationMapping(childComplexity, args["input"].(types.CreateControlObligationMappingInput)), true - case "Mutation.createControlSnapshotMapping": - if e.ComplexityRoot.Mutation.CreateControlSnapshotMapping == nil { - break - } - - args, err := ec.field_Mutation_createControlSnapshotMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateControlSnapshotMapping(childComplexity, args["input"].(types.CreateControlSnapshotMappingInput)), true - case "Mutation.createCustomDomain": - if e.ComplexityRoot.Mutation.CreateCustomDomain == nil { - break - } - - args, err := ec.field_Mutation_createCustomDomain_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateCustomDomain(childComplexity, args["input"].(types.CreateCustomDomainInput)), true - case "Mutation.createDataProtectionImpactAssessment": - if e.ComplexityRoot.Mutation.CreateDataProtectionImpactAssessment == nil { - break - } - - args, err := ec.field_Mutation_createDataProtectionImpactAssessment_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateDataProtectionImpactAssessment(childComplexity, args["input"].(types.CreateDataProtectionImpactAssessmentInput)), true - case "Mutation.createDatum": - if e.ComplexityRoot.Mutation.CreateDatum == nil { - break - } - - args, err := ec.field_Mutation_createDatum_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateDatum(childComplexity, args["input"].(types.CreateDatumInput)), true - case "Mutation.createDocument": - if e.ComplexityRoot.Mutation.CreateDocument == nil { - break - } - - args, err := ec.field_Mutation_createDocument_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateDocument(childComplexity, args["input"].(types.CreateDocumentInput)), true - case "Mutation.createDraftDocumentVersion": - if e.ComplexityRoot.Mutation.CreateDraftDocumentVersion == nil { - break - } - - args, err := ec.field_Mutation_createDraftDocumentVersion_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateDraftDocumentVersion(childComplexity, args["input"].(types.CreateDraftDocumentVersionInput)), true - case "Mutation.createFramework": - if e.ComplexityRoot.Mutation.CreateFramework == nil { - break - } - - args, err := ec.field_Mutation_createFramework_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateFramework(childComplexity, args["input"].(types.CreateFrameworkInput)), true - case "Mutation.createMailingListSubscriber": - if e.ComplexityRoot.Mutation.CreateMailingListSubscriber == nil { - break - } - - args, err := ec.field_Mutation_createMailingListSubscriber_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateMailingListSubscriber(childComplexity, args["input"].(types.CreateMailingListSubscriberInput)), true - case "Mutation.createMailingListUpdate": - if e.ComplexityRoot.Mutation.CreateMailingListUpdate == nil { - break - } - - args, err := ec.field_Mutation_createMailingListUpdate_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateMailingListUpdate(childComplexity, args["input"].(types.CreateMailingListUpdateInput)), true - case "Mutation.createMeasure": - if e.ComplexityRoot.Mutation.CreateMeasure == nil { - break - } - - args, err := ec.field_Mutation_createMeasure_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateMeasure(childComplexity, args["input"].(types.CreateMeasureInput)), true - case "Mutation.createMeeting": - if e.ComplexityRoot.Mutation.CreateMeeting == nil { - break - } - - args, err := ec.field_Mutation_createMeeting_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateMeeting(childComplexity, args["input"].(types.CreateMeetingInput)), true - case "Mutation.createNonconformity": - if e.ComplexityRoot.Mutation.CreateNonconformity == nil { - break - } - - args, err := ec.field_Mutation_createNonconformity_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateNonconformity(childComplexity, args["input"].(types.CreateNonconformityInput)), true - case "Mutation.createObligation": - if e.ComplexityRoot.Mutation.CreateObligation == nil { - break - } - - args, err := ec.field_Mutation_createObligation_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateObligation(childComplexity, args["input"].(types.CreateObligationInput)), true - case "Mutation.createProcessingActivity": - if e.ComplexityRoot.Mutation.CreateProcessingActivity == nil { - break - } - - args, err := ec.field_Mutation_createProcessingActivity_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateProcessingActivity(childComplexity, args["input"].(types.CreateProcessingActivityInput)), true - case "Mutation.createRightsRequest": - if e.ComplexityRoot.Mutation.CreateRightsRequest == nil { - break - } - - args, err := ec.field_Mutation_createRightsRequest_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateRightsRequest(childComplexity, args["input"].(types.CreateRightsRequestInput)), true - case "Mutation.createRisk": - if e.ComplexityRoot.Mutation.CreateRisk == nil { - break - } - - args, err := ec.field_Mutation_createRisk_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateRisk(childComplexity, args["input"].(types.CreateRiskInput)), true - case "Mutation.createRiskDocumentMapping": - if e.ComplexityRoot.Mutation.CreateRiskDocumentMapping == nil { - break - } - - args, err := ec.field_Mutation_createRiskDocumentMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateRiskDocumentMapping(childComplexity, args["input"].(types.CreateRiskDocumentMappingInput)), true - case "Mutation.createRiskMeasureMapping": - if e.ComplexityRoot.Mutation.CreateRiskMeasureMapping == nil { - break - } - - args, err := ec.field_Mutation_createRiskMeasureMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateRiskMeasureMapping(childComplexity, args["input"].(types.CreateRiskMeasureMappingInput)), true - case "Mutation.createRiskObligationMapping": - if e.ComplexityRoot.Mutation.CreateRiskObligationMapping == nil { - break - } - - args, err := ec.field_Mutation_createRiskObligationMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateRiskObligationMapping(childComplexity, args["input"].(types.CreateRiskObligationMappingInput)), true - case "Mutation.createSnapshot": - if e.ComplexityRoot.Mutation.CreateSnapshot == nil { - break - } - - args, err := ec.field_Mutation_createSnapshot_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateSnapshot(childComplexity, args["input"].(types.CreateSnapshotInput)), true - case "Mutation.createStateOfApplicability": - if e.ComplexityRoot.Mutation.CreateStateOfApplicability == nil { - break - } - - args, err := ec.field_Mutation_createStateOfApplicability_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateStateOfApplicability(childComplexity, args["input"].(types.CreateStateOfApplicabilityInput)), true - case "Mutation.createTask": - if e.ComplexityRoot.Mutation.CreateTask == nil { - break - } - - args, err := ec.field_Mutation_createTask_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateTask(childComplexity, args["input"].(types.CreateTaskInput)), true - case "Mutation.createTransferImpactAssessment": - if e.ComplexityRoot.Mutation.CreateTransferImpactAssessment == nil { - break - } - - args, err := ec.field_Mutation_createTransferImpactAssessment_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateTransferImpactAssessment(childComplexity, args["input"].(types.CreateTransferImpactAssessmentInput)), true - case "Mutation.createTrustCenterFile": - if e.ComplexityRoot.Mutation.CreateTrustCenterFile == nil { - break - } - - args, err := ec.field_Mutation_createTrustCenterFile_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateTrustCenterFile(childComplexity, args["input"].(types.CreateTrustCenterFileInput)), true - case "Mutation.createTrustCenterReference": - if e.ComplexityRoot.Mutation.CreateTrustCenterReference == nil { - break - } - - args, err := ec.field_Mutation_createTrustCenterReference_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateTrustCenterReference(childComplexity, args["input"].(types.CreateTrustCenterReferenceInput)), true - case "Mutation.createVendor": - if e.ComplexityRoot.Mutation.CreateVendor == nil { - break - } - - args, err := ec.field_Mutation_createVendor_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateVendor(childComplexity, args["input"].(types.CreateVendorInput)), true - case "Mutation.createVendorContact": - if e.ComplexityRoot.Mutation.CreateVendorContact == nil { - break - } - - args, err := ec.field_Mutation_createVendorContact_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateVendorContact(childComplexity, args["input"].(types.CreateVendorContactInput)), true - case "Mutation.createVendorRiskAssessment": - if e.ComplexityRoot.Mutation.CreateVendorRiskAssessment == nil { - break - } - - args, err := ec.field_Mutation_createVendorRiskAssessment_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateVendorRiskAssessment(childComplexity, args["input"].(types.CreateVendorRiskAssessmentInput)), true - case "Mutation.createVendorService": - if e.ComplexityRoot.Mutation.CreateVendorService == nil { - break - } - - args, err := ec.field_Mutation_createVendorService_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateVendorService(childComplexity, args["input"].(types.CreateVendorServiceInput)), true - case "Mutation.createWebhookSubscription": - if e.ComplexityRoot.Mutation.CreateWebhookSubscription == nil { - break - } - - args, err := ec.field_Mutation_createWebhookSubscription_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.CreateWebhookSubscription(childComplexity, args["input"].(types.CreateWebhookSubscriptionInput)), true - case "Mutation.deleteApplicabilityStatement": - if e.ComplexityRoot.Mutation.DeleteApplicabilityStatement == nil { - break - } - - args, err := ec.field_Mutation_deleteApplicabilityStatement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteApplicabilityStatement(childComplexity, args["input"].(types.DeleteApplicabilityStatementInput)), true - case "Mutation.deleteAsset": - if e.ComplexityRoot.Mutation.DeleteAsset == nil { - break - } - - args, err := ec.field_Mutation_deleteAsset_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteAsset(childComplexity, args["input"].(types.DeleteAssetInput)), true - case "Mutation.deleteAudit": - if e.ComplexityRoot.Mutation.DeleteAudit == nil { - break - } - - args, err := ec.field_Mutation_deleteAudit_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteAudit(childComplexity, args["input"].(types.DeleteAuditInput)), true - case "Mutation.deleteAuditReport": - if e.ComplexityRoot.Mutation.DeleteAuditReport == nil { - break - } - - args, err := ec.field_Mutation_deleteAuditReport_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteAuditReport(childComplexity, args["input"].(types.DeleteAuditReportInput)), true - case "Mutation.deleteComplianceExternalURL": - if e.ComplexityRoot.Mutation.DeleteComplianceExternalURL == nil { - break - } - - args, err := ec.field_Mutation_deleteComplianceExternalURL_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteComplianceExternalURL(childComplexity, args["input"].(types.DeleteComplianceExternalURLInput)), true - case "Mutation.deleteComplianceFramework": - if e.ComplexityRoot.Mutation.DeleteComplianceFramework == nil { - break - } - - args, err := ec.field_Mutation_deleteComplianceFramework_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteComplianceFramework(childComplexity, args["input"].(types.DeleteComplianceFrameworkInput)), true - case "Mutation.deleteContinualImprovement": - if e.ComplexityRoot.Mutation.DeleteContinualImprovement == nil { - break - } - - args, err := ec.field_Mutation_deleteContinualImprovement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteContinualImprovement(childComplexity, args["input"].(types.DeleteContinualImprovementInput)), true - case "Mutation.deleteControl": - if e.ComplexityRoot.Mutation.DeleteControl == nil { - break - } - - args, err := ec.field_Mutation_deleteControl_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteControl(childComplexity, args["input"].(types.DeleteControlInput)), true - case "Mutation.deleteControlAuditMapping": - if e.ComplexityRoot.Mutation.DeleteControlAuditMapping == nil { - break - } - - args, err := ec.field_Mutation_deleteControlAuditMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteControlAuditMapping(childComplexity, args["input"].(types.DeleteControlAuditMappingInput)), true - case "Mutation.deleteControlDocumentMapping": - if e.ComplexityRoot.Mutation.DeleteControlDocumentMapping == nil { - break - } - - args, err := ec.field_Mutation_deleteControlDocumentMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteControlDocumentMapping(childComplexity, args["input"].(types.DeleteControlDocumentMappingInput)), true - case "Mutation.deleteControlMeasureMapping": - if e.ComplexityRoot.Mutation.DeleteControlMeasureMapping == nil { - break - } - - args, err := ec.field_Mutation_deleteControlMeasureMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteControlMeasureMapping(childComplexity, args["input"].(types.DeleteControlMeasureMappingInput)), true - case "Mutation.deleteControlObligationMapping": - if e.ComplexityRoot.Mutation.DeleteControlObligationMapping == nil { - break - } - - args, err := ec.field_Mutation_deleteControlObligationMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteControlObligationMapping(childComplexity, args["input"].(types.DeleteControlObligationMappingInput)), true - case "Mutation.deleteControlSnapshotMapping": - if e.ComplexityRoot.Mutation.DeleteControlSnapshotMapping == nil { - break - } - - args, err := ec.field_Mutation_deleteControlSnapshotMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteControlSnapshotMapping(childComplexity, args["input"].(types.DeleteControlSnapshotMappingInput)), true - case "Mutation.deleteCustomDomain": - if e.ComplexityRoot.Mutation.DeleteCustomDomain == nil { - break - } - - args, err := ec.field_Mutation_deleteCustomDomain_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteCustomDomain(childComplexity, args["input"].(types.DeleteCustomDomainInput)), true - case "Mutation.deleteDataProtectionImpactAssessment": - if e.ComplexityRoot.Mutation.DeleteDataProtectionImpactAssessment == nil { - break - } - - args, err := ec.field_Mutation_deleteDataProtectionImpactAssessment_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteDataProtectionImpactAssessment(childComplexity, args["input"].(types.DeleteDataProtectionImpactAssessmentInput)), true - case "Mutation.deleteDatum": - if e.ComplexityRoot.Mutation.DeleteDatum == nil { - break - } - - args, err := ec.field_Mutation_deleteDatum_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteDatum(childComplexity, args["input"].(types.DeleteDatumInput)), true - case "Mutation.deleteDocument": - if e.ComplexityRoot.Mutation.DeleteDocument == nil { - break - } - - args, err := ec.field_Mutation_deleteDocument_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteDocument(childComplexity, args["input"].(types.DeleteDocumentInput)), true - case "Mutation.deleteDraftDocumentVersion": - if e.ComplexityRoot.Mutation.DeleteDraftDocumentVersion == nil { - break - } - - args, err := ec.field_Mutation_deleteDraftDocumentVersion_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteDraftDocumentVersion(childComplexity, args["input"].(types.DeleteDraftDocumentVersionInput)), true - case "Mutation.deleteEvidence": - if e.ComplexityRoot.Mutation.DeleteEvidence == nil { - break - } - - args, err := ec.field_Mutation_deleteEvidence_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteEvidence(childComplexity, args["input"].(types.DeleteEvidenceInput)), true - case "Mutation.deleteFramework": - if e.ComplexityRoot.Mutation.DeleteFramework == nil { - break - } - - args, err := ec.field_Mutation_deleteFramework_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteFramework(childComplexity, args["input"].(types.DeleteFrameworkInput)), true - case "Mutation.deleteMailingListSubscriber": - if e.ComplexityRoot.Mutation.DeleteMailingListSubscriber == nil { - break - } - - args, err := ec.field_Mutation_deleteMailingListSubscriber_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteMailingListSubscriber(childComplexity, args["input"].(types.DeleteMailingListSubscriberInput)), true - case "Mutation.deleteMailingListUpdate": - if e.ComplexityRoot.Mutation.DeleteMailingListUpdate == nil { - break - } - - args, err := ec.field_Mutation_deleteMailingListUpdate_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteMailingListUpdate(childComplexity, args["input"].(types.DeleteMailingListUpdateInput)), true - case "Mutation.deleteMeasure": - if e.ComplexityRoot.Mutation.DeleteMeasure == nil { - break - } - - args, err := ec.field_Mutation_deleteMeasure_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteMeasure(childComplexity, args["input"].(types.DeleteMeasureInput)), true - case "Mutation.deleteMeeting": - if e.ComplexityRoot.Mutation.DeleteMeeting == nil { - break - } - - args, err := ec.field_Mutation_deleteMeeting_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteMeeting(childComplexity, args["input"].(types.DeleteMeetingInput)), true - case "Mutation.deleteNonconformity": - if e.ComplexityRoot.Mutation.DeleteNonconformity == nil { - break - } - - args, err := ec.field_Mutation_deleteNonconformity_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteNonconformity(childComplexity, args["input"].(types.DeleteNonconformityInput)), true - case "Mutation.deleteObligation": - if e.ComplexityRoot.Mutation.DeleteObligation == nil { - break - } - - args, err := ec.field_Mutation_deleteObligation_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteObligation(childComplexity, args["input"].(types.DeleteObligationInput)), true - case "Mutation.deleteProcessingActivity": - if e.ComplexityRoot.Mutation.DeleteProcessingActivity == nil { - break - } - - args, err := ec.field_Mutation_deleteProcessingActivity_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteProcessingActivity(childComplexity, args["input"].(types.DeleteProcessingActivityInput)), true - case "Mutation.deleteRightsRequest": - if e.ComplexityRoot.Mutation.DeleteRightsRequest == nil { - break - } - - args, err := ec.field_Mutation_deleteRightsRequest_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteRightsRequest(childComplexity, args["input"].(types.DeleteRightsRequestInput)), true - case "Mutation.deleteRisk": - if e.ComplexityRoot.Mutation.DeleteRisk == nil { - break - } - - args, err := ec.field_Mutation_deleteRisk_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteRisk(childComplexity, args["input"].(types.DeleteRiskInput)), true - case "Mutation.deleteRiskDocumentMapping": - if e.ComplexityRoot.Mutation.DeleteRiskDocumentMapping == nil { - break - } - - args, err := ec.field_Mutation_deleteRiskDocumentMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteRiskDocumentMapping(childComplexity, args["input"].(types.DeleteRiskDocumentMappingInput)), true - case "Mutation.deleteRiskMeasureMapping": - if e.ComplexityRoot.Mutation.DeleteRiskMeasureMapping == nil { - break - } - - args, err := ec.field_Mutation_deleteRiskMeasureMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteRiskMeasureMapping(childComplexity, args["input"].(types.DeleteRiskMeasureMappingInput)), true - case "Mutation.deleteRiskObligationMapping": - if e.ComplexityRoot.Mutation.DeleteRiskObligationMapping == nil { - break - } - - args, err := ec.field_Mutation_deleteRiskObligationMapping_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteRiskObligationMapping(childComplexity, args["input"].(types.DeleteRiskObligationMappingInput)), true - case "Mutation.deleteSnapshot": - if e.ComplexityRoot.Mutation.DeleteSnapshot == nil { - break - } - - args, err := ec.field_Mutation_deleteSnapshot_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteSnapshot(childComplexity, args["input"].(types.DeleteSnapshotInput)), true - case "Mutation.deleteStateOfApplicability": - if e.ComplexityRoot.Mutation.DeleteStateOfApplicability == nil { - break - } - - args, err := ec.field_Mutation_deleteStateOfApplicability_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteStateOfApplicability(childComplexity, args["input"].(types.DeleteStateOfApplicabilityInput)), true - case "Mutation.deleteTask": - if e.ComplexityRoot.Mutation.DeleteTask == nil { - break - } - - args, err := ec.field_Mutation_deleteTask_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteTask(childComplexity, args["input"].(types.DeleteTaskInput)), true - case "Mutation.deleteTransferImpactAssessment": - if e.ComplexityRoot.Mutation.DeleteTransferImpactAssessment == nil { - break - } - - args, err := ec.field_Mutation_deleteTransferImpactAssessment_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteTransferImpactAssessment(childComplexity, args["input"].(types.DeleteTransferImpactAssessmentInput)), true - case "Mutation.deleteTrustCenterAccess": - if e.ComplexityRoot.Mutation.DeleteTrustCenterAccess == nil { - break - } - - args, err := ec.field_Mutation_deleteTrustCenterAccess_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteTrustCenterAccess(childComplexity, args["input"].(types.DeleteTrustCenterAccessInput)), true - case "Mutation.deleteTrustCenterFile": - if e.ComplexityRoot.Mutation.DeleteTrustCenterFile == nil { - break - } - - args, err := ec.field_Mutation_deleteTrustCenterFile_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteTrustCenterFile(childComplexity, args["input"].(types.DeleteTrustCenterFileInput)), true - case "Mutation.deleteTrustCenterNDA": - if e.ComplexityRoot.Mutation.DeleteTrustCenterNda == nil { - break - } - - args, err := ec.field_Mutation_deleteTrustCenterNDA_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteTrustCenterNda(childComplexity, args["input"].(types.DeleteTrustCenterNDAInput)), true - case "Mutation.deleteTrustCenterReference": - if e.ComplexityRoot.Mutation.DeleteTrustCenterReference == nil { - break - } - - args, err := ec.field_Mutation_deleteTrustCenterReference_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteTrustCenterReference(childComplexity, args["input"].(types.DeleteTrustCenterReferenceInput)), true - case "Mutation.deleteVendor": - if e.ComplexityRoot.Mutation.DeleteVendor == nil { - break - } - - args, err := ec.field_Mutation_deleteVendor_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteVendor(childComplexity, args["input"].(types.DeleteVendorInput)), true - case "Mutation.deleteVendorBusinessAssociateAgreement": - if e.ComplexityRoot.Mutation.DeleteVendorBusinessAssociateAgreement == nil { - break - } - - args, err := ec.field_Mutation_deleteVendorBusinessAssociateAgreement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteVendorBusinessAssociateAgreement(childComplexity, args["input"].(types.DeleteVendorBusinessAssociateAgreementInput)), true - case "Mutation.deleteVendorComplianceReport": - if e.ComplexityRoot.Mutation.DeleteVendorComplianceReport == nil { - break - } - - args, err := ec.field_Mutation_deleteVendorComplianceReport_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteVendorComplianceReport(childComplexity, args["input"].(types.DeleteVendorComplianceReportInput)), true - case "Mutation.deleteVendorContact": - if e.ComplexityRoot.Mutation.DeleteVendorContact == nil { - break - } - - args, err := ec.field_Mutation_deleteVendorContact_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteVendorContact(childComplexity, args["input"].(types.DeleteVendorContactInput)), true - case "Mutation.deleteVendorDataPrivacyAgreement": - if e.ComplexityRoot.Mutation.DeleteVendorDataPrivacyAgreement == nil { - break - } - - args, err := ec.field_Mutation_deleteVendorDataPrivacyAgreement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteVendorDataPrivacyAgreement(childComplexity, args["input"].(types.DeleteVendorDataPrivacyAgreementInput)), true - case "Mutation.deleteVendorService": - if e.ComplexityRoot.Mutation.DeleteVendorService == nil { - break - } - - args, err := ec.field_Mutation_deleteVendorService_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteVendorService(childComplexity, args["input"].(types.DeleteVendorServiceInput)), true - case "Mutation.deleteWebhookSubscription": - if e.ComplexityRoot.Mutation.DeleteWebhookSubscription == nil { - break - } - - args, err := ec.field_Mutation_deleteWebhookSubscription_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.DeleteWebhookSubscription(childComplexity, args["input"].(types.DeleteWebhookSubscriptionInput)), true - case "Mutation.exportDataProtectionImpactAssessmentsPDF": - if e.ComplexityRoot.Mutation.ExportDataProtectionImpactAssessmentsPDF == nil { - break - } - - args, err := ec.field_Mutation_exportDataProtectionImpactAssessmentsPDF_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ExportDataProtectionImpactAssessmentsPDF(childComplexity, args["input"].(types.ExportDataProtectionImpactAssessmentsPDFInput)), true - case "Mutation.exportDocumentVersionPDF": - if e.ComplexityRoot.Mutation.ExportDocumentVersionPDF == nil { - break - } - - args, err := ec.field_Mutation_exportDocumentVersionPDF_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ExportDocumentVersionPDF(childComplexity, args["input"].(types.ExportDocumentVersionPDFInput)), true - case "Mutation.exportFramework": - if e.ComplexityRoot.Mutation.ExportFramework == nil { - break - } - - args, err := ec.field_Mutation_exportFramework_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ExportFramework(childComplexity, args["input"].(types.ExportFrameworkInput)), true - case "Mutation.exportProcessingActivitiesPDF": - if e.ComplexityRoot.Mutation.ExportProcessingActivitiesPDF == nil { - break - } - - args, err := ec.field_Mutation_exportProcessingActivitiesPDF_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ExportProcessingActivitiesPDF(childComplexity, args["input"].(types.ExportProcessingActivitiesPDFInput)), true - case "Mutation.exportSignableVersionDocumentPDF": - if e.ComplexityRoot.Mutation.ExportSignableVersionDocumentPDF == nil { - break - } - - args, err := ec.field_Mutation_exportSignableVersionDocumentPDF_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ExportSignableVersionDocumentPDF(childComplexity, args["input"].(types.ExportSignableDocumentVersionPDFInput)), true - case "Mutation.exportStateOfApplicabilityPDF": - if e.ComplexityRoot.Mutation.ExportStateOfApplicabilityPDF == nil { - break - } - - args, err := ec.field_Mutation_exportStateOfApplicabilityPDF_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ExportStateOfApplicabilityPDF(childComplexity, args["input"].(types.ExportStateOfApplicabilityPDFInput)), true - case "Mutation.exportTransferImpactAssessmentsPDF": - if e.ComplexityRoot.Mutation.ExportTransferImpactAssessmentsPDF == nil { - break - } - - args, err := ec.field_Mutation_exportTransferImpactAssessmentsPDF_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ExportTransferImpactAssessmentsPDF(childComplexity, args["input"].(types.ExportTransferImpactAssessmentsPDFInput)), true - case "Mutation.generateDocumentChangelog": - if e.ComplexityRoot.Mutation.GenerateDocumentChangelog == nil { - break - } - - args, err := ec.field_Mutation_generateDocumentChangelog_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.GenerateDocumentChangelog(childComplexity, args["input"].(types.GenerateDocumentChangelogInput)), true - case "Mutation.getTrustCenterFile": - if e.ComplexityRoot.Mutation.GetTrustCenterFile == nil { - break - } - - args, err := ec.field_Mutation_getTrustCenterFile_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.GetTrustCenterFile(childComplexity, args["input"].(types.GetTrustCenterFileInput)), true - case "Mutation.importFramework": - if e.ComplexityRoot.Mutation.ImportFramework == nil { - break - } - - args, err := ec.field_Mutation_importFramework_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ImportFramework(childComplexity, args["input"].(types.ImportFrameworkInput)), true - case "Mutation.importMeasure": - if e.ComplexityRoot.Mutation.ImportMeasure == nil { - break - } - - args, err := ec.field_Mutation_importMeasure_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ImportMeasure(childComplexity, args["input"].(types.ImportMeasureInput)), true - case "Mutation.publishDocumentVersion": - if e.ComplexityRoot.Mutation.PublishDocumentVersion == nil { - break - } - - args, err := ec.field_Mutation_publishDocumentVersion_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.PublishDocumentVersion(childComplexity, args["input"].(types.PublishDocumentVersionInput)), true - case "Mutation.requestSignature": - if e.ComplexityRoot.Mutation.RequestSignature == nil { - break - } - - args, err := ec.field_Mutation_requestSignature_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.RequestSignature(childComplexity, args["input"].(types.RequestSignatureInput)), true - case "Mutation.sendMailingListUpdate": - if e.ComplexityRoot.Mutation.SendMailingListUpdate == nil { - break - } - - args, err := ec.field_Mutation_sendMailingListUpdate_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.SendMailingListUpdate(childComplexity, args["input"].(types.SendMailingListUpdateInput)), true - case "Mutation.sendSigningNotifications": - if e.ComplexityRoot.Mutation.SendSigningNotifications == nil { - break - } - - args, err := ec.field_Mutation_sendSigningNotifications_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.SendSigningNotifications(childComplexity, args["input"].(types.SendSigningNotificationsInput)), true - case "Mutation.signDocument": - if e.ComplexityRoot.Mutation.SignDocument == nil { - break - } - - args, err := ec.field_Mutation_signDocument_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.SignDocument(childComplexity, args["input"].(types.SignDocumentInput)), true - case "Mutation.updateApplicabilityStatement": - if e.ComplexityRoot.Mutation.UpdateApplicabilityStatement == nil { - break - } - - args, err := ec.field_Mutation_updateApplicabilityStatement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateApplicabilityStatement(childComplexity, args["input"].(types.UpdateApplicabilityStatementInput)), true - case "Mutation.updateAsset": - if e.ComplexityRoot.Mutation.UpdateAsset == nil { - break - } - - args, err := ec.field_Mutation_updateAsset_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateAsset(childComplexity, args["input"].(types.UpdateAssetInput)), true - case "Mutation.updateAudit": - if e.ComplexityRoot.Mutation.UpdateAudit == nil { - break - } - - args, err := ec.field_Mutation_updateAudit_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateAudit(childComplexity, args["input"].(types.UpdateAuditInput)), true - case "Mutation.updateComplianceExternalURL": - if e.ComplexityRoot.Mutation.UpdateComplianceExternalURL == nil { - break - } - - args, err := ec.field_Mutation_updateComplianceExternalURL_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateComplianceExternalURL(childComplexity, args["input"].(types.UpdateComplianceExternalURLInput)), true - case "Mutation.updateComplianceFramework": - if e.ComplexityRoot.Mutation.UpdateComplianceFramework == nil { - break - } - - args, err := ec.field_Mutation_updateComplianceFramework_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateComplianceFramework(childComplexity, args["input"].(types.UpdateComplianceFrameworkInput)), true - case "Mutation.updateContinualImprovement": - if e.ComplexityRoot.Mutation.UpdateContinualImprovement == nil { - break - } - - args, err := ec.field_Mutation_updateContinualImprovement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateContinualImprovement(childComplexity, args["input"].(types.UpdateContinualImprovementInput)), true - case "Mutation.updateControl": - if e.ComplexityRoot.Mutation.UpdateControl == nil { - break - } - - args, err := ec.field_Mutation_updateControl_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateControl(childComplexity, args["input"].(types.UpdateControlInput)), true - case "Mutation.updateDataProtectionImpactAssessment": - if e.ComplexityRoot.Mutation.UpdateDataProtectionImpactAssessment == nil { - break - } - - args, err := ec.field_Mutation_updateDataProtectionImpactAssessment_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateDataProtectionImpactAssessment(childComplexity, args["input"].(types.UpdateDataProtectionImpactAssessmentInput)), true - case "Mutation.updateDatum": - if e.ComplexityRoot.Mutation.UpdateDatum == nil { - break - } - - args, err := ec.field_Mutation_updateDatum_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateDatum(childComplexity, args["input"].(types.UpdateDatumInput)), true - case "Mutation.updateDocument": - if e.ComplexityRoot.Mutation.UpdateDocument == nil { - break - } - - args, err := ec.field_Mutation_updateDocument_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateDocument(childComplexity, args["input"].(types.UpdateDocumentInput)), true - case "Mutation.updateDocumentVersion": - if e.ComplexityRoot.Mutation.UpdateDocumentVersion == nil { - break - } - - args, err := ec.field_Mutation_updateDocumentVersion_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateDocumentVersion(childComplexity, args["input"].(types.UpdateDocumentVersionInput)), true - case "Mutation.updateFramework": - if e.ComplexityRoot.Mutation.UpdateFramework == nil { - break - } - - args, err := ec.field_Mutation_updateFramework_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateFramework(childComplexity, args["input"].(types.UpdateFrameworkInput)), true - case "Mutation.updateMailingList": - if e.ComplexityRoot.Mutation.UpdateMailingList == nil { - break - } - - args, err := ec.field_Mutation_updateMailingList_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateMailingList(childComplexity, args["input"].(types.UpdateMailingListInput)), true - case "Mutation.updateMailingListUpdate": - if e.ComplexityRoot.Mutation.UpdateMailingListUpdate == nil { - break - } - - args, err := ec.field_Mutation_updateMailingListUpdate_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateMailingListUpdate(childComplexity, args["input"].(types.UpdateMailingListUpdateInput)), true - case "Mutation.updateMeasure": - if e.ComplexityRoot.Mutation.UpdateMeasure == nil { - break - } - - args, err := ec.field_Mutation_updateMeasure_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateMeasure(childComplexity, args["input"].(types.UpdateMeasureInput)), true - case "Mutation.updateMeeting": - if e.ComplexityRoot.Mutation.UpdateMeeting == nil { - break - } - - args, err := ec.field_Mutation_updateMeeting_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateMeeting(childComplexity, args["input"].(types.UpdateMeetingInput)), true - case "Mutation.updateNonconformity": - if e.ComplexityRoot.Mutation.UpdateNonconformity == nil { - break - } - - args, err := ec.field_Mutation_updateNonconformity_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateNonconformity(childComplexity, args["input"].(types.UpdateNonconformityInput)), true - case "Mutation.updateObligation": - if e.ComplexityRoot.Mutation.UpdateObligation == nil { - break - } - - args, err := ec.field_Mutation_updateObligation_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateObligation(childComplexity, args["input"].(types.UpdateObligationInput)), true - case "Mutation.updateOrganizationContext": - if e.ComplexityRoot.Mutation.UpdateOrganizationContext == nil { - break - } - - args, err := ec.field_Mutation_updateOrganizationContext_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateOrganizationContext(childComplexity, args["input"].(types.UpdateOrganizationContextInput)), true - case "Mutation.updateProcessingActivity": - if e.ComplexityRoot.Mutation.UpdateProcessingActivity == nil { - break - } - - args, err := ec.field_Mutation_updateProcessingActivity_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateProcessingActivity(childComplexity, args["input"].(types.UpdateProcessingActivityInput)), true - case "Mutation.updateRightsRequest": - if e.ComplexityRoot.Mutation.UpdateRightsRequest == nil { - break - } - - args, err := ec.field_Mutation_updateRightsRequest_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateRightsRequest(childComplexity, args["input"].(types.UpdateRightsRequestInput)), true - case "Mutation.updateRisk": - if e.ComplexityRoot.Mutation.UpdateRisk == nil { - break - } - - args, err := ec.field_Mutation_updateRisk_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateRisk(childComplexity, args["input"].(types.UpdateRiskInput)), true - case "Mutation.updateStateOfApplicability": - if e.ComplexityRoot.Mutation.UpdateStateOfApplicability == nil { - break - } - - args, err := ec.field_Mutation_updateStateOfApplicability_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateStateOfApplicability(childComplexity, args["input"].(types.UpdateStateOfApplicabilityInput)), true - case "Mutation.updateTask": - if e.ComplexityRoot.Mutation.UpdateTask == nil { - break - } - - args, err := ec.field_Mutation_updateTask_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateTask(childComplexity, args["input"].(types.UpdateTaskInput)), true - case "Mutation.updateTransferImpactAssessment": - if e.ComplexityRoot.Mutation.UpdateTransferImpactAssessment == nil { - break - } - - args, err := ec.field_Mutation_updateTransferImpactAssessment_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateTransferImpactAssessment(childComplexity, args["input"].(types.UpdateTransferImpactAssessmentInput)), true - case "Mutation.updateTrustCenter": - if e.ComplexityRoot.Mutation.UpdateTrustCenter == nil { - break - } - - args, err := ec.field_Mutation_updateTrustCenter_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateTrustCenter(childComplexity, args["input"].(types.UpdateTrustCenterInput)), true - case "Mutation.updateTrustCenterAccess": - if e.ComplexityRoot.Mutation.UpdateTrustCenterAccess == nil { - break - } - - args, err := ec.field_Mutation_updateTrustCenterAccess_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateTrustCenterAccess(childComplexity, args["input"].(types.UpdateTrustCenterAccessInput)), true - case "Mutation.updateTrustCenterBrand": - if e.ComplexityRoot.Mutation.UpdateTrustCenterBrand == nil { - break - } - - args, err := ec.field_Mutation_updateTrustCenterBrand_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateTrustCenterBrand(childComplexity, args["input"].(types.UpdateTrustCenterBrandInput)), true - case "Mutation.updateTrustCenterFile": - if e.ComplexityRoot.Mutation.UpdateTrustCenterFile == nil { - break - } - - args, err := ec.field_Mutation_updateTrustCenterFile_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateTrustCenterFile(childComplexity, args["input"].(types.UpdateTrustCenterFileInput)), true - case "Mutation.updateTrustCenterReference": - if e.ComplexityRoot.Mutation.UpdateTrustCenterReference == nil { - break - } - - args, err := ec.field_Mutation_updateTrustCenterReference_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateTrustCenterReference(childComplexity, args["input"].(types.UpdateTrustCenterReferenceInput)), true - case "Mutation.updateVendor": - if e.ComplexityRoot.Mutation.UpdateVendor == nil { - break - } - - args, err := ec.field_Mutation_updateVendor_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateVendor(childComplexity, args["input"].(types.UpdateVendorInput)), true - case "Mutation.updateVendorBusinessAssociateAgreement": - if e.ComplexityRoot.Mutation.UpdateVendorBusinessAssociateAgreement == nil { - break - } - - args, err := ec.field_Mutation_updateVendorBusinessAssociateAgreement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateVendorBusinessAssociateAgreement(childComplexity, args["input"].(types.UpdateVendorBusinessAssociateAgreementInput)), true - case "Mutation.updateVendorContact": - if e.ComplexityRoot.Mutation.UpdateVendorContact == nil { - break - } - - args, err := ec.field_Mutation_updateVendorContact_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateVendorContact(childComplexity, args["input"].(types.UpdateVendorContactInput)), true - case "Mutation.updateVendorDataPrivacyAgreement": - if e.ComplexityRoot.Mutation.UpdateVendorDataPrivacyAgreement == nil { - break - } - - args, err := ec.field_Mutation_updateVendorDataPrivacyAgreement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateVendorDataPrivacyAgreement(childComplexity, args["input"].(types.UpdateVendorDataPrivacyAgreementInput)), true - case "Mutation.updateVendorService": - if e.ComplexityRoot.Mutation.UpdateVendorService == nil { - break - } - - args, err := ec.field_Mutation_updateVendorService_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateVendorService(childComplexity, args["input"].(types.UpdateVendorServiceInput)), true - case "Mutation.updateWebhookSubscription": - if e.ComplexityRoot.Mutation.UpdateWebhookSubscription == nil { - break - } - - args, err := ec.field_Mutation_updateWebhookSubscription_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateWebhookSubscription(childComplexity, args["input"].(types.UpdateWebhookSubscriptionInput)), true - case "Mutation.uploadAuditReport": - if e.ComplexityRoot.Mutation.UploadAuditReport == nil { - break - } - - args, err := ec.field_Mutation_uploadAuditReport_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UploadAuditReport(childComplexity, args["input"].(types.UploadAuditReportInput)), true - case "Mutation.uploadMeasureEvidence": - if e.ComplexityRoot.Mutation.UploadMeasureEvidence == nil { - break - } - - args, err := ec.field_Mutation_uploadMeasureEvidence_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UploadMeasureEvidence(childComplexity, args["input"].(types.UploadMeasureEvidenceInput)), true - case "Mutation.uploadTrustCenterNDA": - if e.ComplexityRoot.Mutation.UploadTrustCenterNda == nil { - break - } - - args, err := ec.field_Mutation_uploadTrustCenterNDA_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UploadTrustCenterNda(childComplexity, args["input"].(types.UploadTrustCenterNDAInput)), true - case "Mutation.uploadVendorBusinessAssociateAgreement": - if e.ComplexityRoot.Mutation.UploadVendorBusinessAssociateAgreement == nil { - break - } - - args, err := ec.field_Mutation_uploadVendorBusinessAssociateAgreement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UploadVendorBusinessAssociateAgreement(childComplexity, args["input"].(types.UploadVendorBusinessAssociateAgreementInput)), true - case "Mutation.uploadVendorComplianceReport": - if e.ComplexityRoot.Mutation.UploadVendorComplianceReport == nil { - break - } - - args, err := ec.field_Mutation_uploadVendorComplianceReport_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UploadVendorComplianceReport(childComplexity, args["input"].(types.UploadVendorComplianceReportInput)), true - case "Mutation.uploadVendorDataPrivacyAgreement": - if e.ComplexityRoot.Mutation.UploadVendorDataPrivacyAgreement == nil { - break - } - - args, err := ec.field_Mutation_uploadVendorDataPrivacyAgreement_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UploadVendorDataPrivacyAgreement(childComplexity, args["input"].(types.UploadVendorDataPrivacyAgreementInput)), true - - case "Nonconformity.audit": - if e.ComplexityRoot.Nonconformity.Audit == nil { - break - } - - return e.ComplexityRoot.Nonconformity.Audit(childComplexity), true - case "Nonconformity.correctiveAction": - if e.ComplexityRoot.Nonconformity.CorrectiveAction == nil { - break - } - - return e.ComplexityRoot.Nonconformity.CorrectiveAction(childComplexity), true - case "Nonconformity.createdAt": - if e.ComplexityRoot.Nonconformity.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Nonconformity.CreatedAt(childComplexity), true - case "Nonconformity.dateIdentified": - if e.ComplexityRoot.Nonconformity.DateIdentified == nil { - break - } - - return e.ComplexityRoot.Nonconformity.DateIdentified(childComplexity), true - case "Nonconformity.description": - if e.ComplexityRoot.Nonconformity.Description == nil { - break - } - - return e.ComplexityRoot.Nonconformity.Description(childComplexity), true - case "Nonconformity.dueDate": - if e.ComplexityRoot.Nonconformity.DueDate == nil { - break - } - - return e.ComplexityRoot.Nonconformity.DueDate(childComplexity), true - case "Nonconformity.effectivenessCheck": - if e.ComplexityRoot.Nonconformity.EffectivenessCheck == nil { - break - } - - return e.ComplexityRoot.Nonconformity.EffectivenessCheck(childComplexity), true - case "Nonconformity.id": - if e.ComplexityRoot.Nonconformity.ID == nil { - break - } - - return e.ComplexityRoot.Nonconformity.ID(childComplexity), true - case "Nonconformity.organization": - if e.ComplexityRoot.Nonconformity.Organization == nil { - break - } - - return e.ComplexityRoot.Nonconformity.Organization(childComplexity), true - case "Nonconformity.owner": - if e.ComplexityRoot.Nonconformity.Owner == nil { - break - } - - return e.ComplexityRoot.Nonconformity.Owner(childComplexity), true - case "Nonconformity.permission": - if e.ComplexityRoot.Nonconformity.Permission == nil { - break - } - - args, err := ec.field_Nonconformity_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Nonconformity.Permission(childComplexity, args["action"].(string)), true - case "Nonconformity.referenceId": - if e.ComplexityRoot.Nonconformity.ReferenceID == nil { - break - } - - return e.ComplexityRoot.Nonconformity.ReferenceID(childComplexity), true - case "Nonconformity.rootCause": - if e.ComplexityRoot.Nonconformity.RootCause == nil { - break - } - - return e.ComplexityRoot.Nonconformity.RootCause(childComplexity), true - case "Nonconformity.snapshotId": - if e.ComplexityRoot.Nonconformity.SnapshotID == nil { - break - } - - return e.ComplexityRoot.Nonconformity.SnapshotID(childComplexity), true - case "Nonconformity.status": - if e.ComplexityRoot.Nonconformity.Status == nil { - break - } - - return e.ComplexityRoot.Nonconformity.Status(childComplexity), true - case "Nonconformity.updatedAt": - if e.ComplexityRoot.Nonconformity.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Nonconformity.UpdatedAt(childComplexity), true - - case "NonconformityConnection.edges": - if e.ComplexityRoot.NonconformityConnection.Edges == nil { - break - } - - return e.ComplexityRoot.NonconformityConnection.Edges(childComplexity), true - case "NonconformityConnection.pageInfo": - if e.ComplexityRoot.NonconformityConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.NonconformityConnection.PageInfo(childComplexity), true - case "NonconformityConnection.totalCount": - if e.ComplexityRoot.NonconformityConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.NonconformityConnection.TotalCount(childComplexity), true - - case "NonconformityEdge.cursor": - if e.ComplexityRoot.NonconformityEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.NonconformityEdge.Cursor(childComplexity), true - case "NonconformityEdge.node": - if e.ComplexityRoot.NonconformityEdge.Node == nil { - break - } - - return e.ComplexityRoot.NonconformityEdge.Node(childComplexity), true - - case "Obligation.actionsToBeImplemented": - if e.ComplexityRoot.Obligation.ActionsToBeImplemented == nil { - break - } - - return e.ComplexityRoot.Obligation.ActionsToBeImplemented(childComplexity), true - case "Obligation.area": - if e.ComplexityRoot.Obligation.Area == nil { - break - } - - return e.ComplexityRoot.Obligation.Area(childComplexity), true - case "Obligation.createdAt": - if e.ComplexityRoot.Obligation.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Obligation.CreatedAt(childComplexity), true - case "Obligation.dueDate": - if e.ComplexityRoot.Obligation.DueDate == nil { - break - } - - return e.ComplexityRoot.Obligation.DueDate(childComplexity), true - case "Obligation.id": - if e.ComplexityRoot.Obligation.ID == nil { - break - } - - return e.ComplexityRoot.Obligation.ID(childComplexity), true - case "Obligation.lastReviewDate": - if e.ComplexityRoot.Obligation.LastReviewDate == nil { - break - } - - return e.ComplexityRoot.Obligation.LastReviewDate(childComplexity), true - case "Obligation.organization": - if e.ComplexityRoot.Obligation.Organization == nil { - break - } - - return e.ComplexityRoot.Obligation.Organization(childComplexity), true - case "Obligation.owner": - if e.ComplexityRoot.Obligation.Owner == nil { - break - } - - return e.ComplexityRoot.Obligation.Owner(childComplexity), true - case "Obligation.permission": - if e.ComplexityRoot.Obligation.Permission == nil { - break - } - - args, err := ec.field_Obligation_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Obligation.Permission(childComplexity, args["action"].(string)), true - case "Obligation.regulator": - if e.ComplexityRoot.Obligation.Regulator == nil { - break - } - - return e.ComplexityRoot.Obligation.Regulator(childComplexity), true - case "Obligation.requirement": - if e.ComplexityRoot.Obligation.Requirement == nil { - break - } - - return e.ComplexityRoot.Obligation.Requirement(childComplexity), true - case "Obligation.snapshotId": - if e.ComplexityRoot.Obligation.SnapshotID == nil { - break - } - - return e.ComplexityRoot.Obligation.SnapshotID(childComplexity), true - case "Obligation.source": - if e.ComplexityRoot.Obligation.Source == nil { - break - } - - return e.ComplexityRoot.Obligation.Source(childComplexity), true - case "Obligation.sourceId": - if e.ComplexityRoot.Obligation.SourceID == nil { - break - } - - return e.ComplexityRoot.Obligation.SourceID(childComplexity), true - case "Obligation.status": - if e.ComplexityRoot.Obligation.Status == nil { - break - } - - return e.ComplexityRoot.Obligation.Status(childComplexity), true - case "Obligation.type": - if e.ComplexityRoot.Obligation.Type == nil { - break - } - - return e.ComplexityRoot.Obligation.Type(childComplexity), true - case "Obligation.updatedAt": - if e.ComplexityRoot.Obligation.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Obligation.UpdatedAt(childComplexity), true - - case "ObligationConnection.edges": - if e.ComplexityRoot.ObligationConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ObligationConnection.Edges(childComplexity), true - case "ObligationConnection.pageInfo": - if e.ComplexityRoot.ObligationConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ObligationConnection.PageInfo(childComplexity), true - case "ObligationConnection.totalCount": - if e.ComplexityRoot.ObligationConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.ObligationConnection.TotalCount(childComplexity), true - - case "ObligationEdge.cursor": - if e.ComplexityRoot.ObligationEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ObligationEdge.Cursor(childComplexity), true - case "ObligationEdge.node": - if e.ComplexityRoot.ObligationEdge.Node == nil { - break - } - - return e.ComplexityRoot.ObligationEdge.Node(childComplexity), true - - case "Organization.assets": - if e.ComplexityRoot.Organization.Assets == nil { - break - } - - args, err := ec.field_Organization_assets_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Assets(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.AssetOrderBy), args["filter"].(*types.AssetFilter)), true - case "Organization.audits": - if e.ComplexityRoot.Organization.Audits == nil { - break - } - - args, err := ec.field_Organization_audits_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Audits(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.AuditOrderBy)), true - case "Organization.context": - if e.ComplexityRoot.Organization.Context == nil { - break - } - - return e.ComplexityRoot.Organization.Context(childComplexity), true - case "Organization.continualImprovements": - if e.ComplexityRoot.Organization.ContinualImprovements == nil { - break - } - - args, err := ec.field_Organization_continualImprovements_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.ContinualImprovements(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ContinualImprovementOrderBy), args["filter"].(*types.ContinualImprovementFilter)), true - case "Organization.controls": - if e.ComplexityRoot.Organization.Controls == nil { - break - } - - args, err := ec.field_Organization_controls_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true - case "Organization.createdAt": - if e.ComplexityRoot.Organization.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Organization.CreatedAt(childComplexity), true - case "Organization.customDomain": - if e.ComplexityRoot.Organization.CustomDomain == nil { - break - } - - return e.ComplexityRoot.Organization.CustomDomain(childComplexity), true - case "Organization.data": - if e.ComplexityRoot.Organization.Data == nil { - break - } - - args, err := ec.field_Organization_data_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Data(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DatumOrderBy), args["filter"].(*types.DatumFilter)), true - case "Organization.dataProtectionImpactAssessments": - if e.ComplexityRoot.Organization.DataProtectionImpactAssessments == nil { - break - } - - args, err := ec.field_Organization_dataProtectionImpactAssessments_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.DataProtectionImpactAssessments(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DataProtectionImpactAssessmentOrderBy), args["filter"].(*types.DataProtectionImpactAssessmentFilter)), true - case "Organization.description": - if e.ComplexityRoot.Organization.Description == nil { - break - } - - return e.ComplexityRoot.Organization.Description(childComplexity), true - case "Organization.documents": - if e.ComplexityRoot.Organization.Documents == nil { - break - } - - args, err := ec.field_Organization_documents_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Documents(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentOrderBy), args["filter"].(*types.DocumentFilter)), true - case "Organization.email": - if e.ComplexityRoot.Organization.Email == nil { - break - } - - return e.ComplexityRoot.Organization.Email(childComplexity), true - case "Organization.frameworks": - if e.ComplexityRoot.Organization.Frameworks == nil { - break - } - - args, err := ec.field_Organization_frameworks_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Frameworks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.FrameworkOrderBy)), true - case "Organization.headquarterAddress": - if e.ComplexityRoot.Organization.HeadquarterAddress == nil { - break - } - - return e.ComplexityRoot.Organization.HeadquarterAddress(childComplexity), true - case "Organization.horizontalLogoUrl": - if e.ComplexityRoot.Organization.HorizontalLogoURL == nil { - break - } - - return e.ComplexityRoot.Organization.HorizontalLogoURL(childComplexity), true - case "Organization.id": - if e.ComplexityRoot.Organization.ID == nil { - break - } - - return e.ComplexityRoot.Organization.ID(childComplexity), true - case "Organization.logoUrl": - if e.ComplexityRoot.Organization.LogoURL == nil { - break - } - - return e.ComplexityRoot.Organization.LogoURL(childComplexity), true - case "Organization.measures": - if e.ComplexityRoot.Organization.Measures == nil { - break - } - - args, err := ec.field_Organization_measures_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Measures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.MeasureOrderBy), args["filter"].(*types.MeasureFilter)), true - case "Organization.meetings": - if e.ComplexityRoot.Organization.Meetings == nil { - break - } - - args, err := ec.field_Organization_meetings_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Meetings(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.MeetingOrderBy)), true - case "Organization.name": - if e.ComplexityRoot.Organization.Name == nil { - break - } - - return e.ComplexityRoot.Organization.Name(childComplexity), true - case "Organization.nonconformities": - if e.ComplexityRoot.Organization.Nonconformities == nil { - break - } - - args, err := ec.field_Organization_nonconformities_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Nonconformities(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.NonconformityOrderBy), args["filter"].(*types.NonconformityFilter)), true - case "Organization.obligations": - if e.ComplexityRoot.Organization.Obligations == nil { - break - } - - args, err := ec.field_Organization_obligations_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Obligations(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ObligationOrderBy), args["filter"].(*types.ObligationFilter)), true - case "Organization.permission": - if e.ComplexityRoot.Organization.Permission == nil { - break - } - - args, err := ec.field_Organization_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Permission(childComplexity, args["action"].(string)), true - case "Organization.processingActivities": - if e.ComplexityRoot.Organization.ProcessingActivities == nil { - break - } - - args, err := ec.field_Organization_processingActivities_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.ProcessingActivities(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ProcessingActivityOrderBy), args["filter"].(*types.ProcessingActivityFilter)), true - case "Organization.profiles": - if e.ComplexityRoot.Organization.Profiles == nil { - break - } - - args, err := ec.field_Organization_profiles_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Profiles(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ProfileOrderBy), args["filter"].(*types.ProfileFilter)), true - case "Organization.rightsRequests": - if e.ComplexityRoot.Organization.RightsRequests == nil { - break - } - - args, err := ec.field_Organization_rightsRequests_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.RightsRequests(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.RightsRequestOrderBy)), true - case "Organization.risks": - if e.ComplexityRoot.Organization.Risks == nil { - break - } - - args, err := ec.field_Organization_risks_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Risks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.RiskOrderBy), args["filter"].(*types.RiskFilter)), true - case "Organization.slackConnections": - if e.ComplexityRoot.Organization.SlackConnections == nil { - break - } - - args, err := ec.field_Organization_slackConnections_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.SlackConnections(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "Organization.snapshots": - if e.ComplexityRoot.Organization.Snapshots == nil { - break - } - - args, err := ec.field_Organization_snapshots_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Snapshots(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.SnapshotOrderBy)), true - case "Organization.statesOfApplicability": - if e.ComplexityRoot.Organization.StatesOfApplicability == nil { - break - } - - args, err := ec.field_Organization_statesOfApplicability_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.StatesOfApplicability(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.StateOfApplicabilityOrderBy), args["filter"].(*types.StateOfApplicabilityFilter)), true - case "Organization.tasks": - if e.ComplexityRoot.Organization.Tasks == nil { - break - } - - args, err := ec.field_Organization_tasks_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Tasks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.TaskOrderBy)), true - case "Organization.transferImpactAssessments": - if e.ComplexityRoot.Organization.TransferImpactAssessments == nil { - break - } - - args, err := ec.field_Organization_transferImpactAssessments_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.TransferImpactAssessments(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.TransferImpactAssessmentOrderBy), args["filter"].(*types.TransferImpactAssessmentFilter)), true - case "Organization.trustCenter": - if e.ComplexityRoot.Organization.TrustCenter == nil { - break - } - - return e.ComplexityRoot.Organization.TrustCenter(childComplexity), true - case "Organization.trustCenterFiles": - if e.ComplexityRoot.Organization.TrustCenterFiles == nil { - break - } - - args, err := ec.field_Organization_trustCenterFiles_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.TrustCenterFiles(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.OrderBy[coredata.TrustCenterFileOrderField])), true - case "Organization.updatedAt": - if e.ComplexityRoot.Organization.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Organization.UpdatedAt(childComplexity), true - case "Organization.vendors": - if e.ComplexityRoot.Organization.Vendors == nil { - break - } - - args, err := ec.field_Organization_vendors_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.Vendors(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorOrderBy), args["filter"].(*types.VendorFilter)), true - case "Organization.webhookSubscriptions": - if e.ComplexityRoot.Organization.WebhookSubscriptions == nil { - break - } - - args, err := ec.field_Organization_webhookSubscriptions_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Organization.WebhookSubscriptions(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.WebhookSubscriptionOrderBy)), true - case "Organization.websiteUrl": - if e.ComplexityRoot.Organization.WebsiteURL == nil { - break - } - - return e.ComplexityRoot.Organization.WebsiteURL(childComplexity), true - - case "OrganizationContext.organizationId": - if e.ComplexityRoot.OrganizationContext.OrganizationID == nil { - break - } - - return e.ComplexityRoot.OrganizationContext.OrganizationID(childComplexity), true - case "OrganizationContext.summary": - if e.ComplexityRoot.OrganizationContext.Summary == nil { - break - } - - return e.ComplexityRoot.OrganizationContext.Summary(childComplexity), true - - case "PageInfo.endCursor": - if e.ComplexityRoot.PageInfo.EndCursor == nil { - break - } - - return e.ComplexityRoot.PageInfo.EndCursor(childComplexity), true - case "PageInfo.hasNextPage": - if e.ComplexityRoot.PageInfo.HasNextPage == nil { - break - } - - return e.ComplexityRoot.PageInfo.HasNextPage(childComplexity), true - case "PageInfo.hasPreviousPage": - if e.ComplexityRoot.PageInfo.HasPreviousPage == nil { - break - } - - return e.ComplexityRoot.PageInfo.HasPreviousPage(childComplexity), true - case "PageInfo.startCursor": - if e.ComplexityRoot.PageInfo.StartCursor == nil { - break - } - - return e.ComplexityRoot.PageInfo.StartCursor(childComplexity), true - - case "ProcessingActivity.consentEvidenceLink": - if e.ComplexityRoot.ProcessingActivity.ConsentEvidenceLink == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.ConsentEvidenceLink(childComplexity), true - case "ProcessingActivity.createdAt": - if e.ComplexityRoot.ProcessingActivity.CreatedAt == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.CreatedAt(childComplexity), true - case "ProcessingActivity.dataProtectionImpactAssessment": - if e.ComplexityRoot.ProcessingActivity.DataProtectionImpactAssessment == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.DataProtectionImpactAssessment(childComplexity), true - case "ProcessingActivity.dataProtectionImpactAssessmentNeeded": - if e.ComplexityRoot.ProcessingActivity.DataProtectionImpactAssessmentNeeded == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.DataProtectionImpactAssessmentNeeded(childComplexity), true - case "ProcessingActivity.dataProtectionOfficer": - if e.ComplexityRoot.ProcessingActivity.DataProtectionOfficer == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.DataProtectionOfficer(childComplexity), true - case "ProcessingActivity.dataSubjectCategory": - if e.ComplexityRoot.ProcessingActivity.DataSubjectCategory == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.DataSubjectCategory(childComplexity), true - case "ProcessingActivity.id": - if e.ComplexityRoot.ProcessingActivity.ID == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.ID(childComplexity), true - case "ProcessingActivity.internationalTransfers": - if e.ComplexityRoot.ProcessingActivity.InternationalTransfers == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.InternationalTransfers(childComplexity), true - case "ProcessingActivity.lastReviewDate": - if e.ComplexityRoot.ProcessingActivity.LastReviewDate == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.LastReviewDate(childComplexity), true - case "ProcessingActivity.lawfulBasis": - if e.ComplexityRoot.ProcessingActivity.LawfulBasis == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.LawfulBasis(childComplexity), true - case "ProcessingActivity.location": - if e.ComplexityRoot.ProcessingActivity.Location == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.Location(childComplexity), true - case "ProcessingActivity.name": - if e.ComplexityRoot.ProcessingActivity.Name == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.Name(childComplexity), true - case "ProcessingActivity.nextReviewDate": - if e.ComplexityRoot.ProcessingActivity.NextReviewDate == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.NextReviewDate(childComplexity), true - case "ProcessingActivity.organization": - if e.ComplexityRoot.ProcessingActivity.Organization == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.Organization(childComplexity), true - case "ProcessingActivity.permission": - if e.ComplexityRoot.ProcessingActivity.Permission == nil { - break - } - - args, err := ec.field_ProcessingActivity_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.ProcessingActivity.Permission(childComplexity, args["action"].(string)), true - case "ProcessingActivity.personalDataCategory": - if e.ComplexityRoot.ProcessingActivity.PersonalDataCategory == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.PersonalDataCategory(childComplexity), true - case "ProcessingActivity.purpose": - if e.ComplexityRoot.ProcessingActivity.Purpose == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.Purpose(childComplexity), true - case "ProcessingActivity.recipients": - if e.ComplexityRoot.ProcessingActivity.Recipients == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.Recipients(childComplexity), true - case "ProcessingActivity.retentionPeriod": - if e.ComplexityRoot.ProcessingActivity.RetentionPeriod == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.RetentionPeriod(childComplexity), true - case "ProcessingActivity.role": - if e.ComplexityRoot.ProcessingActivity.Role == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.Role(childComplexity), true - case "ProcessingActivity.securityMeasures": - if e.ComplexityRoot.ProcessingActivity.SecurityMeasures == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.SecurityMeasures(childComplexity), true - case "ProcessingActivity.snapshotId": - if e.ComplexityRoot.ProcessingActivity.SnapshotID == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.SnapshotID(childComplexity), true - case "ProcessingActivity.sourceId": - if e.ComplexityRoot.ProcessingActivity.SourceID == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.SourceID(childComplexity), true - case "ProcessingActivity.specialOrCriminalData": - if e.ComplexityRoot.ProcessingActivity.SpecialOrCriminalData == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.SpecialOrCriminalData(childComplexity), true - case "ProcessingActivity.transferImpactAssessment": - if e.ComplexityRoot.ProcessingActivity.TransferImpactAssessment == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.TransferImpactAssessment(childComplexity), true - case "ProcessingActivity.transferImpactAssessmentNeeded": - if e.ComplexityRoot.ProcessingActivity.TransferImpactAssessmentNeeded == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.TransferImpactAssessmentNeeded(childComplexity), true - case "ProcessingActivity.transferSafeguards": - if e.ComplexityRoot.ProcessingActivity.TransferSafeguards == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.TransferSafeguards(childComplexity), true - case "ProcessingActivity.updatedAt": - if e.ComplexityRoot.ProcessingActivity.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.ProcessingActivity.UpdatedAt(childComplexity), true - case "ProcessingActivity.vendors": - if e.ComplexityRoot.ProcessingActivity.Vendors == nil { - break - } - - args, err := ec.field_ProcessingActivity_vendors_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.ProcessingActivity.Vendors(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorOrderBy)), true - - case "ProcessingActivityConnection.edges": - if e.ComplexityRoot.ProcessingActivityConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ProcessingActivityConnection.Edges(childComplexity), true - case "ProcessingActivityConnection.pageInfo": - if e.ComplexityRoot.ProcessingActivityConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ProcessingActivityConnection.PageInfo(childComplexity), true - case "ProcessingActivityConnection.totalCount": - if e.ComplexityRoot.ProcessingActivityConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.ProcessingActivityConnection.TotalCount(childComplexity), true - - case "ProcessingActivityEdge.cursor": - if e.ComplexityRoot.ProcessingActivityEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ProcessingActivityEdge.Cursor(childComplexity), true - case "ProcessingActivityEdge.node": - if e.ComplexityRoot.ProcessingActivityEdge.Node == nil { - break - } - - return e.ComplexityRoot.ProcessingActivityEdge.Node(childComplexity), true - - case "Profile.additionalEmailAddresses": - if e.ComplexityRoot.Profile.AdditionalEmailAddresses == nil { - break - } - - return e.ComplexityRoot.Profile.AdditionalEmailAddresses(childComplexity), true - case "Profile.contractEndDate": - if e.ComplexityRoot.Profile.ContractEndDate == nil { - break - } - - return e.ComplexityRoot.Profile.ContractEndDate(childComplexity), true - case "Profile.contractStartDate": - if e.ComplexityRoot.Profile.ContractStartDate == nil { - break - } - - return e.ComplexityRoot.Profile.ContractStartDate(childComplexity), true - case "Profile.createdAt": - if e.ComplexityRoot.Profile.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Profile.CreatedAt(childComplexity), true - case "Profile.emailAddress": - if e.ComplexityRoot.Profile.EmailAddress == nil { - break - } - - return e.ComplexityRoot.Profile.EmailAddress(childComplexity), true - case "Profile.fullName": - if e.ComplexityRoot.Profile.FullName == nil { - break - } - - return e.ComplexityRoot.Profile.FullName(childComplexity), true - case "Profile.id": - if e.ComplexityRoot.Profile.ID == nil { - break - } - - return e.ComplexityRoot.Profile.ID(childComplexity), true - case "Profile.kind": - if e.ComplexityRoot.Profile.Kind == nil { - break - } - - return e.ComplexityRoot.Profile.Kind(childComplexity), true - case "Profile.permission": - if e.ComplexityRoot.Profile.Permission == nil { - break - } - - args, err := ec.field_Profile_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Profile.Permission(childComplexity, args["action"].(string)), true - case "Profile.position": - if e.ComplexityRoot.Profile.Position == nil { - break - } - - return e.ComplexityRoot.Profile.Position(childComplexity), true - case "Profile.state": - if e.ComplexityRoot.Profile.State == nil { - break - } - - return e.ComplexityRoot.Profile.State(childComplexity), true - case "Profile.updatedAt": - if e.ComplexityRoot.Profile.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Profile.UpdatedAt(childComplexity), true - - case "ProfileConnection.edges": - if e.ComplexityRoot.ProfileConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ProfileConnection.Edges(childComplexity), true - case "ProfileConnection.pageInfo": - if e.ComplexityRoot.ProfileConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ProfileConnection.PageInfo(childComplexity), true - case "ProfileConnection.totalCount": - if e.ComplexityRoot.ProfileConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.ProfileConnection.TotalCount(childComplexity), true - - case "ProfileEdge.cursor": - if e.ComplexityRoot.ProfileEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ProfileEdge.Cursor(childComplexity), true - case "ProfileEdge.node": - if e.ComplexityRoot.ProfileEdge.Node == nil { - break - } - - return e.ComplexityRoot.ProfileEdge.Node(childComplexity), true - - case "PublishDocumentVersionPayload.document": - if e.ComplexityRoot.PublishDocumentVersionPayload.Document == nil { - break - } - - return e.ComplexityRoot.PublishDocumentVersionPayload.Document(childComplexity), true - case "PublishDocumentVersionPayload.documentVersion": - if e.ComplexityRoot.PublishDocumentVersionPayload.DocumentVersion == nil { - break - } - - return e.ComplexityRoot.PublishDocumentVersionPayload.DocumentVersion(childComplexity), true - - case "Query.node": - if e.ComplexityRoot.Query.Node == nil { - break - } - - args, err := ec.field_Query_node_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Query.Node(childComplexity, args["id"].(gid.GID)), true - case "Query.viewer": - if e.ComplexityRoot.Query.Viewer == nil { - break - } - - return e.ComplexityRoot.Query.Viewer(childComplexity), true - - case "Report.audit": - if e.ComplexityRoot.Report.Audit == nil { - break - } - - return e.ComplexityRoot.Report.Audit(childComplexity), true - case "Report.createdAt": - if e.ComplexityRoot.Report.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Report.CreatedAt(childComplexity), true - case "Report.downloadUrl": - if e.ComplexityRoot.Report.DownloadURL == nil { - break - } - - return e.ComplexityRoot.Report.DownloadURL(childComplexity), true - case "Report.filename": - if e.ComplexityRoot.Report.Filename == nil { - break - } - - return e.ComplexityRoot.Report.Filename(childComplexity), true - case "Report.id": - if e.ComplexityRoot.Report.ID == nil { - break - } - - return e.ComplexityRoot.Report.ID(childComplexity), true - case "Report.mimeType": - if e.ComplexityRoot.Report.MimeType == nil { - break - } - - return e.ComplexityRoot.Report.MimeType(childComplexity), true - case "Report.objectKey": - if e.ComplexityRoot.Report.ObjectKey == nil { - break - } - - return e.ComplexityRoot.Report.ObjectKey(childComplexity), true - case "Report.permission": - if e.ComplexityRoot.Report.Permission == nil { - break - } - - args, err := ec.field_Report_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Report.Permission(childComplexity, args["action"].(string)), true - case "Report.size": - if e.ComplexityRoot.Report.Size == nil { - break - } - - return e.ComplexityRoot.Report.Size(childComplexity), true - case "Report.updatedAt": - if e.ComplexityRoot.Report.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Report.UpdatedAt(childComplexity), true - - case "RequestSignaturePayload.documentVersionSignatureEdge": - if e.ComplexityRoot.RequestSignaturePayload.DocumentVersionSignatureEdge == nil { - break - } - - return e.ComplexityRoot.RequestSignaturePayload.DocumentVersionSignatureEdge(childComplexity), true - - case "RightsRequest.actionTaken": - if e.ComplexityRoot.RightsRequest.ActionTaken == nil { - break - } - - return e.ComplexityRoot.RightsRequest.ActionTaken(childComplexity), true - case "RightsRequest.contact": - if e.ComplexityRoot.RightsRequest.Contact == nil { - break - } - - return e.ComplexityRoot.RightsRequest.Contact(childComplexity), true - case "RightsRequest.createdAt": - if e.ComplexityRoot.RightsRequest.CreatedAt == nil { - break - } - - return e.ComplexityRoot.RightsRequest.CreatedAt(childComplexity), true - case "RightsRequest.dataSubject": - if e.ComplexityRoot.RightsRequest.DataSubject == nil { - break - } - - return e.ComplexityRoot.RightsRequest.DataSubject(childComplexity), true - case "RightsRequest.deadline": - if e.ComplexityRoot.RightsRequest.Deadline == nil { - break - } - - return e.ComplexityRoot.RightsRequest.Deadline(childComplexity), true - case "RightsRequest.details": - if e.ComplexityRoot.RightsRequest.Details == nil { - break - } - - return e.ComplexityRoot.RightsRequest.Details(childComplexity), true - case "RightsRequest.id": - if e.ComplexityRoot.RightsRequest.ID == nil { - break - } - - return e.ComplexityRoot.RightsRequest.ID(childComplexity), true - case "RightsRequest.organization": - if e.ComplexityRoot.RightsRequest.Organization == nil { - break - } - - return e.ComplexityRoot.RightsRequest.Organization(childComplexity), true - case "RightsRequest.permission": - if e.ComplexityRoot.RightsRequest.Permission == nil { - break - } - - args, err := ec.field_RightsRequest_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.RightsRequest.Permission(childComplexity, args["action"].(string)), true - case "RightsRequest.requestState": - if e.ComplexityRoot.RightsRequest.RequestState == nil { - break - } - - return e.ComplexityRoot.RightsRequest.RequestState(childComplexity), true - case "RightsRequest.requestType": - if e.ComplexityRoot.RightsRequest.RequestType == nil { - break - } - - return e.ComplexityRoot.RightsRequest.RequestType(childComplexity), true - case "RightsRequest.updatedAt": - if e.ComplexityRoot.RightsRequest.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.RightsRequest.UpdatedAt(childComplexity), true - - case "RightsRequestConnection.edges": - if e.ComplexityRoot.RightsRequestConnection.Edges == nil { - break - } - - return e.ComplexityRoot.RightsRequestConnection.Edges(childComplexity), true - case "RightsRequestConnection.pageInfo": - if e.ComplexityRoot.RightsRequestConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.RightsRequestConnection.PageInfo(childComplexity), true - case "RightsRequestConnection.totalCount": - if e.ComplexityRoot.RightsRequestConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.RightsRequestConnection.TotalCount(childComplexity), true - - case "RightsRequestEdge.cursor": - if e.ComplexityRoot.RightsRequestEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.RightsRequestEdge.Cursor(childComplexity), true - case "RightsRequestEdge.node": - if e.ComplexityRoot.RightsRequestEdge.Node == nil { - break - } - - return e.ComplexityRoot.RightsRequestEdge.Node(childComplexity), true - - case "Risk.category": - if e.ComplexityRoot.Risk.Category == nil { - break - } - - return e.ComplexityRoot.Risk.Category(childComplexity), true - case "Risk.controls": - if e.ComplexityRoot.Risk.Controls == nil { - break - } - - args, err := ec.field_Risk_controls_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Risk.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true - case "Risk.createdAt": - if e.ComplexityRoot.Risk.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Risk.CreatedAt(childComplexity), true - case "Risk.description": - if e.ComplexityRoot.Risk.Description == nil { - break - } - - return e.ComplexityRoot.Risk.Description(childComplexity), true - case "Risk.documents": - if e.ComplexityRoot.Risk.Documents == nil { - break - } - - args, err := ec.field_Risk_documents_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Risk.Documents(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentOrderBy), args["filter"].(*types.DocumentFilter)), true - case "Risk.id": - if e.ComplexityRoot.Risk.ID == nil { - break - } - - return e.ComplexityRoot.Risk.ID(childComplexity), true - case "Risk.inherentImpact": - if e.ComplexityRoot.Risk.InherentImpact == nil { - break - } - - return e.ComplexityRoot.Risk.InherentImpact(childComplexity), true - case "Risk.inherentLikelihood": - if e.ComplexityRoot.Risk.InherentLikelihood == nil { - break - } - - return e.ComplexityRoot.Risk.InherentLikelihood(childComplexity), true - case "Risk.inherentRiskScore": - if e.ComplexityRoot.Risk.InherentRiskScore == nil { - break - } - - return e.ComplexityRoot.Risk.InherentRiskScore(childComplexity), true - case "Risk.measures": - if e.ComplexityRoot.Risk.Measures == nil { - break - } - - args, err := ec.field_Risk_measures_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Risk.Measures(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.MeasureOrderBy), args["filter"].(*types.MeasureFilter)), true - case "Risk.name": - if e.ComplexityRoot.Risk.Name == nil { - break - } - - return e.ComplexityRoot.Risk.Name(childComplexity), true - case "Risk.note": - if e.ComplexityRoot.Risk.Note == nil { - break - } - - return e.ComplexityRoot.Risk.Note(childComplexity), true - case "Risk.obligations": - if e.ComplexityRoot.Risk.Obligations == nil { - break - } - - args, err := ec.field_Risk_obligations_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Risk.Obligations(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ObligationOrderBy), args["filter"].(*types.ObligationFilter)), true - case "Risk.organization": - if e.ComplexityRoot.Risk.Organization == nil { - break - } - - return e.ComplexityRoot.Risk.Organization(childComplexity), true - case "Risk.owner": - if e.ComplexityRoot.Risk.Owner == nil { - break - } - - return e.ComplexityRoot.Risk.Owner(childComplexity), true - case "Risk.permission": - if e.ComplexityRoot.Risk.Permission == nil { - break - } - - args, err := ec.field_Risk_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Risk.Permission(childComplexity, args["action"].(string)), true - case "Risk.residualImpact": - if e.ComplexityRoot.Risk.ResidualImpact == nil { - break - } - - return e.ComplexityRoot.Risk.ResidualImpact(childComplexity), true - case "Risk.residualLikelihood": - if e.ComplexityRoot.Risk.ResidualLikelihood == nil { - break - } - - return e.ComplexityRoot.Risk.ResidualLikelihood(childComplexity), true - case "Risk.residualRiskScore": - if e.ComplexityRoot.Risk.ResidualRiskScore == nil { - break - } - - return e.ComplexityRoot.Risk.ResidualRiskScore(childComplexity), true - case "Risk.snapshotId": - if e.ComplexityRoot.Risk.SnapshotID == nil { - break - } - - return e.ComplexityRoot.Risk.SnapshotID(childComplexity), true - case "Risk.treatment": - if e.ComplexityRoot.Risk.Treatment == nil { - break - } - - return e.ComplexityRoot.Risk.Treatment(childComplexity), true - case "Risk.updatedAt": - if e.ComplexityRoot.Risk.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Risk.UpdatedAt(childComplexity), true - - case "RiskConnection.edges": - if e.ComplexityRoot.RiskConnection.Edges == nil { - break - } - - return e.ComplexityRoot.RiskConnection.Edges(childComplexity), true - case "RiskConnection.pageInfo": - if e.ComplexityRoot.RiskConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.RiskConnection.PageInfo(childComplexity), true - case "RiskConnection.totalCount": - if e.ComplexityRoot.RiskConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.RiskConnection.TotalCount(childComplexity), true - - case "RiskEdge.cursor": - if e.ComplexityRoot.RiskEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.RiskEdge.Cursor(childComplexity), true - case "RiskEdge.node": - if e.ComplexityRoot.RiskEdge.Node == nil { - break - } - - return e.ComplexityRoot.RiskEdge.Node(childComplexity), true - - case "SendMailingListUpdatePayload.mailingListUpdate": - if e.ComplexityRoot.SendMailingListUpdatePayload.MailingListUpdate == nil { - break - } - - return e.ComplexityRoot.SendMailingListUpdatePayload.MailingListUpdate(childComplexity), true - - case "SendSigningNotificationsPayload.success": - if e.ComplexityRoot.SendSigningNotificationsPayload.Success == nil { - break - } - - return e.ComplexityRoot.SendSigningNotificationsPayload.Success(childComplexity), true - - case "SignDocumentPayload.documentVersionSignature": - if e.ComplexityRoot.SignDocumentPayload.DocumentVersionSignature == nil { - break - } - - return e.ComplexityRoot.SignDocumentPayload.DocumentVersionSignature(childComplexity), true - - case "SignableDocument.classification": - if e.ComplexityRoot.SignableDocument.Classification == nil { - break - } - - return e.ComplexityRoot.SignableDocument.Classification(childComplexity), true - case "SignableDocument.createdAt": - if e.ComplexityRoot.SignableDocument.CreatedAt == nil { - break - } - - return e.ComplexityRoot.SignableDocument.CreatedAt(childComplexity), true - case "SignableDocument.description": - if e.ComplexityRoot.SignableDocument.Description == nil { - break - } - - return e.ComplexityRoot.SignableDocument.Description(childComplexity), true - case "SignableDocument.documentType": - if e.ComplexityRoot.SignableDocument.DocumentType == nil { - break - } - - return e.ComplexityRoot.SignableDocument.DocumentType(childComplexity), true - case "SignableDocument.id": - if e.ComplexityRoot.SignableDocument.ID == nil { - break - } - - return e.ComplexityRoot.SignableDocument.ID(childComplexity), true - case "SignableDocument.signed": - if e.ComplexityRoot.SignableDocument.Signed == nil { - break - } - - return e.ComplexityRoot.SignableDocument.Signed(childComplexity), true - case "SignableDocument.title": - if e.ComplexityRoot.SignableDocument.Title == nil { - break - } - - return e.ComplexityRoot.SignableDocument.Title(childComplexity), true - case "SignableDocument.updatedAt": - if e.ComplexityRoot.SignableDocument.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.SignableDocument.UpdatedAt(childComplexity), true - case "SignableDocument.versions": - if e.ComplexityRoot.SignableDocument.Versions == nil { - break - } - - args, err := ec.field_SignableDocument_versions_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.SignableDocument.Versions(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentVersionOrderBy), args["filter"].(*types.DocumentVersionFilter)), true - - case "SignableDocumentConnection.edges": - if e.ComplexityRoot.SignableDocumentConnection.Edges == nil { - break - } - - return e.ComplexityRoot.SignableDocumentConnection.Edges(childComplexity), true - case "SignableDocumentConnection.pageInfo": - if e.ComplexityRoot.SignableDocumentConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.SignableDocumentConnection.PageInfo(childComplexity), true - - case "SignableDocumentEdge.cursor": - if e.ComplexityRoot.SignableDocumentEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.SignableDocumentEdge.Cursor(childComplexity), true - case "SignableDocumentEdge.node": - if e.ComplexityRoot.SignableDocumentEdge.Node == nil { - break - } - - return e.ComplexityRoot.SignableDocumentEdge.Node(childComplexity), true - - case "SlackConnection.channel": - if e.ComplexityRoot.SlackConnection.Channel == nil { - break - } - - return e.ComplexityRoot.SlackConnection.Channel(childComplexity), true - case "SlackConnection.channelId": - if e.ComplexityRoot.SlackConnection.ChannelID == nil { - break - } - - return e.ComplexityRoot.SlackConnection.ChannelID(childComplexity), true - case "SlackConnection.createdAt": - if e.ComplexityRoot.SlackConnection.CreatedAt == nil { - break - } - - return e.ComplexityRoot.SlackConnection.CreatedAt(childComplexity), true - case "SlackConnection.id": - if e.ComplexityRoot.SlackConnection.ID == nil { - break - } - - return e.ComplexityRoot.SlackConnection.ID(childComplexity), true - case "SlackConnection.updatedAt": - if e.ComplexityRoot.SlackConnection.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.SlackConnection.UpdatedAt(childComplexity), true - - case "SlackConnectionConnection.edges": - if e.ComplexityRoot.SlackConnectionConnection.Edges == nil { - break - } - - return e.ComplexityRoot.SlackConnectionConnection.Edges(childComplexity), true - case "SlackConnectionConnection.pageInfo": - if e.ComplexityRoot.SlackConnectionConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.SlackConnectionConnection.PageInfo(childComplexity), true - - case "SlackConnectionEdge.cursor": - if e.ComplexityRoot.SlackConnectionEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.SlackConnectionEdge.Cursor(childComplexity), true - case "SlackConnectionEdge.node": - if e.ComplexityRoot.SlackConnectionEdge.Node == nil { - break - } - - return e.ComplexityRoot.SlackConnectionEdge.Node(childComplexity), true - - case "Snapshot.controls": - if e.ComplexityRoot.Snapshot.Controls == nil { - break - } - - args, err := ec.field_Snapshot_controls_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Snapshot.Controls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ControlOrderBy), args["filter"].(*types.ControlFilter)), true - case "Snapshot.createdAt": - if e.ComplexityRoot.Snapshot.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Snapshot.CreatedAt(childComplexity), true - case "Snapshot.description": - if e.ComplexityRoot.Snapshot.Description == nil { - break - } - - return e.ComplexityRoot.Snapshot.Description(childComplexity), true - case "Snapshot.id": - if e.ComplexityRoot.Snapshot.ID == nil { - break - } - - return e.ComplexityRoot.Snapshot.ID(childComplexity), true - case "Snapshot.name": - if e.ComplexityRoot.Snapshot.Name == nil { - break - } - - return e.ComplexityRoot.Snapshot.Name(childComplexity), true - case "Snapshot.organization": - if e.ComplexityRoot.Snapshot.Organization == nil { - break - } - - return e.ComplexityRoot.Snapshot.Organization(childComplexity), true - case "Snapshot.permission": - if e.ComplexityRoot.Snapshot.Permission == nil { - break - } - - args, err := ec.field_Snapshot_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Snapshot.Permission(childComplexity, args["action"].(string)), true - case "Snapshot.type": - if e.ComplexityRoot.Snapshot.Type == nil { - break - } - - return e.ComplexityRoot.Snapshot.Type(childComplexity), true - - case "SnapshotConnection.edges": - if e.ComplexityRoot.SnapshotConnection.Edges == nil { - break - } - - return e.ComplexityRoot.SnapshotConnection.Edges(childComplexity), true - case "SnapshotConnection.pageInfo": - if e.ComplexityRoot.SnapshotConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.SnapshotConnection.PageInfo(childComplexity), true - case "SnapshotConnection.totalCount": - if e.ComplexityRoot.SnapshotConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.SnapshotConnection.TotalCount(childComplexity), true - - case "SnapshotEdge.cursor": - if e.ComplexityRoot.SnapshotEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.SnapshotEdge.Cursor(childComplexity), true - case "SnapshotEdge.node": - if e.ComplexityRoot.SnapshotEdge.Node == nil { - break - } - - return e.ComplexityRoot.SnapshotEdge.Node(childComplexity), true - - case "StateOfApplicability.applicabilityStatements": - if e.ComplexityRoot.StateOfApplicability.ApplicabilityStatements == nil { - break - } - - args, err := ec.field_StateOfApplicability_applicabilityStatements_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.StateOfApplicability.ApplicabilityStatements(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ApplicabilityStatementOrderBy)), true - case "StateOfApplicability.createdAt": - if e.ComplexityRoot.StateOfApplicability.CreatedAt == nil { - break - } - - return e.ComplexityRoot.StateOfApplicability.CreatedAt(childComplexity), true - case "StateOfApplicability.id": - if e.ComplexityRoot.StateOfApplicability.ID == nil { - break - } - - return e.ComplexityRoot.StateOfApplicability.ID(childComplexity), true - case "StateOfApplicability.name": - if e.ComplexityRoot.StateOfApplicability.Name == nil { - break - } - - return e.ComplexityRoot.StateOfApplicability.Name(childComplexity), true - case "StateOfApplicability.organization": - if e.ComplexityRoot.StateOfApplicability.Organization == nil { - break - } - - return e.ComplexityRoot.StateOfApplicability.Organization(childComplexity), true - case "StateOfApplicability.owner": - if e.ComplexityRoot.StateOfApplicability.Owner == nil { - break - } - - return e.ComplexityRoot.StateOfApplicability.Owner(childComplexity), true - case "StateOfApplicability.permission": - if e.ComplexityRoot.StateOfApplicability.Permission == nil { - break - } - - args, err := ec.field_StateOfApplicability_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.StateOfApplicability.Permission(childComplexity, args["action"].(string)), true - case "StateOfApplicability.snapshotId": - if e.ComplexityRoot.StateOfApplicability.SnapshotID == nil { - break - } - - return e.ComplexityRoot.StateOfApplicability.SnapshotID(childComplexity), true - case "StateOfApplicability.sourceId": - if e.ComplexityRoot.StateOfApplicability.SourceID == nil { - break - } - - return e.ComplexityRoot.StateOfApplicability.SourceID(childComplexity), true - case "StateOfApplicability.updatedAt": - if e.ComplexityRoot.StateOfApplicability.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.StateOfApplicability.UpdatedAt(childComplexity), true - - case "StateOfApplicabilityConnection.edges": - if e.ComplexityRoot.StateOfApplicabilityConnection.Edges == nil { - break - } - - return e.ComplexityRoot.StateOfApplicabilityConnection.Edges(childComplexity), true - case "StateOfApplicabilityConnection.pageInfo": - if e.ComplexityRoot.StateOfApplicabilityConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.StateOfApplicabilityConnection.PageInfo(childComplexity), true - case "StateOfApplicabilityConnection.totalCount": - if e.ComplexityRoot.StateOfApplicabilityConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.StateOfApplicabilityConnection.TotalCount(childComplexity), true - - case "StateOfApplicabilityEdge.cursor": - if e.ComplexityRoot.StateOfApplicabilityEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.StateOfApplicabilityEdge.Cursor(childComplexity), true - case "StateOfApplicabilityEdge.node": - if e.ComplexityRoot.StateOfApplicabilityEdge.Node == nil { - break - } - - return e.ComplexityRoot.StateOfApplicabilityEdge.Node(childComplexity), true - - case "Task.assignedTo": - if e.ComplexityRoot.Task.AssignedTo == nil { - break - } - - return e.ComplexityRoot.Task.AssignedTo(childComplexity), true - case "Task.createdAt": - if e.ComplexityRoot.Task.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Task.CreatedAt(childComplexity), true - case "Task.deadline": - if e.ComplexityRoot.Task.Deadline == nil { - break - } - - return e.ComplexityRoot.Task.Deadline(childComplexity), true - case "Task.description": - if e.ComplexityRoot.Task.Description == nil { - break - } - - return e.ComplexityRoot.Task.Description(childComplexity), true - case "Task.evidences": - if e.ComplexityRoot.Task.Evidences == nil { - break - } - - args, err := ec.field_Task_evidences_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Task.Evidences(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.EvidenceOrderBy)), true - case "Task.id": - if e.ComplexityRoot.Task.ID == nil { - break - } - - return e.ComplexityRoot.Task.ID(childComplexity), true - case "Task.measure": - if e.ComplexityRoot.Task.Measure == nil { - break - } - - return e.ComplexityRoot.Task.Measure(childComplexity), true - case "Task.name": - if e.ComplexityRoot.Task.Name == nil { - break - } - - return e.ComplexityRoot.Task.Name(childComplexity), true - case "Task.organization": - if e.ComplexityRoot.Task.Organization == nil { - break - } - - return e.ComplexityRoot.Task.Organization(childComplexity), true - case "Task.permission": - if e.ComplexityRoot.Task.Permission == nil { - break - } - - args, err := ec.field_Task_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Task.Permission(childComplexity, args["action"].(string)), true - case "Task.state": - if e.ComplexityRoot.Task.State == nil { - break - } - - return e.ComplexityRoot.Task.State(childComplexity), true - case "Task.timeEstimate": - if e.ComplexityRoot.Task.TimeEstimate == nil { - break - } - - return e.ComplexityRoot.Task.TimeEstimate(childComplexity), true - case "Task.updatedAt": - if e.ComplexityRoot.Task.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Task.UpdatedAt(childComplexity), true - - case "TaskConnection.edges": - if e.ComplexityRoot.TaskConnection.Edges == nil { - break - } - - return e.ComplexityRoot.TaskConnection.Edges(childComplexity), true - case "TaskConnection.pageInfo": - if e.ComplexityRoot.TaskConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.TaskConnection.PageInfo(childComplexity), true - case "TaskConnection.totalCount": - if e.ComplexityRoot.TaskConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.TaskConnection.TotalCount(childComplexity), true - - case "TaskEdge.cursor": - if e.ComplexityRoot.TaskEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.TaskEdge.Cursor(childComplexity), true - case "TaskEdge.node": - if e.ComplexityRoot.TaskEdge.Node == nil { - break - } - - return e.ComplexityRoot.TaskEdge.Node(childComplexity), true - - case "TransferImpactAssessment.createdAt": - if e.ComplexityRoot.TransferImpactAssessment.CreatedAt == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessment.CreatedAt(childComplexity), true - case "TransferImpactAssessment.dataSubjects": - if e.ComplexityRoot.TransferImpactAssessment.DataSubjects == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessment.DataSubjects(childComplexity), true - case "TransferImpactAssessment.id": - if e.ComplexityRoot.TransferImpactAssessment.ID == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessment.ID(childComplexity), true - case "TransferImpactAssessment.legalMechanism": - if e.ComplexityRoot.TransferImpactAssessment.LegalMechanism == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessment.LegalMechanism(childComplexity), true - case "TransferImpactAssessment.localLawRisk": - if e.ComplexityRoot.TransferImpactAssessment.LocalLawRisk == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessment.LocalLawRisk(childComplexity), true - case "TransferImpactAssessment.organization": - if e.ComplexityRoot.TransferImpactAssessment.Organization == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessment.Organization(childComplexity), true - case "TransferImpactAssessment.permission": - if e.ComplexityRoot.TransferImpactAssessment.Permission == nil { - break - } - - args, err := ec.field_TransferImpactAssessment_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TransferImpactAssessment.Permission(childComplexity, args["action"].(string)), true - case "TransferImpactAssessment.processingActivity": - if e.ComplexityRoot.TransferImpactAssessment.ProcessingActivity == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessment.ProcessingActivity(childComplexity), true - case "TransferImpactAssessment.supplementaryMeasures": - if e.ComplexityRoot.TransferImpactAssessment.SupplementaryMeasures == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessment.SupplementaryMeasures(childComplexity), true - case "TransferImpactAssessment.transfer": - if e.ComplexityRoot.TransferImpactAssessment.Transfer == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessment.Transfer(childComplexity), true - case "TransferImpactAssessment.updatedAt": - if e.ComplexityRoot.TransferImpactAssessment.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessment.UpdatedAt(childComplexity), true - - case "TransferImpactAssessmentConnection.edges": - if e.ComplexityRoot.TransferImpactAssessmentConnection.Edges == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessmentConnection.Edges(childComplexity), true - case "TransferImpactAssessmentConnection.pageInfo": - if e.ComplexityRoot.TransferImpactAssessmentConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessmentConnection.PageInfo(childComplexity), true - case "TransferImpactAssessmentConnection.totalCount": - if e.ComplexityRoot.TransferImpactAssessmentConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessmentConnection.TotalCount(childComplexity), true - - case "TransferImpactAssessmentEdge.cursor": - if e.ComplexityRoot.TransferImpactAssessmentEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessmentEdge.Cursor(childComplexity), true - case "TransferImpactAssessmentEdge.node": - if e.ComplexityRoot.TransferImpactAssessmentEdge.Node == nil { - break - } - - return e.ComplexityRoot.TransferImpactAssessmentEdge.Node(childComplexity), true - - case "TrustCenter.accesses": - if e.ComplexityRoot.TrustCenter.Accesses == nil { - break - } - - args, err := ec.field_TrustCenter_accesses_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.Accesses(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.OrderBy[coredata.TrustCenterAccessOrderField])), true - case "TrustCenter.active": - if e.ComplexityRoot.TrustCenter.Active == nil { - break - } - - return e.ComplexityRoot.TrustCenter.Active(childComplexity), true - case "TrustCenter.complianceFrameworks": - if e.ComplexityRoot.TrustCenter.ComplianceFrameworks == nil { - break - } - - args, err := ec.field_TrustCenter_complianceFrameworks_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.ComplianceFrameworks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.OrderBy[coredata.ComplianceFrameworkOrderField])), true - case "TrustCenter.createdAt": - if e.ComplexityRoot.TrustCenter.CreatedAt == nil { - break - } - - return e.ComplexityRoot.TrustCenter.CreatedAt(childComplexity), true - case "TrustCenter.darkLogoFileUrl": - if e.ComplexityRoot.TrustCenter.DarkLogoFileURL == nil { - break - } - - return e.ComplexityRoot.TrustCenter.DarkLogoFileURL(childComplexity), true - case "TrustCenter.externalUrls": - if e.ComplexityRoot.TrustCenter.ExternalUrls == nil { - break - } - - args, err := ec.field_TrustCenter_externalUrls_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.ExternalUrls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.OrderBy[coredata.ComplianceExternalURLOrderField])), true - case "TrustCenter.id": - if e.ComplexityRoot.TrustCenter.ID == nil { - break - } - - return e.ComplexityRoot.TrustCenter.ID(childComplexity), true - case "TrustCenter.logoFileUrl": - if e.ComplexityRoot.TrustCenter.LogoFileURL == nil { - break - } - - return e.ComplexityRoot.TrustCenter.LogoFileURL(childComplexity), true - case "TrustCenter.mailingList": - if e.ComplexityRoot.TrustCenter.MailingList == nil { - break - } - - return e.ComplexityRoot.TrustCenter.MailingList(childComplexity), true - case "TrustCenter.ndaFileName": - if e.ComplexityRoot.TrustCenter.NdaFileName == nil { - break - } - - return e.ComplexityRoot.TrustCenter.NdaFileName(childComplexity), true - case "TrustCenter.ndaFileUrl": - if e.ComplexityRoot.TrustCenter.NdaFileURL == nil { - break - } - - return e.ComplexityRoot.TrustCenter.NdaFileURL(childComplexity), true - case "TrustCenter.organization": - if e.ComplexityRoot.TrustCenter.Organization == nil { - break - } - - return e.ComplexityRoot.TrustCenter.Organization(childComplexity), true - case "TrustCenter.permission": - if e.ComplexityRoot.TrustCenter.Permission == nil { - break - } - - args, err := ec.field_TrustCenter_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.Permission(childComplexity, args["action"].(string)), true - case "TrustCenter.references": - if e.ComplexityRoot.TrustCenter.References == nil { - break - } - - args, err := ec.field_TrustCenter_references_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.References(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.OrderBy[coredata.TrustCenterReferenceOrderField])), true - case "TrustCenter.updatedAt": - if e.ComplexityRoot.TrustCenter.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.TrustCenter.UpdatedAt(childComplexity), true - - case "TrustCenterAccess.activeCount": - if e.ComplexityRoot.TrustCenterAccess.ActiveCount == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.ActiveCount(childComplexity), true - case "TrustCenterAccess.availableDocumentAccesses": - if e.ComplexityRoot.TrustCenterAccess.AvailableDocumentAccesses == nil { - break - } - - args, err := ec.field_TrustCenterAccess_availableDocumentAccesses_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenterAccess.AvailableDocumentAccesses(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.OrderBy[coredata.TrustCenterDocumentAccessOrderField])), true - case "TrustCenterAccess.createdAt": - if e.ComplexityRoot.TrustCenterAccess.CreatedAt == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.CreatedAt(childComplexity), true - case "TrustCenterAccess.id": - if e.ComplexityRoot.TrustCenterAccess.ID == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.ID(childComplexity), true - case "TrustCenterAccess.identityID": - if e.ComplexityRoot.TrustCenterAccess.IdentityID == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.IdentityID(childComplexity), true - case "TrustCenterAccess.ndaSignature": - if e.ComplexityRoot.TrustCenterAccess.NdaSignature == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.NdaSignature(childComplexity), true - case "TrustCenterAccess.organizationId": - if e.ComplexityRoot.TrustCenterAccess.OrganizationID == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.OrganizationID(childComplexity), true - case "TrustCenterAccess.pendingRequestCount": - if e.ComplexityRoot.TrustCenterAccess.PendingRequestCount == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.PendingRequestCount(childComplexity), true - case "TrustCenterAccess.permission": - if e.ComplexityRoot.TrustCenterAccess.Permission == nil { - break - } - - args, err := ec.field_TrustCenterAccess_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenterAccess.Permission(childComplexity, args["action"].(string)), true - case "TrustCenterAccess.profile": - if e.ComplexityRoot.TrustCenterAccess.Profile == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.Profile(childComplexity), true - case "TrustCenterAccess.updatedAt": - if e.ComplexityRoot.TrustCenterAccess.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.UpdatedAt(childComplexity), true - - case "TrustCenterAccessConnection.edges": - if e.ComplexityRoot.TrustCenterAccessConnection.Edges == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccessConnection.Edges(childComplexity), true - case "TrustCenterAccessConnection.pageInfo": - if e.ComplexityRoot.TrustCenterAccessConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccessConnection.PageInfo(childComplexity), true - - case "TrustCenterAccessEdge.cursor": - if e.ComplexityRoot.TrustCenterAccessEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccessEdge.Cursor(childComplexity), true - case "TrustCenterAccessEdge.node": - if e.ComplexityRoot.TrustCenterAccessEdge.Node == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccessEdge.Node(childComplexity), true - - case "TrustCenterConnection.edges": - if e.ComplexityRoot.TrustCenterConnection.Edges == nil { - break - } - - return e.ComplexityRoot.TrustCenterConnection.Edges(childComplexity), true - case "TrustCenterConnection.pageInfo": - if e.ComplexityRoot.TrustCenterConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.TrustCenterConnection.PageInfo(childComplexity), true - - case "TrustCenterDocumentAccess.document": - if e.ComplexityRoot.TrustCenterDocumentAccess.Document == nil { - break - } - - return e.ComplexityRoot.TrustCenterDocumentAccess.Document(childComplexity), true - case "TrustCenterDocumentAccess.id": - if e.ComplexityRoot.TrustCenterDocumentAccess.ID == nil { - break - } - - return e.ComplexityRoot.TrustCenterDocumentAccess.ID(childComplexity), true - case "TrustCenterDocumentAccess.report": - if e.ComplexityRoot.TrustCenterDocumentAccess.Report == nil { - break - } - - return e.ComplexityRoot.TrustCenterDocumentAccess.Report(childComplexity), true - case "TrustCenterDocumentAccess.status": - if e.ComplexityRoot.TrustCenterDocumentAccess.Status == nil { - break - } - - return e.ComplexityRoot.TrustCenterDocumentAccess.Status(childComplexity), true - case "TrustCenterDocumentAccess.trustCenterFile": - if e.ComplexityRoot.TrustCenterDocumentAccess.TrustCenterFile == nil { - break - } - - return e.ComplexityRoot.TrustCenterDocumentAccess.TrustCenterFile(childComplexity), true - - case "TrustCenterDocumentAccessConnection.edges": - if e.ComplexityRoot.TrustCenterDocumentAccessConnection.Edges == nil { - break - } - - return e.ComplexityRoot.TrustCenterDocumentAccessConnection.Edges(childComplexity), true - case "TrustCenterDocumentAccessConnection.pageInfo": - if e.ComplexityRoot.TrustCenterDocumentAccessConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.TrustCenterDocumentAccessConnection.PageInfo(childComplexity), true - case "TrustCenterDocumentAccessConnection.totalCount": - if e.ComplexityRoot.TrustCenterDocumentAccessConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.TrustCenterDocumentAccessConnection.TotalCount(childComplexity), true - - case "TrustCenterDocumentAccessEdge.cursor": - if e.ComplexityRoot.TrustCenterDocumentAccessEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.TrustCenterDocumentAccessEdge.Cursor(childComplexity), true - case "TrustCenterDocumentAccessEdge.node": - if e.ComplexityRoot.TrustCenterDocumentAccessEdge.Node == nil { - break - } - - return e.ComplexityRoot.TrustCenterDocumentAccessEdge.Node(childComplexity), true - - case "TrustCenterEdge.cursor": - if e.ComplexityRoot.TrustCenterEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.TrustCenterEdge.Cursor(childComplexity), true - case "TrustCenterEdge.node": - if e.ComplexityRoot.TrustCenterEdge.Node == nil { - break - } - - return e.ComplexityRoot.TrustCenterEdge.Node(childComplexity), true - - case "TrustCenterFile.category": - if e.ComplexityRoot.TrustCenterFile.Category == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.Category(childComplexity), true - case "TrustCenterFile.createdAt": - if e.ComplexityRoot.TrustCenterFile.CreatedAt == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.CreatedAt(childComplexity), true - case "TrustCenterFile.fileUrl": - if e.ComplexityRoot.TrustCenterFile.FileURL == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.FileURL(childComplexity), true - case "TrustCenterFile.id": - if e.ComplexityRoot.TrustCenterFile.ID == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.ID(childComplexity), true - case "TrustCenterFile.name": - if e.ComplexityRoot.TrustCenterFile.Name == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.Name(childComplexity), true - case "TrustCenterFile.organization": - if e.ComplexityRoot.TrustCenterFile.Organization == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.Organization(childComplexity), true - case "TrustCenterFile.permission": - if e.ComplexityRoot.TrustCenterFile.Permission == nil { - break - } - - args, err := ec.field_TrustCenterFile_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenterFile.Permission(childComplexity, args["action"].(string)), true - case "TrustCenterFile.trustCenterVisibility": - if e.ComplexityRoot.TrustCenterFile.TrustCenterVisibility == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.TrustCenterVisibility(childComplexity), true - case "TrustCenterFile.updatedAt": - if e.ComplexityRoot.TrustCenterFile.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.UpdatedAt(childComplexity), true - - case "TrustCenterFileConnection.edges": - if e.ComplexityRoot.TrustCenterFileConnection.Edges == nil { - break - } - - return e.ComplexityRoot.TrustCenterFileConnection.Edges(childComplexity), true - case "TrustCenterFileConnection.pageInfo": - if e.ComplexityRoot.TrustCenterFileConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.TrustCenterFileConnection.PageInfo(childComplexity), true - case "TrustCenterFileConnection.totalCount": - if e.ComplexityRoot.TrustCenterFileConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.TrustCenterFileConnection.TotalCount(childComplexity), true - - case "TrustCenterFileEdge.cursor": - if e.ComplexityRoot.TrustCenterFileEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.TrustCenterFileEdge.Cursor(childComplexity), true - case "TrustCenterFileEdge.node": - if e.ComplexityRoot.TrustCenterFileEdge.Node == nil { - break - } - - return e.ComplexityRoot.TrustCenterFileEdge.Node(childComplexity), true - - case "TrustCenterReference.createdAt": - if e.ComplexityRoot.TrustCenterReference.CreatedAt == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.CreatedAt(childComplexity), true - case "TrustCenterReference.description": - if e.ComplexityRoot.TrustCenterReference.Description == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.Description(childComplexity), true - case "TrustCenterReference.id": - if e.ComplexityRoot.TrustCenterReference.ID == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.ID(childComplexity), true - case "TrustCenterReference.logoUrl": - if e.ComplexityRoot.TrustCenterReference.LogoURL == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.LogoURL(childComplexity), true - case "TrustCenterReference.name": - if e.ComplexityRoot.TrustCenterReference.Name == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.Name(childComplexity), true - case "TrustCenterReference.permission": - if e.ComplexityRoot.TrustCenterReference.Permission == nil { - break - } - - args, err := ec.field_TrustCenterReference_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenterReference.Permission(childComplexity, args["action"].(string)), true - case "TrustCenterReference.rank": - if e.ComplexityRoot.TrustCenterReference.Rank == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.Rank(childComplexity), true - case "TrustCenterReference.updatedAt": - if e.ComplexityRoot.TrustCenterReference.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.UpdatedAt(childComplexity), true - case "TrustCenterReference.websiteUrl": - if e.ComplexityRoot.TrustCenterReference.WebsiteURL == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.WebsiteURL(childComplexity), true - - case "TrustCenterReferenceConnection.edges": - if e.ComplexityRoot.TrustCenterReferenceConnection.Edges == nil { - break - } - - return e.ComplexityRoot.TrustCenterReferenceConnection.Edges(childComplexity), true - case "TrustCenterReferenceConnection.pageInfo": - if e.ComplexityRoot.TrustCenterReferenceConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.TrustCenterReferenceConnection.PageInfo(childComplexity), true - case "TrustCenterReferenceConnection.totalCount": - if e.ComplexityRoot.TrustCenterReferenceConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.TrustCenterReferenceConnection.TotalCount(childComplexity), true - - case "TrustCenterReferenceEdge.cursor": - if e.ComplexityRoot.TrustCenterReferenceEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.TrustCenterReferenceEdge.Cursor(childComplexity), true - case "TrustCenterReferenceEdge.node": - if e.ComplexityRoot.TrustCenterReferenceEdge.Node == nil { - break - } - - return e.ComplexityRoot.TrustCenterReferenceEdge.Node(childComplexity), true - - case "UpdateApplicabilityStatementPayload.applicabilityStatement": - if e.ComplexityRoot.UpdateApplicabilityStatementPayload.ApplicabilityStatement == nil { - break - } - - return e.ComplexityRoot.UpdateApplicabilityStatementPayload.ApplicabilityStatement(childComplexity), true - - case "UpdateAssetPayload.asset": - if e.ComplexityRoot.UpdateAssetPayload.Asset == nil { - break - } - - return e.ComplexityRoot.UpdateAssetPayload.Asset(childComplexity), true - - case "UpdateAuditPayload.audit": - if e.ComplexityRoot.UpdateAuditPayload.Audit == nil { - break - } - - return e.ComplexityRoot.UpdateAuditPayload.Audit(childComplexity), true - - case "UpdateComplianceExternalURLPayload.complianceExternalUrl": - if e.ComplexityRoot.UpdateComplianceExternalURLPayload.ComplianceExternalURL == nil { - break - } - - return e.ComplexityRoot.UpdateComplianceExternalURLPayload.ComplianceExternalURL(childComplexity), true - - case "UpdateComplianceFrameworkPayload.complianceFramework": - if e.ComplexityRoot.UpdateComplianceFrameworkPayload.ComplianceFramework == nil { - break - } - - return e.ComplexityRoot.UpdateComplianceFrameworkPayload.ComplianceFramework(childComplexity), true - - case "UpdateContinualImprovementPayload.continualImprovement": - if e.ComplexityRoot.UpdateContinualImprovementPayload.ContinualImprovement == nil { - break - } - - return e.ComplexityRoot.UpdateContinualImprovementPayload.ContinualImprovement(childComplexity), true - - case "UpdateControlPayload.control": - if e.ComplexityRoot.UpdateControlPayload.Control == nil { - break - } - - return e.ComplexityRoot.UpdateControlPayload.Control(childComplexity), true - - case "UpdateDataProtectionImpactAssessmentPayload.dataProtectionImpactAssessment": - if e.ComplexityRoot.UpdateDataProtectionImpactAssessmentPayload.DataProtectionImpactAssessment == nil { - break - } - - return e.ComplexityRoot.UpdateDataProtectionImpactAssessmentPayload.DataProtectionImpactAssessment(childComplexity), true - - case "UpdateDatumPayload.datum": - if e.ComplexityRoot.UpdateDatumPayload.Datum == nil { - break - } - - return e.ComplexityRoot.UpdateDatumPayload.Datum(childComplexity), true - - case "UpdateDocumentPayload.document": - if e.ComplexityRoot.UpdateDocumentPayload.Document == nil { - break - } - - return e.ComplexityRoot.UpdateDocumentPayload.Document(childComplexity), true - - case "UpdateDocumentVersionPayload.documentVersion": - if e.ComplexityRoot.UpdateDocumentVersionPayload.DocumentVersion == nil { - break - } - - return e.ComplexityRoot.UpdateDocumentVersionPayload.DocumentVersion(childComplexity), true - - case "UpdateFrameworkPayload.framework": - if e.ComplexityRoot.UpdateFrameworkPayload.Framework == nil { - break - } - - return e.ComplexityRoot.UpdateFrameworkPayload.Framework(childComplexity), true - - case "UpdateMailingListPayload.mailingList": - if e.ComplexityRoot.UpdateMailingListPayload.MailingList == nil { - break - } - - return e.ComplexityRoot.UpdateMailingListPayload.MailingList(childComplexity), true - - case "UpdateMailingListUpdatePayload.mailingListUpdate": - if e.ComplexityRoot.UpdateMailingListUpdatePayload.MailingListUpdate == nil { - break - } - - return e.ComplexityRoot.UpdateMailingListUpdatePayload.MailingListUpdate(childComplexity), true - - case "UpdateMeasurePayload.measure": - if e.ComplexityRoot.UpdateMeasurePayload.Measure == nil { - break - } - - return e.ComplexityRoot.UpdateMeasurePayload.Measure(childComplexity), true - - case "UpdateMeetingPayload.meeting": - if e.ComplexityRoot.UpdateMeetingPayload.Meeting == nil { - break - } - - return e.ComplexityRoot.UpdateMeetingPayload.Meeting(childComplexity), true - - case "UpdateNonconformityPayload.nonconformity": - if e.ComplexityRoot.UpdateNonconformityPayload.Nonconformity == nil { - break - } - - return e.ComplexityRoot.UpdateNonconformityPayload.Nonconformity(childComplexity), true - - case "UpdateObligationPayload.obligation": - if e.ComplexityRoot.UpdateObligationPayload.Obligation == nil { - break - } - - return e.ComplexityRoot.UpdateObligationPayload.Obligation(childComplexity), true - - case "UpdateOrganizationContextPayload.context": - if e.ComplexityRoot.UpdateOrganizationContextPayload.Context == nil { - break - } - - return e.ComplexityRoot.UpdateOrganizationContextPayload.Context(childComplexity), true - - case "UpdateProcessingActivityPayload.processingActivity": - if e.ComplexityRoot.UpdateProcessingActivityPayload.ProcessingActivity == nil { - break - } - - return e.ComplexityRoot.UpdateProcessingActivityPayload.ProcessingActivity(childComplexity), true - - case "UpdateRightsRequestPayload.rightsRequest": - if e.ComplexityRoot.UpdateRightsRequestPayload.RightsRequest == nil { - break - } - - return e.ComplexityRoot.UpdateRightsRequestPayload.RightsRequest(childComplexity), true - - case "UpdateRiskPayload.risk": - if e.ComplexityRoot.UpdateRiskPayload.Risk == nil { - break - } - - return e.ComplexityRoot.UpdateRiskPayload.Risk(childComplexity), true - - case "UpdateStateOfApplicabilityPayload.stateOfApplicability": - if e.ComplexityRoot.UpdateStateOfApplicabilityPayload.StateOfApplicability == nil { - break - } - - return e.ComplexityRoot.UpdateStateOfApplicabilityPayload.StateOfApplicability(childComplexity), true - - case "UpdateTaskPayload.task": - if e.ComplexityRoot.UpdateTaskPayload.Task == nil { - break - } - - return e.ComplexityRoot.UpdateTaskPayload.Task(childComplexity), true - - case "UpdateTransferImpactAssessmentPayload.transferImpactAssessment": - if e.ComplexityRoot.UpdateTransferImpactAssessmentPayload.TransferImpactAssessment == nil { - break - } - - return e.ComplexityRoot.UpdateTransferImpactAssessmentPayload.TransferImpactAssessment(childComplexity), true - - case "UpdateTrustCenterAccessPayload.trustCenterAccess": - if e.ComplexityRoot.UpdateTrustCenterAccessPayload.TrustCenterAccess == nil { - break - } - - return e.ComplexityRoot.UpdateTrustCenterAccessPayload.TrustCenterAccess(childComplexity), true - - case "UpdateTrustCenterBrandPayload.trustCenter": - if e.ComplexityRoot.UpdateTrustCenterBrandPayload.TrustCenter == nil { - break - } - - return e.ComplexityRoot.UpdateTrustCenterBrandPayload.TrustCenter(childComplexity), true - - case "UpdateTrustCenterFilePayload.trustCenterFile": - if e.ComplexityRoot.UpdateTrustCenterFilePayload.TrustCenterFile == nil { - break - } - - return e.ComplexityRoot.UpdateTrustCenterFilePayload.TrustCenterFile(childComplexity), true - - case "UpdateTrustCenterPayload.trustCenter": - if e.ComplexityRoot.UpdateTrustCenterPayload.TrustCenter == nil { - break - } - - return e.ComplexityRoot.UpdateTrustCenterPayload.TrustCenter(childComplexity), true - - case "UpdateTrustCenterReferencePayload.trustCenterReference": - if e.ComplexityRoot.UpdateTrustCenterReferencePayload.TrustCenterReference == nil { - break - } - - return e.ComplexityRoot.UpdateTrustCenterReferencePayload.TrustCenterReference(childComplexity), true - - case "UpdateVendorBusinessAssociateAgreementPayload.vendorBusinessAssociateAgreement": - if e.ComplexityRoot.UpdateVendorBusinessAssociateAgreementPayload.VendorBusinessAssociateAgreement == nil { - break - } - - return e.ComplexityRoot.UpdateVendorBusinessAssociateAgreementPayload.VendorBusinessAssociateAgreement(childComplexity), true - - case "UpdateVendorContactPayload.vendorContact": - if e.ComplexityRoot.UpdateVendorContactPayload.VendorContact == nil { - break - } - - return e.ComplexityRoot.UpdateVendorContactPayload.VendorContact(childComplexity), true - - case "UpdateVendorDataPrivacyAgreementPayload.vendorDataPrivacyAgreement": - if e.ComplexityRoot.UpdateVendorDataPrivacyAgreementPayload.VendorDataPrivacyAgreement == nil { - break - } - - return e.ComplexityRoot.UpdateVendorDataPrivacyAgreementPayload.VendorDataPrivacyAgreement(childComplexity), true - - case "UpdateVendorPayload.vendor": - if e.ComplexityRoot.UpdateVendorPayload.Vendor == nil { - break - } - - return e.ComplexityRoot.UpdateVendorPayload.Vendor(childComplexity), true - - case "UpdateVendorServicePayload.vendorService": - if e.ComplexityRoot.UpdateVendorServicePayload.VendorService == nil { - break - } - - return e.ComplexityRoot.UpdateVendorServicePayload.VendorService(childComplexity), true - - case "UpdateWebhookSubscriptionPayload.webhookSubscription": - if e.ComplexityRoot.UpdateWebhookSubscriptionPayload.WebhookSubscription == nil { - break - } - - return e.ComplexityRoot.UpdateWebhookSubscriptionPayload.WebhookSubscription(childComplexity), true - - case "UploadAuditReportPayload.audit": - if e.ComplexityRoot.UploadAuditReportPayload.Audit == nil { - break - } - - return e.ComplexityRoot.UploadAuditReportPayload.Audit(childComplexity), true - - case "UploadMeasureEvidencePayload.evidenceEdge": - if e.ComplexityRoot.UploadMeasureEvidencePayload.EvidenceEdge == nil { - break - } - - return e.ComplexityRoot.UploadMeasureEvidencePayload.EvidenceEdge(childComplexity), true - - case "UploadTrustCenterNDAPayload.trustCenter": - if e.ComplexityRoot.UploadTrustCenterNDAPayload.TrustCenter == nil { - break - } - - return e.ComplexityRoot.UploadTrustCenterNDAPayload.TrustCenter(childComplexity), true - - case "UploadVendorBusinessAssociateAgreementPayload.vendorBusinessAssociateAgreement": - if e.ComplexityRoot.UploadVendorBusinessAssociateAgreementPayload.VendorBusinessAssociateAgreement == nil { - break - } - - return e.ComplexityRoot.UploadVendorBusinessAssociateAgreementPayload.VendorBusinessAssociateAgreement(childComplexity), true - - case "UploadVendorComplianceReportPayload.vendorComplianceReportEdge": - if e.ComplexityRoot.UploadVendorComplianceReportPayload.VendorComplianceReportEdge == nil { - break - } - - return e.ComplexityRoot.UploadVendorComplianceReportPayload.VendorComplianceReportEdge(childComplexity), true - - case "UploadVendorDataPrivacyAgreementPayload.vendorDataPrivacyAgreement": - if e.ComplexityRoot.UploadVendorDataPrivacyAgreementPayload.VendorDataPrivacyAgreement == nil { - break - } - - return e.ComplexityRoot.UploadVendorDataPrivacyAgreementPayload.VendorDataPrivacyAgreement(childComplexity), true - - case "Vendor.businessAssociateAgreement": - if e.ComplexityRoot.Vendor.BusinessAssociateAgreement == nil { - break - } - - return e.ComplexityRoot.Vendor.BusinessAssociateAgreement(childComplexity), true - case "Vendor.businessAssociateAgreementUrl": - if e.ComplexityRoot.Vendor.BusinessAssociateAgreementURL == nil { - break - } - - return e.ComplexityRoot.Vendor.BusinessAssociateAgreementURL(childComplexity), true - case "Vendor.businessOwner": - if e.ComplexityRoot.Vendor.BusinessOwner == nil { - break - } - - return e.ComplexityRoot.Vendor.BusinessOwner(childComplexity), true - case "Vendor.category": - if e.ComplexityRoot.Vendor.Category == nil { - break - } - - return e.ComplexityRoot.Vendor.Category(childComplexity), true - case "Vendor.certifications": - if e.ComplexityRoot.Vendor.Certifications == nil { - break - } - - return e.ComplexityRoot.Vendor.Certifications(childComplexity), true - case "Vendor.complianceReports": - if e.ComplexityRoot.Vendor.ComplianceReports == nil { - break - } - - args, err := ec.field_Vendor_complianceReports_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Vendor.ComplianceReports(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorComplianceReportOrderBy)), true - case "Vendor.contacts": - if e.ComplexityRoot.Vendor.Contacts == nil { - break - } - - args, err := ec.field_Vendor_contacts_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Vendor.Contacts(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorContactOrderBy)), true - case "Vendor.countries": - if e.ComplexityRoot.Vendor.Countries == nil { - break - } - - return e.ComplexityRoot.Vendor.Countries(childComplexity), true - case "Vendor.createdAt": - if e.ComplexityRoot.Vendor.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Vendor.CreatedAt(childComplexity), true - case "Vendor.dataPrivacyAgreement": - if e.ComplexityRoot.Vendor.DataPrivacyAgreement == nil { - break - } - - return e.ComplexityRoot.Vendor.DataPrivacyAgreement(childComplexity), true - case "Vendor.dataProcessingAgreementUrl": - if e.ComplexityRoot.Vendor.DataProcessingAgreementURL == nil { - break - } - - return e.ComplexityRoot.Vendor.DataProcessingAgreementURL(childComplexity), true - case "Vendor.description": - if e.ComplexityRoot.Vendor.Description == nil { - break - } - - return e.ComplexityRoot.Vendor.Description(childComplexity), true - case "Vendor.headquarterAddress": - if e.ComplexityRoot.Vendor.HeadquarterAddress == nil { - break - } - - return e.ComplexityRoot.Vendor.HeadquarterAddress(childComplexity), true - case "Vendor.id": - if e.ComplexityRoot.Vendor.ID == nil { - break - } - - return e.ComplexityRoot.Vendor.ID(childComplexity), true - case "Vendor.legalName": - if e.ComplexityRoot.Vendor.LegalName == nil { - break - } - - return e.ComplexityRoot.Vendor.LegalName(childComplexity), true - case "Vendor.name": - if e.ComplexityRoot.Vendor.Name == nil { - break - } - - return e.ComplexityRoot.Vendor.Name(childComplexity), true - case "Vendor.organization": - if e.ComplexityRoot.Vendor.Organization == nil { - break - } - - return e.ComplexityRoot.Vendor.Organization(childComplexity), true - case "Vendor.permission": - if e.ComplexityRoot.Vendor.Permission == nil { - break - } - - args, err := ec.field_Vendor_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Vendor.Permission(childComplexity, args["action"].(string)), true - case "Vendor.privacyPolicyUrl": - if e.ComplexityRoot.Vendor.PrivacyPolicyURL == nil { - break - } - - return e.ComplexityRoot.Vendor.PrivacyPolicyURL(childComplexity), true - case "Vendor.riskAssessments": - if e.ComplexityRoot.Vendor.RiskAssessments == nil { - break - } - - args, err := ec.field_Vendor_riskAssessments_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Vendor.RiskAssessments(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorRiskAssessmentOrder)), true - case "Vendor.securityOwner": - if e.ComplexityRoot.Vendor.SecurityOwner == nil { - break - } - - return e.ComplexityRoot.Vendor.SecurityOwner(childComplexity), true - case "Vendor.securityPageUrl": - if e.ComplexityRoot.Vendor.SecurityPageURL == nil { - break - } - - return e.ComplexityRoot.Vendor.SecurityPageURL(childComplexity), true - case "Vendor.serviceLevelAgreementUrl": - if e.ComplexityRoot.Vendor.ServiceLevelAgreementURL == nil { - break - } - - return e.ComplexityRoot.Vendor.ServiceLevelAgreementURL(childComplexity), true - case "Vendor.services": - if e.ComplexityRoot.Vendor.Services == nil { - break - } - - args, err := ec.field_Vendor_services_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Vendor.Services(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.VendorServiceOrderBy)), true - case "Vendor.showOnTrustCenter": - if e.ComplexityRoot.Vendor.ShowOnTrustCenter == nil { - break - } - - return e.ComplexityRoot.Vendor.ShowOnTrustCenter(childComplexity), true - case "Vendor.snapshotId": - if e.ComplexityRoot.Vendor.SnapshotID == nil { - break - } - - return e.ComplexityRoot.Vendor.SnapshotID(childComplexity), true - case "Vendor.statusPageUrl": - if e.ComplexityRoot.Vendor.StatusPageURL == nil { - break - } - - return e.ComplexityRoot.Vendor.StatusPageURL(childComplexity), true - case "Vendor.subprocessorsListUrl": - if e.ComplexityRoot.Vendor.SubprocessorsListURL == nil { - break - } - - return e.ComplexityRoot.Vendor.SubprocessorsListURL(childComplexity), true - case "Vendor.termsOfServiceUrl": - if e.ComplexityRoot.Vendor.TermsOfServiceURL == nil { - break - } - - return e.ComplexityRoot.Vendor.TermsOfServiceURL(childComplexity), true - case "Vendor.trustPageUrl": - if e.ComplexityRoot.Vendor.TrustPageURL == nil { - break - } - - return e.ComplexityRoot.Vendor.TrustPageURL(childComplexity), true - case "Vendor.updatedAt": - if e.ComplexityRoot.Vendor.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Vendor.UpdatedAt(childComplexity), true - case "Vendor.websiteUrl": - if e.ComplexityRoot.Vendor.WebsiteURL == nil { - break - } - - return e.ComplexityRoot.Vendor.WebsiteURL(childComplexity), true - - case "VendorBusinessAssociateAgreement.createdAt": - if e.ComplexityRoot.VendorBusinessAssociateAgreement.CreatedAt == nil { - break - } - - return e.ComplexityRoot.VendorBusinessAssociateAgreement.CreatedAt(childComplexity), true - case "VendorBusinessAssociateAgreement.fileName": - if e.ComplexityRoot.VendorBusinessAssociateAgreement.FileName == nil { - break - } - - return e.ComplexityRoot.VendorBusinessAssociateAgreement.FileName(childComplexity), true - case "VendorBusinessAssociateAgreement.fileSize": - if e.ComplexityRoot.VendorBusinessAssociateAgreement.FileSize == nil { - break - } - - return e.ComplexityRoot.VendorBusinessAssociateAgreement.FileSize(childComplexity), true - case "VendorBusinessAssociateAgreement.fileUrl": - if e.ComplexityRoot.VendorBusinessAssociateAgreement.FileURL == nil { - break - } - - return e.ComplexityRoot.VendorBusinessAssociateAgreement.FileURL(childComplexity), true - case "VendorBusinessAssociateAgreement.id": - if e.ComplexityRoot.VendorBusinessAssociateAgreement.ID == nil { - break - } - - return e.ComplexityRoot.VendorBusinessAssociateAgreement.ID(childComplexity), true - case "VendorBusinessAssociateAgreement.permission": - if e.ComplexityRoot.VendorBusinessAssociateAgreement.Permission == nil { - break - } - - args, err := ec.field_VendorBusinessAssociateAgreement_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.VendorBusinessAssociateAgreement.Permission(childComplexity, args["action"].(string)), true - case "VendorBusinessAssociateAgreement.updatedAt": - if e.ComplexityRoot.VendorBusinessAssociateAgreement.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.VendorBusinessAssociateAgreement.UpdatedAt(childComplexity), true - case "VendorBusinessAssociateAgreement.validFrom": - if e.ComplexityRoot.VendorBusinessAssociateAgreement.ValidFrom == nil { - break - } - - return e.ComplexityRoot.VendorBusinessAssociateAgreement.ValidFrom(childComplexity), true - case "VendorBusinessAssociateAgreement.validUntil": - if e.ComplexityRoot.VendorBusinessAssociateAgreement.ValidUntil == nil { - break - } - - return e.ComplexityRoot.VendorBusinessAssociateAgreement.ValidUntil(childComplexity), true - case "VendorBusinessAssociateAgreement.vendor": - if e.ComplexityRoot.VendorBusinessAssociateAgreement.Vendor == nil { - break - } - - return e.ComplexityRoot.VendorBusinessAssociateAgreement.Vendor(childComplexity), true - - case "VendorComplianceReport.createdAt": - if e.ComplexityRoot.VendorComplianceReport.CreatedAt == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReport.CreatedAt(childComplexity), true - case "VendorComplianceReport.file": - if e.ComplexityRoot.VendorComplianceReport.File == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReport.File(childComplexity), true - case "VendorComplianceReport.id": - if e.ComplexityRoot.VendorComplianceReport.ID == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReport.ID(childComplexity), true - case "VendorComplianceReport.permission": - if e.ComplexityRoot.VendorComplianceReport.Permission == nil { - break - } - - args, err := ec.field_VendorComplianceReport_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.VendorComplianceReport.Permission(childComplexity, args["action"].(string)), true - case "VendorComplianceReport.reportDate": - if e.ComplexityRoot.VendorComplianceReport.ReportDate == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReport.ReportDate(childComplexity), true - case "VendorComplianceReport.reportName": - if e.ComplexityRoot.VendorComplianceReport.ReportName == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReport.ReportName(childComplexity), true - case "VendorComplianceReport.updatedAt": - if e.ComplexityRoot.VendorComplianceReport.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReport.UpdatedAt(childComplexity), true - case "VendorComplianceReport.validUntil": - if e.ComplexityRoot.VendorComplianceReport.ValidUntil == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReport.ValidUntil(childComplexity), true - case "VendorComplianceReport.vendor": - if e.ComplexityRoot.VendorComplianceReport.Vendor == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReport.Vendor(childComplexity), true - - case "VendorComplianceReportConnection.edges": - if e.ComplexityRoot.VendorComplianceReportConnection.Edges == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReportConnection.Edges(childComplexity), true - case "VendorComplianceReportConnection.pageInfo": - if e.ComplexityRoot.VendorComplianceReportConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReportConnection.PageInfo(childComplexity), true - - case "VendorComplianceReportEdge.cursor": - if e.ComplexityRoot.VendorComplianceReportEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReportEdge.Cursor(childComplexity), true - case "VendorComplianceReportEdge.node": - if e.ComplexityRoot.VendorComplianceReportEdge.Node == nil { - break - } - - return e.ComplexityRoot.VendorComplianceReportEdge.Node(childComplexity), true - - case "VendorConnection.edges": - if e.ComplexityRoot.VendorConnection.Edges == nil { - break - } - - return e.ComplexityRoot.VendorConnection.Edges(childComplexity), true - case "VendorConnection.pageInfo": - if e.ComplexityRoot.VendorConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.VendorConnection.PageInfo(childComplexity), true - case "VendorConnection.totalCount": - if e.ComplexityRoot.VendorConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.VendorConnection.TotalCount(childComplexity), true - - case "VendorContact.createdAt": - if e.ComplexityRoot.VendorContact.CreatedAt == nil { - break - } - - return e.ComplexityRoot.VendorContact.CreatedAt(childComplexity), true - case "VendorContact.email": - if e.ComplexityRoot.VendorContact.Email == nil { - break - } - - return e.ComplexityRoot.VendorContact.Email(childComplexity), true - case "VendorContact.fullName": - if e.ComplexityRoot.VendorContact.FullName == nil { - break - } - - return e.ComplexityRoot.VendorContact.FullName(childComplexity), true - case "VendorContact.id": - if e.ComplexityRoot.VendorContact.ID == nil { - break - } - - return e.ComplexityRoot.VendorContact.ID(childComplexity), true - case "VendorContact.permission": - if e.ComplexityRoot.VendorContact.Permission == nil { - break - } - - args, err := ec.field_VendorContact_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.VendorContact.Permission(childComplexity, args["action"].(string)), true - case "VendorContact.phone": - if e.ComplexityRoot.VendorContact.Phone == nil { - break - } - - return e.ComplexityRoot.VendorContact.Phone(childComplexity), true - case "VendorContact.role": - if e.ComplexityRoot.VendorContact.Role == nil { - break - } - - return e.ComplexityRoot.VendorContact.Role(childComplexity), true - case "VendorContact.updatedAt": - if e.ComplexityRoot.VendorContact.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.VendorContact.UpdatedAt(childComplexity), true - case "VendorContact.vendor": - if e.ComplexityRoot.VendorContact.Vendor == nil { - break - } - - return e.ComplexityRoot.VendorContact.Vendor(childComplexity), true - - case "VendorContactConnection.edges": - if e.ComplexityRoot.VendorContactConnection.Edges == nil { - break - } - - return e.ComplexityRoot.VendorContactConnection.Edges(childComplexity), true - case "VendorContactConnection.pageInfo": - if e.ComplexityRoot.VendorContactConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.VendorContactConnection.PageInfo(childComplexity), true - - case "VendorContactEdge.cursor": - if e.ComplexityRoot.VendorContactEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.VendorContactEdge.Cursor(childComplexity), true - case "VendorContactEdge.node": - if e.ComplexityRoot.VendorContactEdge.Node == nil { - break - } - - return e.ComplexityRoot.VendorContactEdge.Node(childComplexity), true - - case "VendorDataPrivacyAgreement.createdAt": - if e.ComplexityRoot.VendorDataPrivacyAgreement.CreatedAt == nil { - break - } - - return e.ComplexityRoot.VendorDataPrivacyAgreement.CreatedAt(childComplexity), true - case "VendorDataPrivacyAgreement.fileName": - if e.ComplexityRoot.VendorDataPrivacyAgreement.FileName == nil { - break - } - - return e.ComplexityRoot.VendorDataPrivacyAgreement.FileName(childComplexity), true - case "VendorDataPrivacyAgreement.fileSize": - if e.ComplexityRoot.VendorDataPrivacyAgreement.FileSize == nil { - break - } - - return e.ComplexityRoot.VendorDataPrivacyAgreement.FileSize(childComplexity), true - case "VendorDataPrivacyAgreement.fileUrl": - if e.ComplexityRoot.VendorDataPrivacyAgreement.FileURL == nil { - break - } - - return e.ComplexityRoot.VendorDataPrivacyAgreement.FileURL(childComplexity), true - case "VendorDataPrivacyAgreement.id": - if e.ComplexityRoot.VendorDataPrivacyAgreement.ID == nil { - break - } - - return e.ComplexityRoot.VendorDataPrivacyAgreement.ID(childComplexity), true - case "VendorDataPrivacyAgreement.permission": - if e.ComplexityRoot.VendorDataPrivacyAgreement.Permission == nil { - break - } - - args, err := ec.field_VendorDataPrivacyAgreement_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.VendorDataPrivacyAgreement.Permission(childComplexity, args["action"].(string)), true - case "VendorDataPrivacyAgreement.updatedAt": - if e.ComplexityRoot.VendorDataPrivacyAgreement.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.VendorDataPrivacyAgreement.UpdatedAt(childComplexity), true - case "VendorDataPrivacyAgreement.validFrom": - if e.ComplexityRoot.VendorDataPrivacyAgreement.ValidFrom == nil { - break - } - - return e.ComplexityRoot.VendorDataPrivacyAgreement.ValidFrom(childComplexity), true - case "VendorDataPrivacyAgreement.validUntil": - if e.ComplexityRoot.VendorDataPrivacyAgreement.ValidUntil == nil { - break - } - - return e.ComplexityRoot.VendorDataPrivacyAgreement.ValidUntil(childComplexity), true - case "VendorDataPrivacyAgreement.vendor": - if e.ComplexityRoot.VendorDataPrivacyAgreement.Vendor == nil { - break - } - - return e.ComplexityRoot.VendorDataPrivacyAgreement.Vendor(childComplexity), true - - case "VendorEdge.cursor": - if e.ComplexityRoot.VendorEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.VendorEdge.Cursor(childComplexity), true - case "VendorEdge.node": - if e.ComplexityRoot.VendorEdge.Node == nil { - break - } - - return e.ComplexityRoot.VendorEdge.Node(childComplexity), true - - case "VendorRiskAssessment.businessImpact": - if e.ComplexityRoot.VendorRiskAssessment.BusinessImpact == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessment.BusinessImpact(childComplexity), true - case "VendorRiskAssessment.createdAt": - if e.ComplexityRoot.VendorRiskAssessment.CreatedAt == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessment.CreatedAt(childComplexity), true - case "VendorRiskAssessment.dataSensitivity": - if e.ComplexityRoot.VendorRiskAssessment.DataSensitivity == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessment.DataSensitivity(childComplexity), true - case "VendorRiskAssessment.expiresAt": - if e.ComplexityRoot.VendorRiskAssessment.ExpiresAt == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessment.ExpiresAt(childComplexity), true - case "VendorRiskAssessment.id": - if e.ComplexityRoot.VendorRiskAssessment.ID == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessment.ID(childComplexity), true - case "VendorRiskAssessment.notes": - if e.ComplexityRoot.VendorRiskAssessment.Notes == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessment.Notes(childComplexity), true - case "VendorRiskAssessment.permission": - if e.ComplexityRoot.VendorRiskAssessment.Permission == nil { - break - } - - args, err := ec.field_VendorRiskAssessment_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.VendorRiskAssessment.Permission(childComplexity, args["action"].(string)), true - case "VendorRiskAssessment.updatedAt": - if e.ComplexityRoot.VendorRiskAssessment.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessment.UpdatedAt(childComplexity), true - case "VendorRiskAssessment.vendor": - if e.ComplexityRoot.VendorRiskAssessment.Vendor == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessment.Vendor(childComplexity), true - - case "VendorRiskAssessmentConnection.edges": - if e.ComplexityRoot.VendorRiskAssessmentConnection.Edges == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessmentConnection.Edges(childComplexity), true - case "VendorRiskAssessmentConnection.pageInfo": - if e.ComplexityRoot.VendorRiskAssessmentConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessmentConnection.PageInfo(childComplexity), true - - case "VendorRiskAssessmentEdge.cursor": - if e.ComplexityRoot.VendorRiskAssessmentEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessmentEdge.Cursor(childComplexity), true - case "VendorRiskAssessmentEdge.node": - if e.ComplexityRoot.VendorRiskAssessmentEdge.Node == nil { - break - } - - return e.ComplexityRoot.VendorRiskAssessmentEdge.Node(childComplexity), true - - case "VendorService.createdAt": - if e.ComplexityRoot.VendorService.CreatedAt == nil { - break - } - - return e.ComplexityRoot.VendorService.CreatedAt(childComplexity), true - case "VendorService.description": - if e.ComplexityRoot.VendorService.Description == nil { - break - } - - return e.ComplexityRoot.VendorService.Description(childComplexity), true - case "VendorService.id": - if e.ComplexityRoot.VendorService.ID == nil { - break - } - - return e.ComplexityRoot.VendorService.ID(childComplexity), true - case "VendorService.name": - if e.ComplexityRoot.VendorService.Name == nil { - break - } - - return e.ComplexityRoot.VendorService.Name(childComplexity), true - case "VendorService.permission": - if e.ComplexityRoot.VendorService.Permission == nil { - break - } - - args, err := ec.field_VendorService_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.VendorService.Permission(childComplexity, args["action"].(string)), true - case "VendorService.updatedAt": - if e.ComplexityRoot.VendorService.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.VendorService.UpdatedAt(childComplexity), true - case "VendorService.vendor": - if e.ComplexityRoot.VendorService.Vendor == nil { - break - } - - return e.ComplexityRoot.VendorService.Vendor(childComplexity), true - - case "VendorServiceConnection.edges": - if e.ComplexityRoot.VendorServiceConnection.Edges == nil { - break - } - - return e.ComplexityRoot.VendorServiceConnection.Edges(childComplexity), true - case "VendorServiceConnection.pageInfo": - if e.ComplexityRoot.VendorServiceConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.VendorServiceConnection.PageInfo(childComplexity), true - - case "VendorServiceEdge.cursor": - if e.ComplexityRoot.VendorServiceEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.VendorServiceEdge.Cursor(childComplexity), true - case "VendorServiceEdge.node": - if e.ComplexityRoot.VendorServiceEdge.Node == nil { - break - } - - return e.ComplexityRoot.VendorServiceEdge.Node(childComplexity), true - - case "Viewer.id": - if e.ComplexityRoot.Viewer.ID == nil { - break - } - - return e.ComplexityRoot.Viewer.ID(childComplexity), true - case "Viewer.signableDocument": - if e.ComplexityRoot.Viewer.SignableDocument == nil { - break - } - - args, err := ec.field_Viewer_signableDocument_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Viewer.SignableDocument(childComplexity, args["id"].(gid.GID)), true - case "Viewer.signableDocuments": - if e.ComplexityRoot.Viewer.SignableDocuments == nil { - break - } - - args, err := ec.field_Viewer_signableDocuments_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Viewer.SignableDocuments(childComplexity, args["organizationId"].(gid.GID), args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.DocumentOrderBy)), true - - case "WebhookEvent.createdAt": - if e.ComplexityRoot.WebhookEvent.CreatedAt == nil { - break - } - - return e.ComplexityRoot.WebhookEvent.CreatedAt(childComplexity), true - case "WebhookEvent.id": - if e.ComplexityRoot.WebhookEvent.ID == nil { - break - } - - return e.ComplexityRoot.WebhookEvent.ID(childComplexity), true - case "WebhookEvent.response": - if e.ComplexityRoot.WebhookEvent.Response == nil { - break - } - - return e.ComplexityRoot.WebhookEvent.Response(childComplexity), true - case "WebhookEvent.status": - if e.ComplexityRoot.WebhookEvent.Status == nil { - break - } - - return e.ComplexityRoot.WebhookEvent.Status(childComplexity), true - case "WebhookEvent.webhookSubscriptionId": - if e.ComplexityRoot.WebhookEvent.WebhookSubscriptionID == nil { - break - } - - return e.ComplexityRoot.WebhookEvent.WebhookSubscriptionID(childComplexity), true - - case "WebhookEventConnection.edges": - if e.ComplexityRoot.WebhookEventConnection.Edges == nil { - break - } - - return e.ComplexityRoot.WebhookEventConnection.Edges(childComplexity), true - case "WebhookEventConnection.pageInfo": - if e.ComplexityRoot.WebhookEventConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.WebhookEventConnection.PageInfo(childComplexity), true - case "WebhookEventConnection.totalCount": - if e.ComplexityRoot.WebhookEventConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.WebhookEventConnection.TotalCount(childComplexity), true - - case "WebhookEventEdge.cursor": - if e.ComplexityRoot.WebhookEventEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.WebhookEventEdge.Cursor(childComplexity), true - case "WebhookEventEdge.node": - if e.ComplexityRoot.WebhookEventEdge.Node == nil { - break - } - - return e.ComplexityRoot.WebhookEventEdge.Node(childComplexity), true - - case "WebhookSubscription.createdAt": - if e.ComplexityRoot.WebhookSubscription.CreatedAt == nil { - break - } - - return e.ComplexityRoot.WebhookSubscription.CreatedAt(childComplexity), true - case "WebhookSubscription.endpointUrl": - if e.ComplexityRoot.WebhookSubscription.EndpointURL == nil { - break - } - - return e.ComplexityRoot.WebhookSubscription.EndpointURL(childComplexity), true - case "WebhookSubscription.events": - if e.ComplexityRoot.WebhookSubscription.Events == nil { - break - } - - args, err := ec.field_WebhookSubscription_events_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.WebhookSubscription.Events(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.WebhookEventOrderBy)), true - case "WebhookSubscription.id": - if e.ComplexityRoot.WebhookSubscription.ID == nil { - break - } - - return e.ComplexityRoot.WebhookSubscription.ID(childComplexity), true - case "WebhookSubscription.organization": - if e.ComplexityRoot.WebhookSubscription.Organization == nil { - break - } - - return e.ComplexityRoot.WebhookSubscription.Organization(childComplexity), true - case "WebhookSubscription.permission": - if e.ComplexityRoot.WebhookSubscription.Permission == nil { - break - } - - args, err := ec.field_WebhookSubscription_permission_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.WebhookSubscription.Permission(childComplexity, args["action"].(string)), true - case "WebhookSubscription.selectedEvents": - if e.ComplexityRoot.WebhookSubscription.SelectedEvents == nil { - break - } - - return e.ComplexityRoot.WebhookSubscription.SelectedEvents(childComplexity), true - case "WebhookSubscription.signingSecret": - if e.ComplexityRoot.WebhookSubscription.SigningSecret == nil { - break - } - - return e.ComplexityRoot.WebhookSubscription.SigningSecret(childComplexity), true - case "WebhookSubscription.updatedAt": - if e.ComplexityRoot.WebhookSubscription.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.WebhookSubscription.UpdatedAt(childComplexity), true - - case "WebhookSubscriptionConnection.edges": - if e.ComplexityRoot.WebhookSubscriptionConnection.Edges == nil { - break - } - - return e.ComplexityRoot.WebhookSubscriptionConnection.Edges(childComplexity), true - case "WebhookSubscriptionConnection.pageInfo": - if e.ComplexityRoot.WebhookSubscriptionConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.WebhookSubscriptionConnection.PageInfo(childComplexity), true - case "WebhookSubscriptionConnection.totalCount": - if e.ComplexityRoot.WebhookSubscriptionConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.WebhookSubscriptionConnection.TotalCount(childComplexity), true - - case "WebhookSubscriptionEdge.cursor": - if e.ComplexityRoot.WebhookSubscriptionEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.WebhookSubscriptionEdge.Cursor(childComplexity), true - case "WebhookSubscriptionEdge.node": - if e.ComplexityRoot.WebhookSubscriptionEdge.Node == nil { - break - } - - return e.ComplexityRoot.WebhookSubscriptionEdge.Node(childComplexity), true - - } - return 0, false -} - -func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - opCtx := graphql.GetOperationContext(ctx) - ec := newExecutionContext(opCtx, e, make(chan graphql.DeferredResult)) - inputUnmarshalMap := graphql.BuildUnmarshalerMap( - ec.unmarshalInputApplicabilityStatementInput, - ec.unmarshalInputApplicabilityStatementOrder, - ec.unmarshalInputAssessVendorInput, - ec.unmarshalInputAssetFilter, - ec.unmarshalInputAssetOrder, - ec.unmarshalInputAuditOrder, - ec.unmarshalInputBulkDeleteDocumentsInput, - ec.unmarshalInputBulkExportDocumentsInput, - ec.unmarshalInputBulkPublishDocumentVersionsInput, - ec.unmarshalInputBulkRequestSignaturesInput, - ec.unmarshalInputCancelSignatureRequestInput, - ec.unmarshalInputComplianceExternalURLOrder, - ec.unmarshalInputComplianceFrameworkOrder, - ec.unmarshalInputContinualImprovementFilter, - ec.unmarshalInputContinualImprovementOrder, - ec.unmarshalInputControlFilter, - ec.unmarshalInputControlOrder, - ec.unmarshalInputCreateApplicabilityStatementInput, - ec.unmarshalInputCreateAssetInput, - ec.unmarshalInputCreateAuditInput, - ec.unmarshalInputCreateComplianceExternalURLInput, - ec.unmarshalInputCreateComplianceFrameworkInput, - ec.unmarshalInputCreateContinualImprovementInput, - ec.unmarshalInputCreateControlAuditMappingInput, - ec.unmarshalInputCreateControlDocumentMappingInput, - ec.unmarshalInputCreateControlInput, - ec.unmarshalInputCreateControlMeasureMappingInput, - ec.unmarshalInputCreateControlObligationMappingInput, - ec.unmarshalInputCreateControlSnapshotMappingInput, - ec.unmarshalInputCreateCustomDomainInput, - ec.unmarshalInputCreateDataProtectionImpactAssessmentInput, - ec.unmarshalInputCreateDatumInput, - ec.unmarshalInputCreateDocumentInput, - ec.unmarshalInputCreateDraftDocumentVersionInput, - ec.unmarshalInputCreateFrameworkInput, - ec.unmarshalInputCreateMailingListSubscriberInput, - ec.unmarshalInputCreateMailingListUpdateInput, - ec.unmarshalInputCreateMeasureInput, - ec.unmarshalInputCreateMeetingInput, - ec.unmarshalInputCreateNonconformityInput, - ec.unmarshalInputCreateObligationInput, - ec.unmarshalInputCreateProcessingActivityInput, - ec.unmarshalInputCreateRightsRequestInput, - ec.unmarshalInputCreateRiskDocumentMappingInput, - ec.unmarshalInputCreateRiskInput, - ec.unmarshalInputCreateRiskMeasureMappingInput, - ec.unmarshalInputCreateRiskObligationMappingInput, - ec.unmarshalInputCreateSnapshotInput, - ec.unmarshalInputCreateStateOfApplicabilityInput, - ec.unmarshalInputCreateTaskInput, - ec.unmarshalInputCreateTransferImpactAssessmentInput, - ec.unmarshalInputCreateTrustCenterFileInput, - ec.unmarshalInputCreateTrustCenterReferenceInput, - ec.unmarshalInputCreateVendorContactInput, - ec.unmarshalInputCreateVendorInput, - ec.unmarshalInputCreateVendorRiskAssessmentInput, - ec.unmarshalInputCreateVendorServiceInput, - ec.unmarshalInputCreateWebhookSubscriptionInput, - ec.unmarshalInputDataProtectionImpactAssessmentFilter, - ec.unmarshalInputDataProtectionImpactAssessmentOrder, - ec.unmarshalInputDatumFilter, - ec.unmarshalInputDatumOrder, - ec.unmarshalInputDeleteApplicabilityStatementInput, - ec.unmarshalInputDeleteAssetInput, - ec.unmarshalInputDeleteAuditInput, - ec.unmarshalInputDeleteAuditReportInput, - ec.unmarshalInputDeleteComplianceExternalURLInput, - ec.unmarshalInputDeleteComplianceFrameworkInput, - ec.unmarshalInputDeleteContinualImprovementInput, - ec.unmarshalInputDeleteControlAuditMappingInput, - ec.unmarshalInputDeleteControlDocumentMappingInput, - ec.unmarshalInputDeleteControlInput, - ec.unmarshalInputDeleteControlMeasureMappingInput, - ec.unmarshalInputDeleteControlObligationMappingInput, - ec.unmarshalInputDeleteControlSnapshotMappingInput, - ec.unmarshalInputDeleteCustomDomainInput, - ec.unmarshalInputDeleteDataProtectionImpactAssessmentInput, - ec.unmarshalInputDeleteDatumInput, - ec.unmarshalInputDeleteDocumentInput, - ec.unmarshalInputDeleteDraftDocumentVersionInput, - ec.unmarshalInputDeleteEvidenceInput, - ec.unmarshalInputDeleteFrameworkInput, - ec.unmarshalInputDeleteMailingListSubscriberInput, - ec.unmarshalInputDeleteMailingListUpdateInput, - ec.unmarshalInputDeleteMeasureInput, - ec.unmarshalInputDeleteMeetingInput, - ec.unmarshalInputDeleteNonconformityInput, - ec.unmarshalInputDeleteObligationInput, - ec.unmarshalInputDeleteProcessingActivityInput, - ec.unmarshalInputDeleteRightsRequestInput, - ec.unmarshalInputDeleteRiskDocumentMappingInput, - ec.unmarshalInputDeleteRiskInput, - ec.unmarshalInputDeleteRiskMeasureMappingInput, - ec.unmarshalInputDeleteRiskObligationMappingInput, - ec.unmarshalInputDeleteSnapshotInput, - ec.unmarshalInputDeleteStateOfApplicabilityInput, - ec.unmarshalInputDeleteTaskInput, - ec.unmarshalInputDeleteTransferImpactAssessmentInput, - ec.unmarshalInputDeleteTrustCenterAccessInput, - ec.unmarshalInputDeleteTrustCenterFileInput, - ec.unmarshalInputDeleteTrustCenterNDAInput, - ec.unmarshalInputDeleteTrustCenterReferenceInput, - ec.unmarshalInputDeleteVendorBusinessAssociateAgreementInput, - ec.unmarshalInputDeleteVendorComplianceReportInput, - ec.unmarshalInputDeleteVendorContactInput, - ec.unmarshalInputDeleteVendorDataPrivacyAgreementInput, - ec.unmarshalInputDeleteVendorInput, - ec.unmarshalInputDeleteVendorServiceInput, - ec.unmarshalInputDeleteWebhookSubscriptionInput, - ec.unmarshalInputDocumentFilter, - ec.unmarshalInputDocumentOrder, - ec.unmarshalInputDocumentVersionFilter, - ec.unmarshalInputDocumentVersionOrder, - ec.unmarshalInputDocumentVersionSignatureFilter, - ec.unmarshalInputDocumentVersionSignatureOrder, - ec.unmarshalInputEvidenceOrder, - ec.unmarshalInputExportDataProtectionImpactAssessmentsPDFInput, - ec.unmarshalInputExportDocumentVersionPDFInput, - ec.unmarshalInputExportFrameworkInput, - ec.unmarshalInputExportProcessingActivitiesPDFInput, - ec.unmarshalInputExportSignableDocumentVersionPDFInput, - ec.unmarshalInputExportStateOfApplicabilityPDFInput, - ec.unmarshalInputExportTransferImpactAssessmentsPDFInput, - ec.unmarshalInputFrameworkOrder, - ec.unmarshalInputGenerateDocumentChangelogInput, - ec.unmarshalInputGetTrustCenterFileInput, - ec.unmarshalInputImportFrameworkInput, - ec.unmarshalInputImportMeasureInput, - ec.unmarshalInputMeasureFilter, - ec.unmarshalInputMeasureOrder, - ec.unmarshalInputMeetingOrder, - ec.unmarshalInputNonconformityFilter, - ec.unmarshalInputNonconformityOrder, - ec.unmarshalInputObligationFilter, - ec.unmarshalInputObligationOrder, - ec.unmarshalInputProcessingActivityFilter, - ec.unmarshalInputProcessingActivityOrder, - ec.unmarshalInputProfileFilter, - ec.unmarshalInputProfileOrder, - ec.unmarshalInputPublishDocumentVersionInput, - ec.unmarshalInputRequestSignatureInput, - ec.unmarshalInputRightsRequestOrder, - ec.unmarshalInputRiskFilter, - ec.unmarshalInputRiskOrder, - ec.unmarshalInputSendMailingListUpdateInput, - ec.unmarshalInputSendSigningNotificationsInput, - ec.unmarshalInputSignDocumentInput, - ec.unmarshalInputSnapshotOrder, - ec.unmarshalInputStateOfApplicabilityFilter, - ec.unmarshalInputStateOfApplicabilityOrder, - ec.unmarshalInputTaskOrder, - ec.unmarshalInputTransferImpactAssessmentFilter, - ec.unmarshalInputTransferImpactAssessmentOrder, - ec.unmarshalInputTrustCenterAccessOrder, - ec.unmarshalInputTrustCenterDocumentAccessInput, - ec.unmarshalInputTrustCenterDocumentAccessOrder, - ec.unmarshalInputTrustCenterFileOrder, - ec.unmarshalInputTrustCenterReferenceOrder, - ec.unmarshalInputUpdateApplicabilityStatementInput, - ec.unmarshalInputUpdateAssetInput, - ec.unmarshalInputUpdateAuditInput, - ec.unmarshalInputUpdateComplianceExternalURLInput, - ec.unmarshalInputUpdateComplianceFrameworkInput, - ec.unmarshalInputUpdateContinualImprovementInput, - ec.unmarshalInputUpdateControlInput, - ec.unmarshalInputUpdateDataProtectionImpactAssessmentInput, - ec.unmarshalInputUpdateDatumInput, - ec.unmarshalInputUpdateDocumentInput, - ec.unmarshalInputUpdateDocumentVersionInput, - ec.unmarshalInputUpdateFrameworkInput, - ec.unmarshalInputUpdateMailingListInput, - ec.unmarshalInputUpdateMailingListUpdateInput, - ec.unmarshalInputUpdateMeasureInput, - ec.unmarshalInputUpdateMeetingInput, - ec.unmarshalInputUpdateNonconformityInput, - ec.unmarshalInputUpdateObligationInput, - ec.unmarshalInputUpdateOrganizationContextInput, - ec.unmarshalInputUpdateProcessingActivityInput, - ec.unmarshalInputUpdateRightsRequestInput, - ec.unmarshalInputUpdateRiskInput, - ec.unmarshalInputUpdateStateOfApplicabilityInput, - ec.unmarshalInputUpdateTaskInput, - ec.unmarshalInputUpdateTransferImpactAssessmentInput, - ec.unmarshalInputUpdateTrustCenterAccessInput, - ec.unmarshalInputUpdateTrustCenterBrandInput, - ec.unmarshalInputUpdateTrustCenterFileInput, - ec.unmarshalInputUpdateTrustCenterInput, - ec.unmarshalInputUpdateTrustCenterReferenceInput, - ec.unmarshalInputUpdateVendorBusinessAssociateAgreementInput, - ec.unmarshalInputUpdateVendorContactInput, - ec.unmarshalInputUpdateVendorDataPrivacyAgreementInput, - ec.unmarshalInputUpdateVendorInput, - ec.unmarshalInputUpdateVendorServiceInput, - ec.unmarshalInputUpdateWebhookSubscriptionInput, - ec.unmarshalInputUploadAuditReportInput, - ec.unmarshalInputUploadMeasureEvidenceInput, - ec.unmarshalInputUploadTrustCenterNDAInput, - ec.unmarshalInputUploadVendorBusinessAssociateAgreementInput, - ec.unmarshalInputUploadVendorComplianceReportInput, - ec.unmarshalInputUploadVendorDataPrivacyAgreementInput, - ec.unmarshalInputVendorComplianceReportOrder, - ec.unmarshalInputVendorContactOrder, - ec.unmarshalInputVendorFilter, - ec.unmarshalInputVendorOrder, - ec.unmarshalInputVendorRiskAssessmentOrder, - ec.unmarshalInputVendorServiceOrder, - ec.unmarshalInputWebhookEventOrder, - ec.unmarshalInputWebhookSubscriptionOrder, - ) - first := true - - switch opCtx.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, opCtx.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, opCtx.Operation.SelectionSet) - var buf bytes.Buffer - data.MarshalGQL(&buf) - - return &graphql.Response{ - Data: buf.Bytes(), - } - } - - default: - return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) - } -} - -type executionContext struct { - *graphql.ExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot] -} - -func newExecutionContext( - opCtx *graphql.OperationContext, - execSchema *executableSchema, - deferredResults chan graphql.DeferredResult, -) executionContext { - return executionContext{ - ExecutionContextState: graphql.NewExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot]( - opCtx, - (*graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot])(execSchema), - parsedSchema, - deferredResults, - ), - } -} - -var sources = []*ast.Source{ - {Name: "../schema.graphql", Input: `# Directives -directive @goField( - forceResolver: Boolean - name: String - omittable: Boolean -) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION - -directive @goModel( - model: String - models: [String!] -) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION - -directive @goEnum(value: String) on ENUM_VALUE - -# Scalars -scalar CursorKey -scalar Datetime -scalar Upload -scalar Duration -scalar BigInt -scalar EmailAddr - -# Interfaces -interface Node { - id: ID! -} - -# Pagination -type PageInfo { - hasNextPage: Boolean! - hasPreviousPage: Boolean! - startCursor: CursorKey - endCursor: CursorKey -} - -# Enums -enum OrderDirection - @goModel(model: "go.probo.inc/probo/pkg/page.OrderDirection") { - ASC @goEnum(value: "go.probo.inc/probo/pkg/page.OrderDirectionAsc") - DESC @goEnum(value: "go.probo.inc/probo/pkg/page.OrderDirectionDesc") -} - -enum MeasureState - @goModel(model: "go.probo.inc/probo/pkg/coredata.MeasureState") { - NOT_STARTED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.MeasureStateNotStarted") - IN_PROGRESS - @goEnum(value: "go.probo.inc/probo/pkg/coredata.MeasureStateInProgress") - NOT_APPLICABLE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MeasureStateNotApplicable" - ) - IMPLEMENTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MeasureStateImplemented" - ) -} - -enum TaskState @goModel(model: "go.probo.inc/probo/pkg/coredata.TaskState") { - TODO @goEnum(value: "go.probo.inc/probo/pkg/coredata.TaskStateTodo") - DONE @goEnum(value: "go.probo.inc/probo/pkg/coredata.TaskStateDone") -} - -enum EvidenceState - @goModel(model: "go.probo.inc/probo/pkg/coredata.EvidenceState") { - FULFILLED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.EvidenceStateFulfilled") - REQUESTED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.EvidenceStateRequested") -} - -enum DocumentStatus - @goModel(model: "go.probo.inc/probo/pkg/coredata.DocumentStatus") { - DRAFT @goEnum(value: "go.probo.inc/probo/pkg/coredata.DocumentStatusDraft") - PUBLISHED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentStatusPublished" - ) -} - -enum EvidenceType - @goModel(model: "go.probo.inc/probo/pkg/coredata.EvidenceType") { - FILE @goEnum(value: "go.probo.inc/probo/pkg/coredata.EvidenceTypeFile") - LINK @goEnum(value: "go.probo.inc/probo/pkg/coredata.EvidenceTypeLink") -} - -enum RiskTreatment - @goModel(model: "go.probo.inc/probo/pkg/coredata.RiskTreatment") { - MITIGATED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.RiskTreatmentMitigated") - ACCEPTED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.RiskTreatmentAccepted") - AVOIDED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.RiskTreatmentAvoided") - TRANSFERRED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RiskTreatmentTransferred" - ) -} - -enum AuditState @goModel(model: "go.probo.inc/probo/pkg/coredata.AuditState") { - NOT_STARTED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.AuditStateNotStarted") - IN_PROGRESS - @goEnum(value: "go.probo.inc/probo/pkg/coredata.AuditStateInProgress") - COMPLETED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.AuditStateCompleted") - REJECTED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.AuditStateRejected") - OUTDATED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.AuditStateOutdated") -} - -enum TrustCenterVisibility - @goModel(model: "go.probo.inc/probo/pkg/coredata.TrustCenterVisibility") { - NONE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterVisibilityNone" - ) - PRIVATE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterVisibilityPrivate" - ) - PUBLIC - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterVisibilityPublic" - ) -} - -enum TrustCenterDocumentAccessStatus - @goModel( - model: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessStatus" - ) { - REQUESTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessStatusRequested" - ) - GRANTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessStatusGranted" - ) - REJECTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessStatusRejected" - ) - REVOKED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessStatusRevoked" - ) -} - -enum NonconformityStatus - @goModel(model: "go.probo.inc/probo/pkg/coredata.NonconformityStatus") { - OPEN - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.NonconformityStatusOpen" - ) - IN_PROGRESS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.NonconformityStatusInProgress" - ) - CLOSED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.NonconformityStatusClosed" - ) -} - -enum ObligationStatus - @goModel(model: "go.probo.inc/probo/pkg/coredata.ObligationStatus") { - NON_COMPLIANT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ObligationStatusNonCompliant" - ) - PARTIALLY_COMPLIANT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ObligationStatusPartiallyCompliant" - ) - COMPLIANT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ObligationStatusCompliant" - ) -} - -enum ObligationType - @goModel(model: "go.probo.inc/probo/pkg/coredata.ObligationType") { - LEGAL @goEnum(value: "go.probo.inc/probo/pkg/coredata.ObligationTypeLegal") - CONTRACTUAL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ObligationTypeContractual" - ) -} - -enum ContinualImprovementStatus - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ContinualImprovementStatus" - ) { - OPEN - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementStatusOpen" - ) - IN_PROGRESS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementStatusInProgress" - ) - CLOSED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementStatusClosed" - ) -} - -enum ContinualImprovementPriority - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ContinualImprovementPriority" - ) { - LOW - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementPriorityLow" - ) - MEDIUM - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementPriorityMedium" - ) - HIGH - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementPriorityHigh" - ) -} - -enum RightsRequestType - @goModel(model: "go.probo.inc/probo/pkg/coredata.RightsRequestType") { - ACCESS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RightsRequestTypeAccess" - ) - DELETION - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RightsRequestTypeDeletion" - ) - PORTABILITY - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RightsRequestTypePortability" - ) -} - -enum RightsRequestState - @goModel(model: "go.probo.inc/probo/pkg/coredata.RightsRequestState") { - TODO - @goEnum(value: "go.probo.inc/probo/pkg/coredata.RightsRequestStateTodo") - IN_PROGRESS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RightsRequestStateInProgress" - ) - DONE - @goEnum(value: "go.probo.inc/probo/pkg/coredata.RightsRequestStateDone") -} - -enum ProcessingActivitySpecialOrCriminalDatum - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ProcessingActivitySpecialOrCriminalDatum" - ) { - YES - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivitySpecialOrCriminalDatumYes" - ) - NO - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivitySpecialOrCriminalDatumNo" - ) - POSSIBLE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivitySpecialOrCriminalDatumPossible" - ) -} - -enum ProcessingActivityLawfulBasis - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ProcessingActivityLawfulBasis" - ) { - LEGITIMATE_INTEREST - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityLawfulBasisLegitimateInterest" - ) - CONSENT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityLawfulBasisConsent" - ) - CONTRACTUAL_NECESSITY - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityLawfulBasisContractualNecessity" - ) - LEGAL_OBLIGATION - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityLawfulBasisLegalObligation" - ) - VITAL_INTERESTS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityLawfulBasisVitalInterests" - ) - PUBLIC_TASK - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityLawfulBasisPublicTask" - ) -} - -enum ProcessingActivityTransferSafeguard - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ProcessingActivityTransferSafeguard" - ) { - STANDARD_CONTRACTUAL_CLAUSES - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityTransferSafeguardStandardContractualClauses" - ) - BINDING_CORPORATE_RULES - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityTransferSafeguardBindingCorporateRules" - ) - ADEQUACY_DECISION - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityTransferSafeguardAdequacyDecision" - ) - DEROGATIONS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityTransferSafeguardDerogations" - ) - CODES_OF_CONDUCT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityTransferSafeguardCodesOfConduct" - ) - CERTIFICATION_MECHANISMS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityTransferSafeguardCertificationMechanisms" - ) -} - -enum ProcessingActivityDataProtectionImpactAssessment - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ProcessingActivityDataProtectionImpactAssessment" - ) { - NEEDED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityDataProtectionImpactAssessmentNeeded" - ) - NOT_NEEDED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityDataProtectionImpactAssessmentNotNeeded" - ) -} - -enum ProcessingActivityTransferImpactAssessment - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ProcessingActivityTransferImpactAssessment" - ) { - NEEDED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityTransferImpactAssessmentNeeded" - ) - NOT_NEEDED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityTransferImpactAssessmentNotNeeded" - ) -} - -enum DataProtectionImpactAssessmentResidualRisk - @goModel( - model: "go.probo.inc/probo/pkg/coredata.DataProtectionImpactAssessmentResidualRisk" - ) { - LOW - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DataProtectionImpactAssessmentResidualRiskLow" - ) - MEDIUM - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DataProtectionImpactAssessmentResidualRiskMedium" - ) - HIGH - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DataProtectionImpactAssessmentResidualRiskHigh" - ) -} - -enum ProcessingActivityRole - @goModel(model: "go.probo.inc/probo/pkg/coredata.ProcessingActivityRole") { - CONTROLLER - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityRoleController" - ) - PROCESSOR - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityRoleProcessor" - ) -} - -# Order Field Enums -enum ProfileOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderField") { - FULL_NAME - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldFullName" - ) - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldCreatedAt" - ) - KIND @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldKind") -} - -enum VendorOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.VendorOrderField") { - NAME @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorOrderFieldName") - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorOrderFieldCreatedAt" - ) - UPDATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorOrderFieldUpdatedAt" - ) -} - -enum FrameworkOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.FrameworkOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.FrameworkOrderFieldCreatedAt" - ) -} - -enum ControlOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.ControlOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ControlOrderFieldCreatedAt" - ) - SECTION_TITLE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ControlOrderFieldSectionTitle" - ) -} - -enum MeasureOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.MeasureOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MeasureOrderFieldCreatedAt" - ) - NAME @goEnum(value: "go.probo.inc/probo/pkg/coredata.MeasureOrderFieldName") -} - -enum TaskOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.TaskOrderField") { - CREATED_AT -} - -enum DocumentOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.DocumentOrderField") { - TITLE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentOrderFieldTitle" - ) - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentOrderFieldCreatedAt" - ) - DOCUMENT_TYPE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentOrderFieldDocumentType" - ) -} - -enum MeetingOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.MeetingOrderField") { - DATE @goEnum(value: "go.probo.inc/probo/pkg/coredata.MeetingOrderFieldDate") - NAME @goEnum(value: "go.probo.inc/probo/pkg/coredata.MeetingOrderFieldName") - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MeetingOrderFieldCreatedAt" - ) -} - -enum WebhookSubscriptionOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.WebhookSubscriptionOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.WebhookSubscriptionOrderFieldCreatedAt" - ) -} - -enum RiskOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.RiskOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RiskOrderFieldCreatedAt" - ) - UPDATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RiskOrderFieldUpdatedAt" - ) - NAME @goEnum(value: "go.probo.inc/probo/pkg/coredata.RiskOrderFieldName") - CATEGORY - @goEnum(value: "go.probo.inc/probo/pkg/coredata.RiskOrderFieldCategory") - TREATMENT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RiskOrderFieldTreatment" - ) - INHERENT_RISK_SCORE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RiskOrderFieldInherentRiskScore" - ) - RESIDUAL_RISK_SCORE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RiskOrderFieldResidualRiskScore" - ) - OWNER_FULL_NAME - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RiskOrderFieldOwnerFullName" - ) -} - -enum EvidenceOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.EvidenceOrderField") { - CREATED_AT -} - -enum VendorComplianceReportOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.VendorComplianceReportOrderField" - ) { - REPORT_DATE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorComplianceReportOrderFieldReportDate" - ) - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorComplianceReportOrderFieldCreatedAt" - ) -} - -enum VendorContactOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.VendorContactOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorContactOrderFieldCreatedAt" - ) - FULL_NAME - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorContactOrderFieldFullName" - ) - EMAIL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorContactOrderFieldEmail" - ) -} - -enum VendorServiceOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.VendorServiceOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorServiceOrderFieldCreatedAt" - ) - NAME - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorServiceOrderFieldName" - ) -} - -enum DataSensitivity - @goModel(model: "go.probo.inc/probo/pkg/coredata.DataSensitivity") { - NONE @goEnum(value: "go.probo.inc/probo/pkg/coredata.DataSensitivityNone") - LOW @goEnum(value: "go.probo.inc/probo/pkg/coredata.DataSensitivityLow") - MEDIUM - @goEnum(value: "go.probo.inc/probo/pkg/coredata.DataSensitivityMedium") - HIGH @goEnum(value: "go.probo.inc/probo/pkg/coredata.DataSensitivityHigh") - CRITICAL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DataSensitivityCritical" - ) -} - -enum BusinessImpact - @goModel(model: "go.probo.inc/probo/pkg/coredata.BusinessImpact") { - LOW @goEnum(value: "go.probo.inc/probo/pkg/coredata.BusinessImpactLow") - MEDIUM - @goEnum(value: "go.probo.inc/probo/pkg/coredata.BusinessImpactMedium") - HIGH @goEnum(value: "go.probo.inc/probo/pkg/coredata.BusinessImpactHigh") - CRITICAL - @goEnum(value: "go.probo.inc/probo/pkg/coredata.BusinessImpactCritical") -} - -enum DocumentVersionOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.DocumentVersionOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentVersionOrderFieldCreatedAt" - ) -} - -enum ApplicabilityStatementOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.ApplicabilityStatementOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ApplicabilityStatementOrderFieldCreatedAt" - ) - CONTROL_SECTION_TITLE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ApplicabilityStatementOrderFieldControlSectionTitle" - ) -} - -enum CountryCode - @goModel(model: "go.probo.inc/probo/pkg/coredata.CountryCode") { - AD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAD") - AE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAE") - AF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAF") - AG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAG") - AI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAI") - AL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAL") - AM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAM") - AO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAO") - AQ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAQ") - AR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAR") - AS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAS") - AT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAT") - AU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAU") - AW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAW") - AX @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAX") - AZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAZ") - BA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBA") - BB @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBB") - BD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBD") - BE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBE") - BF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBF") - BG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBG") - BH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBH") - BI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBI") - BJ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBJ") - BL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBL") - BM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBM") - BN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBN") - BO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBO") - BQ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBQ") - BR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBR") - BS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBS") - BT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBT") - BV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBV") - BW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBW") - BY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBY") - BZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBZ") - CA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCA") - CC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCC") - CD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCD") - CF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCF") - CG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCG") - CH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCH") - CI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCI") - CK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCK") - CL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCL") - CM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCM") - CN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCN") - CO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCO") - CR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCR") - CU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCU") - CV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCV") - CW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCW") - CX @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCX") - CY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCY") - CZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCZ") - DE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDE") - DJ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDJ") - DK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDK") - DM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDM") - DO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDO") - DZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDZ") - EC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeEC") - EE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeEE") - EG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeEG") - EH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeEH") - ER @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeER") - ES @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeES") - ET @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeET") - EU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeEU") - FI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFI") - FJ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFJ") - FK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFK") - FM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFM") - FO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFO") - FR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFR") - GA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGA") - GB @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGB") - GD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGD") - GE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGE") - GF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGF") - GG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGG") - GH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGH") - GI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGI") - GL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGL") - GM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGM") - GN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGN") - GP @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGP") - GQ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGQ") - GR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGR") - GT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGT") - GU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGU") - GW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGW") - GY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGY") - HK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHK") - HM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHM") - HN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHN") - HR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHR") - HT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHT") - HU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHU") - ID @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeID") - IE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIE") - IL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIL") - IM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIM") - IN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIN") - IO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIO") - IQ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIQ") - IR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIR") - IS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIS") - IT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIT") - JE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeJE") - JM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeJM") - JO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeJO") - JP @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeJP") - KE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKE") - KG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKG") - KH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKH") - KI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKI") - KM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKM") - KN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKN") - KP @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKP") - KR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKR") - KW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKW") - KY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKY") - KZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKZ") - LA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLA") - LB @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLB") - LC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLC") - LI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLI") - LK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLK") - LR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLR") - LS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLS") - LT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLT") - LU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLU") - LV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLV") - LY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLY") - MA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMA") - MC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMC") - MD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMD") - ME @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeME") - MF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMF") - MG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMG") - MH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMH") - MK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMK") - ML @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeML") - MM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMM") - MN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMN") - MO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMO") - MP @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMP") - MQ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMQ") - MR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMR") - MS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMS") - MT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMT") - MU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMU") - MV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMV") - MW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMW") - MX @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMX") - MY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMY") - MZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMZ") - NA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNA") - NC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNC") - NE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNE") - NF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNF") - NG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNG") - NI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNI") - NL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNL") - NO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNO") - NP @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNP") - NR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNR") - NU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNU") - NZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNZ") - OM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeOM") - PA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePA") - PE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePE") - PF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePF") - PG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePG") - PH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePH") - PK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePK") - PL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePL") - PM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePM") - PN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePN") - PR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePR") - PS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePS") - PT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePT") - PW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePW") - PY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePY") - QA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeQA") - RE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeRE") - RO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeRO") - RS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeRS") - RU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeRU") - RW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeRW") - SA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSA") - SB @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSB") - SC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSC") - SD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSD") - SE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSE") - SG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSG") - SH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSH") - SI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSI") - SJ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSJ") - SK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSK") - SL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSL") - SM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSM") - SN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSN") - SO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSO") - SR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSR") - SS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSS") - ST @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeST") - SV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSV") - SX @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSX") - SY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSY") - SZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSZ") - TC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTC") - TD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTD") - TF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTF") - TG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTG") - TH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTH") - TJ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTJ") - TK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTK") - TL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTL") - TM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTM") - TN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTN") - TO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTO") - TR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTR") - TT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTT") - TV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTV") - TW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTW") - TZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTZ") - UA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUA") - UG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUG") - UM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUM") - US @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUS") - UY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUY") - UZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUZ") - VA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVA") - VC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVC") - VE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVE") - VG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVG") - VI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVI") - VN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVN") - VU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVU") - WF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeWF") - WS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeWS") - YE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeYE") - YT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeYT") - ZA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeZA") - ZM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeZM") - ZW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeZW") -} - -enum VendorCategory - @goModel(model: "go.probo.inc/probo/pkg/coredata.VendorCategory") { - ANALYTICS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryAnalytics" - ) - CLOUD_MONITORING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryCloudMonitoring" - ) - CLOUD_PROVIDER - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryCloudProvider" - ) - COLLABORATION - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryCollaboration" - ) - CUSTOMER_SUPPORT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryCustomerSupport" - ) - DATA_STORAGE_AND_PROCESSING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryDataStorageAndProcessing" - ) - DOCUMENT_MANAGEMENT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryDocumentManagement" - ) - EMPLOYEE_MANAGEMENT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryEmployeeManagement" - ) - ENGINEERING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryEngineering" - ) - FINANCE - @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategoryFinance") - IDENTITY_PROVIDER - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryIdentityProvider" - ) - IT @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategoryIT") - MARKETING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryMarketing" - ) - OFFICE_OPERATIONS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryOfficeOperations" - ) - OTHER @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategoryOther") - PASSWORD_MANAGEMENT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryPasswordManagement" - ) - PRODUCT_AND_DESIGN - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryProductAndDesign" - ) - PROFESSIONAL_SERVICES - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryProfessionalServices" - ) - RECRUITING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryRecruiting" - ) - SALES @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategorySales") - SECURITY - @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategorySecurity") - VERSION_CONTROL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryVersionControl" - ) -} - -enum DocumentType - @goModel(model: "go.probo.inc/probo/pkg/coredata.DocumentType") { - OTHER @goEnum(value: "go.probo.inc/probo/pkg/coredata.DocumentTypeOther") - ISMS @goEnum(value: "go.probo.inc/probo/pkg/coredata.DocumentTypeISMS") - POLICY @goEnum(value: "go.probo.inc/probo/pkg/coredata.DocumentTypePolicy") - PROCEDURE - @goEnum(value: "go.probo.inc/probo/pkg/coredata.DocumentTypeProcedure") -} - -enum DocumentClassification - @goModel(model: "go.probo.inc/probo/pkg/coredata.DocumentClassification") { - PUBLIC - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentClassificationPublic" - ) - INTERNAL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentClassificationInternal" - ) - CONFIDENTIAL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentClassificationConfidential" - ) - SECRET - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentClassificationSecret" - ) -} - -enum AssetType @goModel(model: "go.probo.inc/probo/pkg/coredata.AssetType") { - PHYSICAL @goEnum(value: "go.probo.inc/probo/pkg/coredata.AssetTypePhysical") - VIRTUAL @goEnum(value: "go.probo.inc/probo/pkg/coredata.AssetTypeVirtual") -} - -enum AssetOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.AssetOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.AssetOrderFieldCreatedAt" - ) - AMOUNT - @goEnum(value: "go.probo.inc/probo/pkg/coredata.AssetOrderFieldAmount") -} - -enum DatumOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.DatumOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DatumOrderFieldCreatedAt" - ) - NAME @goEnum(value: "go.probo.inc/probo/pkg/coredata.DatumOrderFieldName") - DATA_CLASSIFICATION - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DatumOrderFieldDataClassification" - ) -} - -enum DataClassification - @goModel(model: "go.probo.inc/probo/pkg/coredata.DataClassification") { - PUBLIC - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DataClassificationPublic" - ) - INTERNAL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DataClassificationInternal" - ) - CONFIDENTIAL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DataClassificationConfidential" - ) - SECRET - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DataClassificationSecret" - ) -} - -enum AuditOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.AuditOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.AuditOrderFieldCreatedAt" - ) - VALID_FROM - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.AuditOrderFieldValidFrom" - ) - VALID_UNTIL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.AuditOrderFieldValidUntil" - ) - STATE @goEnum(value: "go.probo.inc/probo/pkg/coredata.AuditOrderFieldState") -} - -enum NonconformityOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.NonconformityOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.NonconformityOrderFieldCreatedAt" - ) - REFERENCE_ID - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.NonconformityOrderFieldReferenceId" - ) - DATE_IDENTIFIED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.NonconformityOrderFieldDateIdentified" - ) - DUE_DATE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.NonconformityOrderFieldDueDate" - ) - STATUS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.NonconformityOrderFieldStatus" - ) -} - -enum ObligationOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.ObligationOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ObligationOrderFieldCreatedAt" - ) - LAST_REVIEW_DATE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ObligationOrderFieldLastReviewDate" - ) - DUE_DATE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ObligationOrderFieldDueDate" - ) - STATUS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ObligationOrderFieldStatus" - ) -} - -enum ContinualImprovementOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ContinualImprovementOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementOrderFieldCreatedAt" - ) - REFERENCE_ID - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementOrderFieldReferenceId" - ) - TARGET_DATE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementOrderFieldTargetDate" - ) - STATUS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementOrderFieldStatus" - ) - PRIORITY - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ContinualImprovementOrderFieldPriority" - ) -} - -enum RightsRequestOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.RightsRequestOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RightsRequestOrderFieldCreatedAt" - ) - DEADLINE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RightsRequestOrderFieldDeadline" - ) - STATE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RightsRequestOrderFieldState" - ) - TYPE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.RightsRequestOrderFieldType" - ) -} - -enum ProcessingActivityOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ProcessingActivityOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityOrderFieldCreatedAt" - ) - NAME - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ProcessingActivityOrderFieldName" - ) -} - -enum DataProtectionImpactAssessmentOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.DataProtectionImpactAssessmentOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DataProtectionImpactAssessmentOrderFieldCreatedAt" - ) -} - -enum TransferImpactAssessmentOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.TransferImpactAssessmentOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TransferImpactAssessmentOrderFieldCreatedAt" - ) -} - -enum TrustCenterAccessOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.TrustCenterAccessOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterAccessOrderFieldCreatedAt" - ) -} - -enum TrustCenterAccessState - @goModel( - model: "go.probo.inc/probo/pkg/coredata.TrustCenterAccessState" - ) { - ACTIVE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterAccessStateActive" - ) - INACTIVE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterAccessStateInactive" - ) -} - -enum TrustCenterDocumentAccessOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessOrderFieldCreatedAt" - ) -} - -enum TrustCenterReferenceOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.TrustCenterReferenceOrderField" - ) { - RANK - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterReferenceOrderFieldRank" - ) - NAME - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterReferenceOrderFieldName" - ) - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterReferenceOrderFieldCreatedAt" - ) - UPDATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterReferenceOrderFieldUpdatedAt" - ) -} - -enum ComplianceExternalURLOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ComplianceExternalURLOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ComplianceExternalURLOrderFieldCreatedAt" - ) - RANK - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ComplianceExternalURLOrderFieldRank" - ) -} - -enum ComplianceFrameworkOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ComplianceFrameworkOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ComplianceFrameworkOrderFieldCreatedAt" - ) - RANK - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ComplianceFrameworkOrderFieldRank" - ) -} - -enum ComplianceFrameworkVisibility - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ComplianceFrameworkVisibility" - ) { - NONE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ComplianceFrameworkVisibilityNone" - ) - PUBLIC - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ComplianceFrameworkVisibilityPublic" - ) -} - -enum TrustCenterFileOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.TrustCenterFileOrderField" - ) { - NAME - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterFileOrderFieldName" - ) - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterFileOrderFieldCreatedAt" - ) - UPDATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterFileOrderFieldUpdatedAt" - ) -} - -enum SnapshotsType - @goModel(model: "go.probo.inc/probo/pkg/coredata.SnapshotsType") { - RISKS @goEnum(value: "go.probo.inc/probo/pkg/coredata.SnapshotsTypeRisks") - VENDORS - @goEnum(value: "go.probo.inc/probo/pkg/coredata.SnapshotsTypeVendors") - ASSETS @goEnum(value: "go.probo.inc/probo/pkg/coredata.SnapshotsTypeAssets") - DATA @goEnum(value: "go.probo.inc/probo/pkg/coredata.SnapshotsTypeData") - NONCONFORMITIES - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.SnapshotsTypeNonconformities" - ) - OBLIGATIONS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.SnapshotsTypeObligations" - ) - CONTINUAL_IMPROVEMENTS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.SnapshotsTypeContinualImprovements" - ) - PROCESSING_ACTIVITIES - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.SnapshotsTypeProcessingActivities" - ) - STATES_OF_APPLICABILITY - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.SnapshotsTypeStatesOfApplicability" - ) -} - -enum SnapshotOrderField - @goModel(model: "go.probo.inc/probo/pkg/coredata.SnapshotOrderField") { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.SnapshotOrderFieldCreatedAt" - ) - NAME - @goEnum(value: "go.probo.inc/probo/pkg/coredata.SnapshotOrderFieldName") - TYPE - @goEnum(value: "go.probo.inc/probo/pkg/coredata.SnapshotOrderFieldType") -} - -# Input Types -input ProfileOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ProfileOrderBy" - ) { - direction: OrderDirection! - field: ProfileOrderField! -} - -input VendorOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.VendorOrderBy" - ) { - direction: OrderDirection! - field: VendorOrderField! -} - -input FrameworkOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.FrameworkOrderBy" - ) { - direction: OrderDirection! - field: FrameworkOrderField! -} - -input ControlOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ControlOrderBy" - ) { - direction: OrderDirection! - field: ControlOrderField! -} - -input MeasureOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.MeasureOrderBy" - ) { - direction: OrderDirection! - field: MeasureOrderField! -} - -input TaskOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TaskOrderBy" - ) { - direction: OrderDirection! - field: TaskOrderField! -} - -input DocumentOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.DocumentOrderBy" - ) { - direction: OrderDirection! - field: DocumentOrderField! -} - -input MeetingOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.MeetingOrderBy" - ) { - direction: OrderDirection! - field: MeetingOrderField! -} - -input WebhookSubscriptionOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.WebhookSubscriptionOrderBy" - ) { - direction: OrderDirection! - field: WebhookSubscriptionOrderField! -} - -input RiskOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.RiskOrderBy" - ) { - direction: OrderDirection! - field: RiskOrderField! -} - -input AuditOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.AuditOrderBy" - ) { - direction: OrderDirection! - field: AuditOrderField! -} - -input NonconformityOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.NonconformityOrderBy" - ) { - direction: OrderDirection! - field: NonconformityOrderField! -} - -input ObligationOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ObligationOrderBy" - ) { - direction: OrderDirection! - field: ObligationOrderField! -} - -input ContinualImprovementOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ContinualImprovementOrderBy" - ) { - direction: OrderDirection! - field: ContinualImprovementOrderField! -} - -input RightsRequestOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.RightsRequestOrderBy" - ) { - direction: OrderDirection! - field: RightsRequestOrderField! -} - -input ProcessingActivityOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ProcessingActivityOrderBy" - ) { - direction: OrderDirection! - field: ProcessingActivityOrderField! -} - -input DataProtectionImpactAssessmentOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.DataProtectionImpactAssessmentOrderBy" - ) { - direction: OrderDirection! - field: DataProtectionImpactAssessmentOrderField! -} - -input TransferImpactAssessmentOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TransferImpactAssessmentOrderBy" - ) { - direction: OrderDirection! - field: TransferImpactAssessmentOrderField! -} - -input TrustCenterAccessOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TrustCenterAccessOrderBy" - ) { - direction: OrderDirection! - field: TrustCenterAccessOrderField! -} - -input TrustCenterDocumentAccessOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TrustCenterDocumentAccessOrderBy" - ) { - direction: OrderDirection! - field: TrustCenterDocumentAccessOrderField! -} - -input TrustCenterReferenceOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TrustCenterReferenceOrderBy" - ) { - direction: OrderDirection! - field: TrustCenterReferenceOrderField! -} - -input TrustCenterFileOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TrustCenterFileOrderBy" - ) { - direction: OrderDirection! - field: TrustCenterFileOrderField! -} - -input ComplianceExternalURLOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ComplianceExternalURLOrderBy" - ) { - direction: OrderDirection! - field: ComplianceExternalURLOrderField! -} - -input ComplianceFrameworkOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ComplianceFrameworkOrderBy" - ) { - direction: OrderDirection! - field: ComplianceFrameworkOrderField! -} - -input EvidenceOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.EvidenceOrderBy" - ) { - direction: OrderDirection! - field: EvidenceOrderField! -} - -input VendorComplianceReportOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.VendorComplianceReportOrderBy" - ) { - direction: OrderDirection! - field: VendorComplianceReportOrderField! -} - -input VendorContactOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.VendorContactOrderBy" - ) { - direction: OrderDirection! - field: VendorContactOrderField! -} - -input VendorServiceOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.VendorServiceOrderBy" - ) { - direction: OrderDirection! - field: VendorServiceOrderField! -} - -input DocumentVersionOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.DocumentVersionOrderBy" - ) { - direction: OrderDirection! - field: DocumentVersionOrderField! -} - -input SnapshotOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.SnapshotOrderBy" - ) { - direction: OrderDirection! - field: SnapshotOrderField! -} - -input ApplicabilityStatementOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ApplicabilityStatementOrderBy" - ) { - direction: OrderDirection! - field: ApplicabilityStatementOrderField! -} - -input DocumentVersionFilter { - status: DocumentStatus -} - -# Input Types for Filtering -input ControlFilter { - query: String -} - -input DocumentFilter { - query: String -} - -input MeasureFilter { - query: String - state: MeasureState -} - -input RiskFilter { - query: String - snapshotId: ID -} - -input ProfileFilter { - excludeContractEnded: Boolean -} - -input DatumFilter { - snapshotId: ID -} - -input StateOfApplicabilityFilter { - snapshotId: ID -} - -input NonconformityFilter { - snapshotId: ID -} - -input ObligationFilter { - snapshotId: ID -} - -input ContinualImprovementFilter { - snapshotId: ID -} - -input ProcessingActivityFilter { - snapshotId: ID -} - -input DataProtectionImpactAssessmentFilter { - snapshotId: ID -} - -input TransferImpactAssessmentFilter { - snapshotId: ID -} - -input AssetFilter { - snapshotId: ID -} - -input VendorFilter { - snapshotId: ID -} - -# Core Types -type TrustCenter implements Node - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TrustCenter" - ) { - id: ID! - active: Boolean! - logoFileUrl: String @goField(forceResolver: true) - darkLogoFileUrl: String @goField(forceResolver: true) - ndaFileName: String - ndaFileUrl: String @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! - organization: Organization! @goField(forceResolver: true) - - accesses( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: TrustCenterAccessOrder - ): TrustCenterAccessConnection! @goField(forceResolver: true) - - references( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: TrustCenterReferenceOrder - ): TrustCenterReferenceConnection! @goField(forceResolver: true) - - complianceFrameworks( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ComplianceFrameworkOrder - ): ComplianceFrameworkConnection! @goField(forceResolver: true) - - externalUrls( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ComplianceExternalURLOrder - ): ComplianceExternalURLConnection! @goField(forceResolver: true) - - mailingList: MailingList @goField(forceResolver: true) - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type MailingList implements Node { - id: ID! - replyTo: EmailAddr - - subscribers( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): MailingListSubscriberConnection! @goField(forceResolver: true) - - updates( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): MailingListUpdateConnection! @goField(forceResolver: true) -} - -enum MailingListSubscriberStatus - @goModel( - model: "go.probo.inc/probo/pkg/coredata.MailingListSubscriberStatus" - ) { - PENDING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MailingListSubscriberStatusPending" - ) - CONFIRMED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MailingListSubscriberStatusConfirmed" - ) -} - -type MailingListSubscriber implements Node { - id: ID! - fullName: String! - email: EmailAddr! - status: MailingListSubscriberStatus! - createdAt: Datetime! - updatedAt: Datetime! -} - -type MailingListSubscriberConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.MailingListSubscriberConnection" - ) { - edges: [MailingListSubscriberEdge!]! - pageInfo: PageInfo! - totalCount: Int! @goField(forceResolver: true) -} - -type MailingListSubscriberEdge { - cursor: CursorKey! - node: MailingListSubscriber! -} - -enum MailingListUpdateStatus - @goModel( - model: "go.probo.inc/probo/pkg/coredata.MailingListUpdateStatus" - ) { - DRAFT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MailingListUpdateStatusDraft" - ) - ENQUEUED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MailingListUpdateStatusEnqueued" - ) - PROCESSING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MailingListUpdateStatusProcessing" - ) - SENT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MailingListUpdateStatusSent" - ) -} - -type MailingListUpdate implements Node { - id: ID! - title: String! - body: String! - status: MailingListUpdateStatus! - createdAt: Datetime! - updatedAt: Datetime! -} - -type MailingListUpdateConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.MailingListUpdateConnection" - ) { - edges: [MailingListUpdateEdge!]! - pageInfo: PageInfo! - totalCount: Int! @goField(forceResolver: true) -} - -type MailingListUpdateEdge { - cursor: CursorKey! - node: MailingListUpdate! -} - -type Organization implements Node { - id: ID! - name: String! - logoUrl: String @goField(forceResolver: true) - horizontalLogoUrl: String @goField(forceResolver: true) - - description: String - websiteUrl: String - email: String - headquarterAddress: String - context: OrganizationContext @goField(forceResolver: true) - - profiles( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ProfileOrder - filter: ProfileFilter - ): ProfileConnection! @goField(forceResolver: true) - - slackConnections( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): SlackConnectionConnection! @goField(forceResolver: true) - - frameworks( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: FrameworkOrder - ): FrameworkConnection! @goField(forceResolver: true) - - controls( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ControlOrder - filter: ControlFilter - ): ControlConnection! @goField(forceResolver: true) - - vendors( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: VendorOrder - filter: VendorFilter = { snapshotId: null } - ): VendorConnection! @goField(forceResolver: true) - - documents( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: DocumentOrder - filter: DocumentFilter - ): DocumentConnection! @goField(forceResolver: true) - - meetings( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: MeetingOrder - ): MeetingConnection! @goField(forceResolver: true) - - statesOfApplicability( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: StateOfApplicabilityOrder - filter: StateOfApplicabilityFilter = { snapshotId: null } - ): StateOfApplicabilityConnection! @goField(forceResolver: true) - - measures( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: MeasureOrder - filter: MeasureFilter - ): MeasureConnection! @goField(forceResolver: true) - - risks( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: RiskOrder - filter: RiskFilter = { snapshotId: null } - ): RiskConnection! @goField(forceResolver: true) - - tasks( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: TaskOrder - ): TaskConnection! @goField(forceResolver: true) - - assets( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: AssetOrder - filter: AssetFilter = { snapshotId: null } - ): AssetConnection! @goField(forceResolver: true) - - data( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: DatumOrder - filter: DatumFilter = { snapshotId: null } - ): DatumConnection! @goField(forceResolver: true) - - audits( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: AuditOrder - ): AuditConnection! @goField(forceResolver: true) - - nonconformities( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: NonconformityOrder - filter: NonconformityFilter = { snapshotId: null } - ): NonconformityConnection! @goField(forceResolver: true) - - obligations( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ObligationOrder - filter: ObligationFilter = { snapshotId: null } - ): ObligationConnection! @goField(forceResolver: true) - - continualImprovements( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ContinualImprovementOrder - filter: ContinualImprovementFilter = { snapshotId: null } - ): ContinualImprovementConnection! @goField(forceResolver: true) - - rightsRequests( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: RightsRequestOrder - ): RightsRequestConnection! @goField(forceResolver: true) - - processingActivities( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ProcessingActivityOrder - filter: ProcessingActivityFilter = { snapshotId: null } - ): ProcessingActivityConnection! @goField(forceResolver: true) - - dataProtectionImpactAssessments( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: DataProtectionImpactAssessmentOrder - filter: DataProtectionImpactAssessmentFilter = { snapshotId: null } - ): DataProtectionImpactAssessmentConnection! @goField(forceResolver: true) - - transferImpactAssessments( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: TransferImpactAssessmentOrder - filter: TransferImpactAssessmentFilter = { snapshotId: null } - ): TransferImpactAssessmentConnection! @goField(forceResolver: true) - - snapshots( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: SnapshotOrder - ): SnapshotConnection! @goField(forceResolver: true) - - trustCenterFiles( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: TrustCenterFileOrder - ): TrustCenterFileConnection! @goField(forceResolver: true) - - trustCenter: TrustCenter @goField(forceResolver: true) - - customDomain: CustomDomain @goField(forceResolver: true) - - webhookSubscriptions( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: WebhookSubscriptionOrder - ): WebhookSubscriptionConnection! @goField(forceResolver: true) - - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type SlackConnection { - id: ID! - channel: String - channelId: String - createdAt: Datetime! - updatedAt: Datetime! -} - -type SlackConnectionConnection { - edges: [SlackConnectionEdge!]! - pageInfo: PageInfo! -} - -type SlackConnectionEdge { - cursor: CursorKey! - node: SlackConnection! -} - -type Profile implements Node { - id: ID! - fullName: String! - emailAddress: EmailAddr! - state: ProfileState! - additionalEmailAddresses: [EmailAddr!]! - kind: String - position: String - contractStartDate: Datetime - contractEndDate: Datetime - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -enum ProfileState - @goModel(model: "go.probo.inc/probo/pkg/coredata.ProfileState") { - ACTIVE @goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileStateActive") - INACTIVE - @goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileStateInactive") -} - -type Vendor implements Node { - id: ID! - snapshotId: ID - name: String! - category: VendorCategory! - description: String - - organization: Organization! @goField(forceResolver: true) - - complianceReports( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: VendorComplianceReportOrder - ): VendorComplianceReportConnection! @goField(forceResolver: true) - - businessAssociateAgreement: VendorBusinessAssociateAgreement - @goField(forceResolver: true) - dataPrivacyAgreement: VendorDataPrivacyAgreement - @goField(forceResolver: true) - - contacts( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: VendorContactOrder - ): VendorContactConnection! @goField(forceResolver: true) - - services( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: VendorServiceOrder - ): VendorServiceConnection! @goField(forceResolver: true) - - riskAssessments( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: VendorRiskAssessmentOrder - ): VendorRiskAssessmentConnection! @goField(forceResolver: true) - - businessOwner: Profile @goField(forceResolver: true) - securityOwner: Profile @goField(forceResolver: true) - - statusPageUrl: String - termsOfServiceUrl: String - privacyPolicyUrl: String - serviceLevelAgreementUrl: String - dataProcessingAgreementUrl: String - businessAssociateAgreementUrl: String - subprocessorsListUrl: String - certifications: [String!]! - countries: [CountryCode!]! - securityPageUrl: String - trustPageUrl: String - headquarterAddress: String - legalName: String - websiteUrl: String - showOnTrustCenter: Boolean! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type VendorComplianceReport implements Node { - id: ID! - vendor: Vendor! @goField(forceResolver: true) - reportDate: Datetime! - validUntil: Datetime - reportName: String! - file: File @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type VendorBusinessAssociateAgreement implements Node { - id: ID! - vendor: Vendor! @goField(forceResolver: true) - validFrom: Datetime - validUntil: Datetime - fileName: String! - fileUrl: String! @goField(forceResolver: true) - fileSize: BigInt! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type VendorContact implements Node { - id: ID! - vendor: Vendor! @goField(forceResolver: true) - fullName: String - email: EmailAddr - phone: String - role: String - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type VendorService implements Node { - id: ID! - vendor: Vendor! @goField(forceResolver: true) - name: String! - description: String - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type VendorDataPrivacyAgreement implements Node { - id: ID! - vendor: Vendor! @goField(forceResolver: true) - validFrom: Datetime - validUntil: Datetime - fileName: String! - fileUrl: String! @goField(forceResolver: true) - fileSize: BigInt! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Framework implements Node { - id: ID! - name: String! - description: String - - organization: Organization! @goField(forceResolver: true) - - controls( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ControlOrder - filter: ControlFilter - ): ControlConnection! @goField(forceResolver: true) - lightLogoURL: String @goField(forceResolver: true) - darkLogoURL: String @goField(forceResolver: true) - - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Control implements Node { - id: ID! - organization: Organization @goField(forceResolver: true) - sectionTitle: String! - name: String! - description: String - bestPractice: Boolean! - regulatory: Boolean! @goField(forceResolver: true) - contractual: Boolean! @goField(forceResolver: true) - riskAssessment: Boolean! @goField(forceResolver: true) - - framework: Framework! @goField(forceResolver: true) - - measures( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: MeasureOrder - filter: MeasureFilter - ): MeasureConnection! @goField(forceResolver: true) - - documents( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: DocumentOrder - filter: DocumentFilter - ): DocumentConnection! @goField(forceResolver: true) - - audits( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: AuditOrder - ): AuditConnection! @goField(forceResolver: true) - - obligations( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ObligationOrder - filter: ObligationFilter - ): ObligationConnection! @goField(forceResolver: true) - - snapshots( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: SnapshotOrder - ): SnapshotConnection! @goField(forceResolver: true) - - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Measure implements Node { - id: ID! - category: String! - name: String! - description: String - state: MeasureState! - - evidences( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: EvidenceOrder - ): EvidenceConnection! @goField(forceResolver: true) - - tasks( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: TaskOrder - ): TaskConnection! @goField(forceResolver: true) - - risks( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: RiskOrder - filter: RiskFilter - ): RiskConnection! @goField(forceResolver: true) - - controls( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ControlOrder - filter: ControlFilter - ): ControlConnection! @goField(forceResolver: true) - - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Task implements Node { - id: ID! - name: String! - description: String - state: TaskState! - timeEstimate: Duration - deadline: Datetime - assignedTo: Profile @goField(forceResolver: true) - - organization: Organization! @goField(forceResolver: true) - measure: Measure @goField(forceResolver: true) - - evidences( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: EvidenceOrder - ): EvidenceConnection! @goField(forceResolver: true) - - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Evidence implements Node { - id: ID! - size: Int! - state: EvidenceState! - type: EvidenceType! - file: File @goField(forceResolver: true) - url: String - description: String - - task: Task @goField(forceResolver: true) - measure: Measure! @goField(forceResolver: true) - - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Document implements Node { - id: ID! - title: String! - description: String - documentType: DocumentType! - classification: DocumentClassification! - currentPublishedVersion: Int - trustCenterVisibility: TrustCenterVisibility! - approvers( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ProfileOrder - ): ProfileConnection! @goField(forceResolver: true) - organization: Organization! @goField(forceResolver: true) - - versions( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: DocumentVersionOrder - filter: DocumentVersionFilter - ): DocumentVersionConnection! @goField(forceResolver: true) - - controls( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ControlOrder - filter: ControlFilter - ): ControlConnection! @goField(forceResolver: true) - - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type SignableDocument - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.SignableDocument" - ) { - id: ID! - title: String! - description: String - documentType: DocumentType! - classification: DocumentClassification! - signed: Boolean! @goField(forceResolver: true) - - versions( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: DocumentVersionOrder - filter: DocumentVersionFilter - ): DocumentVersionConnection! @goField(forceResolver: true) - - createdAt: Datetime! - updatedAt: Datetime! -} - -type Meeting implements Node { - id: ID! - name: String! - date: Datetime! - minutes: String - attendees: [Profile!]! @goField(forceResolver: true) - organization: Organization! @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -enum WebhookEventType - @goModel(model: "go.probo.inc/probo/pkg/coredata.WebhookEventType") { - MEETING_CREATED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeMeetingCreated") - MEETING_UPDATED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeMeetingUpdated") - MEETING_DELETED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeMeetingDeleted") - VENDOR_CREATED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeVendorCreated") - VENDOR_UPDATED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeVendorUpdated") - VENDOR_DELETED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeVendorDeleted") - USER_CREATED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeUserCreated") - USER_UPDATED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeUserUpdated") - USER_DELETED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeUserDeleted") - OBLIGATION_CREATED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeObligationCreated") - OBLIGATION_UPDATED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeObligationUpdated") - OBLIGATION_DELETED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventTypeObligationDeleted") -} - -type WebhookSubscription implements Node { - id: ID! - organization: Organization @goField(forceResolver: true) - endpointUrl: String! - signingSecret: String! @goField(forceResolver: true) - selectedEvents: [WebhookEventType!]! - createdAt: Datetime! - updatedAt: Datetime! - - events( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: WebhookEventOrder - ): WebhookEventConnection! @goField(forceResolver: true) - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type WebhookSubscriptionConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.WebhookSubscriptionConnection" - ) { - edges: [WebhookSubscriptionEdge!]! - pageInfo: PageInfo! - totalCount: Int! @goField(forceResolver: true) -} - -type WebhookSubscriptionEdge { - cursor: CursorKey! - node: WebhookSubscription! -} - -enum WebhookEventStatus - @goModel(model: "go.probo.inc/probo/pkg/coredata.WebhookEventStatus") { - PENDING - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventStatusPending") - SUCCEEDED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventStatusSucceeded") - FAILED - @goEnum(value: "go.probo.inc/probo/pkg/coredata.WebhookEventStatusFailed") -} - -enum WebhookEventOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.WebhookEventOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.WebhookEventOrderFieldCreatedAt" - ) -} - -input WebhookEventOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.WebhookEventOrderBy" - ) { - field: WebhookEventOrderField! - direction: OrderDirection! -} - -type WebhookEvent implements Node { - id: ID! - webhookSubscriptionId: ID! - status: WebhookEventStatus! - response: String - createdAt: Datetime! -} - -type WebhookEventConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.WebhookEventConnection" - ) { - edges: [WebhookEventEdge!]! - pageInfo: PageInfo! - totalCount: Int! @goField(forceResolver: true) -} - -type WebhookEventEdge { - cursor: CursorKey! - node: WebhookEvent! -} - -type StateOfApplicability implements Node { - id: ID! - name: String! - sourceId: ID - snapshotId: ID - organization: Organization @goField(forceResolver: true) - owner: Profile! @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! - - applicabilityStatements( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ApplicabilityStatementOrder - ): ApplicabilityStatementConnection! @goField(forceResolver: true) - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type ApplicabilityStatementConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ApplicabilityStatementConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [ApplicabilityStatementEdge!]! - pageInfo: PageInfo! -} - -type ApplicabilityStatementEdge { - cursor: CursorKey! - node: ApplicabilityStatement! -} - -type ApplicabilityStatement implements Node { - id: ID! - stateOfApplicability: StateOfApplicability! @goField(forceResolver: true) - control: Control! @goField(forceResolver: true) - applicability: Boolean! - justification: String! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Risk implements Node { - id: ID! - snapshotId: ID - name: String! - description: String - category: String! - treatment: RiskTreatment! - inherentLikelihood: Int! - inherentImpact: Int! - inherentRiskScore: Int! - residualLikelihood: Int! - residualImpact: Int! - residualRiskScore: Int! - note: String! - - owner: Profile @goField(forceResolver: true) - organization: Organization! @goField(forceResolver: true) - - measures( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: MeasureOrder - filter: MeasureFilter - ): MeasureConnection! @goField(forceResolver: true) - - documents( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: DocumentOrder - filter: DocumentFilter - ): DocumentConnection! @goField(forceResolver: true) - - controls( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ControlOrder - filter: ControlFilter - ): ControlConnection! @goField(forceResolver: true) - - obligations( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ObligationOrder - filter: ObligationFilter - ): ObligationConnection! @goField(forceResolver: true) - - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Audit implements Node { - id: ID! - name: String - organization: Organization! @goField(forceResolver: true) - framework: Framework! @goField(forceResolver: true) - validFrom: Datetime - validUntil: Datetime - report: Report @goField(forceResolver: true) - reportUrl: String @goField(forceResolver: true) - state: AuditState! - - controls( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ControlOrder - filter: ControlFilter - ): ControlConnection! @goField(forceResolver: true) - - trustCenterVisibility: TrustCenterVisibility! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Nonconformity implements Node { - id: ID! - snapshotId: ID - organization: Organization! @goField(forceResolver: true) - referenceId: String! - description: String - audit: Audit @goField(forceResolver: true) - dateIdentified: Datetime - rootCause: String! - correctiveAction: String - owner: Profile! @goField(forceResolver: true) - dueDate: Datetime - status: NonconformityStatus! - effectivenessCheck: String - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Obligation implements Node { - id: ID! - snapshotId: ID - sourceId: ID - organization: Organization! @goField(forceResolver: true) - area: String - source: String - requirement: String - actionsToBeImplemented: String - regulator: String - owner: Profile! @goField(forceResolver: true) - lastReviewDate: Datetime - dueDate: Datetime - status: ObligationStatus! - type: ObligationType! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type ContinualImprovement implements Node { - id: ID! - snapshotId: ID - sourceId: ID - organization: Organization! @goField(forceResolver: true) - referenceId: String! - description: String - source: String - owner: Profile! @goField(forceResolver: true) - targetDate: Datetime - status: ContinualImprovementStatus! - priority: ContinualImprovementPriority! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type RightsRequest implements Node { - id: ID! - organization: Organization! @goField(forceResolver: true) - requestType: RightsRequestType! - requestState: RightsRequestState! - dataSubject: String - contact: String - details: String - deadline: Datetime - actionTaken: String - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type ProcessingActivity implements Node { - id: ID! - snapshotId: ID - sourceId: ID - organization: Organization! @goField(forceResolver: true) - name: String! - purpose: String - dataSubjectCategory: String - personalDataCategory: String - specialOrCriminalData: ProcessingActivitySpecialOrCriminalDatum! - consentEvidenceLink: String - lawfulBasis: ProcessingActivityLawfulBasis! - recipients: String - location: String - internationalTransfers: Boolean! - transferSafeguards: ProcessingActivityTransferSafeguard - retentionPeriod: String - securityMeasures: String - dataProtectionImpactAssessmentNeeded: ProcessingActivityDataProtectionImpactAssessment! - transferImpactAssessmentNeeded: ProcessingActivityTransferImpactAssessment! - lastReviewDate: Datetime - nextReviewDate: Datetime - role: ProcessingActivityRole! - dataProtectionOfficer: Profile @goField(forceResolver: true) - vendors( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: VendorOrder - ): VendorConnection! @goField(forceResolver: true) - dataProtectionImpactAssessment: DataProtectionImpactAssessment - @goField(forceResolver: true) - transferImpactAssessment: TransferImpactAssessment - @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type DataProtectionImpactAssessment implements Node { - id: ID! - processingActivity: ProcessingActivity! @goField(forceResolver: true) - organization: Organization! @goField(forceResolver: true) - description: String - necessityAndProportionality: String - potentialRisk: String - mitigations: String - residualRisk: DataProtectionImpactAssessmentResidualRisk - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type TransferImpactAssessment implements Node { - id: ID! - processingActivity: ProcessingActivity! @goField(forceResolver: true) - organization: Organization! @goField(forceResolver: true) - dataSubjects: String - legalMechanism: String - transfer: String - localLawRisk: String - supplementaryMeasures: String - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Snapshot implements Node { - id: ID! - organization: Organization! @goField(forceResolver: true) - name: String! - description: String - type: SnapshotsType! - - controls( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ControlOrder - filter: ControlFilter - ): ControlConnection! @goField(forceResolver: true) - - createdAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Report implements Node { - id: ID! - objectKey: String! - mimeType: String! - filename: String! - size: Int! - downloadUrl: String @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! - audit: Audit @goField(forceResolver: true) - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type Viewer { - id: ID! - - signableDocuments( - organizationId: ID! - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: DocumentOrder - ): SignableDocumentConnection! @goField(forceResolver: true) - - signableDocument(id: ID!): SignableDocument @goField(forceResolver: true) -} - -type TrustCenterConnection { - edges: [TrustCenterEdge!]! - pageInfo: PageInfo! -} - -type TrustCenterEdge { - cursor: CursorKey! - node: TrustCenter! -} - -type TrustCenterAccess implements Node { - id: ID! - ndaSignature: ElectronicSignature @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! - pendingRequestCount: Int! @goField(forceResolver: true) - activeCount: Int! @goField(forceResolver: true) - organizationId: ID! - identityID: ID! - - profile: Profile! @goField(forceResolver: true) - - availableDocumentAccesses( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: TrustCenterDocumentAccessOrder - ): TrustCenterDocumentAccessConnection! @goField(forceResolver: true) - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type TrustCenterDocumentAccess - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TrustCenterDocumentAccess" - ) { - id: ID! - status: TrustCenterDocumentAccessStatus! - document: Document @goField(forceResolver: true) - report: Report @goField(forceResolver: true) - trustCenterFile: TrustCenterFile @goField(forceResolver: true) -} - -type TrustCenterDocumentAccessConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TrustCenterDocumentAccessConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [TrustCenterDocumentAccessEdge!]! - pageInfo: PageInfo! -} - -type TrustCenterDocumentAccessEdge { - cursor: CursorKey! - node: TrustCenterDocumentAccess! -} - -type TrustCenterAccessConnection { - edges: [TrustCenterAccessEdge!]! - pageInfo: PageInfo! -} - -type TrustCenterAccessEdge { - cursor: CursorKey! - node: TrustCenterAccess! -} - -type TrustCenterReference implements Node { - id: ID! - name: String! - description: String - websiteUrl: String! - logoUrl: String! @goField(forceResolver: true) - rank: Int! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type TrustCenterReferenceConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TrustCenterReferenceConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [TrustCenterReferenceEdge!]! - pageInfo: PageInfo! -} - -type TrustCenterReferenceEdge { - cursor: CursorKey! - node: TrustCenterReference! -} - -type ComplianceFramework implements Node - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ComplianceFramework" - ) { - id: ID! - framework: Framework! @goField(forceResolver: true) - rank: Int! - visibility: ComplianceFrameworkVisibility! - createdAt: Datetime! - updatedAt: Datetime! -} - -type ComplianceFrameworkConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ComplianceFrameworkConnection" - ) { - edges: [ComplianceFrameworkEdge!]! - pageInfo: PageInfo! -} - -type ComplianceFrameworkEdge { - cursor: CursorKey! - node: ComplianceFramework! -} - -type ComplianceExternalURL implements Node { - id: ID! - name: String! - url: String! - rank: Int! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type ComplianceExternalURLConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ComplianceExternalURLConnection" - ) { - edges: [ComplianceExternalURLEdge!]! - pageInfo: PageInfo! -} - -type ComplianceExternalURLEdge { - cursor: CursorKey! - node: ComplianceExternalURL! -} - -type TrustCenterFile implements Node { - id: ID! - name: String! - category: String! - fileUrl: String! @goField(forceResolver: true) - trustCenterVisibility: TrustCenterVisibility! - createdAt: Datetime! - updatedAt: Datetime! - organization: Organization! @goField(forceResolver: true) - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type TrustCenterFileConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TrustCenterFileConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [TrustCenterFileEdge!]! - pageInfo: PageInfo! -} - -type TrustCenterFileEdge { - cursor: CursorKey! - node: TrustCenterFile! -} - -type ProfileConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ProfileConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [ProfileEdge!]! - pageInfo: PageInfo! -} - -type ProfileEdge { - cursor: CursorKey! - node: Profile! -} - -type VendorConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.VendorConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [VendorEdge!]! - pageInfo: PageInfo! -} - -type VendorEdge { - cursor: CursorKey! - node: Vendor! -} - -type FrameworkConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.FrameworkConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [FrameworkEdge!]! - pageInfo: PageInfo! -} - -type FrameworkEdge { - cursor: CursorKey! - node: Framework! -} - -type ControlConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ControlConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [ControlEdge!]! - pageInfo: PageInfo! -} - -type ControlEdge { - cursor: CursorKey! - node: Control! -} - -type MeasureConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.MeasureConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [MeasureEdge!]! - pageInfo: PageInfo! -} - -type MeasureEdge { - cursor: CursorKey! - node: Measure! -} - -type TaskConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TaskConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [TaskEdge!]! - pageInfo: PageInfo! -} - -type TaskEdge { - cursor: CursorKey! - node: Task! -} - -type EvidenceConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.EvidenceConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [EvidenceEdge!]! - pageInfo: PageInfo! -} - -type EvidenceEdge { - cursor: CursorKey! - node: Evidence! -} - -type SignableDocumentConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.SignableDocumentConnection" - ) { - edges: [SignableDocumentEdge!]! - pageInfo: PageInfo! -} - -type SignableDocumentEdge - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.SignableDocumentEdge" - ) { - cursor: CursorKey! - node: SignableDocument! -} - -type DocumentConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.DocumentConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [DocumentEdge!]! - pageInfo: PageInfo! -} - -type DocumentEdge { - cursor: CursorKey! - node: Document! -} - -type MeetingConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.MeetingConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [MeetingEdge!]! - pageInfo: PageInfo! -} - -type MeetingEdge { - cursor: CursorKey! - node: Meeting! -} - -type StateOfApplicabilityConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.StateOfApplicabilityConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [StateOfApplicabilityEdge!]! - pageInfo: PageInfo! -} - -type StateOfApplicabilityEdge { - cursor: CursorKey! - node: StateOfApplicability! -} - - -type RiskConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.RiskConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [RiskEdge!]! - pageInfo: PageInfo! -} - -type RiskEdge { - cursor: CursorKey! - node: Risk! -} - -type VendorComplianceReportConnection { - edges: [VendorComplianceReportEdge!]! - pageInfo: PageInfo! -} - -type VendorComplianceReportEdge { - cursor: CursorKey! - node: VendorComplianceReport! -} - -type VendorContactConnection { - edges: [VendorContactEdge!]! - pageInfo: PageInfo! -} - -type VendorContactEdge { - cursor: CursorKey! - node: VendorContact! -} - -type VendorServiceConnection { - edges: [VendorServiceEdge!]! - pageInfo: PageInfo! -} - -type VendorServiceEdge { - cursor: CursorKey! - node: VendorService! -} - -type VendorRiskAssessmentConnection { - edges: [VendorRiskAssessmentEdge!]! - pageInfo: PageInfo! -} - -type VendorRiskAssessmentEdge { - cursor: CursorKey! - node: VendorRiskAssessment! -} - -type DocumentVersionConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.DocumentVersionConnection" - ) { - edges: [DocumentVersionEdge!]! - pageInfo: PageInfo! - totalCount: Int! @goField(forceResolver: true) -} - -type DocumentVersionEdge { - cursor: CursorKey! - node: DocumentVersion! -} - -type DatumConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.DatumConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [DatumEdge!]! - pageInfo: PageInfo! -} - -type DatumEdge { - cursor: CursorKey! - node: Datum! -} - -type AuditConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.AuditConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [AuditEdge!]! - pageInfo: PageInfo! -} - -type AuditEdge { - cursor: CursorKey! - node: Audit! -} - -type NonconformityConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.NonconformityConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [NonconformityEdge!]! - pageInfo: PageInfo! -} - -type NonconformityEdge { - cursor: CursorKey! - node: Nonconformity! -} -type ObligationConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ObligationConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [ObligationEdge!]! - pageInfo: PageInfo! -} - -type ObligationEdge { - cursor: CursorKey! - node: Obligation! -} - -type ContinualImprovementConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ContinualImprovementConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [ContinualImprovementEdge!]! - pageInfo: PageInfo! -} - -type ContinualImprovementEdge { - cursor: CursorKey! - node: ContinualImprovement! -} - -type RightsRequestConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.RightsRequestConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [RightsRequestEdge!]! - pageInfo: PageInfo! -} - -type RightsRequestEdge { - cursor: CursorKey! - node: RightsRequest! -} - -type ProcessingActivityConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.ProcessingActivityConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [ProcessingActivityEdge!]! - pageInfo: PageInfo! -} - -type ProcessingActivityEdge { - cursor: CursorKey! - node: ProcessingActivity! -} - -type DataProtectionImpactAssessmentConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.DataProtectionImpactAssessmentConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [DataProtectionImpactAssessmentEdge!]! - pageInfo: PageInfo! -} - -type DataProtectionImpactAssessmentEdge { - cursor: CursorKey! - node: DataProtectionImpactAssessment! -} - -type TransferImpactAssessmentConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.TransferImpactAssessmentConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [TransferImpactAssessmentEdge!]! - pageInfo: PageInfo! -} - -type TransferImpactAssessmentEdge { - cursor: CursorKey! - node: TransferImpactAssessment! -} - -type SnapshotConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.SnapshotConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [SnapshotEdge!]! - pageInfo: PageInfo! -} - -type SnapshotEdge { - cursor: CursorKey! - node: Snapshot! -} - -type File { - id: ID! - mimeType: String! - fileName: String! - size: BigInt! - downloadUrl: String! @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! -} - -# Root Types -type Query { - node(id: ID!): Node! - viewer: Viewer! -} - -type Mutation { - updateOrganizationContext( - input: UpdateOrganizationContextInput! - ): UpdateOrganizationContextPayload! - updateTrustCenter(input: UpdateTrustCenterInput!): UpdateTrustCenterPayload! - uploadTrustCenterNDA( - input: UploadTrustCenterNDAInput! - ): UploadTrustCenterNDAPayload! - deleteTrustCenterNDA( - input: DeleteTrustCenterNDAInput! - ): DeleteTrustCenterNDAPayload! - updateTrustCenterBrand( - input: UpdateTrustCenterBrandInput! - ): UpdateTrustCenterBrandPayload! - # Trust Center Access CRUD mutations - updateTrustCenterAccess( - input: UpdateTrustCenterAccessInput! - ): UpdateTrustCenterAccessPayload! - deleteTrustCenterAccess( - input: DeleteTrustCenterAccessInput! - ): DeleteTrustCenterAccessPayload! - # Compliance News mutations - createMailingListUpdate( - input: CreateMailingListUpdateInput! - ): CreateMailingListUpdatePayload! - updateMailingListUpdate( - input: UpdateMailingListUpdateInput! - ): UpdateMailingListUpdatePayload! - sendMailingListUpdate( - input: SendMailingListUpdateInput! - ): SendMailingListUpdatePayload! - deleteMailingListUpdate( - input: DeleteMailingListUpdateInput! - ): DeleteMailingListUpdatePayload! - # Mailing List mutations - updateMailingList( - input: UpdateMailingListInput! - ): UpdateMailingListPayload! - # Mailing List Subscriber mutations - createMailingListSubscriber( - input: CreateMailingListSubscriberInput! - ): CreateMailingListSubscriberPayload! - deleteMailingListSubscriber( - input: DeleteMailingListSubscriberInput! - ): DeleteMailingListSubscriberPayload! - # Trust Center Reference mutations - createTrustCenterReference( - input: CreateTrustCenterReferenceInput! - ): CreateTrustCenterReferencePayload! - updateTrustCenterReference( - input: UpdateTrustCenterReferenceInput! - ): UpdateTrustCenterReferencePayload! - deleteTrustCenterReference( - input: DeleteTrustCenterReferenceInput! - ): DeleteTrustCenterReferencePayload! - # Compliance Framework mutations - createComplianceFramework( - input: CreateComplianceFrameworkInput! - ): CreateComplianceFrameworkPayload! - updateComplianceFramework( - input: UpdateComplianceFrameworkInput! - ): UpdateComplianceFrameworkPayload! - deleteComplianceFramework( - input: DeleteComplianceFrameworkInput! - ): DeleteComplianceFrameworkPayload! - createComplianceExternalURL( - input: CreateComplianceExternalURLInput! - ): CreateComplianceExternalURLPayload! - updateComplianceExternalURL( - input: UpdateComplianceExternalURLInput! - ): UpdateComplianceExternalURLPayload! - deleteComplianceExternalURL( - input: DeleteComplianceExternalURLInput! - ): DeleteComplianceExternalURLPayload! - # Trust Center File mutations - createTrustCenterFile( - input: CreateTrustCenterFileInput! - ): CreateTrustCenterFilePayload! - updateTrustCenterFile( - input: UpdateTrustCenterFileInput! - ): UpdateTrustCenterFilePayload! - getTrustCenterFile( - input: GetTrustCenterFileInput! - ): GetTrustCenterFilePayload! - deleteTrustCenterFile( - input: DeleteTrustCenterFileInput! - ): DeleteTrustCenterFilePayload! - - # Vendor mutations - createVendor(input: CreateVendorInput!): CreateVendorPayload! - updateVendor(input: UpdateVendorInput!): UpdateVendorPayload! - deleteVendor(input: DeleteVendorInput!): DeleteVendorPayload! - # Vendor Contact mutations - createVendorContact( - input: CreateVendorContactInput! - ): CreateVendorContactPayload! - updateVendorContact( - input: UpdateVendorContactInput! - ): UpdateVendorContactPayload! - deleteVendorContact( - input: DeleteVendorContactInput! - ): DeleteVendorContactPayload! - # Vendor Service mutations - createVendorService( - input: CreateVendorServiceInput! - ): CreateVendorServicePayload! - updateVendorService( - input: UpdateVendorServiceInput! - ): UpdateVendorServicePayload! - deleteVendorService( - input: DeleteVendorServiceInput! - ): DeleteVendorServicePayload! - # Framework mutations - createFramework(input: CreateFrameworkInput!): CreateFrameworkPayload! - updateFramework(input: UpdateFrameworkInput!): UpdateFrameworkPayload! - importFramework(input: ImportFrameworkInput!): ImportFrameworkPayload! - deleteFramework(input: DeleteFrameworkInput!): DeleteFrameworkPayload! - exportFramework(input: ExportFrameworkInput!): ExportFrameworkPayload! - # Control mutations - createControl(input: CreateControlInput!): CreateControlPayload! - updateControl(input: UpdateControlInput!): UpdateControlPayload! - deleteControl(input: DeleteControlInput!): DeleteControlPayload! - # Measure mutations - createMeasure(input: CreateMeasureInput!): CreateMeasurePayload! - updateMeasure(input: UpdateMeasureInput!): UpdateMeasurePayload! - importMeasure(input: ImportMeasureInput!): ImportMeasurePayload! - deleteMeasure(input: DeleteMeasureInput!): DeleteMeasurePayload! - # Control mutations - createControlMeasureMapping( - input: CreateControlMeasureMappingInput! - ): CreateControlMeasureMappingPayload! - createControlDocumentMapping( - input: CreateControlDocumentMappingInput! - ): CreateControlDocumentMappingPayload! - deleteControlMeasureMapping( - input: DeleteControlMeasureMappingInput! - ): DeleteControlMeasureMappingPayload! - deleteControlDocumentMapping( - input: DeleteControlDocumentMappingInput! - ): DeleteControlDocumentMappingPayload! - createApplicabilityStatement( - input: CreateApplicabilityStatementInput! - ): CreateApplicabilityStatementPayload! - updateApplicabilityStatement( - input: UpdateApplicabilityStatementInput! - ): UpdateApplicabilityStatementPayload! - deleteApplicabilityStatement( - input: DeleteApplicabilityStatementInput! - ): DeleteApplicabilityStatementPayload! - createControlAuditMapping( - input: CreateControlAuditMappingInput! - ): CreateControlAuditMappingPayload! - deleteControlAuditMapping( - input: DeleteControlAuditMappingInput! - ): DeleteControlAuditMappingPayload! - createControlObligationMapping( - input: CreateControlObligationMappingInput! - ): CreateControlObligationMappingPayload! - deleteControlObligationMapping( - input: DeleteControlObligationMappingInput! - ): DeleteControlObligationMappingPayload! - createControlSnapshotMapping( - input: CreateControlSnapshotMappingInput! - ): CreateControlSnapshotMappingPayload! - deleteControlSnapshotMapping( - input: DeleteControlSnapshotMappingInput! - ): DeleteControlSnapshotMappingPayload! - # Task mutations - createTask(input: CreateTaskInput!): CreateTaskPayload! - updateTask(input: UpdateTaskInput!): UpdateTaskPayload! - deleteTask(input: DeleteTaskInput!): DeleteTaskPayload! - # Risk mutations - createRisk(input: CreateRiskInput!): CreateRiskPayload! - updateRisk(input: UpdateRiskInput!): UpdateRiskPayload! - deleteRisk(input: DeleteRiskInput!): DeleteRiskPayload! - createRiskMeasureMapping( - input: CreateRiskMeasureMappingInput! - ): CreateRiskMeasureMappingPayload! - deleteRiskMeasureMapping( - input: DeleteRiskMeasureMappingInput! - ): DeleteRiskMeasureMappingPayload! - createRiskDocumentMapping( - input: CreateRiskDocumentMappingInput! - ): CreateRiskDocumentMappingPayload! - deleteRiskDocumentMapping( - input: DeleteRiskDocumentMappingInput! - ): DeleteRiskDocumentMappingPayload! - createRiskObligationMapping( - input: CreateRiskObligationMappingInput! - ): CreateRiskObligationMappingPayload! - deleteRiskObligationMapping( - input: DeleteRiskObligationMappingInput! - ): DeleteRiskObligationMappingPayload! - # Evidence mutations - deleteEvidence(input: DeleteEvidenceInput!): DeleteEvidencePayload! - uploadMeasureEvidence( - input: UploadMeasureEvidenceInput! - ): UploadMeasureEvidencePayload! - # Vendor Compliance Report mutations - uploadVendorComplianceReport( - input: UploadVendorComplianceReportInput! - ): UploadVendorComplianceReportPayload! - deleteVendorComplianceReport( - input: DeleteVendorComplianceReportInput! - ): DeleteVendorComplianceReportPayload! - # Vendor Business Associate Agreement mutations - uploadVendorBusinessAssociateAgreement( - input: UploadVendorBusinessAssociateAgreementInput! - ): UploadVendorBusinessAssociateAgreementPayload! - updateVendorBusinessAssociateAgreement( - input: UpdateVendorBusinessAssociateAgreementInput! - ): UpdateVendorBusinessAssociateAgreementPayload! - deleteVendorBusinessAssociateAgreement( - input: DeleteVendorBusinessAssociateAgreementInput! - ): DeleteVendorBusinessAssociateAgreementPayload! - # Vendor Data Privacy Agreement mutations - uploadVendorDataPrivacyAgreement( - input: UploadVendorDataPrivacyAgreementInput! - ): UploadVendorDataPrivacyAgreementPayload! - updateVendorDataPrivacyAgreement( - input: UpdateVendorDataPrivacyAgreementInput! - ): UpdateVendorDataPrivacyAgreementPayload! - deleteVendorDataPrivacyAgreement( - input: DeleteVendorDataPrivacyAgreementInput! - ): DeleteVendorDataPrivacyAgreementPayload! - # Document mutations - createDocument(input: CreateDocumentInput!): CreateDocumentPayload! - updateDocument(input: UpdateDocumentInput!): UpdateDocumentPayload! - deleteDocument(input: DeleteDocumentInput!): DeleteDocumentPayload! - # Meeting mutations - createMeeting(input: CreateMeetingInput!): CreateMeetingPayload! - updateMeeting(input: UpdateMeetingInput!): UpdateMeetingPayload! - deleteMeeting(input: DeleteMeetingInput!): DeleteMeetingPayload! - # WebhookSubscription mutations - createWebhookSubscription( - input: CreateWebhookSubscriptionInput! - ): CreateWebhookSubscriptionPayload! - updateWebhookSubscription( - input: UpdateWebhookSubscriptionInput! - ): UpdateWebhookSubscriptionPayload! - deleteWebhookSubscription( - input: DeleteWebhookSubscriptionInput! - ): DeleteWebhookSubscriptionPayload! - # StateOfApplicability mutations - createStateOfApplicability( - input: CreateStateOfApplicabilityInput! - ): CreateStateOfApplicabilityPayload! - updateStateOfApplicability( - input: UpdateStateOfApplicabilityInput! - ): UpdateStateOfApplicabilityPayload! - deleteStateOfApplicability( - input: DeleteStateOfApplicabilityInput! - ): DeleteStateOfApplicabilityPayload! - exportStateOfApplicabilityPDF( - input: ExportStateOfApplicabilityPDFInput! - ): ExportStateOfApplicabilityPDFPayload! - publishDocumentVersion( - input: PublishDocumentVersionInput! - ): PublishDocumentVersionPayload! - bulkPublishDocumentVersions( - input: BulkPublishDocumentVersionsInput! - ): BulkPublishDocumentVersionsPayload! - bulkDeleteDocuments( - input: BulkDeleteDocumentsInput! - ): BulkDeleteDocumentsPayload! - bulkExportDocuments( - input: BulkExportDocumentsInput! - ): BulkExportDocumentsPayload! - generateDocumentChangelog( - input: GenerateDocumentChangelogInput! - ): GenerateDocumentChangelogPayload! - createDraftDocumentVersion( - input: CreateDraftDocumentVersionInput! - ): CreateDraftDocumentVersionPayload! - deleteDraftDocumentVersion( - input: DeleteDraftDocumentVersionInput! - ): DeleteDraftDocumentVersionPayload! - updateDocumentVersion( - input: UpdateDocumentVersionInput! - ): UpdateDocumentVersionPayload! - requestSignature(input: RequestSignatureInput!): RequestSignaturePayload! - bulkRequestSignatures( - input: BulkRequestSignaturesInput! - ): BulkRequestSignaturesPayload! - sendSigningNotifications( - input: SendSigningNotificationsInput! - ): SendSigningNotificationsPayload! - cancelSignatureRequest( - input: CancelSignatureRequestInput! - ): CancelSignatureRequestPayload! - signDocument(input: SignDocumentInput!): SignDocumentPayload! - - exportDocumentVersionPDF( - input: ExportDocumentVersionPDFInput! - ): ExportDocumentVersionPDFPayload! - exportSignableVersionDocumentPDF( - input: ExportSignableDocumentVersionPDFInput! - ): ExportSignableDocumentVersionPDFPayload! - exportProcessingActivitiesPDF( - input: ExportProcessingActivitiesPDFInput! - ): ExportProcessingActivitiesPDFPayload! - exportDataProtectionImpactAssessmentsPDF( - input: ExportDataProtectionImpactAssessmentsPDFInput! - ): ExportDataProtectionImpactAssessmentsPDFPayload! - exportTransferImpactAssessmentsPDF( - input: ExportTransferImpactAssessmentsPDFInput! - ): ExportTransferImpactAssessmentsPDFPayload! - createVendorRiskAssessment( - input: CreateVendorRiskAssessmentInput! - ): CreateVendorRiskAssessmentPayload! - assessVendor(input: AssessVendorInput!): AssessVendorPayload! - createAsset(input: CreateAssetInput!): CreateAssetPayload! - updateAsset(input: UpdateAssetInput!): UpdateAssetPayload! - deleteAsset(input: DeleteAssetInput!): DeleteAssetPayload! - createDatum(input: CreateDatumInput!): CreateDatumPayload! - updateDatum(input: UpdateDatumInput!): UpdateDatumPayload! - deleteDatum(input: DeleteDatumInput!): DeleteDatumPayload! - createAudit(input: CreateAuditInput!): CreateAuditPayload! - updateAudit(input: UpdateAuditInput!): UpdateAuditPayload! - deleteAudit(input: DeleteAuditInput!): DeleteAuditPayload! - uploadAuditReport(input: UploadAuditReportInput!): UploadAuditReportPayload! - deleteAuditReport(input: DeleteAuditReportInput!): DeleteAuditReportPayload! - # Nonconformity mutations - createNonconformity( - input: CreateNonconformityInput! - ): CreateNonconformityPayload! - updateNonconformity( - input: UpdateNonconformityInput! - ): UpdateNonconformityPayload! - deleteNonconformity( - input: DeleteNonconformityInput! - ): DeleteNonconformityPayload! - # Obligation mutations - createObligation(input: CreateObligationInput!): CreateObligationPayload! - updateObligation(input: UpdateObligationInput!): UpdateObligationPayload! - deleteObligation(input: DeleteObligationInput!): DeleteObligationPayload! - # Continual Improvement mutations - createContinualImprovement( - input: CreateContinualImprovementInput! - ): CreateContinualImprovementPayload! - updateContinualImprovement( - input: UpdateContinualImprovementInput! - ): UpdateContinualImprovementPayload! - deleteContinualImprovement( - input: DeleteContinualImprovementInput! - ): DeleteContinualImprovementPayload! - - # Rights Request mutations - createRightsRequest( - input: CreateRightsRequestInput! - ): CreateRightsRequestPayload! - - updateRightsRequest( - input: UpdateRightsRequestInput! - ): UpdateRightsRequestPayload! - - deleteRightsRequest( - input: DeleteRightsRequestInput! - ): DeleteRightsRequestPayload! - - # Processing Activity mutations - createProcessingActivity( - input: CreateProcessingActivityInput! - ): CreateProcessingActivityPayload! - updateProcessingActivity( - input: UpdateProcessingActivityInput! - ): UpdateProcessingActivityPayload! - deleteProcessingActivity( - input: DeleteProcessingActivityInput! - ): DeleteProcessingActivityPayload! - # Data Protection Impact Assessment mutations - createDataProtectionImpactAssessment( - input: CreateDataProtectionImpactAssessmentInput! - ): CreateDataProtectionImpactAssessmentPayload! - updateDataProtectionImpactAssessment( - input: UpdateDataProtectionImpactAssessmentInput! - ): UpdateDataProtectionImpactAssessmentPayload! - deleteDataProtectionImpactAssessment( - input: DeleteDataProtectionImpactAssessmentInput! - ): DeleteDataProtectionImpactAssessmentPayload! - # Transfer Impact Assessment mutations - createTransferImpactAssessment( - input: CreateTransferImpactAssessmentInput! - ): CreateTransferImpactAssessmentPayload! - updateTransferImpactAssessment( - input: UpdateTransferImpactAssessmentInput! - ): UpdateTransferImpactAssessmentPayload! - deleteTransferImpactAssessment( - input: DeleteTransferImpactAssessmentInput! - ): DeleteTransferImpactAssessmentPayload! - # Snapshot mutations - createSnapshot(input: CreateSnapshotInput!): CreateSnapshotPayload! - deleteSnapshot(input: DeleteSnapshotInput!): DeleteSnapshotPayload! - # Custom Domain mutations - createCustomDomain( - input: CreateCustomDomainInput! - ): CreateCustomDomainPayload! - deleteCustomDomain( - input: DeleteCustomDomainInput! - ): DeleteCustomDomainPayload! -} - -# Input Types -input UpdateOrganizationContextInput { - organizationId: ID! - summary: String @goField(omittable: true) -} - -input UpdateTrustCenterInput { - trustCenterId: ID! - active: Boolean -} - -input UploadTrustCenterNDAInput { - trustCenterId: ID! - fileName: String! - file: Upload! -} - -input DeleteTrustCenterNDAInput { - trustCenterId: ID! -} - -input UpdateTrustCenterBrandInput { - trustCenterId: ID! - logoFile: Upload @goField(omittable: true) - darkLogoFile: Upload @goField(omittable: true) -} - -input TrustCenterDocumentAccessInput { - id: ID! - status: TrustCenterDocumentAccessStatus! -} - -input UpdateTrustCenterAccessInput { - id: ID! - name: String - state: TrustCenterAccessState - documents: [TrustCenterDocumentAccessInput!] - reports: [TrustCenterDocumentAccessInput!] - trustCenterFiles: [TrustCenterDocumentAccessInput!] -} - -input DeleteTrustCenterAccessInput { - id: ID! -} - -input UpdateMailingListInput { - id: ID! - replyTo: EmailAddr -} - -type UpdateMailingListPayload { - mailingList: MailingList! -} - -input CreateMailingListUpdateInput { - mailingListId: ID! - title: String! - body: String! -} - -input UpdateMailingListUpdateInput { - id: ID! - title: String - body: String -} - -input SendMailingListUpdateInput { - id: ID! -} - -input DeleteMailingListUpdateInput { - id: ID! -} - -input CreateMailingListSubscriberInput { - mailingListId: ID! - fullName: String! - email: EmailAddr! -} - -input DeleteMailingListSubscriberInput { - id: ID! -} - -input CreateTrustCenterReferenceInput { - trustCenterId: ID! - name: String! - description: String - websiteUrl: String! - logoFile: Upload! -} - -input UpdateTrustCenterReferenceInput { - id: ID! - name: String - description: String @goField(omittable: true) - websiteUrl: String - logoFile: Upload - rank: Int -} - -input DeleteTrustCenterReferenceInput { - id: ID! -} - -input CreateComplianceFrameworkInput { - trustCenterId: ID! - frameworkId: ID! -} - -input UpdateComplianceFrameworkInput { - id: ID! - rank: Int! -} - -input DeleteComplianceFrameworkInput { - id: ID! -} - -input CreateComplianceExternalURLInput { - trustCenterId: ID! - name: String! - url: String! -} - -input UpdateComplianceExternalURLInput { - id: ID! - name: String! - url: String! - rank: Int -} - -input DeleteComplianceExternalURLInput { - id: ID! -} - -input CreateTrustCenterFileInput { - organizationId: ID! - name: String! - category: String! - file: Upload! - trustCenterVisibility: TrustCenterVisibility! -} - -input UpdateTrustCenterFileInput { - id: ID! - name: String - category: String - trustCenterVisibility: TrustCenterVisibility -} - -input GetTrustCenterFileInput { - id: ID! -} - -input DeleteTrustCenterFileInput { - id: ID! -} - -input CreateVendorInput { - organizationId: ID! - name: String! - description: String - headquarterAddress: String - legalName: String - websiteUrl: String - privacyPolicyUrl: String - category: VendorCategory - serviceLevelAgreementUrl: String - dataProcessingAgreementUrl: String - businessAssociateAgreementUrl: String - subprocessorsListUrl: String - certifications: [String!] - countries: [CountryCode!] - securityPageUrl: String - trustPageUrl: String - statusPageUrl: String - termsOfServiceUrl: String - businessOwnerId: ID - securityOwnerId: ID -} - -input UpdateVendorInput { - id: ID! - name: String - description: String @goField(omittable: true) - statusPageUrl: String @goField(omittable: true) - termsOfServiceUrl: String @goField(omittable: true) - privacyPolicyUrl: String @goField(omittable: true) - serviceLevelAgreementUrl: String @goField(omittable: true) - dataProcessingAgreementUrl: String @goField(omittable: true) - businessAssociateAgreementUrl: String @goField(omittable: true) - subprocessorsListUrl: String @goField(omittable: true) - websiteUrl: String @goField(omittable: true) - legalName: String @goField(omittable: true) - headquarterAddress: String @goField(omittable: true) - category: VendorCategory - certifications: [String!] - countries: [CountryCode!] - securityPageUrl: String @goField(omittable: true) - trustPageUrl: String @goField(omittable: true) - businessOwnerId: ID @goField(omittable: true) - securityOwnerId: ID @goField(omittable: true) - showOnTrustCenter: Boolean -} - -input DeleteVendorInput { - vendorId: ID! -} - -input CreateVendorContactInput { - vendorId: ID! - fullName: String - email: EmailAddr - phone: String - role: String -} - -input UpdateVendorContactInput { - id: ID! - fullName: String @goField(omittable: true) - email: EmailAddr @goField(omittable: true) - phone: String @goField(omittable: true) - role: String @goField(omittable: true) -} - -input DeleteVendorContactInput { - vendorContactId: ID! -} - -input CreateVendorServiceInput { - vendorId: ID! - name: String! - description: String - url: String - type: String -} - -input UpdateVendorServiceInput { - id: ID! - name: String - description: String @goField(omittable: true) - url: String - type: String -} - -input DeleteVendorServiceInput { - vendorServiceId: ID! -} - -input CreateFrameworkInput { - organizationId: ID! - name: String! - description: String -} - -input UpdateFrameworkInput { - id: ID! - name: String - description: String @goField(omittable: true) -} - -input ImportFrameworkInput { - organizationId: ID! - file: Upload! -} - -input DeleteFrameworkInput { - frameworkId: ID! -} - -input ExportFrameworkInput { - frameworkId: ID! -} - -input CreateMeasureInput { - organizationId: ID! - name: String! - description: String - category: String! -} - -input UpdateMeasureInput { - id: ID! - name: String - description: String @goField(omittable: true) - category: String - state: MeasureState -} - -input ImportMeasureInput { - organizationId: ID! - file: Upload! -} - -input CreateTaskInput { - organizationId: ID! - measureId: ID - name: String! - description: String - timeEstimate: Duration - assignedToId: ID - deadline: Datetime -} - -input UpdateTaskInput { - taskId: ID! - name: String - description: String @goField(omittable: true) - state: TaskState - timeEstimate: Duration @goField(omittable: true) - deadline: Datetime @goField(omittable: true) - assignedToId: ID @goField(omittable: true) - measureId: ID @goField(omittable: true) -} - -input DeleteTaskInput { - taskId: ID! -} - -input CreateControlMeasureMappingInput { - controlId: ID! - measureId: ID! -} - -input CreateControlDocumentMappingInput { - controlId: ID! - documentId: ID! -} - -input DeleteControlMeasureMappingInput { - controlId: ID! - measureId: ID! -} - -input DeleteControlDocumentMappingInput { - controlId: ID! - documentId: ID! -} - -input CreateApplicabilityStatementInput { - stateOfApplicabilityId: ID! - controlId: ID! - applicability: Boolean! - justification: String -} - -input UpdateApplicabilityStatementInput { - applicabilityStatementId: ID! - applicability: Boolean! - justification: String -} - -input DeleteApplicabilityStatementInput { - applicabilityStatementId: ID! -} - -input CreateControlAuditMappingInput { - controlId: ID! - auditId: ID! -} - -input DeleteControlAuditMappingInput { - controlId: ID! - auditId: ID! -} - -input CreateControlObligationMappingInput { - controlId: ID! - obligationId: ID! -} - -input DeleteControlObligationMappingInput { - controlId: ID! - obligationId: ID! -} - -input CreateControlSnapshotMappingInput { - controlId: ID! - snapshotId: ID! -} - -input DeleteControlSnapshotMappingInput { - controlId: ID! - snapshotId: ID! -} - -input CreateRiskInput { - organizationId: ID! - name: String! - description: String - category: String! - ownerId: ID - treatment: RiskTreatment! - inherentLikelihood: Int! - inherentImpact: Int! - residualLikelihood: Int - residualImpact: Int - note: String -} - -input UpdateRiskInput { - id: ID! - name: String - description: String @goField(omittable: true) - category: String - ownerId: ID @goField(omittable: true) - treatment: RiskTreatment - inherentLikelihood: Int - inherentImpact: Int - residualLikelihood: Int - residualImpact: Int - note: String -} - -input DeleteRiskInput { - riskId: ID! -} - -input CreateRiskMeasureMappingInput { - riskId: ID! - measureId: ID! -} - -input DeleteRiskMeasureMappingInput { - riskId: ID! - measureId: ID! -} - -input CreateRiskDocumentMappingInput { - riskId: ID! - documentId: ID! -} - -input DeleteRiskDocumentMappingInput { - riskId: ID! - documentId: ID! -} - -input CreateRiskObligationMappingInput { - riskId: ID! - obligationId: ID! -} - -input DeleteRiskObligationMappingInput { - riskId: ID! - obligationId: ID! -} - -input DeleteEvidenceInput { - evidenceId: ID! -} - -input UploadVendorComplianceReportInput { - vendorId: ID! - reportDate: Datetime! - validUntil: Datetime - reportName: String! - file: Upload! -} - -input DeleteVendorComplianceReportInput { - reportId: ID! -} - -input UploadVendorBusinessAssociateAgreementInput { - vendorId: ID! - validFrom: Datetime - validUntil: Datetime - fileName: String! - file: Upload! -} - -input UpdateVendorBusinessAssociateAgreementInput { - vendorId: ID! - validFrom: Datetime @goField(omittable: true) - validUntil: Datetime @goField(omittable: true) -} - -input DeleteVendorBusinessAssociateAgreementInput { - vendorId: ID! -} - -input UploadVendorDataPrivacyAgreementInput { - vendorId: ID! - validFrom: Datetime - validUntil: Datetime - fileName: String! - file: Upload! -} - -input UpdateVendorDataPrivacyAgreementInput { - vendorId: ID! - validFrom: Datetime @goField(omittable: true) - validUntil: Datetime @goField(omittable: true) -} - -input DeleteVendorDataPrivacyAgreementInput { - vendorId: ID! -} - -input CreateDocumentInput { - organizationId: ID! - title: String! - content: String! - approverIds: [ID!]! - documentType: DocumentType! - classification: DocumentClassification! - trustCenterVisibility: TrustCenterVisibility -} - -input UpdateDocumentInput { - id: ID! - title: String - content: String - approverIds: [ID!] - documentType: DocumentType - classification: DocumentClassification - trustCenterVisibility: TrustCenterVisibility -} - -input ExportDocumentVersionPDFInput { - documentVersionId: ID! - withWatermark: Boolean! - watermarkEmail: EmailAddr - withSignatures: Boolean! -} - -input ExportSignableDocumentVersionPDFInput { - documentVersionId: ID! -} - -input ExportProcessingActivitiesPDFInput { - organizationId: ID! - filter: ProcessingActivityFilter -} - -input ExportDataProtectionImpactAssessmentsPDFInput { - organizationId: ID! - filter: DataProtectionImpactAssessmentFilter -} - -input ExportTransferImpactAssessmentsPDFInput { - organizationId: ID! - filter: TransferImpactAssessmentFilter -} - -input DeleteDocumentInput { - documentId: ID! -} - -input CreateMeetingInput { - organizationId: ID! - name: String! - date: Datetime! - attendeeIds: [ID!] - minutes: String -} - -input UpdateMeetingInput { - meetingId: ID! - name: String - date: Datetime - attendeeIds: [ID!] - minutes: String @goField(omittable: true) -} - -input DeleteMeetingInput { - meetingId: ID! -} - -input CreateStateOfApplicabilityInput { - organizationId: ID! - name: String! - ownerId: ID! -} - -input UpdateStateOfApplicabilityInput { - id: ID! - name: String - ownerId: ID -} - -input ApplicabilityStatementInput { - controlId: ID! - applicability: Boolean! - justification: String -} - -input DeleteStateOfApplicabilityInput { - stateOfApplicabilityId: ID! -} - -input ExportStateOfApplicabilityPDFInput { - stateOfApplicabilityId: ID! -} - -type ExportStateOfApplicabilityPDFPayload { - data: String! -} - -input StateOfApplicabilityOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.StateOfApplicabilityOrderBy" - ) { - direction: OrderDirection! - field: StateOfApplicabilityOrderField! -} - -enum StateOfApplicabilityOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.StateOfApplicabilityOrderField" - ) { - NAME - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.StateOfApplicabilityOrderFieldName" - ) - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.StateOfApplicabilityOrderFieldCreatedAt" - ) -} -input CreateControlInput { - frameworkId: ID! - sectionTitle: String! - name: String! - description: String - bestPractice: Boolean! -} - -input UpdateControlInput { - id: ID! - sectionTitle: String - name: String - description: String @goField(omittable: true) - bestPractice: Boolean -} - -input DeleteControlInput { - controlId: ID! -} - -# Audit input types -input CreateAuditInput { - organizationId: ID! - frameworkId: ID! - name: String - validFrom: Datetime - validUntil: Datetime - state: AuditState - trustCenterVisibility: TrustCenterVisibility -} - -input UpdateAuditInput { - id: ID! - name: String @goField(omittable: true) - validFrom: Datetime - validUntil: Datetime - state: AuditState - trustCenterVisibility: TrustCenterVisibility -} - -input DeleteAuditInput { - auditId: ID! -} - -input UploadAuditReportInput { - auditId: ID! - file: Upload! -} - -input DeleteAuditReportInput { - auditId: ID! -} - -# Nonconformity input types -input CreateNonconformityInput { - organizationId: ID! - referenceId: String! - description: String - auditId: ID - dateIdentified: Datetime - rootCause: String! - correctiveAction: String - ownerId: ID! - dueDate: Datetime - status: NonconformityStatus! - effectivenessCheck: String -} - -input UpdateNonconformityInput { - id: ID! - referenceId: String - description: String @goField(omittable: true) - dateIdentified: Datetime @goField(omittable: true) - rootCause: String - correctiveAction: String @goField(omittable: true) - ownerId: ID - auditId: ID @goField(omittable: true) - dueDate: Datetime @goField(omittable: true) - status: NonconformityStatus - effectivenessCheck: String @goField(omittable: true) -} - -input DeleteNonconformityInput { - nonconformityId: ID! -} - -input CreateObligationInput { - organizationId: ID! - area: String - source: String - requirement: String - actionsToBeImplemented: String - regulator: String - ownerId: ID! - lastReviewDate: Datetime - dueDate: Datetime - status: ObligationStatus! - type: ObligationType! -} - -input UpdateObligationInput { - id: ID! - area: String @goField(omittable: true) - source: String @goField(omittable: true) - requirement: String @goField(omittable: true) - actionsToBeImplemented: String @goField(omittable: true) - regulator: String @goField(omittable: true) - ownerId: ID - lastReviewDate: Datetime @goField(omittable: true) - dueDate: Datetime @goField(omittable: true) - status: ObligationStatus - type: ObligationType -} - -input DeleteObligationInput { - obligationId: ID! -} - -input CreateContinualImprovementInput { - organizationId: ID! - referenceId: String! - description: String - source: String - ownerId: ID! - targetDate: Datetime - status: ContinualImprovementStatus! - priority: ContinualImprovementPriority! -} - -input UpdateContinualImprovementInput { - id: ID! - referenceId: String - description: String @goField(omittable: true) - source: String @goField(omittable: true) - ownerId: ID - targetDate: Datetime @goField(omittable: true) - status: ContinualImprovementStatus - priority: ContinualImprovementPriority -} - -input DeleteContinualImprovementInput { - continualImprovementId: ID! -} - -input CreateRightsRequestInput { - organizationId: ID! - requestType: RightsRequestType! - requestState: RightsRequestState! - dataSubject: String - contact: String - details: String - deadline: Datetime - actionTaken: String -} - -input UpdateRightsRequestInput { - id: ID! - requestType: RightsRequestType - requestState: RightsRequestState - dataSubject: String @goField(omittable: true) - contact: String @goField(omittable: true) - details: String @goField(omittable: true) - deadline: Datetime @goField(omittable: true) - actionTaken: String @goField(omittable: true) -} - -input DeleteRightsRequestInput { - rightsRequestId: ID! -} - -input CreateProcessingActivityInput { - organizationId: ID! - name: String! - purpose: String - dataSubjectCategory: String - personalDataCategory: String - specialOrCriminalData: ProcessingActivitySpecialOrCriminalDatum! - consentEvidenceLink: String - lawfulBasis: ProcessingActivityLawfulBasis! - recipients: String - location: String - internationalTransfers: Boolean! - transferSafeguards: ProcessingActivityTransferSafeguard - retentionPeriod: String - securityMeasures: String - dataProtectionImpactAssessmentNeeded: ProcessingActivityDataProtectionImpactAssessment! - transferImpactAssessmentNeeded: ProcessingActivityTransferImpactAssessment! - lastReviewDate: Datetime - nextReviewDate: Datetime - role: ProcessingActivityRole! - dataProtectionOfficerId: ID - vendorIds: [ID!] -} - -input UpdateProcessingActivityInput { - id: ID! - name: String - purpose: String @goField(omittable: true) - dataSubjectCategory: String @goField(omittable: true) - personalDataCategory: String @goField(omittable: true) - specialOrCriminalData: ProcessingActivitySpecialOrCriminalDatum - consentEvidenceLink: String - lawfulBasis: ProcessingActivityLawfulBasis - recipients: String @goField(omittable: true) - location: String @goField(omittable: true) - internationalTransfers: Boolean - transferSafeguards: ProcessingActivityTransferSafeguard - @goField(omittable: true) - retentionPeriod: String @goField(omittable: true) - securityMeasures: String @goField(omittable: true) - dataProtectionImpactAssessmentNeeded: ProcessingActivityDataProtectionImpactAssessment - transferImpactAssessmentNeeded: ProcessingActivityTransferImpactAssessment - lastReviewDate: Datetime @goField(omittable: true) - nextReviewDate: Datetime @goField(omittable: true) - role: ProcessingActivityRole - dataProtectionOfficerId: ID @goField(omittable: true) - vendorIds: [ID!] -} - -input DeleteProcessingActivityInput { - processingActivityId: ID! -} - -input CreateDataProtectionImpactAssessmentInput { - processingActivityId: ID! - description: String - necessityAndProportionality: String - potentialRisk: String - mitigations: String - residualRisk: DataProtectionImpactAssessmentResidualRisk -} - -input UpdateDataProtectionImpactAssessmentInput { - id: ID! - description: String @goField(omittable: true) - necessityAndProportionality: String @goField(omittable: true) - potentialRisk: String @goField(omittable: true) - mitigations: String @goField(omittable: true) - residualRisk: DataProtectionImpactAssessmentResidualRisk -} - -input DeleteDataProtectionImpactAssessmentInput { - dataProtectionImpactAssessmentId: ID! -} - -input CreateTransferImpactAssessmentInput { - processingActivityId: ID! - dataSubjects: String - legalMechanism: String - transfer: String - localLawRisk: String - supplementaryMeasures: String -} - -input UpdateTransferImpactAssessmentInput { - id: ID! - dataSubjects: String @goField(omittable: true) - legalMechanism: String @goField(omittable: true) - transfer: String @goField(omittable: true) - localLawRisk: String @goField(omittable: true) - supplementaryMeasures: String @goField(omittable: true) -} - -input DeleteTransferImpactAssessmentInput { - transferImpactAssessmentId: ID! -} - -input CreateSnapshotInput { - organizationId: ID! - name: String! - description: String - type: SnapshotsType! -} - -input DeleteSnapshotInput { - snapshotId: ID! -} - -# Payload Types - -type UpdateOrganizationContextPayload { - context: OrganizationContext! -} - -type OrganizationContext { - organizationId: ID! - summary: String -} - -type UpdateTrustCenterPayload { - trustCenter: TrustCenter! -} - -type UploadTrustCenterNDAPayload { - trustCenter: TrustCenter! -} - -type DeleteTrustCenterNDAPayload { - trustCenter: TrustCenter! -} - -type UpdateTrustCenterBrandPayload { - trustCenter: TrustCenter! -} - -type UpdateTrustCenterAccessPayload { - trustCenterAccess: TrustCenterAccess! -} - -type DeleteTrustCenterAccessPayload { - deletedTrustCenterAccessId: ID! -} - -type CreateMailingListUpdatePayload { - mailingListUpdate: MailingListUpdate! -} - -type UpdateMailingListUpdatePayload { - mailingListUpdate: MailingListUpdate! -} - -type SendMailingListUpdatePayload { - mailingListUpdate: MailingListUpdate! -} - -type DeleteMailingListUpdatePayload { - deletedMailingListUpdateId: ID! -} - -type CreateMailingListSubscriberPayload { - mailingListSubscriberEdge: MailingListSubscriberEdge! -} - -type DeleteMailingListSubscriberPayload { - deletedMailingListSubscriberId: ID! -} - -type CreateTrustCenterReferencePayload { - trustCenterReferenceEdge: TrustCenterReferenceEdge! -} - -type UpdateTrustCenterReferencePayload { - trustCenterReference: TrustCenterReference! -} - -type DeleteTrustCenterReferencePayload { - deletedTrustCenterReferenceId: ID! -} - -type CreateComplianceFrameworkPayload { - complianceFrameworkEdge: ComplianceFrameworkEdge! -} - -type UpdateComplianceFrameworkPayload { - complianceFramework: ComplianceFramework! -} - -type DeleteComplianceFrameworkPayload { - deletedComplianceFrameworkId: ID! -} - -type CreateComplianceExternalURLPayload { - complianceExternalUrlEdge: ComplianceExternalURLEdge! -} - -type UpdateComplianceExternalURLPayload { - complianceExternalUrl: ComplianceExternalURL! -} - -type DeleteComplianceExternalURLPayload { - deletedComplianceExternalUrlId: ID! -} - -type CreateTrustCenterFilePayload { - trustCenterFileEdge: TrustCenterFileEdge! -} - -type UpdateTrustCenterFilePayload { - trustCenterFile: TrustCenterFile! -} - -type GetTrustCenterFilePayload { - trustCenterFile: TrustCenterFile! -} - -type DeleteTrustCenterFilePayload { - deletedTrustCenterFileId: ID! -} - -type CreateControlPayload { - controlEdge: ControlEdge! -} - -type UpdateControlPayload { - control: Control! -} - -type DeleteControlPayload { - deletedControlId: ID! -} - -type CreateVendorPayload { - vendorEdge: VendorEdge! -} - -type UpdateVendorPayload { - vendor: Vendor! -} - -type DeleteVendorPayload { - deletedVendorId: ID! -} - -type CreateVendorContactPayload { - vendorContactEdge: VendorContactEdge! -} - -type UpdateVendorContactPayload { - vendorContact: VendorContact! -} - -type DeleteVendorContactPayload { - deletedVendorContactId: ID! -} - -type CreateVendorServicePayload { - vendorServiceEdge: VendorServiceEdge! -} - -type UpdateVendorServicePayload { - vendorService: VendorService! -} - -type DeleteVendorServicePayload { - deletedVendorServiceId: ID! -} - -type CreateFrameworkPayload { - frameworkEdge: FrameworkEdge! -} - -type UpdateFrameworkPayload { - framework: Framework! -} - -type ImportFrameworkPayload { - frameworkEdge: FrameworkEdge! -} - -type DeleteFrameworkPayload { - deletedFrameworkId: ID! -} - -type ExportFrameworkPayload { - exportJobId: ID! -} - -type CreateMeasurePayload { - measureEdge: MeasureEdge! -} - -type UpdateMeasurePayload { - measure: Measure! -} - -type ImportMeasurePayload { - measureEdges: [MeasureEdge!]! -} - -type CreateTaskPayload { - taskEdge: TaskEdge! -} - -type UpdateTaskPayload { - task: Task! -} - -type DeleteTaskPayload { - deletedTaskId: ID! -} - -type CreateControlMeasureMappingPayload { - controlEdge: ControlEdge! - measureEdge: MeasureEdge! -} - -type CreateControlDocumentMappingPayload { - controlEdge: ControlEdge! - documentEdge: DocumentEdge! -} - -type DeleteControlMeasureMappingPayload { - deletedControlId: ID! - deletedMeasureId: ID! -} - -type DeleteControlDocumentMappingPayload { - deletedControlId: ID! - deletedDocumentId: ID! -} - -type CreateApplicabilityStatementPayload { - applicabilityStatementEdge: ApplicabilityStatementEdge! -} - -type UpdateApplicabilityStatementPayload { - applicabilityStatement: ApplicabilityStatement! -} - -type DeleteApplicabilityStatementPayload { - deletedApplicabilityStatementId: ID! -} - -type CreateControlAuditMappingPayload { - controlEdge: ControlEdge! - auditEdge: AuditEdge! -} - -type DeleteControlAuditMappingPayload { - deletedControlId: ID! - deletedAuditId: ID! -} - -type CreateControlObligationMappingPayload { - controlEdge: ControlEdge! - obligationEdge: ObligationEdge! -} - -type DeleteControlObligationMappingPayload { - deletedControlId: ID! - deletedObligationId: ID! -} - -type CreateControlSnapshotMappingPayload { - controlEdge: ControlEdge! - snapshotEdge: SnapshotEdge! -} - -type DeleteControlSnapshotMappingPayload { - deletedControlId: ID! - deletedSnapshotId: ID! -} - -type CreateRiskPayload { - riskEdge: RiskEdge! -} - -type UpdateRiskPayload { - risk: Risk! -} - -type DeleteRiskPayload { - deletedRiskId: ID! -} - -type CreateRiskMeasureMappingPayload { - riskEdge: RiskEdge! - measureEdge: MeasureEdge! -} - -type DeleteRiskMeasureMappingPayload { - deletedMeasureId: ID! - deletedRiskId: ID! -} - -type CreateRiskDocumentMappingPayload { - riskEdge: RiskEdge! - documentEdge: DocumentEdge! -} - -type DeleteRiskDocumentMappingPayload { - deletedRiskId: ID! - deletedDocumentId: ID! -} - -type CreateRiskObligationMappingPayload { - riskEdge: RiskEdge! - obligationEdge: ObligationEdge! -} - -type DeleteRiskObligationMappingPayload { - deletedRiskId: ID! - deletedObligationId: ID! -} - -type DeleteEvidencePayload { - deletedEvidenceId: ID! -} - -type UploadVendorComplianceReportPayload { - vendorComplianceReportEdge: VendorComplianceReportEdge! -} - -type DeleteVendorComplianceReportPayload { - deletedVendorComplianceReportId: ID! -} - -type UploadVendorBusinessAssociateAgreementPayload { - vendorBusinessAssociateAgreement: VendorBusinessAssociateAgreement! -} - -type UpdateVendorBusinessAssociateAgreementPayload { - vendorBusinessAssociateAgreement: VendorBusinessAssociateAgreement! -} - -type DeleteVendorBusinessAssociateAgreementPayload { - deletedVendorId: ID! -} - -type UploadVendorDataPrivacyAgreementPayload { - vendorDataPrivacyAgreement: VendorDataPrivacyAgreement! -} - -type UpdateVendorDataPrivacyAgreementPayload { - vendorDataPrivacyAgreement: VendorDataPrivacyAgreement! -} - -type DeleteVendorDataPrivacyAgreementPayload { - deletedVendorId: ID! -} - -type CreateDocumentPayload { - documentEdge: DocumentEdge! - documentVersionEdge: DocumentVersionEdge! -} - -type ExportDocumentVersionPDFPayload { - data: String! -} - -type ExportSignableDocumentVersionPDFPayload { - data: String! -} - -type ExportProcessingActivitiesPDFPayload { - data: String! -} - -type ExportDataProtectionImpactAssessmentsPDFPayload { - data: String! -} - -type ExportTransferImpactAssessmentsPDFPayload { - data: String! -} - -type UpdateDocumentPayload { - document: Document! -} - -type DeleteDocumentPayload { - deletedDocumentId: ID! -} - -type CreateMeetingPayload { - meetingEdge: MeetingEdge! -} - -type UpdateMeetingPayload { - meeting: Meeting! -} - -type DeleteMeetingPayload { - deletedMeetingId: ID! -} - -input CreateWebhookSubscriptionInput { - organizationId: ID! - endpointUrl: String! - selectedEvents: [WebhookEventType!]! -} - -input UpdateWebhookSubscriptionInput { - id: ID! - endpointUrl: String - selectedEvents: [WebhookEventType!] -} - -input DeleteWebhookSubscriptionInput { - webhookSubscriptionId: ID! -} - -type CreateWebhookSubscriptionPayload { - webhookSubscriptionEdge: WebhookSubscriptionEdge! -} - -type UpdateWebhookSubscriptionPayload { - webhookSubscription: WebhookSubscription! -} - -type DeleteWebhookSubscriptionPayload { - deletedWebhookSubscriptionId: ID! -} - -type CreateStateOfApplicabilityPayload { - stateOfApplicabilityEdge: StateOfApplicabilityEdge! -} - -type UpdateStateOfApplicabilityPayload { - stateOfApplicability: StateOfApplicability! -} - -type DeleteStateOfApplicabilityPayload { - deletedStateOfApplicabilityId: ID! -} - -input VendorRiskAssessmentOrder { - field: VendorRiskAssessmentOrderField! - direction: OrderDirection! -} - -type VendorRiskAssessment implements Node { - id: ID! - vendor: Vendor! @goField(forceResolver: true) - expiresAt: Datetime! - dataSensitivity: DataSensitivity! - businessImpact: BusinessImpact! - notes: String - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -enum VendorRiskAssessmentOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.VendorRiskAssessmentOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorRiskAssessmentOrderFieldCreatedAt" - ) - EXPIRES_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorRiskAssessmentOrderFieldExpiresAt" - ) -} - -input CreateVendorRiskAssessmentInput { - vendorId: ID! - expiresAt: Datetime! - dataSensitivity: DataSensitivity! - businessImpact: BusinessImpact! - notes: String -} - -type CreateVendorRiskAssessmentPayload { - vendorRiskAssessmentEdge: VendorRiskAssessmentEdge! -} - -input DeleteMeasureInput { - measureId: ID! -} - -type DeleteMeasurePayload { - deletedMeasureId: ID! -} - -type DocumentVersion implements Node { - id: ID! - document: Document! @goField(forceResolver: true) - status: DocumentStatus! - version: Int! - content: String! - changelog: String! - title: String! - classification: DocumentClassification! - approvers( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: ProfileOrder - ): ProfileConnection! @goField(forceResolver: true) - - signatures( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: DocumentVersionSignatureOrder - filter: DocumentVersionSignatureFilter - ): DocumentVersionSignatureConnection! @goField(forceResolver: true) - - signed: Boolean! @goField(forceResolver: true) - - publishedAt: Datetime - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type DocumentVersionSignatureConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.DocumentVersionSignatureConnection" - ) { - edges: [DocumentVersionSignatureEdge!]! - pageInfo: PageInfo! - totalCount: Int! @goField(forceResolver: true) -} - -type DocumentVersionSignatureEdge { - cursor: CursorKey! - node: DocumentVersionSignature! -} - -input DocumentVersionSignatureOrder { - field: DocumentVersionSignatureOrderField! - direction: OrderDirection! -} - -input DocumentVersionSignatureFilter { - states: [DocumentVersionSignatureState!] - activeContract: Boolean -} - -enum DocumentVersionSignatureState - @goModel( - model: "go.probo.inc/probo/pkg/coredata.DocumentVersionSignatureState" - ) { - REQUESTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentVersionSignatureStateRequested" - ) - SIGNED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentVersionSignatureStateSigned" - ) -} - -enum DocumentVersionSignatureOrderField - @goModel( - model: "go.probo.inc/probo/pkg/coredata.DocumentVersionSignatureOrderField" - ) { - CREATED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentVersionSignatureOrderFieldCreatedAt" - ) - SIGNED_AT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.DocumentVersionSignatureOrderFieldSignedAt" - ) -} - -type DocumentVersionSignature implements Node { - id: ID! - documentVersion: DocumentVersion! @goField(forceResolver: true) - state: DocumentVersionSignatureState! - signedBy: Profile! @goField(forceResolver: true) - signedAt: Datetime - requestedAt: Datetime! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -input RequestSignatureInput { - documentVersionId: ID! - signatoryId: ID! -} - -input BulkRequestSignaturesInput { - documentIds: [ID!]! - signatoryIds: [ID!]! -} - -type RequestSignaturePayload { - documentVersionSignatureEdge: DocumentVersionSignatureEdge! -} - -type BulkRequestSignaturesPayload { - documentVersionSignatureEdges: [DocumentVersionSignatureEdge!]! -} - -input BulkPublishDocumentVersionsInput { - documentIds: [ID!]! - changelog: String! -} - -type BulkPublishDocumentVersionsPayload { - documentVersionEdges: [DocumentVersionEdge!]! - documentEdges: [DocumentEdge!]! -} - -input BulkDeleteDocumentsInput { - documentIds: [ID!]! -} - -input BulkExportDocumentsInput { - documentIds: [ID!]! - withWatermark: Boolean! - watermarkEmail: EmailAddr - withSignatures: Boolean! -} - -type BulkDeleteDocumentsPayload { - deletedDocumentIds: [ID!]! -} - -type BulkExportDocumentsPayload { - exportJobId: ID! -} - -input PublishDocumentVersionInput { - documentId: ID! - changelog: String -} - -type PublishDocumentVersionPayload { - documentVersion: DocumentVersion! - document: Document! -} - -type CreateDraftDocumentVersionPayload { - documentVersionEdge: DocumentVersionEdge! -} - -type DeleteDraftDocumentVersionPayload { - deletedDocumentVersionId: ID! -} - -input CreateDraftDocumentVersionInput { - documentID: ID! -} - -input DeleteDraftDocumentVersionInput { - documentVersionId: ID! -} - -input UpdateDocumentVersionInput { - documentVersionId: ID! - content: String! -} - -input CancelSignatureRequestInput { - documentVersionSignatureId: ID! -} - -type UpdateDocumentVersionPayload { - documentVersion: DocumentVersion! -} - -input SendSigningNotificationsInput { - organizationId: ID! -} - -type SendSigningNotificationsPayload { - success: Boolean! -} - -type CancelSignatureRequestPayload { - deletedDocumentVersionSignatureId: ID! -} - -input SignDocumentInput { - documentVersionId: ID! -} - -type SignDocumentPayload { - documentVersionSignature: DocumentVersionSignature! -} - -type UploadMeasureEvidencePayload { - evidenceEdge: EvidenceEdge! -} - -input UploadMeasureEvidenceInput { - measureId: ID! - file: Upload! -} - -input GenerateDocumentChangelogInput { - documentId: ID! -} - -type GenerateDocumentChangelogPayload { - changelog: String! -} - -input AssessVendorInput { - id: ID! - websiteUrl: String! -} - -type AssessVendorPayload { - vendor: Vendor! -} - -type Asset implements Node { - id: ID! - snapshotId: ID - name: String! - amount: Int! - owner: Profile! @goField(forceResolver: true) - vendors( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: VendorOrder - ): VendorConnection! @goField(forceResolver: true) - assetType: AssetType! - dataTypesStored: String! - organization: Organization! @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type AssetConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.AssetConnection" - ) { - totalCount: Int! @goField(forceResolver: true) - edges: [AssetEdge!]! - pageInfo: PageInfo! -} - -type AssetEdge { - cursor: CursorKey! - node: Asset! -} - -input AssetOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.AssetOrderBy" - ) { - direction: OrderDirection! - field: AssetOrderField! -} - -input CreateAssetInput { - organizationId: ID! - name: String! - amount: Int! - ownerId: ID! - assetType: AssetType! - dataTypesStored: String! - vendorIds: [ID!] -} - -input UpdateAssetInput { - id: ID! - name: String - amount: Int - ownerId: ID - assetType: AssetType - dataTypesStored: String - vendorIds: [ID!] -} - -input DeleteAssetInput { - assetId: ID! -} - -type CreateAssetPayload { - assetEdge: AssetEdge! -} - -type UpdateAssetPayload { - asset: Asset! -} - -type DeleteAssetPayload { - deletedAssetId: ID! -} - -type Datum implements Node - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.Datum" - ) { - id: ID! - snapshotId: ID - name: String! - dataClassification: DataClassification! - owner: Profile! @goField(forceResolver: true) - vendors( - first: Int - after: CursorKey - last: Int - before: CursorKey - orderBy: VendorOrder - ): VendorConnection! @goField(forceResolver: true) - organization: Organization! @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -input DatumOrder - @goModel( - model: "go.probo.inc/probo/pkg/server/api/console/v1/types.DatumOrderBy" - ) { - direction: OrderDirection! - field: DatumOrderField! -} - -input CreateDatumInput { - organizationId: ID! - name: String! - dataClassification: DataClassification! - ownerId: ID! - vendorIds: [ID!] -} - -input UpdateDatumInput { - id: ID! - name: String - dataClassification: DataClassification - ownerId: ID - vendorIds: [ID!] -} - -input DeleteDatumInput { - datumId: ID! -} - -type CreateDatumPayload { - datumEdge: DatumEdge! -} - -type UpdateDatumPayload { - datum: Datum! -} - -type DeleteDatumPayload { - deletedDatumId: ID! -} - -type CreateAuditPayload { - auditEdge: AuditEdge! -} - -type UpdateAuditPayload { - audit: Audit! -} - -type DeleteAuditPayload { - deletedAuditId: ID! -} - -type UploadAuditReportPayload { - audit: Audit! -} - -type DeleteAuditReportPayload { - audit: Audit! -} - -# Nonconformity payload types -type CreateNonconformityPayload { - nonconformityEdge: NonconformityEdge! -} - -type UpdateNonconformityPayload { - nonconformity: Nonconformity! -} - -type DeleteNonconformityPayload { - deletedNonconformityId: ID! -} - -type CreateObligationPayload { - obligationEdge: ObligationEdge! -} - -type UpdateObligationPayload { - obligation: Obligation! -} - -type DeleteObligationPayload { - deletedObligationId: ID! -} - -type CreateContinualImprovementPayload { - continualImprovementEdge: ContinualImprovementEdge! -} - -type UpdateContinualImprovementPayload { - continualImprovement: ContinualImprovement! -} - -type DeleteContinualImprovementPayload { - deletedContinualImprovementId: ID! -} - -type CreateRightsRequestPayload { - rightsRequestEdge: RightsRequestEdge! -} - -type UpdateRightsRequestPayload { - rightsRequest: RightsRequest! -} - -type DeleteRightsRequestPayload { - deletedRightsRequestId: ID! -} - -type CreateProcessingActivityPayload { - processingActivityEdge: ProcessingActivityEdge! -} - -type UpdateProcessingActivityPayload { - processingActivity: ProcessingActivity! -} - -type DeleteProcessingActivityPayload { - deletedProcessingActivityId: ID! -} - -type CreateDataProtectionImpactAssessmentPayload { - dataProtectionImpactAssessment: DataProtectionImpactAssessment! -} - -type UpdateDataProtectionImpactAssessmentPayload { - dataProtectionImpactAssessment: DataProtectionImpactAssessment! -} - -type DeleteDataProtectionImpactAssessmentPayload { - deletedDataProtectionImpactAssessmentId: ID! -} - -type CreateTransferImpactAssessmentPayload { - transferImpactAssessment: TransferImpactAssessment! -} - -type UpdateTransferImpactAssessmentPayload { - transferImpactAssessment: TransferImpactAssessment! -} - -type DeleteTransferImpactAssessmentPayload { - deletedTransferImpactAssessmentId: ID! -} - -type CreateSnapshotPayload { - snapshotEdge: SnapshotEdge! -} - -type DeleteSnapshotPayload { - deletedSnapshotId: ID! -} - -enum SSLStatus - @goModel(model: "go.probo.inc/probo/pkg/coredata.CustomDomainSSLStatus") { - PENDING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.CustomDomainSSLStatusPending" - ) - PROVISIONING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.CustomDomainSSLStatusProvisioning" - ) - ACTIVE - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.CustomDomainSSLStatusActive" - ) - RENEWING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.CustomDomainSSLStatusRenewing" - ) - EXPIRED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.CustomDomainSSLStatusExpired" - ) - FAILED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.CustomDomainSSLStatusFailed" - ) -} - -type CustomDomain implements Node { - id: ID! - organization: Organization! - domain: String! - sslStatus: SSLStatus! - sslExpiresAt: Datetime - dnsRecords: [DNSRecordInstruction!]! - createdAt: Datetime! - updatedAt: Datetime! - - permission(action: String!): Boolean! @goField(forceResolver: true) -} - -type DNSRecordInstruction { - type: String! - name: String! - value: String! - ttl: Int! - purpose: String! -} - -input CreateCustomDomainInput { - organizationId: ID! - domain: String! -} - -input DeleteCustomDomainInput { - organizationId: ID! -} - -type CreateCustomDomainPayload { - customDomain: CustomDomain! -} - -type DeleteCustomDomainPayload { - deletedCustomDomainId: ID! -} - -# Electronic Signature - -enum ElectronicSignatureStatus - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatus" - ) { - PENDING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatusPending" - ) - ACCEPTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatusAccepted" - ) - PROCESSING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatusProcessing" - ) - COMPLETED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatusCompleted" - ) - FAILED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatusFailed" - ) -} - -enum ElectronicSignatureDocumentType - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentType" - ) { - NDA - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeNDA" - ) - DPA - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeDPA" - ) - MSA - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeMSA" - ) - SOW - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeSOW" - ) - SLA - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeSLA" - ) - TOS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeTOS" - ) - PRIVACY_POLICY - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypePrivacyPolicy" - ) - OTHER - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeOther" - ) -} - -enum ElectronicSignatureEventType - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventType" - ) { - DOCUMENT_VIEWED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeDocumentViewed" - ) - CONSENT_GIVEN - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeConsentGiven" - ) - FULL_NAME_TYPED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeFullNameTyped" - ) - SIGNATURE_ACCEPTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeSignatureAccepted" - ) - SIGNATURE_COMPLETED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeSignatureCompleted" - ) - SEAL_COMPUTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeSealComputed" - ) - TIMESTAMP_REQUESTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeTimestampRequested" - ) - CERTIFICATE_GENERATED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeCertificateGenerated" - ) - PROCESSING_ERROR - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeProcessingError" - ) -} - -enum ElectronicSignatureEventSource - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventSource" - ) { - CLIENT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventSourceClient" - ) - SERVER - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventSourceServer" - ) -} - -type ElectronicSignature implements Node { - id: ID! - status: ElectronicSignatureStatus! - documentType: ElectronicSignatureDocumentType! - consentText: String! - lastError: String - signedAt: Datetime - certificateFileUrl: String @goField(forceResolver: true) - events: [ElectronicSignatureEvent!]! @goField(forceResolver: true) - createdAt: Datetime! - updatedAt: Datetime! -} - -type ElectronicSignatureEvent { - id: ID! - eventType: ElectronicSignatureEventType! - eventSource: ElectronicSignatureEventSource! - actorEmail: String! - actorIpAddress: String! - actorUserAgent: String! - occurredAt: Datetime! - createdAt: Datetime! -} -`, BuiltIn: false}, -} -var parsedSchema = gqlparser.MustLoadSchema(sources...) - -// endregion ************************** generated!.gotpl ************************** - -// region ***************************** args.gotpl ***************************** - -func (ec *executionContext) field_ApplicabilityStatement_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Asset_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Asset_vendors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOVendorOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Audit_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOControlOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOControlFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Audit_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_ComplianceExternalURL_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_ContinualImprovement_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Control_audits_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOAuditOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Control_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalODocumentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalODocumentFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Control_measures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOMeasureOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOMeasureFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Control_obligations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOObligationOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOObligationFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Control_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Control_snapshots_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOSnapshotOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_CustomDomain_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_DataProtectionImpactAssessment_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Datum_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Datum_vendors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOVendorOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_DocumentVersionSignature_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_DocumentVersion_approvers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOProfileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_DocumentVersion_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_DocumentVersion_signatures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalODocumentVersionSignatureOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureOrder) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalODocumentVersionSignatureFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Document_approvers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOProfileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Document_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOControlOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOControlFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Document_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Document_versions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalODocumentVersionOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalODocumentVersionFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Evidence_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Framework_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOControlOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOControlFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Framework_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_MailingList_subscribers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_MailingList_updates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_Measure_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOControlOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOControlFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Measure_evidences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOEvidenceOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Measure_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Measure_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalORiskOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalORiskFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Measure_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOTaskOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Meeting_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_assessVendor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNAssessVendorInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssessVendorInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_bulkDeleteDocuments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNBulkDeleteDocumentsInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkDeleteDocumentsInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_bulkExportDocuments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNBulkExportDocumentsInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkExportDocumentsInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_bulkPublishDocumentVersions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNBulkPublishDocumentVersionsInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkPublishDocumentVersionsInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_bulkRequestSignatures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNBulkRequestSignaturesInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkRequestSignaturesInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_cancelSignatureRequest_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCancelSignatureRequestInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCancelSignatureRequestInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createApplicabilityStatement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateApplicabilityStatementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateApplicabilityStatementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createAsset_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateAssetInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAssetInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createAudit_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateAuditInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAuditInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createComplianceExternalURL_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateComplianceExternalURLInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceExternalURLInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createComplianceFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateComplianceFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceFrameworkInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createContinualImprovement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateContinualImprovementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateContinualImprovementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createControlAuditMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateControlAuditMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlAuditMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createControlDocumentMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateControlDocumentMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlDocumentMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createControlMeasureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateControlMeasureMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMeasureMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createControlObligationMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateControlObligationMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlObligationMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createControlSnapshotMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateControlSnapshotMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlSnapshotMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createControl_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateControlInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createCustomDomain_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateCustomDomainInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateCustomDomainInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createDataProtectionImpactAssessment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateDataProtectionImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDataProtectionImpactAssessmentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createDatum_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateDatumInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDatumInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createDocument_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateDocumentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDocumentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createDraftDocumentVersion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateDraftDocumentVersionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDraftDocumentVersionInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateFrameworkInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createMailingListSubscriber_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateMailingListSubscriberInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMailingListSubscriberInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createMailingListUpdate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateMailingListUpdateInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMailingListUpdateInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createMeasure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateMeasureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeasureInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createMeeting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateMeetingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeetingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createNonconformity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateNonconformityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateNonconformityInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createObligation_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateObligationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateObligationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createProcessingActivity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateProcessingActivityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateProcessingActivityInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createRightsRequest_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateRightsRequestInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRightsRequestInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createRiskDocumentMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateRiskDocumentMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskDocumentMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createRiskMeasureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateRiskMeasureMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMeasureMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createRiskObligationMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateRiskObligationMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskObligationMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createRisk_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateRiskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createSnapshot_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateSnapshotInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateSnapshotInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createStateOfApplicability_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateStateOfApplicabilityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateStateOfApplicabilityInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createTask_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateTaskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTaskInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createTransferImpactAssessment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateTransferImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTransferImpactAssessmentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createTrustCenterFile_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateTrustCenterFileInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterFileInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createTrustCenterReference_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateTrustCenterReferenceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterReferenceInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createVendorContact_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateVendorContactInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorContactInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createVendorRiskAssessment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateVendorRiskAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorRiskAssessmentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createVendorService_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateVendorServiceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorServiceInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createVendor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateVendorInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_createWebhookSubscription_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateWebhookSubscriptionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateWebhookSubscriptionInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteApplicabilityStatement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteApplicabilityStatementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteApplicabilityStatementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteAsset_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteAssetInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAssetInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteAuditReport_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteAuditReportInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditReportInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteAudit_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteAuditInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteComplianceExternalURL_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteComplianceExternalURLInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceExternalURLInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteComplianceFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteComplianceFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceFrameworkInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteContinualImprovement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteContinualImprovementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteContinualImprovementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteControlAuditMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteControlAuditMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlAuditMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteControlDocumentMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteControlDocumentMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlDocumentMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteControlMeasureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteControlMeasureMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMeasureMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteControlObligationMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteControlObligationMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlObligationMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteControlSnapshotMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteControlSnapshotMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlSnapshotMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteControl_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteControlInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteCustomDomain_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteCustomDomainInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteCustomDomainInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteDataProtectionImpactAssessment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteDataProtectionImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDataProtectionImpactAssessmentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteDatum_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteDatumInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDatumInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteDocument_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteDocumentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDocumentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteDraftDocumentVersion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteDraftDocumentVersionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDraftDocumentVersionInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteEvidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteEvidenceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteEvidenceInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteFrameworkInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteMailingListSubscriber_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteMailingListSubscriberInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMailingListSubscriberInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteMailingListUpdate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteMailingListUpdateInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMailingListUpdateInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteMeasure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteMeasureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeasureInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteMeeting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteMeetingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeetingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteNonconformity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteNonconformityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteNonconformityInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteObligation_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteObligationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteObligationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteProcessingActivity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteProcessingActivityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteProcessingActivityInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteRightsRequest_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteRightsRequestInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRightsRequestInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteRiskDocumentMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteRiskDocumentMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskDocumentMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteRiskMeasureMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteRiskMeasureMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMeasureMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteRiskObligationMapping_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteRiskObligationMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskObligationMappingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteRisk_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteRiskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteSnapshot_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteSnapshotInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteSnapshotInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteStateOfApplicability_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteStateOfApplicabilityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteStateOfApplicabilityInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteTask_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteTaskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTaskInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteTransferImpactAssessment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteTransferImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTransferImpactAssessmentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteTrustCenterAccess_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteTrustCenterAccessInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterAccessInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteTrustCenterFile_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteTrustCenterFileInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterFileInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteTrustCenterNDA_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteTrustCenterNDAInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterNDAInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteTrustCenterReference_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteTrustCenterReferenceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterReferenceInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteVendorBusinessAssociateAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteVendorBusinessAssociateAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorBusinessAssociateAgreementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteVendorComplianceReport_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteVendorComplianceReportInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorComplianceReportInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteVendorContact_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteVendorContactInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorContactInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteVendorDataPrivacyAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteVendorDataPrivacyAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorDataPrivacyAgreementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteVendorService_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteVendorServiceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorServiceInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteVendor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteVendorInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_deleteWebhookSubscription_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteWebhookSubscriptionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteWebhookSubscriptionInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_exportDataProtectionImpactAssessmentsPDF_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNExportDataProtectionImpactAssessmentsPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDataProtectionImpactAssessmentsPDFInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_exportDocumentVersionPDF_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNExportDocumentVersionPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDocumentVersionPDFInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_exportFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNExportFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportFrameworkInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_exportProcessingActivitiesPDF_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNExportProcessingActivitiesPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportProcessingActivitiesPDFInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_exportSignableVersionDocumentPDF_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNExportSignableDocumentVersionPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportSignableDocumentVersionPDFInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_exportStateOfApplicabilityPDF_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNExportStateOfApplicabilityPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportStateOfApplicabilityPDFInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_exportTransferImpactAssessmentsPDF_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNExportTransferImpactAssessmentsPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportTransferImpactAssessmentsPDFInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_generateDocumentChangelog_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNGenerateDocumentChangelogInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateDocumentChangelogInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_getTrustCenterFile_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNGetTrustCenterFileInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGetTrustCenterFileInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_importFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNImportFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportFrameworkInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_importMeasure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNImportMeasureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMeasureInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_publishDocumentVersion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNPublishDocumentVersionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPublishDocumentVersionInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_requestSignature_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRequestSignatureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestSignatureInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_sendMailingListUpdate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNSendMailingListUpdateInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendMailingListUpdateInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_sendSigningNotifications_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNSendSigningNotificationsInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendSigningNotificationsInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_signDocument_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNSignDocumentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignDocumentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateApplicabilityStatement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateApplicabilityStatementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateApplicabilityStatementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateAsset_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateAssetInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAssetInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateAudit_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateAuditInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAuditInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateComplianceExternalURL_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateComplianceExternalURLInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceExternalURLInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateComplianceFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateComplianceFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceFrameworkInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateContinualImprovement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateContinualImprovementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateContinualImprovementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateControl_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateControlInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateControlInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateDataProtectionImpactAssessment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateDataProtectionImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDataProtectionImpactAssessmentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateDatum_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateDatumInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDatumInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateDocumentVersion_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateDocumentVersionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentVersionInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateDocument_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateDocumentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateFramework_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateFrameworkInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateMailingListUpdate_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateMailingListUpdateInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMailingListUpdateInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateMailingList_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateMailingListInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMailingListInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateMeasure_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateMeasureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeasureInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateMeeting_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateMeetingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeetingInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateNonconformity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateNonconformityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateNonconformityInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateObligation_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateObligationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateObligationInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateOrganizationContext_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateOrganizationContextInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateOrganizationContextInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateProcessingActivity_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateProcessingActivityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateProcessingActivityInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateRightsRequest_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateRightsRequestInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRightsRequestInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateRisk_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateRiskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRiskInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateStateOfApplicability_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateStateOfApplicabilityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateStateOfApplicabilityInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateTask_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateTaskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTaskInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateTransferImpactAssessment_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateTransferImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTransferImpactAssessmentInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateTrustCenterAccess_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateTrustCenterAccessInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterAccessInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateTrustCenterBrand_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateTrustCenterBrandInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterBrandInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateTrustCenterFile_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateTrustCenterFileInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterFileInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateTrustCenterReference_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateTrustCenterReferenceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterReferenceInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateTrustCenter_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateTrustCenterInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateVendorBusinessAssociateAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateVendorBusinessAssociateAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorBusinessAssociateAgreementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateVendorContact_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateVendorContactInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorContactInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateVendorDataPrivacyAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateVendorDataPrivacyAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorDataPrivacyAgreementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateVendorService_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateVendorServiceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorServiceInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateVendor_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateVendorInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateWebhookSubscription_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateWebhookSubscriptionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateWebhookSubscriptionInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_uploadAuditReport_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUploadAuditReportInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadAuditReportInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_uploadMeasureEvidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUploadMeasureEvidenceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadMeasureEvidenceInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_uploadTrustCenterNDA_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUploadTrustCenterNDAInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadTrustCenterNDAInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_uploadVendorBusinessAssociateAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUploadVendorBusinessAssociateAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorBusinessAssociateAgreementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_uploadVendorComplianceReport_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUploadVendorComplianceReportInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorComplianceReportInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_uploadVendorDataPrivacyAgreement_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUploadVendorDataPrivacyAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorDataPrivacyAgreementInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Nonconformity_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Obligation_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Organization_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOAssetOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOAssetFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_audits_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOAuditOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Organization_continualImprovements_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOContinualImprovementOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOContinualImprovementFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOControlOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOControlFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_dataProtectionImpactAssessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalODataProtectionImpactAssessmentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalODataProtectionImpactAssessmentFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_data_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalODatumOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalODatumFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalODocumentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalODocumentFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_frameworks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOFrameworkOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Organization_measures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOMeasureOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOMeasureFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_meetings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOMeetingOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeetingOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Organization_nonconformities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalONonconformityOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalONonconformityFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_obligations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOObligationOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOObligationFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Organization_processingActivities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOProcessingActivityOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOProcessingActivityFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_profiles_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOProfileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOProfileFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_rightsRequests_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalORightsRequestOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequestOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Organization_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalORiskOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalORiskFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_slackConnections_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_Organization_snapshots_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOSnapshotOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Organization_statesOfApplicability_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOStateOfApplicabilityOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOStateOfApplicabilityFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOTaskOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Organization_transferImpactAssessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOTransferImpactAssessmentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOTransferImpactAssessmentFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_trustCenterFiles_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOTrustCenterFileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Organization_vendors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOVendorOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOVendorFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_webhookSubscriptions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOWebhookSubscriptionOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscriptionOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_ProcessingActivity_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_ProcessingActivity_vendors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOVendorOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Profile_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["name"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Report_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_RightsRequest_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Risk_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOControlOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOControlFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Risk_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalODocumentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalODocumentFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Risk_measures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOMeasureOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOMeasureFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Risk_obligations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOObligationOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOObligationFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Risk_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_SignableDocument_versions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalODocumentVersionOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalODocumentVersionFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Snapshot_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOControlOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOControlFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter) - if err != nil { - return nil, err - } - args["filter"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Snapshot_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_StateOfApplicability_applicabilityStatements_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOApplicabilityStatementOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatementOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_StateOfApplicability_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Task_evidences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOEvidenceOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Task_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_TransferImpactAssessment_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_TrustCenterAccess_availableDocumentAccesses_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOTrustCenterDocumentAccessOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_TrustCenterAccess_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_TrustCenterFile_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_TrustCenterReference_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_accesses_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOTrustCenterAccessOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_complianceFrameworks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOComplianceFrameworkOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_externalUrls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOComplianceExternalURLOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_references_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOTrustCenterReferenceOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_VendorBusinessAssociateAgreement_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_VendorComplianceReport_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_VendorContact_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_VendorDataPrivacyAgreement_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_VendorRiskAssessment_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_VendorService_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Vendor_complianceReports_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOVendorComplianceReportOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Vendor_contacts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOVendorContactOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Vendor_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Vendor_riskAssessments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOVendorRiskAssessmentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentOrder) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Vendor_services_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOVendorServiceOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_Viewer_signableDocument_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Viewer_signableDocuments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "organizationId", ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID) - if err != nil { - return nil, err - } - args["organizationId"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg4 - arg5, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalODocumentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg5 - return args, nil -} - -func (ec *executionContext) field_WebhookSubscription_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOWebhookEventOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEventOrderBy) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - return args, nil -} - -func (ec *executionContext) field_WebhookSubscription_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["action"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool) - if err != nil { - return nil, err - } - args["includeDeprecated"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool) - if err != nil { - return nil, err - } - args["includeDeprecated"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool) - 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]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool) - 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) _ApplicabilityStatement_id(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatement_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ApplicabilityStatement_stateOfApplicability(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatement_stateOfApplicability, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ApplicabilityStatement().StateOfApplicability(ctx, obj) - }, - nil, - ec.marshalNStateOfApplicability2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicability, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatement_stateOfApplicability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatement", - 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_StateOfApplicability_id(ctx, field) - case "name": - return ec.fieldContext_StateOfApplicability_name(ctx, field) - case "sourceId": - return ec.fieldContext_StateOfApplicability_sourceId(ctx, field) - case "snapshotId": - return ec.fieldContext_StateOfApplicability_snapshotId(ctx, field) - case "organization": - return ec.fieldContext_StateOfApplicability_organization(ctx, field) - case "owner": - return ec.fieldContext_StateOfApplicability_owner(ctx, field) - case "createdAt": - return ec.fieldContext_StateOfApplicability_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_StateOfApplicability_updatedAt(ctx, field) - case "applicabilityStatements": - return ec.fieldContext_StateOfApplicability_applicabilityStatements(ctx, field) - case "permission": - return ec.fieldContext_StateOfApplicability_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type StateOfApplicability", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ApplicabilityStatement_control(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatement_control, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ApplicabilityStatement().Control(ctx, obj) - }, - nil, - ec.marshalNControl2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControl, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatement_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatement", - 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_Control_id(ctx, field) - case "organization": - return ec.fieldContext_Control_organization(ctx, field) - case "sectionTitle": - return ec.fieldContext_Control_sectionTitle(ctx, field) - case "name": - return ec.fieldContext_Control_name(ctx, field) - case "description": - return ec.fieldContext_Control_description(ctx, field) - case "bestPractice": - return ec.fieldContext_Control_bestPractice(ctx, field) - case "regulatory": - return ec.fieldContext_Control_regulatory(ctx, field) - case "contractual": - return ec.fieldContext_Control_contractual(ctx, field) - case "riskAssessment": - return ec.fieldContext_Control_riskAssessment(ctx, field) - case "framework": - return ec.fieldContext_Control_framework(ctx, field) - case "measures": - return ec.fieldContext_Control_measures(ctx, field) - case "documents": - return ec.fieldContext_Control_documents(ctx, field) - case "audits": - return ec.fieldContext_Control_audits(ctx, field) - case "obligations": - return ec.fieldContext_Control_obligations(ctx, field) - case "snapshots": - return ec.fieldContext_Control_snapshots(ctx, field) - case "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Control_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ApplicabilityStatement_applicability(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatement_applicability, - func(ctx context.Context) (any, error) { - return obj.Applicability, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatement_applicability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatement", - 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) _ApplicabilityStatement_justification(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatement_justification, - func(ctx context.Context) (any, error) { - return obj.Justification, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatement_justification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ApplicabilityStatement_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatement_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatement_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ApplicabilityStatement_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatement_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatement_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ApplicabilityStatement_permission(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatement_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.ApplicabilityStatement().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatement_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatement", - 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_ApplicabilityStatement_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ApplicabilityStatementConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatementConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatementConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ApplicabilityStatementConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatementConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatementConnection", - 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) _ApplicabilityStatementConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatementConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatementConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNApplicabilityStatementEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatementEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatementConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatementConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ApplicabilityStatementEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ApplicabilityStatementEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ApplicabilityStatementEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ApplicabilityStatementConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatementConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatementConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatementConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatementConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ApplicabilityStatementEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatementEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatementEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatementEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatementEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ApplicabilityStatementEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ApplicabilityStatementEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ApplicabilityStatementEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNApplicabilityStatement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatement, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ApplicabilityStatementEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ApplicabilityStatementEdge", - 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_ApplicabilityStatement_id(ctx, field) - case "stateOfApplicability": - return ec.fieldContext_ApplicabilityStatement_stateOfApplicability(ctx, field) - case "control": - return ec.fieldContext_ApplicabilityStatement_control(ctx, field) - case "applicability": - return ec.fieldContext_ApplicabilityStatement_applicability(ctx, field) - case "justification": - return ec.fieldContext_ApplicabilityStatement_justification(ctx, field) - case "createdAt": - return ec.fieldContext_ApplicabilityStatement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ApplicabilityStatement_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_ApplicabilityStatement_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ApplicabilityStatement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AssessVendorPayload_vendor(ctx context.Context, field graphql.CollectedField, obj *types.AssessVendorPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AssessVendorPayload_vendor, - func(ctx context.Context) (any, error) { - return obj.Vendor, nil - }, - nil, - ec.marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AssessVendorPayload_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AssessVendorPayload", - 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_Vendor_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Vendor_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Vendor_name(ctx, field) - case "category": - return ec.fieldContext_Vendor_category(ctx, field) - case "description": - return ec.fieldContext_Vendor_description(ctx, field) - case "organization": - return ec.fieldContext_Vendor_organization(ctx, field) - case "complianceReports": - return ec.fieldContext_Vendor_complianceReports(ctx, field) - case "businessAssociateAgreement": - return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field) - case "dataPrivacyAgreement": - return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field) - case "contacts": - return ec.fieldContext_Vendor_contacts(ctx, field) - case "services": - return ec.fieldContext_Vendor_services(ctx, field) - case "riskAssessments": - return ec.fieldContext_Vendor_riskAssessments(ctx, field) - case "businessOwner": - return ec.fieldContext_Vendor_businessOwner(ctx, field) - case "securityOwner": - return ec.fieldContext_Vendor_securityOwner(ctx, field) - case "statusPageUrl": - return ec.fieldContext_Vendor_statusPageUrl(ctx, field) - case "termsOfServiceUrl": - return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field) - case "privacyPolicyUrl": - return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field) - case "serviceLevelAgreementUrl": - return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field) - case "dataProcessingAgreementUrl": - return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field) - case "businessAssociateAgreementUrl": - return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field) - case "subprocessorsListUrl": - return ec.fieldContext_Vendor_subprocessorsListUrl(ctx, field) - case "certifications": - return ec.fieldContext_Vendor_certifications(ctx, field) - case "countries": - return ec.fieldContext_Vendor_countries(ctx, field) - case "securityPageUrl": - return ec.fieldContext_Vendor_securityPageUrl(ctx, field) - case "trustPageUrl": - return ec.fieldContext_Vendor_trustPageUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Vendor_headquarterAddress(ctx, field) - case "legalName": - return ec.fieldContext_Vendor_legalName(ctx, field) - case "websiteUrl": - return ec.fieldContext_Vendor_websiteUrl(ctx, field) - case "showOnTrustCenter": - return ec.fieldContext_Vendor_showOnTrustCenter(ctx, field) - case "createdAt": - return ec.fieldContext_Vendor_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Vendor_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Vendor_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Asset_id(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Asset_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_snapshotId, - func(ctx context.Context) (any, error) { - return obj.SnapshotID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Asset_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Asset_name(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Asset_amount(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_amount, - func(ctx context.Context) (any, error) { - return obj.Amount, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_amount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - 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) _Asset_owner(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_owner, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Asset().Owner(ctx, obj) - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Asset_vendors(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_vendors, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Asset().Vendors(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorOrderBy)) - }, - nil, - ec.marshalNVendorConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_vendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_VendorConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_VendorConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_VendorConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorConnection", 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_Asset_vendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Asset_assetType(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_assetType, - func(ctx context.Context) (any, error) { - return obj.AssetType, nil - }, - nil, - ec.marshalNAssetType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_assetType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type AssetType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Asset_dataTypesStored(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_dataTypesStored, - func(ctx context.Context) (any, error) { - return obj.DataTypesStored, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_dataTypesStored(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Asset_organization(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Asset().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Asset_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Asset_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Asset_permission(ctx context.Context, field graphql.CollectedField, obj *types.Asset) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Asset_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Asset().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Asset_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Asset", - 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_Asset_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _AssetConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.AssetConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AssetConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.AssetConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AssetConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AssetConnection", - 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) _AssetConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.AssetConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AssetConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNAssetEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AssetConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AssetConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_AssetEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_AssetEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AssetEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AssetConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.AssetConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AssetConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AssetConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AssetConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AssetEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.AssetEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AssetEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AssetEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AssetEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AssetEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.AssetEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AssetEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNAsset2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAsset, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AssetEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AssetEdge", - 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_Asset_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Asset_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Asset_name(ctx, field) - case "amount": - return ec.fieldContext_Asset_amount(ctx, field) - case "owner": - return ec.fieldContext_Asset_owner(ctx, field) - case "vendors": - return ec.fieldContext_Asset_vendors(ctx, field) - case "assetType": - return ec.fieldContext_Asset_assetType(ctx, field) - case "dataTypesStored": - return ec.fieldContext_Asset_dataTypesStored(ctx, field) - case "organization": - return ec.fieldContext_Asset_organization(ctx, field) - case "createdAt": - return ec.fieldContext_Asset_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Asset_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Asset_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Asset", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_id(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_name(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Audit_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_organization(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Audit().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_framework(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_framework, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Audit().Framework(ctx, obj) - }, - nil, - ec.marshalNFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_framework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - 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_Framework_id(ctx, field) - case "name": - return ec.fieldContext_Framework_name(ctx, field) - case "description": - return ec.fieldContext_Framework_description(ctx, field) - case "organization": - return ec.fieldContext_Framework_organization(ctx, field) - case "controls": - return ec.fieldContext_Framework_controls(ctx, field) - case "lightLogoURL": - return ec.fieldContext_Framework_lightLogoURL(ctx, field) - case "darkLogoURL": - return ec.fieldContext_Framework_darkLogoURL(ctx, field) - case "createdAt": - return ec.fieldContext_Framework_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Framework_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Framework_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Framework", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_validFrom(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_validFrom, - func(ctx context.Context) (any, error) { - return obj.ValidFrom, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Audit_validFrom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_validUntil(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_validUntil, - func(ctx context.Context) (any, error) { - return obj.ValidUntil, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Audit_validUntil(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_report(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_report, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Audit().Report(ctx, obj) - }, - nil, - ec.marshalOReport2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐReport, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Audit_report(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - 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_Report_id(ctx, field) - case "objectKey": - return ec.fieldContext_Report_objectKey(ctx, field) - case "mimeType": - return ec.fieldContext_Report_mimeType(ctx, field) - case "filename": - return ec.fieldContext_Report_filename(ctx, field) - case "size": - return ec.fieldContext_Report_size(ctx, field) - case "downloadUrl": - return ec.fieldContext_Report_downloadUrl(ctx, field) - case "createdAt": - return ec.fieldContext_Report_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Report_updatedAt(ctx, field) - case "audit": - return ec.fieldContext_Report_audit(ctx, field) - case "permission": - return ec.fieldContext_Report_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Report", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_reportUrl(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_reportUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Audit().ReportURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Audit_reportUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - 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) _Audit_state(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_state, - func(ctx context.Context) (any, error) { - return obj.State, nil - }, - nil, - ec.marshalNAuditState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type AuditState does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_controls(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_controls, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Audit().Controls(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy), fc.Args["filter"].(*types.ControlFilter)) - }, - nil, - ec.marshalNControlConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ControlConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ControlConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlConnection", 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_Audit_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Audit_trustCenterVisibility(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_trustCenterVisibility, - func(ctx context.Context) (any, error) { - return obj.TrustCenterVisibility, nil - }, - nil, - ec.marshalNTrustCenterVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_trustCenterVisibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TrustCenterVisibility does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_permission(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Audit().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - 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_Audit_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _AuditConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.AuditConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AuditConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.AuditConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AuditConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditConnection", - 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) _AuditConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.AuditConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AuditConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNAuditEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AuditConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_AuditEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_AuditEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.AuditConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AuditConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AuditConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.AuditEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AuditEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AuditEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.AuditEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AuditEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AuditEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditEdge", - 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_Audit_id(ctx, field) - case "name": - return ec.fieldContext_Audit_name(ctx, field) - case "organization": - return ec.fieldContext_Audit_organization(ctx, field) - case "framework": - return ec.fieldContext_Audit_framework(ctx, field) - case "validFrom": - return ec.fieldContext_Audit_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_Audit_validUntil(ctx, field) - case "report": - return ec.fieldContext_Audit_report(ctx, field) - case "reportUrl": - return ec.fieldContext_Audit_reportUrl(ctx, field) - case "state": - return ec.fieldContext_Audit_state(ctx, field) - case "controls": - return ec.fieldContext_Audit_controls(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Audit_trustCenterVisibility(ctx, field) - case "createdAt": - return ec.fieldContext_Audit_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Audit_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Audit_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _BulkDeleteDocumentsPayload_deletedDocumentIds(ctx context.Context, field graphql.CollectedField, obj *types.BulkDeleteDocumentsPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_BulkDeleteDocumentsPayload_deletedDocumentIds, - func(ctx context.Context) (any, error) { - return obj.DeletedDocumentIds, nil - }, - nil, - ec.marshalNID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_BulkDeleteDocumentsPayload_deletedDocumentIds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "BulkDeleteDocumentsPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _BulkExportDocumentsPayload_exportJobId(ctx context.Context, field graphql.CollectedField, obj *types.BulkExportDocumentsPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_BulkExportDocumentsPayload_exportJobId, - func(ctx context.Context) (any, error) { - return obj.ExportJobID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_BulkExportDocumentsPayload_exportJobId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "BulkExportDocumentsPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _BulkPublishDocumentVersionsPayload_documentVersionEdges(ctx context.Context, field graphql.CollectedField, obj *types.BulkPublishDocumentVersionsPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_BulkPublishDocumentVersionsPayload_documentVersionEdges, - func(ctx context.Context) (any, error) { - return obj.DocumentVersionEdges, nil - }, - nil, - ec.marshalNDocumentVersionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_BulkPublishDocumentVersionsPayload_documentVersionEdges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "BulkPublishDocumentVersionsPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentVersionEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentVersionEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _BulkPublishDocumentVersionsPayload_documentEdges(ctx context.Context, field graphql.CollectedField, obj *types.BulkPublishDocumentVersionsPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_BulkPublishDocumentVersionsPayload_documentEdges, - func(ctx context.Context) (any, error) { - return obj.DocumentEdges, nil - }, - nil, - ec.marshalNDocumentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_BulkPublishDocumentVersionsPayload_documentEdges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "BulkPublishDocumentVersionsPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _BulkRequestSignaturesPayload_documentVersionSignatureEdges(ctx context.Context, field graphql.CollectedField, obj *types.BulkRequestSignaturesPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_BulkRequestSignaturesPayload_documentVersionSignatureEdges, - func(ctx context.Context) (any, error) { - return obj.DocumentVersionSignatureEdges, nil - }, - nil, - ec.marshalNDocumentVersionSignatureEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_BulkRequestSignaturesPayload_documentVersionSignatureEdges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "BulkRequestSignaturesPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentVersionSignatureEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentVersionSignatureEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignatureEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CancelSignatureRequestPayload_deletedDocumentVersionSignatureId(ctx context.Context, field graphql.CollectedField, obj *types.CancelSignatureRequestPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CancelSignatureRequestPayload_deletedDocumentVersionSignatureId, - func(ctx context.Context) (any, error) { - return obj.DeletedDocumentVersionSignatureID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CancelSignatureRequestPayload_deletedDocumentVersionSignatureId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CancelSignatureRequestPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURL_id(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURL_name(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURL_url(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_url, - func(ctx context.Context) (any, error) { - return obj.URL, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURL_rank(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_rank, - func(ctx context.Context) (any, error) { - return obj.Rank, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_rank(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - 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) _ComplianceExternalURL_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURL_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURL_permission(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.ComplianceExternalURL().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - 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_ComplianceExternalURL_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURLConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURLConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURLConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNComplianceExternalURLEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURLEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURLConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURLConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ComplianceExternalURLEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ComplianceExternalURLEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceExternalURLEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURLConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURLConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURLConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURLConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURLConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURLEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURLEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURLEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURLEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURLEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURLEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURLEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURLEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNComplianceExternalURL2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURL, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURLEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURLEdge", - 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_ComplianceExternalURL_id(ctx, field) - case "name": - return ec.fieldContext_ComplianceExternalURL_name(ctx, field) - case "url": - return ec.fieldContext_ComplianceExternalURL_url(ctx, field) - case "rank": - return ec.fieldContext_ComplianceExternalURL_rank(ctx, field) - case "createdAt": - return ec.fieldContext_ComplianceExternalURL_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ComplianceExternalURL_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_ComplianceExternalURL_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceExternalURL", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFramework_id(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFramework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFramework_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFramework_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFramework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFramework_framework(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFramework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFramework_framework, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ComplianceFramework().Framework(ctx, obj) - }, - nil, - ec.marshalNFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFramework_framework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFramework", - 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_Framework_id(ctx, field) - case "name": - return ec.fieldContext_Framework_name(ctx, field) - case "description": - return ec.fieldContext_Framework_description(ctx, field) - case "organization": - return ec.fieldContext_Framework_organization(ctx, field) - case "controls": - return ec.fieldContext_Framework_controls(ctx, field) - case "lightLogoURL": - return ec.fieldContext_Framework_lightLogoURL(ctx, field) - case "darkLogoURL": - return ec.fieldContext_Framework_darkLogoURL(ctx, field) - case "createdAt": - return ec.fieldContext_Framework_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Framework_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Framework_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Framework", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFramework_rank(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFramework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFramework_rank, - func(ctx context.Context) (any, error) { - return obj.Rank, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFramework_rank(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFramework", - 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) _ComplianceFramework_visibility(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFramework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFramework_visibility, - func(ctx context.Context) (any, error) { - return obj.Visibility, nil - }, - nil, - ec.marshalNComplianceFrameworkVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkVisibility, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFramework_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFramework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ComplianceFrameworkVisibility does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFramework_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFramework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFramework_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFramework_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFramework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFramework_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFramework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFramework_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFramework_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFramework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFrameworkConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFrameworkConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFrameworkConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNComplianceFrameworkEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFrameworkEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFrameworkConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFrameworkConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ComplianceFrameworkEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ComplianceFrameworkEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceFrameworkEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFrameworkConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFrameworkConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFrameworkConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFrameworkConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFrameworkConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFrameworkEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFrameworkEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFrameworkEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFrameworkEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFrameworkEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFrameworkEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFrameworkEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFrameworkEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNComplianceFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFramework, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFrameworkEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFrameworkEdge", - 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_ComplianceFramework_id(ctx, field) - case "framework": - return ec.fieldContext_ComplianceFramework_framework(ctx, field) - case "rank": - return ec.fieldContext_ComplianceFramework_rank(ctx, field) - case "visibility": - return ec.fieldContext_ComplianceFramework_visibility(ctx, field) - case "createdAt": - return ec.fieldContext_ComplianceFramework_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ComplianceFramework_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceFramework", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_id(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_snapshotId, - func(ctx context.Context) (any, error) { - return obj.SnapshotID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_sourceId(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_sourceId, - func(ctx context.Context) (any, error) { - return obj.SourceID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_sourceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_organization(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ContinualImprovement().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_referenceId(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_referenceId, - func(ctx context.Context) (any, error) { - return obj.ReferenceID, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_referenceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_description(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_source(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_source, - func(ctx context.Context) (any, error) { - return obj.Source, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_owner(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_owner, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ContinualImprovement().Owner(ctx, obj) - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_targetDate(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_targetDate, - func(ctx context.Context) (any, error) { - return obj.TargetDate, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_targetDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_status(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNContinualImprovementStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ContinualImprovementStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_priority(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_priority, - func(ctx context.Context) (any, error) { - return obj.Priority, nil - }, - nil, - ec.marshalNContinualImprovementPriority2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ContinualImprovementPriority does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovement_permission(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovement_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.ContinualImprovement().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovement_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovement", - 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_ContinualImprovement_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovementConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovementConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ContinualImprovementConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovementConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovementConnection", - 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) _ContinualImprovementConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovementConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNContinualImprovementEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovementConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovementConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ContinualImprovementEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ContinualImprovementEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContinualImprovementEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovementConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovementConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovementConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovementConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovementEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovementEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovementEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovementEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContinualImprovementEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ContinualImprovementEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ContinualImprovementEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNContinualImprovement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovement, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ContinualImprovementEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContinualImprovementEdge", - 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_ContinualImprovement_id(ctx, field) - case "snapshotId": - return ec.fieldContext_ContinualImprovement_snapshotId(ctx, field) - case "sourceId": - return ec.fieldContext_ContinualImprovement_sourceId(ctx, field) - case "organization": - return ec.fieldContext_ContinualImprovement_organization(ctx, field) - case "referenceId": - return ec.fieldContext_ContinualImprovement_referenceId(ctx, field) - case "description": - return ec.fieldContext_ContinualImprovement_description(ctx, field) - case "source": - return ec.fieldContext_ContinualImprovement_source(ctx, field) - case "owner": - return ec.fieldContext_ContinualImprovement_owner(ctx, field) - case "targetDate": - return ec.fieldContext_ContinualImprovement_targetDate(ctx, field) - case "status": - return ec.fieldContext_ContinualImprovement_status(ctx, field) - case "priority": - return ec.fieldContext_ContinualImprovement_priority(ctx, field) - case "createdAt": - return ec.fieldContext_ContinualImprovement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ContinualImprovement_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_ContinualImprovement_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContinualImprovement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_id(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_organization(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Control().Organization(ctx, obj) - }, - nil, - ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Control_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_sectionTitle(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_sectionTitle, - func(ctx context.Context) (any, error) { - return obj.SectionTitle, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_sectionTitle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_name(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_description(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Control_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_bestPractice(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_bestPractice, - func(ctx context.Context) (any, error) { - return obj.BestPractice, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_bestPractice(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - 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) _Control_regulatory(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_regulatory, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Control().Regulatory(ctx, obj) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_regulatory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - 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) _Control_contractual(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_contractual, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Control().Contractual(ctx, obj) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_contractual(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - 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) _Control_riskAssessment(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_riskAssessment, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Control().RiskAssessment(ctx, obj) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_riskAssessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - 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) _Control_framework(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_framework, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Control().Framework(ctx, obj) - }, - nil, - ec.marshalNFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_framework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - 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_Framework_id(ctx, field) - case "name": - return ec.fieldContext_Framework_name(ctx, field) - case "description": - return ec.fieldContext_Framework_description(ctx, field) - case "organization": - return ec.fieldContext_Framework_organization(ctx, field) - case "controls": - return ec.fieldContext_Framework_controls(ctx, field) - case "lightLogoURL": - return ec.fieldContext_Framework_lightLogoURL(ctx, field) - case "darkLogoURL": - return ec.fieldContext_Framework_darkLogoURL(ctx, field) - case "createdAt": - return ec.fieldContext_Framework_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Framework_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Framework_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Framework", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_measures(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_measures, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Control().Measures(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.MeasureOrderBy), fc.Args["filter"].(*types.MeasureFilter)) - }, - nil, - ec.marshalNMeasureConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_measures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_MeasureConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_MeasureConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_MeasureConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeasureConnection", 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_Control_measures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Control_documents(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_documents, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Control().Documents(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentOrderBy), fc.Args["filter"].(*types.DocumentFilter)) - }, - nil, - ec.marshalNDocumentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_DocumentConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_DocumentConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentConnection", 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_Control_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Control_audits(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_audits, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Control().Audits(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.AuditOrderBy)) - }, - nil, - ec.marshalNAuditConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_audits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_AuditConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_AuditConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_AuditConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditConnection", 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_Control_audits_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Control_obligations(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_obligations, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Control().Obligations(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ObligationOrderBy), fc.Args["filter"].(*types.ObligationFilter)) - }, - nil, - ec.marshalNObligationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_obligations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ObligationConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ObligationConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ObligationConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ObligationConnection", 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_Control_obligations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Control_snapshots(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_snapshots, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Control().Snapshots(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.SnapshotOrderBy)) - }, - nil, - ec.marshalNSnapshotConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_snapshots(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_SnapshotConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_SnapshotConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SnapshotConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SnapshotConnection", 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_Control_snapshots_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Control_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_permission(ctx context.Context, field graphql.CollectedField, obj *types.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Control_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Control().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Control_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - 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_Control_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ControlConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ControlConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ControlConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ControlConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ControlConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlConnection", - 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) _ControlConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ControlConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ControlConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNControlEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ControlConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ControlEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ControlEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ControlConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ControlConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ControlConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ControlEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ControlEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ControlEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ControlEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ControlEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNControl2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControl, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ControlEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlEdge", - 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_Control_id(ctx, field) - case "organization": - return ec.fieldContext_Control_organization(ctx, field) - case "sectionTitle": - return ec.fieldContext_Control_sectionTitle(ctx, field) - case "name": - return ec.fieldContext_Control_name(ctx, field) - case "description": - return ec.fieldContext_Control_description(ctx, field) - case "bestPractice": - return ec.fieldContext_Control_bestPractice(ctx, field) - case "regulatory": - return ec.fieldContext_Control_regulatory(ctx, field) - case "contractual": - return ec.fieldContext_Control_contractual(ctx, field) - case "riskAssessment": - return ec.fieldContext_Control_riskAssessment(ctx, field) - case "framework": - return ec.fieldContext_Control_framework(ctx, field) - case "measures": - return ec.fieldContext_Control_measures(ctx, field) - case "documents": - return ec.fieldContext_Control_documents(ctx, field) - case "audits": - return ec.fieldContext_Control_audits(ctx, field) - case "obligations": - return ec.fieldContext_Control_obligations(ctx, field) - case "snapshots": - return ec.fieldContext_Control_snapshots(ctx, field) - case "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Control_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateApplicabilityStatementPayload_applicabilityStatementEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateApplicabilityStatementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateApplicabilityStatementPayload_applicabilityStatementEdge, - func(ctx context.Context) (any, error) { - return obj.ApplicabilityStatementEdge, nil - }, - nil, - ec.marshalNApplicabilityStatementEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatementEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateApplicabilityStatementPayload_applicabilityStatementEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateApplicabilityStatementPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ApplicabilityStatementEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ApplicabilityStatementEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ApplicabilityStatementEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateAssetPayload_assetEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateAssetPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateAssetPayload_assetEdge, - func(ctx context.Context) (any, error) { - return obj.AssetEdge, nil - }, - nil, - ec.marshalNAssetEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateAssetPayload_assetEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateAssetPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_AssetEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_AssetEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AssetEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateAuditPayload_auditEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateAuditPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateAuditPayload_auditEdge, - func(ctx context.Context) (any, error) { - return obj.AuditEdge, nil - }, - nil, - ec.marshalNAuditEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateAuditPayload_auditEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateAuditPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_AuditEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_AuditEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateComplianceExternalURLPayload_complianceExternalUrlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateComplianceExternalURLPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateComplianceExternalURLPayload_complianceExternalUrlEdge, - func(ctx context.Context) (any, error) { - return obj.ComplianceExternalURLEdge, nil - }, - nil, - ec.marshalNComplianceExternalURLEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURLEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateComplianceExternalURLPayload_complianceExternalUrlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateComplianceExternalURLPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ComplianceExternalURLEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ComplianceExternalURLEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceExternalURLEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateComplianceFrameworkPayload_complianceFrameworkEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateComplianceFrameworkPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateComplianceFrameworkPayload_complianceFrameworkEdge, - func(ctx context.Context) (any, error) { - return obj.ComplianceFrameworkEdge, nil - }, - nil, - ec.marshalNComplianceFrameworkEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFrameworkEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateComplianceFrameworkPayload_complianceFrameworkEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateComplianceFrameworkPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ComplianceFrameworkEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ComplianceFrameworkEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceFrameworkEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateContinualImprovementPayload_continualImprovementEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateContinualImprovementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateContinualImprovementPayload_continualImprovementEdge, - func(ctx context.Context) (any, error) { - return obj.ContinualImprovementEdge, nil - }, - nil, - ec.marshalNContinualImprovementEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateContinualImprovementPayload_continualImprovementEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateContinualImprovementPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ContinualImprovementEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ContinualImprovementEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContinualImprovementEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlAuditMappingPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlAuditMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlAuditMappingPayload_controlEdge, - func(ctx context.Context) (any, error) { - return obj.ControlEdge, nil - }, - nil, - ec.marshalNControlEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlAuditMappingPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlAuditMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ControlEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ControlEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlAuditMappingPayload_auditEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlAuditMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlAuditMappingPayload_auditEdge, - func(ctx context.Context) (any, error) { - return obj.AuditEdge, nil - }, - nil, - ec.marshalNAuditEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlAuditMappingPayload_auditEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlAuditMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_AuditEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_AuditEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlDocumentMappingPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlDocumentMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlDocumentMappingPayload_controlEdge, - func(ctx context.Context) (any, error) { - return obj.ControlEdge, nil - }, - nil, - ec.marshalNControlEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlDocumentMappingPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlDocumentMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ControlEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ControlEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlDocumentMappingPayload_documentEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlDocumentMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlDocumentMappingPayload_documentEdge, - func(ctx context.Context) (any, error) { - return obj.DocumentEdge, nil - }, - nil, - ec.marshalNDocumentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlDocumentMappingPayload_documentEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlDocumentMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlMeasureMappingPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlMeasureMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlMeasureMappingPayload_controlEdge, - func(ctx context.Context) (any, error) { - return obj.ControlEdge, nil - }, - nil, - ec.marshalNControlEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlMeasureMappingPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlMeasureMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ControlEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ControlEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlMeasureMappingPayload_measureEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlMeasureMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlMeasureMappingPayload_measureEdge, - func(ctx context.Context) (any, error) { - return obj.MeasureEdge, nil - }, - nil, - ec.marshalNMeasureEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlMeasureMappingPayload_measureEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlMeasureMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MeasureEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MeasureEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeasureEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlObligationMappingPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlObligationMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlObligationMappingPayload_controlEdge, - func(ctx context.Context) (any, error) { - return obj.ControlEdge, nil - }, - nil, - ec.marshalNControlEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlObligationMappingPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlObligationMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ControlEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ControlEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlObligationMappingPayload_obligationEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlObligationMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlObligationMappingPayload_obligationEdge, - func(ctx context.Context) (any, error) { - return obj.ObligationEdge, nil - }, - nil, - ec.marshalNObligationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlObligationMappingPayload_obligationEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlObligationMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ObligationEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ObligationEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ObligationEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlPayload_controlEdge, - func(ctx context.Context) (any, error) { - return obj.ControlEdge, nil - }, - nil, - ec.marshalNControlEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ControlEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ControlEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlSnapshotMappingPayload_controlEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlSnapshotMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlSnapshotMappingPayload_controlEdge, - func(ctx context.Context) (any, error) { - return obj.ControlEdge, nil - }, - nil, - ec.marshalNControlEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlSnapshotMappingPayload_controlEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlSnapshotMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ControlEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ControlEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateControlSnapshotMappingPayload_snapshotEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateControlSnapshotMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateControlSnapshotMappingPayload_snapshotEdge, - func(ctx context.Context) (any, error) { - return obj.SnapshotEdge, nil - }, - nil, - ec.marshalNSnapshotEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateControlSnapshotMappingPayload_snapshotEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateControlSnapshotMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_SnapshotEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_SnapshotEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SnapshotEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateCustomDomainPayload_customDomain(ctx context.Context, field graphql.CollectedField, obj *types.CreateCustomDomainPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateCustomDomainPayload_customDomain, - func(ctx context.Context) (any, error) { - return obj.CustomDomain, nil - }, - nil, - ec.marshalNCustomDomain2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCustomDomain, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateCustomDomainPayload_customDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateCustomDomainPayload", - 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_CustomDomain_id(ctx, field) - case "organization": - return ec.fieldContext_CustomDomain_organization(ctx, field) - case "domain": - return ec.fieldContext_CustomDomain_domain(ctx, field) - case "sslStatus": - return ec.fieldContext_CustomDomain_sslStatus(ctx, field) - case "sslExpiresAt": - return ec.fieldContext_CustomDomain_sslExpiresAt(ctx, field) - case "dnsRecords": - return ec.fieldContext_CustomDomain_dnsRecords(ctx, field) - case "createdAt": - return ec.fieldContext_CustomDomain_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_CustomDomain_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_CustomDomain_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CustomDomain", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateDataProtectionImpactAssessmentPayload_dataProtectionImpactAssessment(ctx context.Context, field graphql.CollectedField, obj *types.CreateDataProtectionImpactAssessmentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateDataProtectionImpactAssessmentPayload_dataProtectionImpactAssessment, - func(ctx context.Context) (any, error) { - return obj.DataProtectionImpactAssessment, nil - }, - nil, - ec.marshalNDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessment, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateDataProtectionImpactAssessmentPayload_dataProtectionImpactAssessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateDataProtectionImpactAssessmentPayload", - 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_DataProtectionImpactAssessment_id(ctx, field) - case "processingActivity": - return ec.fieldContext_DataProtectionImpactAssessment_processingActivity(ctx, field) - case "organization": - return ec.fieldContext_DataProtectionImpactAssessment_organization(ctx, field) - case "description": - return ec.fieldContext_DataProtectionImpactAssessment_description(ctx, field) - case "necessityAndProportionality": - return ec.fieldContext_DataProtectionImpactAssessment_necessityAndProportionality(ctx, field) - case "potentialRisk": - return ec.fieldContext_DataProtectionImpactAssessment_potentialRisk(ctx, field) - case "mitigations": - return ec.fieldContext_DataProtectionImpactAssessment_mitigations(ctx, field) - case "residualRisk": - return ec.fieldContext_DataProtectionImpactAssessment_residualRisk(ctx, field) - case "createdAt": - return ec.fieldContext_DataProtectionImpactAssessment_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DataProtectionImpactAssessment_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_DataProtectionImpactAssessment_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DataProtectionImpactAssessment", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateDatumPayload_datumEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateDatumPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateDatumPayload_datumEdge, - func(ctx context.Context) (any, error) { - return obj.DatumEdge, nil - }, - nil, - ec.marshalNDatumEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateDatumPayload_datumEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateDatumPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DatumEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DatumEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DatumEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateDocumentPayload_documentEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateDocumentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateDocumentPayload_documentEdge, - func(ctx context.Context) (any, error) { - return obj.DocumentEdge, nil - }, - nil, - ec.marshalNDocumentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateDocumentPayload_documentEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateDocumentPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateDocumentPayload_documentVersionEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateDocumentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateDocumentPayload_documentVersionEdge, - func(ctx context.Context) (any, error) { - return obj.DocumentVersionEdge, nil - }, - nil, - ec.marshalNDocumentVersionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateDocumentPayload_documentVersionEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateDocumentPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentVersionEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentVersionEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateDraftDocumentVersionPayload_documentVersionEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateDraftDocumentVersionPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateDraftDocumentVersionPayload_documentVersionEdge, - func(ctx context.Context) (any, error) { - return obj.DocumentVersionEdge, nil - }, - nil, - ec.marshalNDocumentVersionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateDraftDocumentVersionPayload_documentVersionEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateDraftDocumentVersionPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentVersionEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentVersionEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateFrameworkPayload_frameworkEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateFrameworkPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateFrameworkPayload_frameworkEdge, - func(ctx context.Context) (any, error) { - return obj.FrameworkEdge, nil - }, - nil, - ec.marshalNFrameworkEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateFrameworkPayload_frameworkEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateFrameworkPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_FrameworkEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_FrameworkEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FrameworkEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateMailingListSubscriberPayload_mailingListSubscriberEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateMailingListSubscriberPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateMailingListSubscriberPayload_mailingListSubscriberEdge, - func(ctx context.Context) (any, error) { - return obj.MailingListSubscriberEdge, nil - }, - nil, - ec.marshalNMailingListSubscriberEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListSubscriberEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateMailingListSubscriberPayload_mailingListSubscriberEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateMailingListSubscriberPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MailingListSubscriberEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MailingListSubscriberEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListSubscriberEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateMailingListUpdatePayload_mailingListUpdate(ctx context.Context, field graphql.CollectedField, obj *types.CreateMailingListUpdatePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateMailingListUpdatePayload_mailingListUpdate, - func(ctx context.Context) (any, error) { - return obj.MailingListUpdate, nil - }, - nil, - ec.marshalNMailingListUpdate2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdate, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateMailingListUpdatePayload_mailingListUpdate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateMailingListUpdatePayload", - 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_MailingListUpdate_id(ctx, field) - case "title": - return ec.fieldContext_MailingListUpdate_title(ctx, field) - case "body": - return ec.fieldContext_MailingListUpdate_body(ctx, field) - case "status": - return ec.fieldContext_MailingListUpdate_status(ctx, field) - case "createdAt": - return ec.fieldContext_MailingListUpdate_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_MailingListUpdate_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListUpdate", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateMeasurePayload_measureEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateMeasurePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateMeasurePayload_measureEdge, - func(ctx context.Context) (any, error) { - return obj.MeasureEdge, nil - }, - nil, - ec.marshalNMeasureEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateMeasurePayload_measureEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateMeasurePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MeasureEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MeasureEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeasureEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateMeetingPayload_meetingEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateMeetingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateMeetingPayload_meetingEdge, - func(ctx context.Context) (any, error) { - return obj.MeetingEdge, nil - }, - nil, - ec.marshalNMeetingEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeetingEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateMeetingPayload_meetingEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateMeetingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MeetingEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MeetingEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeetingEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateNonconformityPayload_nonconformityEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateNonconformityPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateNonconformityPayload_nonconformityEdge, - func(ctx context.Context) (any, error) { - return obj.NonconformityEdge, nil - }, - nil, - ec.marshalNNonconformityEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateNonconformityPayload_nonconformityEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateNonconformityPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_NonconformityEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_NonconformityEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NonconformityEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateObligationPayload_obligationEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateObligationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateObligationPayload_obligationEdge, - func(ctx context.Context) (any, error) { - return obj.ObligationEdge, nil - }, - nil, - ec.marshalNObligationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateObligationPayload_obligationEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateObligationPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ObligationEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ObligationEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ObligationEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateProcessingActivityPayload_processingActivityEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateProcessingActivityPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateProcessingActivityPayload_processingActivityEdge, - func(ctx context.Context) (any, error) { - return obj.ProcessingActivityEdge, nil - }, - nil, - ec.marshalNProcessingActivityEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateProcessingActivityPayload_processingActivityEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateProcessingActivityPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ProcessingActivityEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ProcessingActivityEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcessingActivityEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateRightsRequestPayload_rightsRequestEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRightsRequestPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateRightsRequestPayload_rightsRequestEdge, - func(ctx context.Context) (any, error) { - return obj.RightsRequestEdge, nil - }, - nil, - ec.marshalNRightsRequestEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequestEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateRightsRequestPayload_rightsRequestEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateRightsRequestPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_RightsRequestEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_RightsRequestEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RightsRequestEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateRiskDocumentMappingPayload_riskEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskDocumentMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateRiskDocumentMappingPayload_riskEdge, - func(ctx context.Context) (any, error) { - return obj.RiskEdge, nil - }, - nil, - ec.marshalNRiskEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateRiskDocumentMappingPayload_riskEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateRiskDocumentMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_RiskEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_RiskEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RiskEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateRiskDocumentMappingPayload_documentEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskDocumentMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateRiskDocumentMappingPayload_documentEdge, - func(ctx context.Context) (any, error) { - return obj.DocumentEdge, nil - }, - nil, - ec.marshalNDocumentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateRiskDocumentMappingPayload_documentEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateRiskDocumentMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateRiskMeasureMappingPayload_riskEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskMeasureMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateRiskMeasureMappingPayload_riskEdge, - func(ctx context.Context) (any, error) { - return obj.RiskEdge, nil - }, - nil, - ec.marshalNRiskEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateRiskMeasureMappingPayload_riskEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateRiskMeasureMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_RiskEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_RiskEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RiskEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateRiskMeasureMappingPayload_measureEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskMeasureMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateRiskMeasureMappingPayload_measureEdge, - func(ctx context.Context) (any, error) { - return obj.MeasureEdge, nil - }, - nil, - ec.marshalNMeasureEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateRiskMeasureMappingPayload_measureEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateRiskMeasureMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MeasureEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MeasureEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeasureEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateRiskObligationMappingPayload_riskEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskObligationMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateRiskObligationMappingPayload_riskEdge, - func(ctx context.Context) (any, error) { - return obj.RiskEdge, nil - }, - nil, - ec.marshalNRiskEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateRiskObligationMappingPayload_riskEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateRiskObligationMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_RiskEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_RiskEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RiskEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateRiskObligationMappingPayload_obligationEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskObligationMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateRiskObligationMappingPayload_obligationEdge, - func(ctx context.Context) (any, error) { - return obj.ObligationEdge, nil - }, - nil, - ec.marshalNObligationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateRiskObligationMappingPayload_obligationEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateRiskObligationMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ObligationEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ObligationEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ObligationEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateRiskPayload_riskEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateRiskPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateRiskPayload_riskEdge, - func(ctx context.Context) (any, error) { - return obj.RiskEdge, nil - }, - nil, - ec.marshalNRiskEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateRiskPayload_riskEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateRiskPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_RiskEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_RiskEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RiskEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateSnapshotPayload_snapshotEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateSnapshotPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateSnapshotPayload_snapshotEdge, - func(ctx context.Context) (any, error) { - return obj.SnapshotEdge, nil - }, - nil, - ec.marshalNSnapshotEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateSnapshotPayload_snapshotEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateSnapshotPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_SnapshotEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_SnapshotEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SnapshotEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateStateOfApplicabilityPayload_stateOfApplicabilityEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateStateOfApplicabilityPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateStateOfApplicabilityPayload_stateOfApplicabilityEdge, - func(ctx context.Context) (any, error) { - return obj.StateOfApplicabilityEdge, nil - }, - nil, - ec.marshalNStateOfApplicabilityEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateStateOfApplicabilityPayload_stateOfApplicabilityEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateStateOfApplicabilityPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_StateOfApplicabilityEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_StateOfApplicabilityEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type StateOfApplicabilityEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateTaskPayload_taskEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateTaskPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateTaskPayload_taskEdge, - func(ctx context.Context) (any, error) { - return obj.TaskEdge, nil - }, - nil, - ec.marshalNTaskEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateTaskPayload_taskEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateTaskPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TaskEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TaskEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaskEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateTransferImpactAssessmentPayload_transferImpactAssessment(ctx context.Context, field graphql.CollectedField, obj *types.CreateTransferImpactAssessmentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateTransferImpactAssessmentPayload_transferImpactAssessment, - func(ctx context.Context) (any, error) { - return obj.TransferImpactAssessment, nil - }, - nil, - ec.marshalNTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessment, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateTransferImpactAssessmentPayload_transferImpactAssessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateTransferImpactAssessmentPayload", - 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_TransferImpactAssessment_id(ctx, field) - case "processingActivity": - return ec.fieldContext_TransferImpactAssessment_processingActivity(ctx, field) - case "organization": - return ec.fieldContext_TransferImpactAssessment_organization(ctx, field) - case "dataSubjects": - return ec.fieldContext_TransferImpactAssessment_dataSubjects(ctx, field) - case "legalMechanism": - return ec.fieldContext_TransferImpactAssessment_legalMechanism(ctx, field) - case "transfer": - return ec.fieldContext_TransferImpactAssessment_transfer(ctx, field) - case "localLawRisk": - return ec.fieldContext_TransferImpactAssessment_localLawRisk(ctx, field) - case "supplementaryMeasures": - return ec.fieldContext_TransferImpactAssessment_supplementaryMeasures(ctx, field) - case "createdAt": - return ec.fieldContext_TransferImpactAssessment_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TransferImpactAssessment_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_TransferImpactAssessment_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TransferImpactAssessment", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateTrustCenterFilePayload_trustCenterFileEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateTrustCenterFilePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateTrustCenterFilePayload_trustCenterFileEdge, - func(ctx context.Context) (any, error) { - return obj.TrustCenterFileEdge, nil - }, - nil, - ec.marshalNTrustCenterFileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFileEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateTrustCenterFilePayload_trustCenterFileEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateTrustCenterFilePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TrustCenterFileEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TrustCenterFileEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFileEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateTrustCenterReferencePayload_trustCenterReferenceEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateTrustCenterReferencePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateTrustCenterReferencePayload_trustCenterReferenceEdge, - func(ctx context.Context) (any, error) { - return obj.TrustCenterReferenceEdge, nil - }, - nil, - ec.marshalNTrustCenterReferenceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReferenceEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateTrustCenterReferencePayload_trustCenterReferenceEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateTrustCenterReferencePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TrustCenterReferenceEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TrustCenterReferenceEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterReferenceEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateVendorContactPayload_vendorContactEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateVendorContactPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateVendorContactPayload_vendorContactEdge, - func(ctx context.Context) (any, error) { - return obj.VendorContactEdge, nil - }, - nil, - ec.marshalNVendorContactEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateVendorContactPayload_vendorContactEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateVendorContactPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorContactEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorContactEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorContactEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateVendorPayload_vendorEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateVendorPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateVendorPayload_vendorEdge, - func(ctx context.Context) (any, error) { - return obj.VendorEdge, nil - }, - nil, - ec.marshalNVendorEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateVendorPayload_vendorEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateVendorPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateVendorRiskAssessmentPayload_vendorRiskAssessmentEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateVendorRiskAssessmentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateVendorRiskAssessmentPayload_vendorRiskAssessmentEdge, - func(ctx context.Context) (any, error) { - return obj.VendorRiskAssessmentEdge, nil - }, - nil, - ec.marshalNVendorRiskAssessmentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateVendorRiskAssessmentPayload_vendorRiskAssessmentEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateVendorRiskAssessmentPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorRiskAssessmentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorRiskAssessmentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorRiskAssessmentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateVendorServicePayload_vendorServiceEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateVendorServicePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateVendorServicePayload_vendorServiceEdge, - func(ctx context.Context) (any, error) { - return obj.VendorServiceEdge, nil - }, - nil, - ec.marshalNVendorServiceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateVendorServicePayload_vendorServiceEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateVendorServicePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorServiceEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorServiceEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorServiceEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CreateWebhookSubscriptionPayload_webhookSubscriptionEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateWebhookSubscriptionPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CreateWebhookSubscriptionPayload_webhookSubscriptionEdge, - func(ctx context.Context) (any, error) { - return obj.WebhookSubscriptionEdge, nil - }, - nil, - ec.marshalNWebhookSubscriptionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscriptionEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CreateWebhookSubscriptionPayload_webhookSubscriptionEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CreateWebhookSubscriptionPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_WebhookSubscriptionEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_WebhookSubscriptionEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type WebhookSubscriptionEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CustomDomain_id(ctx context.Context, field graphql.CollectedField, obj *types.CustomDomain) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CustomDomain_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CustomDomain_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CustomDomain", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CustomDomain_organization(ctx context.Context, field graphql.CollectedField, obj *types.CustomDomain) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CustomDomain_organization, - func(ctx context.Context) (any, error) { - return obj.Organization, nil - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CustomDomain_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CustomDomain", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CustomDomain_domain(ctx context.Context, field graphql.CollectedField, obj *types.CustomDomain) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CustomDomain_domain, - func(ctx context.Context) (any, error) { - return obj.Domain, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CustomDomain_domain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CustomDomain", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CustomDomain_sslStatus(ctx context.Context, field graphql.CollectedField, obj *types.CustomDomain) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CustomDomain_sslStatus, - func(ctx context.Context) (any, error) { - return obj.SslStatus, nil - }, - nil, - ec.marshalNSSLStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCustomDomainSSLStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CustomDomain_sslStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CustomDomain", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SSLStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CustomDomain_sslExpiresAt(ctx context.Context, field graphql.CollectedField, obj *types.CustomDomain) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CustomDomain_sslExpiresAt, - func(ctx context.Context) (any, error) { - return obj.SslExpiresAt, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_CustomDomain_sslExpiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CustomDomain", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CustomDomain_dnsRecords(ctx context.Context, field graphql.CollectedField, obj *types.CustomDomain) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CustomDomain_dnsRecords, - func(ctx context.Context) (any, error) { - return obj.DNSRecords, nil - }, - nil, - ec.marshalNDNSRecordInstruction2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDNSRecordInstructionᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CustomDomain_dnsRecords(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CustomDomain", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_DNSRecordInstruction_type(ctx, field) - case "name": - return ec.fieldContext_DNSRecordInstruction_name(ctx, field) - case "value": - return ec.fieldContext_DNSRecordInstruction_value(ctx, field) - case "ttl": - return ec.fieldContext_DNSRecordInstruction_ttl(ctx, field) - case "purpose": - return ec.fieldContext_DNSRecordInstruction_purpose(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DNSRecordInstruction", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _CustomDomain_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.CustomDomain) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CustomDomain_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CustomDomain_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CustomDomain", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CustomDomain_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.CustomDomain) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CustomDomain_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CustomDomain_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CustomDomain", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _CustomDomain_permission(ctx context.Context, field graphql.CollectedField, obj *types.CustomDomain) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_CustomDomain_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.CustomDomain().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_CustomDomain_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CustomDomain", - 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_CustomDomain_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _DNSRecordInstruction_type(ctx context.Context, field graphql.CollectedField, obj *types.DNSRecordInstruction) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DNSRecordInstruction_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DNSRecordInstruction_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DNSRecordInstruction", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DNSRecordInstruction_name(ctx context.Context, field graphql.CollectedField, obj *types.DNSRecordInstruction) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DNSRecordInstruction_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DNSRecordInstruction_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DNSRecordInstruction", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DNSRecordInstruction_value(ctx context.Context, field graphql.CollectedField, obj *types.DNSRecordInstruction) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DNSRecordInstruction_value, - func(ctx context.Context) (any, error) { - return obj.Value, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DNSRecordInstruction_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DNSRecordInstruction", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DNSRecordInstruction_ttl(ctx context.Context, field graphql.CollectedField, obj *types.DNSRecordInstruction) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DNSRecordInstruction_ttl, - func(ctx context.Context) (any, error) { - return obj.TTL, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DNSRecordInstruction_ttl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DNSRecordInstruction", - 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) _DNSRecordInstruction_purpose(ctx context.Context, field graphql.CollectedField, obj *types.DNSRecordInstruction) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DNSRecordInstruction_purpose, - func(ctx context.Context) (any, error) { - return obj.Purpose, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DNSRecordInstruction_purpose(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DNSRecordInstruction", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_id(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_processingActivity(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_processingActivity, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DataProtectionImpactAssessment().ProcessingActivity(ctx, obj) - }, - nil, - ec.marshalNProcessingActivity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivity, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_processingActivity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - 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_ProcessingActivity_id(ctx, field) - case "snapshotId": - return ec.fieldContext_ProcessingActivity_snapshotId(ctx, field) - case "sourceId": - return ec.fieldContext_ProcessingActivity_sourceId(ctx, field) - case "organization": - return ec.fieldContext_ProcessingActivity_organization(ctx, field) - case "name": - return ec.fieldContext_ProcessingActivity_name(ctx, field) - case "purpose": - return ec.fieldContext_ProcessingActivity_purpose(ctx, field) - case "dataSubjectCategory": - return ec.fieldContext_ProcessingActivity_dataSubjectCategory(ctx, field) - case "personalDataCategory": - return ec.fieldContext_ProcessingActivity_personalDataCategory(ctx, field) - case "specialOrCriminalData": - return ec.fieldContext_ProcessingActivity_specialOrCriminalData(ctx, field) - case "consentEvidenceLink": - return ec.fieldContext_ProcessingActivity_consentEvidenceLink(ctx, field) - case "lawfulBasis": - return ec.fieldContext_ProcessingActivity_lawfulBasis(ctx, field) - case "recipients": - return ec.fieldContext_ProcessingActivity_recipients(ctx, field) - case "location": - return ec.fieldContext_ProcessingActivity_location(ctx, field) - case "internationalTransfers": - return ec.fieldContext_ProcessingActivity_internationalTransfers(ctx, field) - case "transferSafeguards": - return ec.fieldContext_ProcessingActivity_transferSafeguards(ctx, field) - case "retentionPeriod": - return ec.fieldContext_ProcessingActivity_retentionPeriod(ctx, field) - case "securityMeasures": - return ec.fieldContext_ProcessingActivity_securityMeasures(ctx, field) - case "dataProtectionImpactAssessmentNeeded": - return ec.fieldContext_ProcessingActivity_dataProtectionImpactAssessmentNeeded(ctx, field) - case "transferImpactAssessmentNeeded": - return ec.fieldContext_ProcessingActivity_transferImpactAssessmentNeeded(ctx, field) - case "lastReviewDate": - return ec.fieldContext_ProcessingActivity_lastReviewDate(ctx, field) - case "nextReviewDate": - return ec.fieldContext_ProcessingActivity_nextReviewDate(ctx, field) - case "role": - return ec.fieldContext_ProcessingActivity_role(ctx, field) - case "dataProtectionOfficer": - return ec.fieldContext_ProcessingActivity_dataProtectionOfficer(ctx, field) - case "vendors": - return ec.fieldContext_ProcessingActivity_vendors(ctx, field) - case "dataProtectionImpactAssessment": - return ec.fieldContext_ProcessingActivity_dataProtectionImpactAssessment(ctx, field) - case "transferImpactAssessment": - return ec.fieldContext_ProcessingActivity_transferImpactAssessment(ctx, field) - case "createdAt": - return ec.fieldContext_ProcessingActivity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProcessingActivity_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_ProcessingActivity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcessingActivity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_organization(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DataProtectionImpactAssessment().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_description(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_necessityAndProportionality(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_necessityAndProportionality, - func(ctx context.Context) (any, error) { - return obj.NecessityAndProportionality, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_necessityAndProportionality(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_potentialRisk(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_potentialRisk, - func(ctx context.Context) (any, error) { - return obj.PotentialRisk, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_potentialRisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_mitigations(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_mitigations, - func(ctx context.Context) (any, error) { - return obj.Mitigations, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_mitigations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_residualRisk(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_residualRisk, - func(ctx context.Context) (any, error) { - return obj.ResidualRisk, nil - }, - nil, - ec.marshalODataProtectionImpactAssessmentResidualRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentResidualRisk, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_residualRisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataProtectionImpactAssessmentResidualRisk does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessment_permission(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessment_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.DataProtectionImpactAssessment().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessment_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessment", - 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_DataProtectionImpactAssessment_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessmentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessmentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessmentConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DataProtectionImpactAssessmentConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessmentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessmentConnection", - 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) _DataProtectionImpactAssessmentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessmentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessmentConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNDataProtectionImpactAssessmentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessmentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessmentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DataProtectionImpactAssessmentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DataProtectionImpactAssessmentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DataProtectionImpactAssessmentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessmentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessmentConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessmentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessmentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessmentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessmentEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessmentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessmentEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DataProtectionImpactAssessmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.DataProtectionImpactAssessmentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DataProtectionImpactAssessmentEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessment, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DataProtectionImpactAssessmentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DataProtectionImpactAssessmentEdge", - 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_DataProtectionImpactAssessment_id(ctx, field) - case "processingActivity": - return ec.fieldContext_DataProtectionImpactAssessment_processingActivity(ctx, field) - case "organization": - return ec.fieldContext_DataProtectionImpactAssessment_organization(ctx, field) - case "description": - return ec.fieldContext_DataProtectionImpactAssessment_description(ctx, field) - case "necessityAndProportionality": - return ec.fieldContext_DataProtectionImpactAssessment_necessityAndProportionality(ctx, field) - case "potentialRisk": - return ec.fieldContext_DataProtectionImpactAssessment_potentialRisk(ctx, field) - case "mitigations": - return ec.fieldContext_DataProtectionImpactAssessment_mitigations(ctx, field) - case "residualRisk": - return ec.fieldContext_DataProtectionImpactAssessment_residualRisk(ctx, field) - case "createdAt": - return ec.fieldContext_DataProtectionImpactAssessment_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DataProtectionImpactAssessment_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_DataProtectionImpactAssessment_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DataProtectionImpactAssessment", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Datum_id(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Datum_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Datum_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Datum", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Datum_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Datum_snapshotId, - func(ctx context.Context) (any, error) { - return obj.SnapshotID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Datum_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Datum", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Datum_name(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Datum_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Datum_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Datum", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Datum_dataClassification(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Datum_dataClassification, - func(ctx context.Context) (any, error) { - return obj.DataClassification, nil - }, - nil, - ec.marshalNDataClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Datum_dataClassification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Datum", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataClassification does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Datum_owner(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Datum_owner, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Datum().Owner(ctx, obj) - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Datum_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Datum", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Datum_vendors(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Datum_vendors, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Datum().Vendors(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorOrderBy)) - }, - nil, - ec.marshalNVendorConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Datum_vendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Datum", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_VendorConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_VendorConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_VendorConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorConnection", 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_Datum_vendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Datum_organization(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Datum_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Datum().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Datum_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Datum", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Datum_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Datum_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Datum_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Datum", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Datum_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Datum_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Datum_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Datum", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Datum_permission(ctx context.Context, field graphql.CollectedField, obj *types.Datum) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Datum_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Datum().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Datum_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Datum", - 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_Datum_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _DatumConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.DatumConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DatumConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DatumConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DatumConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DatumConnection", - 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) _DatumConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.DatumConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DatumConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNDatumEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DatumConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DatumConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DatumEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DatumEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DatumEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DatumConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.DatumConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DatumConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DatumConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DatumConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DatumEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.DatumEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DatumEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DatumEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DatumEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DatumEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.DatumEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DatumEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNDatum2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatum, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DatumEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DatumEdge", - 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_Datum_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Datum_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Datum_name(ctx, field) - case "dataClassification": - return ec.fieldContext_Datum_dataClassification(ctx, field) - case "owner": - return ec.fieldContext_Datum_owner(ctx, field) - case "vendors": - return ec.fieldContext_Datum_vendors(ctx, field) - case "organization": - return ec.fieldContext_Datum_organization(ctx, field) - case "createdAt": - return ec.fieldContext_Datum_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Datum_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Datum_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Datum", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteApplicabilityStatementPayload_deletedApplicabilityStatementId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteApplicabilityStatementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteApplicabilityStatementPayload_deletedApplicabilityStatementId, - func(ctx context.Context) (any, error) { - return obj.DeletedApplicabilityStatementID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteApplicabilityStatementPayload_deletedApplicabilityStatementId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteApplicabilityStatementPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteAssetPayload_deletedAssetId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteAssetPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteAssetPayload_deletedAssetId, - func(ctx context.Context) (any, error) { - return obj.DeletedAssetID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteAssetPayload_deletedAssetId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteAssetPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteAuditPayload_deletedAuditId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteAuditPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteAuditPayload_deletedAuditId, - func(ctx context.Context) (any, error) { - return obj.DeletedAuditID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteAuditPayload_deletedAuditId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteAuditPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteAuditReportPayload_audit(ctx context.Context, field graphql.CollectedField, obj *types.DeleteAuditReportPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteAuditReportPayload_audit, - func(ctx context.Context) (any, error) { - return obj.Audit, nil - }, - nil, - ec.marshalNAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteAuditReportPayload_audit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteAuditReportPayload", - 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_Audit_id(ctx, field) - case "name": - return ec.fieldContext_Audit_name(ctx, field) - case "organization": - return ec.fieldContext_Audit_organization(ctx, field) - case "framework": - return ec.fieldContext_Audit_framework(ctx, field) - case "validFrom": - return ec.fieldContext_Audit_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_Audit_validUntil(ctx, field) - case "report": - return ec.fieldContext_Audit_report(ctx, field) - case "reportUrl": - return ec.fieldContext_Audit_reportUrl(ctx, field) - case "state": - return ec.fieldContext_Audit_state(ctx, field) - case "controls": - return ec.fieldContext_Audit_controls(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Audit_trustCenterVisibility(ctx, field) - case "createdAt": - return ec.fieldContext_Audit_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Audit_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Audit_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteComplianceExternalURLPayload_deletedComplianceExternalUrlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteComplianceExternalURLPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteComplianceExternalURLPayload_deletedComplianceExternalUrlId, - func(ctx context.Context) (any, error) { - return obj.DeletedComplianceExternalURLID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteComplianceExternalURLPayload_deletedComplianceExternalUrlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteComplianceExternalURLPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteComplianceFrameworkPayload_deletedComplianceFrameworkId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteComplianceFrameworkPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteComplianceFrameworkPayload_deletedComplianceFrameworkId, - func(ctx context.Context) (any, error) { - return obj.DeletedComplianceFrameworkID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteComplianceFrameworkPayload_deletedComplianceFrameworkId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteComplianceFrameworkPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteContinualImprovementPayload_deletedContinualImprovementId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteContinualImprovementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteContinualImprovementPayload_deletedContinualImprovementId, - func(ctx context.Context) (any, error) { - return obj.DeletedContinualImprovementID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteContinualImprovementPayload_deletedContinualImprovementId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteContinualImprovementPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlAuditMappingPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlAuditMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlAuditMappingPayload_deletedControlId, - func(ctx context.Context) (any, error) { - return obj.DeletedControlID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlAuditMappingPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlAuditMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlAuditMappingPayload_deletedAuditId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlAuditMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlAuditMappingPayload_deletedAuditId, - func(ctx context.Context) (any, error) { - return obj.DeletedAuditID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlAuditMappingPayload_deletedAuditId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlAuditMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlDocumentMappingPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlDocumentMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlDocumentMappingPayload_deletedControlId, - func(ctx context.Context) (any, error) { - return obj.DeletedControlID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlDocumentMappingPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlDocumentMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlDocumentMappingPayload_deletedDocumentId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlDocumentMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlDocumentMappingPayload_deletedDocumentId, - func(ctx context.Context) (any, error) { - return obj.DeletedDocumentID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlDocumentMappingPayload_deletedDocumentId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlDocumentMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlMeasureMappingPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlMeasureMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlMeasureMappingPayload_deletedControlId, - func(ctx context.Context) (any, error) { - return obj.DeletedControlID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlMeasureMappingPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlMeasureMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlMeasureMappingPayload_deletedMeasureId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlMeasureMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlMeasureMappingPayload_deletedMeasureId, - func(ctx context.Context) (any, error) { - return obj.DeletedMeasureID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlMeasureMappingPayload_deletedMeasureId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlMeasureMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlObligationMappingPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlObligationMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlObligationMappingPayload_deletedControlId, - func(ctx context.Context) (any, error) { - return obj.DeletedControlID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlObligationMappingPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlObligationMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlObligationMappingPayload_deletedObligationId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlObligationMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlObligationMappingPayload_deletedObligationId, - func(ctx context.Context) (any, error) { - return obj.DeletedObligationID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlObligationMappingPayload_deletedObligationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlObligationMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlPayload_deletedControlId, - func(ctx context.Context) (any, error) { - return obj.DeletedControlID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlSnapshotMappingPayload_deletedControlId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlSnapshotMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlSnapshotMappingPayload_deletedControlId, - func(ctx context.Context) (any, error) { - return obj.DeletedControlID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlSnapshotMappingPayload_deletedControlId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlSnapshotMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteControlSnapshotMappingPayload_deletedSnapshotId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteControlSnapshotMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteControlSnapshotMappingPayload_deletedSnapshotId, - func(ctx context.Context) (any, error) { - return obj.DeletedSnapshotID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteControlSnapshotMappingPayload_deletedSnapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteControlSnapshotMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteCustomDomainPayload_deletedCustomDomainId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteCustomDomainPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteCustomDomainPayload_deletedCustomDomainId, - func(ctx context.Context) (any, error) { - return obj.DeletedCustomDomainID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteCustomDomainPayload_deletedCustomDomainId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteCustomDomainPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteDataProtectionImpactAssessmentPayload_deletedDataProtectionImpactAssessmentId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteDataProtectionImpactAssessmentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteDataProtectionImpactAssessmentPayload_deletedDataProtectionImpactAssessmentId, - func(ctx context.Context) (any, error) { - return obj.DeletedDataProtectionImpactAssessmentID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteDataProtectionImpactAssessmentPayload_deletedDataProtectionImpactAssessmentId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteDataProtectionImpactAssessmentPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteDatumPayload_deletedDatumId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteDatumPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteDatumPayload_deletedDatumId, - func(ctx context.Context) (any, error) { - return obj.DeletedDatumID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteDatumPayload_deletedDatumId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteDatumPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteDocumentPayload_deletedDocumentId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteDocumentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteDocumentPayload_deletedDocumentId, - func(ctx context.Context) (any, error) { - return obj.DeletedDocumentID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteDocumentPayload_deletedDocumentId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteDocumentPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteDraftDocumentVersionPayload_deletedDocumentVersionId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteDraftDocumentVersionPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteDraftDocumentVersionPayload_deletedDocumentVersionId, - func(ctx context.Context) (any, error) { - return obj.DeletedDocumentVersionID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteDraftDocumentVersionPayload_deletedDocumentVersionId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteDraftDocumentVersionPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteEvidencePayload_deletedEvidenceId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteEvidencePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteEvidencePayload_deletedEvidenceId, - func(ctx context.Context) (any, error) { - return obj.DeletedEvidenceID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteEvidencePayload_deletedEvidenceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteEvidencePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteFrameworkPayload_deletedFrameworkId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteFrameworkPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteFrameworkPayload_deletedFrameworkId, - func(ctx context.Context) (any, error) { - return obj.DeletedFrameworkID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteFrameworkPayload_deletedFrameworkId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteFrameworkPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteMailingListSubscriberPayload_deletedMailingListSubscriberId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteMailingListSubscriberPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteMailingListSubscriberPayload_deletedMailingListSubscriberId, - func(ctx context.Context) (any, error) { - return obj.DeletedMailingListSubscriberID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteMailingListSubscriberPayload_deletedMailingListSubscriberId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteMailingListSubscriberPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteMailingListUpdatePayload_deletedMailingListUpdateId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteMailingListUpdatePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteMailingListUpdatePayload_deletedMailingListUpdateId, - func(ctx context.Context) (any, error) { - return obj.DeletedMailingListUpdateID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteMailingListUpdatePayload_deletedMailingListUpdateId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteMailingListUpdatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteMeasurePayload_deletedMeasureId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteMeasurePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteMeasurePayload_deletedMeasureId, - func(ctx context.Context) (any, error) { - return obj.DeletedMeasureID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteMeasurePayload_deletedMeasureId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteMeasurePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteMeetingPayload_deletedMeetingId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteMeetingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteMeetingPayload_deletedMeetingId, - func(ctx context.Context) (any, error) { - return obj.DeletedMeetingID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteMeetingPayload_deletedMeetingId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteMeetingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteNonconformityPayload_deletedNonconformityId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteNonconformityPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteNonconformityPayload_deletedNonconformityId, - func(ctx context.Context) (any, error) { - return obj.DeletedNonconformityID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteNonconformityPayload_deletedNonconformityId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteNonconformityPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteObligationPayload_deletedObligationId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteObligationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteObligationPayload_deletedObligationId, - func(ctx context.Context) (any, error) { - return obj.DeletedObligationID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteObligationPayload_deletedObligationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteObligationPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteProcessingActivityPayload_deletedProcessingActivityId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteProcessingActivityPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteProcessingActivityPayload_deletedProcessingActivityId, - func(ctx context.Context) (any, error) { - return obj.DeletedProcessingActivityID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteProcessingActivityPayload_deletedProcessingActivityId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteProcessingActivityPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteRightsRequestPayload_deletedRightsRequestId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRightsRequestPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteRightsRequestPayload_deletedRightsRequestId, - func(ctx context.Context) (any, error) { - return obj.DeletedRightsRequestID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteRightsRequestPayload_deletedRightsRequestId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteRightsRequestPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteRiskDocumentMappingPayload_deletedRiskId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskDocumentMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteRiskDocumentMappingPayload_deletedRiskId, - func(ctx context.Context) (any, error) { - return obj.DeletedRiskID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteRiskDocumentMappingPayload_deletedRiskId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteRiskDocumentMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteRiskDocumentMappingPayload_deletedDocumentId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskDocumentMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteRiskDocumentMappingPayload_deletedDocumentId, - func(ctx context.Context) (any, error) { - return obj.DeletedDocumentID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteRiskDocumentMappingPayload_deletedDocumentId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteRiskDocumentMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteRiskMeasureMappingPayload_deletedMeasureId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskMeasureMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteRiskMeasureMappingPayload_deletedMeasureId, - func(ctx context.Context) (any, error) { - return obj.DeletedMeasureID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteRiskMeasureMappingPayload_deletedMeasureId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteRiskMeasureMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteRiskMeasureMappingPayload_deletedRiskId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskMeasureMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteRiskMeasureMappingPayload_deletedRiskId, - func(ctx context.Context) (any, error) { - return obj.DeletedRiskID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteRiskMeasureMappingPayload_deletedRiskId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteRiskMeasureMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteRiskObligationMappingPayload_deletedRiskId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskObligationMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteRiskObligationMappingPayload_deletedRiskId, - func(ctx context.Context) (any, error) { - return obj.DeletedRiskID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteRiskObligationMappingPayload_deletedRiskId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteRiskObligationMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteRiskObligationMappingPayload_deletedObligationId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskObligationMappingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteRiskObligationMappingPayload_deletedObligationId, - func(ctx context.Context) (any, error) { - return obj.DeletedObligationID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteRiskObligationMappingPayload_deletedObligationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteRiskObligationMappingPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteRiskPayload_deletedRiskId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteRiskPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteRiskPayload_deletedRiskId, - func(ctx context.Context) (any, error) { - return obj.DeletedRiskID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteRiskPayload_deletedRiskId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteRiskPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteSnapshotPayload_deletedSnapshotId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteSnapshotPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteSnapshotPayload_deletedSnapshotId, - func(ctx context.Context) (any, error) { - return obj.DeletedSnapshotID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteSnapshotPayload_deletedSnapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteSnapshotPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteStateOfApplicabilityPayload_deletedStateOfApplicabilityId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteStateOfApplicabilityPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteStateOfApplicabilityPayload_deletedStateOfApplicabilityId, - func(ctx context.Context) (any, error) { - return obj.DeletedStateOfApplicabilityID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteStateOfApplicabilityPayload_deletedStateOfApplicabilityId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteStateOfApplicabilityPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteTaskPayload_deletedTaskId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteTaskPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteTaskPayload_deletedTaskId, - func(ctx context.Context) (any, error) { - return obj.DeletedTaskID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteTaskPayload_deletedTaskId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteTaskPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteTransferImpactAssessmentPayload_deletedTransferImpactAssessmentId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteTransferImpactAssessmentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteTransferImpactAssessmentPayload_deletedTransferImpactAssessmentId, - func(ctx context.Context) (any, error) { - return obj.DeletedTransferImpactAssessmentID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteTransferImpactAssessmentPayload_deletedTransferImpactAssessmentId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteTransferImpactAssessmentPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteTrustCenterAccessPayload_deletedTrustCenterAccessId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteTrustCenterAccessPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteTrustCenterAccessPayload_deletedTrustCenterAccessId, - func(ctx context.Context) (any, error) { - return obj.DeletedTrustCenterAccessID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteTrustCenterAccessPayload_deletedTrustCenterAccessId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteTrustCenterAccessPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteTrustCenterFilePayload_deletedTrustCenterFileId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteTrustCenterFilePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteTrustCenterFilePayload_deletedTrustCenterFileId, - func(ctx context.Context) (any, error) { - return obj.DeletedTrustCenterFileID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteTrustCenterFilePayload_deletedTrustCenterFileId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteTrustCenterFilePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteTrustCenterNDAPayload_trustCenter(ctx context.Context, field graphql.CollectedField, obj *types.DeleteTrustCenterNDAPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteTrustCenterNDAPayload_trustCenter, - func(ctx context.Context) (any, error) { - return obj.TrustCenter, nil - }, - nil, - ec.marshalNTrustCenter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteTrustCenterNDAPayload_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteTrustCenterNDAPayload", - 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_TrustCenter_id(ctx, field) - case "active": - return ec.fieldContext_TrustCenter_active(ctx, field) - case "logoFileUrl": - return ec.fieldContext_TrustCenter_logoFileUrl(ctx, field) - case "darkLogoFileUrl": - return ec.fieldContext_TrustCenter_darkLogoFileUrl(ctx, field) - case "ndaFileName": - return ec.fieldContext_TrustCenter_ndaFileName(ctx, field) - case "ndaFileUrl": - return ec.fieldContext_TrustCenter_ndaFileUrl(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenter_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenter_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_TrustCenter_organization(ctx, field) - case "accesses": - return ec.fieldContext_TrustCenter_accesses(ctx, field) - case "references": - return ec.fieldContext_TrustCenter_references(ctx, field) - case "complianceFrameworks": - return ec.fieldContext_TrustCenter_complianceFrameworks(ctx, field) - case "externalUrls": - return ec.fieldContext_TrustCenter_externalUrls(ctx, field) - case "mailingList": - return ec.fieldContext_TrustCenter_mailingList(ctx, field) - case "permission": - return ec.fieldContext_TrustCenter_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenter", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteTrustCenterReferencePayload_deletedTrustCenterReferenceId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteTrustCenterReferencePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteTrustCenterReferencePayload_deletedTrustCenterReferenceId, - func(ctx context.Context) (any, error) { - return obj.DeletedTrustCenterReferenceID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteTrustCenterReferencePayload_deletedTrustCenterReferenceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteTrustCenterReferencePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteVendorBusinessAssociateAgreementPayload_deletedVendorId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorBusinessAssociateAgreementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteVendorBusinessAssociateAgreementPayload_deletedVendorId, - func(ctx context.Context) (any, error) { - return obj.DeletedVendorID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteVendorBusinessAssociateAgreementPayload_deletedVendorId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteVendorBusinessAssociateAgreementPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteVendorComplianceReportPayload_deletedVendorComplianceReportId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorComplianceReportPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteVendorComplianceReportPayload_deletedVendorComplianceReportId, - func(ctx context.Context) (any, error) { - return obj.DeletedVendorComplianceReportID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteVendorComplianceReportPayload_deletedVendorComplianceReportId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteVendorComplianceReportPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteVendorContactPayload_deletedVendorContactId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorContactPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteVendorContactPayload_deletedVendorContactId, - func(ctx context.Context) (any, error) { - return obj.DeletedVendorContactID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteVendorContactPayload_deletedVendorContactId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteVendorContactPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteVendorDataPrivacyAgreementPayload_deletedVendorId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorDataPrivacyAgreementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteVendorDataPrivacyAgreementPayload_deletedVendorId, - func(ctx context.Context) (any, error) { - return obj.DeletedVendorID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteVendorDataPrivacyAgreementPayload_deletedVendorId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteVendorDataPrivacyAgreementPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteVendorPayload_deletedVendorId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteVendorPayload_deletedVendorId, - func(ctx context.Context) (any, error) { - return obj.DeletedVendorID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteVendorPayload_deletedVendorId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteVendorPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteVendorServicePayload_deletedVendorServiceId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteVendorServicePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteVendorServicePayload_deletedVendorServiceId, - func(ctx context.Context) (any, error) { - return obj.DeletedVendorServiceID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteVendorServicePayload_deletedVendorServiceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteVendorServicePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DeleteWebhookSubscriptionPayload_deletedWebhookSubscriptionId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteWebhookSubscriptionPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DeleteWebhookSubscriptionPayload_deletedWebhookSubscriptionId, - func(ctx context.Context) (any, error) { - return obj.DeletedWebhookSubscriptionID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DeleteWebhookSubscriptionPayload_deletedWebhookSubscriptionId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DeleteWebhookSubscriptionPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_id(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_title(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_title, - func(ctx context.Context) (any, error) { - return obj.Title, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_description(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Document_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_documentType(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_documentType, - func(ctx context.Context) (any, error) { - return obj.DocumentType, nil - }, - nil, - ec.marshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_documentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - 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) _Document_classification(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_classification, - func(ctx context.Context) (any, error) { - return obj.Classification, nil - }, - nil, - ec.marshalNDocumentClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_classification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentClassification does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_currentPublishedVersion(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_currentPublishedVersion, - func(ctx context.Context) (any, error) { - return obj.CurrentPublishedVersion, nil - }, - nil, - ec.marshalOInt2ᚖint, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Document_currentPublishedVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - 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) _Document_trustCenterVisibility(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_trustCenterVisibility, - func(ctx context.Context) (any, error) { - return obj.TrustCenterVisibility, nil - }, - nil, - ec.marshalNTrustCenterVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_trustCenterVisibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TrustCenterVisibility does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_approvers(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_approvers, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Document().Approvers(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ProfileOrderBy)) - }, - nil, - ec.marshalNProfileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_approvers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ProfileConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ProfileConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProfileConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProfileConnection", 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_Document_approvers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Document_organization(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Document().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_versions(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_versions, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Document().Versions(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentVersionOrderBy), fc.Args["filter"].(*types.DocumentVersionFilter)) - }, - nil, - ec.marshalNDocumentVersionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_versions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_DocumentVersionConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentVersionConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_DocumentVersionConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionConnection", 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_Document_versions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Document_controls(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_controls, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Document().Controls(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy), fc.Args["filter"].(*types.ControlFilter)) - }, - nil, - ec.marshalNControlConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ControlConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ControlConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlConnection", 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_Document_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Document_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_permission(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Document().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - 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_Document_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _DocumentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.DocumentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DocumentConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentConnection", - 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) _DocumentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.DocumentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNDocumentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.DocumentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.DocumentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.DocumentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentEdge", - 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_Document_id(ctx, field) - case "title": - return ec.fieldContext_Document_title(ctx, field) - case "description": - return ec.fieldContext_Document_description(ctx, field) - case "documentType": - return ec.fieldContext_Document_documentType(ctx, field) - case "classification": - return ec.fieldContext_Document_classification(ctx, field) - case "currentPublishedVersion": - return ec.fieldContext_Document_currentPublishedVersion(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Document_trustCenterVisibility(ctx, field) - case "approvers": - return ec.fieldContext_Document_approvers(ctx, field) - case "organization": - return ec.fieldContext_Document_organization(ctx, field) - case "versions": - return ec.fieldContext_Document_versions(ctx, field) - case "controls": - return ec.fieldContext_Document_controls(ctx, field) - case "createdAt": - return ec.fieldContext_Document_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Document_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Document_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Document", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_id(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_document(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_document, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DocumentVersion().Document(ctx, obj) - }, - nil, - ec.marshalNDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - 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_Document_id(ctx, field) - case "title": - return ec.fieldContext_Document_title(ctx, field) - case "description": - return ec.fieldContext_Document_description(ctx, field) - case "documentType": - return ec.fieldContext_Document_documentType(ctx, field) - case "classification": - return ec.fieldContext_Document_classification(ctx, field) - case "currentPublishedVersion": - return ec.fieldContext_Document_currentPublishedVersion(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Document_trustCenterVisibility(ctx, field) - case "approvers": - return ec.fieldContext_Document_approvers(ctx, field) - case "organization": - return ec.fieldContext_Document_organization(ctx, field) - case "versions": - return ec.fieldContext_Document_versions(ctx, field) - case "controls": - return ec.fieldContext_Document_controls(ctx, field) - case "createdAt": - return ec.fieldContext_Document_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Document_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Document_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Document", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_status(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNDocumentStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_version(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_version, - func(ctx context.Context) (any, error) { - return obj.Version, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - 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) _DocumentVersion_content(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_content, - func(ctx context.Context) (any, error) { - return obj.Content, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_content(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_changelog(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_changelog, - func(ctx context.Context) (any, error) { - return obj.Changelog, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_changelog(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_title(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_title, - func(ctx context.Context) (any, error) { - return obj.Title, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_classification(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_classification, - func(ctx context.Context) (any, error) { - return obj.Classification, nil - }, - nil, - ec.marshalNDocumentClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_classification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentClassification does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_approvers(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_approvers, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.DocumentVersion().Approvers(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ProfileOrderBy)) - }, - nil, - ec.marshalNProfileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_approvers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ProfileConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ProfileConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProfileConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProfileConnection", 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_DocumentVersion_approvers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_signatures(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_signatures, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.DocumentVersion().Signatures(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentVersionSignatureOrder), fc.Args["filter"].(*types.DocumentVersionSignatureFilter)) - }, - nil, - ec.marshalNDocumentVersionSignatureConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_signatures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_DocumentVersionSignatureConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentVersionSignatureConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_DocumentVersionSignatureConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignatureConnection", 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_DocumentVersion_signatures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_signed(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_signed, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DocumentVersion().Signed(ctx, obj) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_signed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - 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) _DocumentVersion_publishedAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_publishedAt, - func(ctx context.Context) (any, error) { - return obj.PublishedAt, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_publishedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersion_permission(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersion) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersion_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.DocumentVersion().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersion_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersion", - 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_DocumentVersion_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNDocumentVersionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentVersionEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentVersionEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DocumentVersionConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionConnection", - 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) _DocumentVersionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNDocumentVersion2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionEdge", - 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_DocumentVersion_id(ctx, field) - case "document": - return ec.fieldContext_DocumentVersion_document(ctx, field) - case "status": - return ec.fieldContext_DocumentVersion_status(ctx, field) - case "version": - return ec.fieldContext_DocumentVersion_version(ctx, field) - case "content": - return ec.fieldContext_DocumentVersion_content(ctx, field) - case "changelog": - return ec.fieldContext_DocumentVersion_changelog(ctx, field) - case "title": - return ec.fieldContext_DocumentVersion_title(ctx, field) - case "classification": - return ec.fieldContext_DocumentVersion_classification(ctx, field) - case "approvers": - return ec.fieldContext_DocumentVersion_approvers(ctx, field) - case "signatures": - return ec.fieldContext_DocumentVersion_signatures(ctx, field) - case "signed": - return ec.fieldContext_DocumentVersion_signed(ctx, field) - case "publishedAt": - return ec.fieldContext_DocumentVersion_publishedAt(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentVersion_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentVersion_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_DocumentVersion_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignature_id(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignature_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignature_documentVersion(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignature_documentVersion, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DocumentVersionSignature().DocumentVersion(ctx, obj) - }, - nil, - ec.marshalNDocumentVersion2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignature_documentVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignature", - 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_DocumentVersion_id(ctx, field) - case "document": - return ec.fieldContext_DocumentVersion_document(ctx, field) - case "status": - return ec.fieldContext_DocumentVersion_status(ctx, field) - case "version": - return ec.fieldContext_DocumentVersion_version(ctx, field) - case "content": - return ec.fieldContext_DocumentVersion_content(ctx, field) - case "changelog": - return ec.fieldContext_DocumentVersion_changelog(ctx, field) - case "title": - return ec.fieldContext_DocumentVersion_title(ctx, field) - case "classification": - return ec.fieldContext_DocumentVersion_classification(ctx, field) - case "approvers": - return ec.fieldContext_DocumentVersion_approvers(ctx, field) - case "signatures": - return ec.fieldContext_DocumentVersion_signatures(ctx, field) - case "signed": - return ec.fieldContext_DocumentVersion_signed(ctx, field) - case "publishedAt": - return ec.fieldContext_DocumentVersion_publishedAt(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentVersion_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentVersion_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_DocumentVersion_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignature_state(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignature_state, - func(ctx context.Context) (any, error) { - return obj.State, nil - }, - nil, - ec.marshalNDocumentVersionSignatureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignature_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentVersionSignatureState does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignature_signedBy(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignature_signedBy, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DocumentVersionSignature().SignedBy(ctx, obj) - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignature_signedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignature", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignature_signedAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignature_signedAt, - func(ctx context.Context) (any, error) { - return obj.SignedAt, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignature_signedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignature_requestedAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignature_requestedAt, - func(ctx context.Context) (any, error) { - return obj.RequestedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignature_requestedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignature_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignature_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignature_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignature_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignature_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignature_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignature_permission(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignature_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.DocumentVersionSignature().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignature_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignature", - 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_DocumentVersionSignature_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignatureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignatureConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignatureConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNDocumentVersionSignatureEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignatureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignatureConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentVersionSignatureEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentVersionSignatureEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignatureEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignatureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignatureConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignatureConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignatureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignatureConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignatureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignatureConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignatureConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.DocumentVersionSignatureConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignatureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignatureConnection", - 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) _DocumentVersionSignatureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignatureEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignatureEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignatureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignatureEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentVersionSignatureEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.DocumentVersionSignatureEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentVersionSignatureEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNDocumentVersionSignature2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignature, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentVersionSignatureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentVersionSignatureEdge", - 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_DocumentVersionSignature_id(ctx, field) - case "documentVersion": - return ec.fieldContext_DocumentVersionSignature_documentVersion(ctx, field) - case "state": - return ec.fieldContext_DocumentVersionSignature_state(ctx, field) - case "signedBy": - return ec.fieldContext_DocumentVersionSignature_signedBy(ctx, field) - case "signedAt": - return ec.fieldContext_DocumentVersionSignature_signedAt(ctx, field) - case "requestedAt": - return ec.fieldContext_DocumentVersionSignature_requestedAt(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentVersionSignature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentVersionSignature_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_DocumentVersionSignature_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignature", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_id(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_status(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ElectronicSignatureStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_documentType(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_documentType, - func(ctx context.Context) (any, error) { - return obj.DocumentType, nil - }, - nil, - ec.marshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_documentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ElectronicSignatureDocumentType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_consentText(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_consentText, - func(ctx context.Context) (any, error) { - return obj.ConsentText, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_consentText(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_lastError(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_lastError, - func(ctx context.Context) (any, error) { - return obj.LastError, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_lastError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_signedAt(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_signedAt, - func(ctx context.Context) (any, error) { - return obj.SignedAt, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_signedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_certificateFileUrl(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_certificateFileUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ElectronicSignature().CertificateFileURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_certificateFileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - 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) _ElectronicSignature_events(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_events, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ElectronicSignature().Events(ctx, obj) - }, - nil, - ec.marshalNElectronicSignatureEvent2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐElectronicSignatureEventᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - 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_ElectronicSignatureEvent_id(ctx, field) - case "eventType": - return ec.fieldContext_ElectronicSignatureEvent_eventType(ctx, field) - case "eventSource": - return ec.fieldContext_ElectronicSignatureEvent_eventSource(ctx, field) - case "actorEmail": - return ec.fieldContext_ElectronicSignatureEvent_actorEmail(ctx, field) - case "actorIpAddress": - return ec.fieldContext_ElectronicSignatureEvent_actorIpAddress(ctx, field) - case "actorUserAgent": - return ec.fieldContext_ElectronicSignatureEvent_actorUserAgent(ctx, field) - case "occurredAt": - return ec.fieldContext_ElectronicSignatureEvent_occurredAt(ctx, field) - case "createdAt": - return ec.fieldContext_ElectronicSignatureEvent_createdAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ElectronicSignatureEvent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignatureEvent_id(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignatureEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignatureEvent_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignatureEvent_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignatureEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignatureEvent_eventType(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignatureEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignatureEvent_eventType, - func(ctx context.Context) (any, error) { - return obj.EventType, nil - }, - nil, - ec.marshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignatureEvent_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignatureEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ElectronicSignatureEventType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignatureEvent_eventSource(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignatureEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignatureEvent_eventSource, - func(ctx context.Context) (any, error) { - return obj.EventSource, nil - }, - nil, - ec.marshalNElectronicSignatureEventSource2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventSource, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignatureEvent_eventSource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignatureEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ElectronicSignatureEventSource does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignatureEvent_actorEmail(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignatureEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignatureEvent_actorEmail, - func(ctx context.Context) (any, error) { - return obj.ActorEmail, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignatureEvent_actorEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignatureEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignatureEvent_actorIpAddress(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignatureEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignatureEvent_actorIpAddress, - func(ctx context.Context) (any, error) { - return obj.ActorIPAddress, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignatureEvent_actorIpAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignatureEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignatureEvent_actorUserAgent(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignatureEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignatureEvent_actorUserAgent, - func(ctx context.Context) (any, error) { - return obj.ActorUserAgent, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignatureEvent_actorUserAgent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignatureEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignatureEvent_occurredAt(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignatureEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignatureEvent_occurredAt, - func(ctx context.Context) (any, error) { - return obj.OccurredAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignatureEvent_occurredAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignatureEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignatureEvent_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignatureEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignatureEvent_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignatureEvent_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignatureEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_id(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Evidence_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_size(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_size, - func(ctx context.Context) (any, error) { - return obj.Size, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Evidence_size(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - 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) _Evidence_state(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_state, - func(ctx context.Context) (any, error) { - return obj.State, nil - }, - nil, - ec.marshalNEvidenceState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceState, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Evidence_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EvidenceState does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_type(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalNEvidenceType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Evidence_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EvidenceType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_file(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_file, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Evidence().File(ctx, obj) - }, - nil, - ec.marshalOFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Evidence_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - 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_File_id(ctx, field) - case "mimeType": - return ec.fieldContext_File_mimeType(ctx, field) - case "fileName": - return ec.fieldContext_File_fileName(ctx, field) - case "size": - return ec.fieldContext_File_size(ctx, field) - case "downloadUrl": - return ec.fieldContext_File_downloadUrl(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_url(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_url, - func(ctx context.Context) (any, error) { - return obj.URL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Evidence_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_description(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Evidence_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_task(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_task, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Evidence().Task(ctx, obj) - }, - nil, - ec.marshalOTask2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Evidence_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - 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_Task_id(ctx, field) - case "name": - return ec.fieldContext_Task_name(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "state": - return ec.fieldContext_Task_state(ctx, field) - case "timeEstimate": - return ec.fieldContext_Task_timeEstimate(ctx, field) - case "deadline": - return ec.fieldContext_Task_deadline(ctx, field) - case "assignedTo": - return ec.fieldContext_Task_assignedTo(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "measure": - return ec.fieldContext_Task_measure(ctx, field) - case "evidences": - return ec.fieldContext_Task_evidences(ctx, field) - case "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Task_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_measure(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_measure, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Evidence().Measure(ctx, obj) - }, - nil, - ec.marshalNMeasure2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Evidence_measure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - 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_Measure_id(ctx, field) - case "category": - return ec.fieldContext_Measure_category(ctx, field) - case "name": - return ec.fieldContext_Measure_name(ctx, field) - case "description": - return ec.fieldContext_Measure_description(ctx, field) - case "state": - return ec.fieldContext_Measure_state(ctx, field) - case "evidences": - return ec.fieldContext_Measure_evidences(ctx, field) - case "tasks": - return ec.fieldContext_Measure_tasks(ctx, field) - case "risks": - return ec.fieldContext_Measure_risks(ctx, field) - case "controls": - return ec.fieldContext_Measure_controls(ctx, field) - case "createdAt": - return ec.fieldContext_Measure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Measure_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Measure_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Measure", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Evidence_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Evidence_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Evidence_permission(ctx context.Context, field graphql.CollectedField, obj *types.Evidence) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Evidence_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Evidence().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Evidence_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Evidence", - 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_Evidence_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _EvidenceConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.EvidenceConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_EvidenceConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.EvidenceConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_EvidenceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EvidenceConnection", - 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) _EvidenceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.EvidenceConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_EvidenceConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNEvidenceEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_EvidenceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EvidenceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_EvidenceEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_EvidenceEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EvidenceEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EvidenceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.EvidenceConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_EvidenceConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_EvidenceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EvidenceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EvidenceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.EvidenceEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_EvidenceEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_EvidenceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EvidenceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EvidenceEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.EvidenceEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_EvidenceEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNEvidence2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidence, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_EvidenceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EvidenceEdge", - 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_Evidence_id(ctx, field) - case "size": - return ec.fieldContext_Evidence_size(ctx, field) - case "state": - return ec.fieldContext_Evidence_state(ctx, field) - case "type": - return ec.fieldContext_Evidence_type(ctx, field) - case "file": - return ec.fieldContext_Evidence_file(ctx, field) - case "url": - return ec.fieldContext_Evidence_url(ctx, field) - case "description": - return ec.fieldContext_Evidence_description(ctx, field) - case "task": - return ec.fieldContext_Evidence_task(ctx, field) - case "measure": - return ec.fieldContext_Evidence_measure(ctx, field) - case "createdAt": - return ec.fieldContext_Evidence_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Evidence_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Evidence_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Evidence", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ExportDataProtectionImpactAssessmentsPDFPayload_data(ctx context.Context, field graphql.CollectedField, obj *types.ExportDataProtectionImpactAssessmentsPDFPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ExportDataProtectionImpactAssessmentsPDFPayload_data, - func(ctx context.Context) (any, error) { - return obj.Data, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ExportDataProtectionImpactAssessmentsPDFPayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExportDataProtectionImpactAssessmentsPDFPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExportDocumentVersionPDFPayload_data(ctx context.Context, field graphql.CollectedField, obj *types.ExportDocumentVersionPDFPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ExportDocumentVersionPDFPayload_data, - func(ctx context.Context) (any, error) { - return obj.Data, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ExportDocumentVersionPDFPayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExportDocumentVersionPDFPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExportFrameworkPayload_exportJobId(ctx context.Context, field graphql.CollectedField, obj *types.ExportFrameworkPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ExportFrameworkPayload_exportJobId, - func(ctx context.Context) (any, error) { - return obj.ExportJobID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ExportFrameworkPayload_exportJobId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExportFrameworkPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExportProcessingActivitiesPDFPayload_data(ctx context.Context, field graphql.CollectedField, obj *types.ExportProcessingActivitiesPDFPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ExportProcessingActivitiesPDFPayload_data, - func(ctx context.Context) (any, error) { - return obj.Data, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ExportProcessingActivitiesPDFPayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExportProcessingActivitiesPDFPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExportSignableDocumentVersionPDFPayload_data(ctx context.Context, field graphql.CollectedField, obj *types.ExportSignableDocumentVersionPDFPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ExportSignableDocumentVersionPDFPayload_data, - func(ctx context.Context) (any, error) { - return obj.Data, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ExportSignableDocumentVersionPDFPayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExportSignableDocumentVersionPDFPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExportStateOfApplicabilityPDFPayload_data(ctx context.Context, field graphql.CollectedField, obj *types.ExportStateOfApplicabilityPDFPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ExportStateOfApplicabilityPDFPayload_data, - func(ctx context.Context) (any, error) { - return obj.Data, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ExportStateOfApplicabilityPDFPayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExportStateOfApplicabilityPDFPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExportTransferImpactAssessmentsPDFPayload_data(ctx context.Context, field graphql.CollectedField, obj *types.ExportTransferImpactAssessmentsPDFPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ExportTransferImpactAssessmentsPDFPayload_data, - func(ctx context.Context) (any, error) { - return obj.Data, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ExportTransferImpactAssessmentsPDFPayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExportTransferImpactAssessmentsPDFPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _File_id(ctx context.Context, field graphql.CollectedField, obj *types.File) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_File_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_File_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "File", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _File_mimeType(ctx context.Context, field graphql.CollectedField, obj *types.File) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_File_mimeType, - func(ctx context.Context) (any, error) { - return obj.MimeType, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_File_mimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "File", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _File_fileName(ctx context.Context, field graphql.CollectedField, obj *types.File) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_File_fileName, - func(ctx context.Context) (any, error) { - return obj.FileName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_File_fileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "File", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _File_size(ctx context.Context, field graphql.CollectedField, obj *types.File) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_File_size, - func(ctx context.Context) (any, error) { - return obj.Size, nil - }, - nil, - ec.marshalNBigInt2int64, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_File_size(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "File", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type BigInt does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _File_downloadUrl(ctx context.Context, field graphql.CollectedField, obj *types.File) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_File_downloadUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.File().DownloadURL(ctx, obj) - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_File_downloadUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "File", - 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) _File_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.File) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_File_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_File_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "File", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _File_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.File) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_File_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_File_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "File", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Framework_id(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Framework_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Framework_name(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Framework_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Framework_description(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Framework_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Framework_organization(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Framework().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Framework_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Framework_controls(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_controls, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Framework().Controls(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy), fc.Args["filter"].(*types.ControlFilter)) - }, - nil, - ec.marshalNControlConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Framework_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ControlConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ControlConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlConnection", 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_Framework_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Framework_lightLogoURL(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_lightLogoURL, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Framework().LightLogoURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Framework_lightLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - 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) _Framework_darkLogoURL(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_darkLogoURL, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Framework().DarkLogoURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Framework_darkLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - 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) _Framework_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Framework_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Framework_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Framework_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Framework_permission(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Framework().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Framework_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - 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_Framework_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _FrameworkConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.FrameworkConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_FrameworkConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.FrameworkConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_FrameworkConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FrameworkConnection", - 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) _FrameworkConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.FrameworkConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_FrameworkConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNFrameworkEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_FrameworkConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FrameworkConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_FrameworkEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_FrameworkEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FrameworkEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _FrameworkConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.FrameworkConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_FrameworkConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_FrameworkConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FrameworkConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _FrameworkEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.FrameworkEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_FrameworkEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_FrameworkEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FrameworkEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _FrameworkEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.FrameworkEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_FrameworkEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_FrameworkEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FrameworkEdge", - 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_Framework_id(ctx, field) - case "name": - return ec.fieldContext_Framework_name(ctx, field) - case "description": - return ec.fieldContext_Framework_description(ctx, field) - case "organization": - return ec.fieldContext_Framework_organization(ctx, field) - case "controls": - return ec.fieldContext_Framework_controls(ctx, field) - case "lightLogoURL": - return ec.fieldContext_Framework_lightLogoURL(ctx, field) - case "darkLogoURL": - return ec.fieldContext_Framework_darkLogoURL(ctx, field) - case "createdAt": - return ec.fieldContext_Framework_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Framework_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Framework_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Framework", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _GenerateDocumentChangelogPayload_changelog(ctx context.Context, field graphql.CollectedField, obj *types.GenerateDocumentChangelogPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_GenerateDocumentChangelogPayload_changelog, - func(ctx context.Context) (any, error) { - return obj.Changelog, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_GenerateDocumentChangelogPayload_changelog(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GenerateDocumentChangelogPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _GetTrustCenterFilePayload_trustCenterFile(ctx context.Context, field graphql.CollectedField, obj *types.GetTrustCenterFilePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_GetTrustCenterFilePayload_trustCenterFile, - func(ctx context.Context) (any, error) { - return obj.TrustCenterFile, nil - }, - nil, - ec.marshalNTrustCenterFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_GetTrustCenterFilePayload_trustCenterFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GetTrustCenterFilePayload", - 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_TrustCenterFile_id(ctx, field) - case "name": - return ec.fieldContext_TrustCenterFile_name(ctx, field) - case "category": - return ec.fieldContext_TrustCenterFile_category(ctx, field) - case "fileUrl": - return ec.fieldContext_TrustCenterFile_fileUrl(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_TrustCenterFile_trustCenterVisibility(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenterFile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenterFile_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_TrustCenterFile_organization(ctx, field) - case "permission": - return ec.fieldContext_TrustCenterFile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ImportFrameworkPayload_frameworkEdge(ctx context.Context, field graphql.CollectedField, obj *types.ImportFrameworkPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ImportFrameworkPayload_frameworkEdge, - func(ctx context.Context) (any, error) { - return obj.FrameworkEdge, nil - }, - nil, - ec.marshalNFrameworkEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ImportFrameworkPayload_frameworkEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ImportFrameworkPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_FrameworkEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_FrameworkEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FrameworkEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ImportMeasurePayload_measureEdges(ctx context.Context, field graphql.CollectedField, obj *types.ImportMeasurePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ImportMeasurePayload_measureEdges, - func(ctx context.Context) (any, error) { - return obj.MeasureEdges, nil - }, - nil, - ec.marshalNMeasureEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ImportMeasurePayload_measureEdges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ImportMeasurePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MeasureEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MeasureEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeasureEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingList_id(ctx context.Context, field graphql.CollectedField, obj *types.MailingList) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingList_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingList_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingList", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingList_replyTo(ctx context.Context, field graphql.CollectedField, obj *types.MailingList) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingList_replyTo, - func(ctx context.Context) (any, error) { - return obj.ReplyTo, nil - }, - nil, - ec.marshalOEmailAddr2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_MailingList_replyTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingList", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingList_subscribers(ctx context.Context, field graphql.CollectedField, obj *types.MailingList) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingList_subscribers, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.MailingList().Subscribers(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - nil, - ec.marshalNMailingListSubscriberConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListSubscriberConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingList_subscribers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingList", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_MailingListSubscriberConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_MailingListSubscriberConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_MailingListSubscriberConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListSubscriberConnection", 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_MailingList_subscribers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _MailingList_updates(ctx context.Context, field graphql.CollectedField, obj *types.MailingList) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingList_updates, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.MailingList().Updates(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - nil, - ec.marshalNMailingListUpdateConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdateConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingList_updates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingList", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_MailingListUpdateConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_MailingListUpdateConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_MailingListUpdateConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListUpdateConnection", 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_MailingList_updates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_id(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_fullName(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_fullName, - func(ctx context.Context) (any, error) { - return obj.FullName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_email(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_email, - func(ctx context.Context) (any, error) { - return obj.Email, nil - }, - nil, - ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_status(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MailingListSubscriberStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriberConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriberConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriberConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNMailingListSubscriberEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListSubscriberEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriberConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriberConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MailingListSubscriberEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MailingListSubscriberEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListSubscriberEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriberConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriberConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriberConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriberConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriberConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriberConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriberConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriberConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.MailingListSubscriberConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriberConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriberConnection", - 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) _MailingListSubscriberEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriberEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriberEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriberEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriberEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriberEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriberEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriberEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNMailingListSubscriber2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListSubscriber, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriberEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriberEdge", - 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_MailingListSubscriber_id(ctx, field) - case "fullName": - return ec.fieldContext_MailingListSubscriber_fullName(ctx, field) - case "email": - return ec.fieldContext_MailingListSubscriber_email(ctx, field) - case "status": - return ec.fieldContext_MailingListSubscriber_status(ctx, field) - case "createdAt": - return ec.fieldContext_MailingListSubscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_MailingListSubscriber_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListSubscriber", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdate_id(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdate) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdate_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdate_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdate_title(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdate) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdate_title, - func(ctx context.Context) (any, error) { - return obj.Title, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdate_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdate_body(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdate) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdate_body, - func(ctx context.Context) (any, error) { - return obj.Body, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdate_body(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdate_status(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdate) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdate_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNMailingListUpdateStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListUpdateStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdate_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MailingListUpdateStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdate_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdate) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdate_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdate_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdate_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdate) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdate_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdate_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdateConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdateConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdateConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNMailingListUpdateEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdateEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdateConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdateConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MailingListUpdateEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MailingListUpdateEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListUpdateEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdateConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdateConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdateConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdateConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdateConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdateConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdateConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdateConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.MailingListUpdateConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdateConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdateConnection", - 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) _MailingListUpdateEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdateEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdateEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdateEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdateEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdateEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdateEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdateEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNMailingListUpdate2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdate, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdateEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdateEdge", - 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_MailingListUpdate_id(ctx, field) - case "title": - return ec.fieldContext_MailingListUpdate_title(ctx, field) - case "body": - return ec.fieldContext_MailingListUpdate_body(ctx, field) - case "status": - return ec.fieldContext_MailingListUpdate_status(ctx, field) - case "createdAt": - return ec.fieldContext_MailingListUpdate_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_MailingListUpdate_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListUpdate", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Measure_id(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Measure_category(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_category, - func(ctx context.Context) (any, error) { - return obj.Category, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Measure_name(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Measure_description(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Measure_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Measure_state(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_state, - func(ctx context.Context) (any, error) { - return obj.State, nil - }, - nil, - ec.marshalNMeasureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MeasureState does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Measure_evidences(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_evidences, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Measure().Evidences(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.EvidenceOrderBy)) - }, - nil, - ec.marshalNEvidenceConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_EvidenceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_EvidenceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EvidenceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EvidenceConnection", 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_Measure_evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Measure_tasks(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_tasks, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Measure().Tasks(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.TaskOrderBy)) - }, - nil, - ec.marshalNTaskConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_TaskConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_TaskConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TaskConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaskConnection", 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_Measure_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Measure_risks(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_risks, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Measure().Risks(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.RiskOrderBy), fc.Args["filter"].(*types.RiskFilter)) - }, - nil, - ec.marshalNRiskConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_RiskConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_RiskConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_RiskConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RiskConnection", 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_Measure_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Measure_controls(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_controls, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Measure().Controls(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy), fc.Args["filter"].(*types.ControlFilter)) - }, - nil, - ec.marshalNControlConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ControlConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ControlConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlConnection", 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_Measure_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Measure_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Measure_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Measure_permission(ctx context.Context, field graphql.CollectedField, obj *types.Measure) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Measure_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Measure().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Measure_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Measure", - 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_Measure_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _MeasureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.MeasureConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MeasureConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.MeasureConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MeasureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MeasureConnection", - 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) _MeasureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.MeasureConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MeasureConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNMeasureEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MeasureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MeasureConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MeasureEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MeasureEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeasureEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MeasureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.MeasureConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MeasureConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MeasureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MeasureConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MeasureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.MeasureEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MeasureEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MeasureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MeasureEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MeasureEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.MeasureEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MeasureEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNMeasure2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MeasureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MeasureEdge", - 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_Measure_id(ctx, field) - case "category": - return ec.fieldContext_Measure_category(ctx, field) - case "name": - return ec.fieldContext_Measure_name(ctx, field) - case "description": - return ec.fieldContext_Measure_description(ctx, field) - case "state": - return ec.fieldContext_Measure_state(ctx, field) - case "evidences": - return ec.fieldContext_Measure_evidences(ctx, field) - case "tasks": - return ec.fieldContext_Measure_tasks(ctx, field) - case "risks": - return ec.fieldContext_Measure_risks(ctx, field) - case "controls": - return ec.fieldContext_Measure_controls(ctx, field) - case "createdAt": - return ec.fieldContext_Measure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Measure_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Measure_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Measure", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Meeting_id(ctx context.Context, field graphql.CollectedField, obj *types.Meeting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Meeting_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Meeting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Meeting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Meeting_name(ctx context.Context, field graphql.CollectedField, obj *types.Meeting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Meeting_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Meeting_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Meeting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Meeting_date(ctx context.Context, field graphql.CollectedField, obj *types.Meeting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Meeting_date, - func(ctx context.Context) (any, error) { - return obj.Date, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Meeting_date(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Meeting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Meeting_minutes(ctx context.Context, field graphql.CollectedField, obj *types.Meeting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Meeting_minutes, - func(ctx context.Context) (any, error) { - return obj.Minutes, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Meeting_minutes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Meeting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Meeting_attendees(ctx context.Context, field graphql.CollectedField, obj *types.Meeting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Meeting_attendees, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Meeting().Attendees(ctx, obj) - }, - nil, - ec.marshalNProfile2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Meeting_attendees(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Meeting", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Meeting_organization(ctx context.Context, field graphql.CollectedField, obj *types.Meeting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Meeting_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Meeting().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Meeting_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Meeting", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Meeting_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Meeting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Meeting_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Meeting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Meeting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Meeting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Meeting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Meeting_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Meeting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Meeting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Meeting_permission(ctx context.Context, field graphql.CollectedField, obj *types.Meeting) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Meeting_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Meeting().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Meeting_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Meeting", - 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_Meeting_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _MeetingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.MeetingConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MeetingConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.MeetingConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MeetingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MeetingConnection", - 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) _MeetingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.MeetingConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MeetingConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNMeetingEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeetingEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MeetingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MeetingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MeetingEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MeetingEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeetingEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MeetingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.MeetingConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MeetingConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MeetingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MeetingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MeetingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.MeetingEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MeetingEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MeetingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MeetingEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MeetingEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.MeetingEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MeetingEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNMeeting2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeeting, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MeetingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MeetingEdge", - 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_Meeting_id(ctx, field) - case "name": - return ec.fieldContext_Meeting_name(ctx, field) - case "date": - return ec.fieldContext_Meeting_date(ctx, field) - case "minutes": - return ec.fieldContext_Meeting_minutes(ctx, field) - case "attendees": - return ec.fieldContext_Meeting_attendees(ctx, field) - case "organization": - return ec.fieldContext_Meeting_organization(ctx, field) - case "createdAt": - return ec.fieldContext_Meeting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Meeting_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Meeting_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Meeting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateOrganizationContext(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateOrganizationContext, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateOrganizationContext(ctx, fc.Args["input"].(types.UpdateOrganizationContextInput)) - }, - nil, - ec.marshalNUpdateOrganizationContextPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateOrganizationContextPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateOrganizationContext(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 "context": - return ec.fieldContext_UpdateOrganizationContextPayload_context(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateOrganizationContextPayload", 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_updateOrganizationContext_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateTrustCenter(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateTrustCenter, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateTrustCenter(ctx, fc.Args["input"].(types.UpdateTrustCenterInput)) - }, - nil, - ec.marshalNUpdateTrustCenterPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateTrustCenter(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 "trustCenter": - return ec.fieldContext_UpdateTrustCenterPayload_trustCenter(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateTrustCenterPayload", 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_updateTrustCenter_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_uploadTrustCenterNDA(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_uploadTrustCenterNDA, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UploadTrustCenterNda(ctx, fc.Args["input"].(types.UploadTrustCenterNDAInput)) - }, - nil, - ec.marshalNUploadTrustCenterNDAPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadTrustCenterNDAPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_uploadTrustCenterNDA(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 "trustCenter": - return ec.fieldContext_UploadTrustCenterNDAPayload_trustCenter(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UploadTrustCenterNDAPayload", 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_uploadTrustCenterNDA_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteTrustCenterNDA(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteTrustCenterNDA, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteTrustCenterNda(ctx, fc.Args["input"].(types.DeleteTrustCenterNDAInput)) - }, - nil, - ec.marshalNDeleteTrustCenterNDAPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterNDAPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteTrustCenterNDA(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 "trustCenter": - return ec.fieldContext_DeleteTrustCenterNDAPayload_trustCenter(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteTrustCenterNDAPayload", 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_deleteTrustCenterNDA_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateTrustCenterBrand(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateTrustCenterBrand, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateTrustCenterBrand(ctx, fc.Args["input"].(types.UpdateTrustCenterBrandInput)) - }, - nil, - ec.marshalNUpdateTrustCenterBrandPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterBrandPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateTrustCenterBrand(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 "trustCenter": - return ec.fieldContext_UpdateTrustCenterBrandPayload_trustCenter(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateTrustCenterBrandPayload", 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_updateTrustCenterBrand_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateTrustCenterAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateTrustCenterAccess, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateTrustCenterAccess(ctx, fc.Args["input"].(types.UpdateTrustCenterAccessInput)) - }, - nil, - ec.marshalNUpdateTrustCenterAccessPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterAccessPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateTrustCenterAccess(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 "trustCenterAccess": - return ec.fieldContext_UpdateTrustCenterAccessPayload_trustCenterAccess(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateTrustCenterAccessPayload", 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_updateTrustCenterAccess_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteTrustCenterAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteTrustCenterAccess, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteTrustCenterAccess(ctx, fc.Args["input"].(types.DeleteTrustCenterAccessInput)) - }, - nil, - ec.marshalNDeleteTrustCenterAccessPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterAccessPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteTrustCenterAccess(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 "deletedTrustCenterAccessId": - return ec.fieldContext_DeleteTrustCenterAccessPayload_deletedTrustCenterAccessId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteTrustCenterAccessPayload", 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_deleteTrustCenterAccess_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createMailingListUpdate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createMailingListUpdate, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateMailingListUpdate(ctx, fc.Args["input"].(types.CreateMailingListUpdateInput)) - }, - nil, - ec.marshalNCreateMailingListUpdatePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMailingListUpdatePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createMailingListUpdate(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 "mailingListUpdate": - return ec.fieldContext_CreateMailingListUpdatePayload_mailingListUpdate(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateMailingListUpdatePayload", 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_createMailingListUpdate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateMailingListUpdate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateMailingListUpdate, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateMailingListUpdate(ctx, fc.Args["input"].(types.UpdateMailingListUpdateInput)) - }, - nil, - ec.marshalNUpdateMailingListUpdatePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMailingListUpdatePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateMailingListUpdate(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 "mailingListUpdate": - return ec.fieldContext_UpdateMailingListUpdatePayload_mailingListUpdate(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateMailingListUpdatePayload", 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_updateMailingListUpdate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_sendMailingListUpdate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_sendMailingListUpdate, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().SendMailingListUpdate(ctx, fc.Args["input"].(types.SendMailingListUpdateInput)) - }, - nil, - ec.marshalNSendMailingListUpdatePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendMailingListUpdatePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_sendMailingListUpdate(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 "mailingListUpdate": - return ec.fieldContext_SendMailingListUpdatePayload_mailingListUpdate(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SendMailingListUpdatePayload", 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_sendMailingListUpdate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteMailingListUpdate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteMailingListUpdate, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteMailingListUpdate(ctx, fc.Args["input"].(types.DeleteMailingListUpdateInput)) - }, - nil, - ec.marshalNDeleteMailingListUpdatePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMailingListUpdatePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteMailingListUpdate(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 "deletedMailingListUpdateId": - return ec.fieldContext_DeleteMailingListUpdatePayload_deletedMailingListUpdateId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteMailingListUpdatePayload", 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_deleteMailingListUpdate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateMailingList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateMailingList, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateMailingList(ctx, fc.Args["input"].(types.UpdateMailingListInput)) - }, - nil, - ec.marshalNUpdateMailingListPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMailingListPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateMailingList(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 "mailingList": - return ec.fieldContext_UpdateMailingListPayload_mailingList(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateMailingListPayload", 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_updateMailingList_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createMailingListSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createMailingListSubscriber, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateMailingListSubscriber(ctx, fc.Args["input"].(types.CreateMailingListSubscriberInput)) - }, - nil, - ec.marshalNCreateMailingListSubscriberPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMailingListSubscriberPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createMailingListSubscriber(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 "mailingListSubscriberEdge": - return ec.fieldContext_CreateMailingListSubscriberPayload_mailingListSubscriberEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateMailingListSubscriberPayload", 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_createMailingListSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteMailingListSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteMailingListSubscriber, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteMailingListSubscriber(ctx, fc.Args["input"].(types.DeleteMailingListSubscriberInput)) - }, - nil, - ec.marshalNDeleteMailingListSubscriberPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMailingListSubscriberPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteMailingListSubscriber(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 "deletedMailingListSubscriberId": - return ec.fieldContext_DeleteMailingListSubscriberPayload_deletedMailingListSubscriberId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteMailingListSubscriberPayload", 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_deleteMailingListSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createTrustCenterReference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createTrustCenterReference, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateTrustCenterReference(ctx, fc.Args["input"].(types.CreateTrustCenterReferenceInput)) - }, - nil, - ec.marshalNCreateTrustCenterReferencePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterReferencePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createTrustCenterReference(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 "trustCenterReferenceEdge": - return ec.fieldContext_CreateTrustCenterReferencePayload_trustCenterReferenceEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateTrustCenterReferencePayload", 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_createTrustCenterReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateTrustCenterReference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateTrustCenterReference, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateTrustCenterReference(ctx, fc.Args["input"].(types.UpdateTrustCenterReferenceInput)) - }, - nil, - ec.marshalNUpdateTrustCenterReferencePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterReferencePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateTrustCenterReference(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 "trustCenterReference": - return ec.fieldContext_UpdateTrustCenterReferencePayload_trustCenterReference(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateTrustCenterReferencePayload", 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_updateTrustCenterReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteTrustCenterReference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteTrustCenterReference, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteTrustCenterReference(ctx, fc.Args["input"].(types.DeleteTrustCenterReferenceInput)) - }, - nil, - ec.marshalNDeleteTrustCenterReferencePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterReferencePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteTrustCenterReference(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 "deletedTrustCenterReferenceId": - return ec.fieldContext_DeleteTrustCenterReferencePayload_deletedTrustCenterReferenceId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteTrustCenterReferencePayload", 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_deleteTrustCenterReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createComplianceFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createComplianceFramework, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateComplianceFramework(ctx, fc.Args["input"].(types.CreateComplianceFrameworkInput)) - }, - nil, - ec.marshalNCreateComplianceFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceFrameworkPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createComplianceFramework(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 "complianceFrameworkEdge": - return ec.fieldContext_CreateComplianceFrameworkPayload_complianceFrameworkEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateComplianceFrameworkPayload", 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_createComplianceFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateComplianceFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateComplianceFramework, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateComplianceFramework(ctx, fc.Args["input"].(types.UpdateComplianceFrameworkInput)) - }, - nil, - ec.marshalNUpdateComplianceFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceFrameworkPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateComplianceFramework(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 "complianceFramework": - return ec.fieldContext_UpdateComplianceFrameworkPayload_complianceFramework(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateComplianceFrameworkPayload", 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_updateComplianceFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteComplianceFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteComplianceFramework, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteComplianceFramework(ctx, fc.Args["input"].(types.DeleteComplianceFrameworkInput)) - }, - nil, - ec.marshalNDeleteComplianceFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceFrameworkPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteComplianceFramework(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 "deletedComplianceFrameworkId": - return ec.fieldContext_DeleteComplianceFrameworkPayload_deletedComplianceFrameworkId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteComplianceFrameworkPayload", 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_deleteComplianceFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createComplianceExternalURL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createComplianceExternalURL, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateComplianceExternalURL(ctx, fc.Args["input"].(types.CreateComplianceExternalURLInput)) - }, - nil, - ec.marshalNCreateComplianceExternalURLPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceExternalURLPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createComplianceExternalURL(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 "complianceExternalUrlEdge": - return ec.fieldContext_CreateComplianceExternalURLPayload_complianceExternalUrlEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateComplianceExternalURLPayload", 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_createComplianceExternalURL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateComplianceExternalURL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateComplianceExternalURL, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateComplianceExternalURL(ctx, fc.Args["input"].(types.UpdateComplianceExternalURLInput)) - }, - nil, - ec.marshalNUpdateComplianceExternalURLPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceExternalURLPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateComplianceExternalURL(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 "complianceExternalUrl": - return ec.fieldContext_UpdateComplianceExternalURLPayload_complianceExternalUrl(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateComplianceExternalURLPayload", 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_updateComplianceExternalURL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteComplianceExternalURL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteComplianceExternalURL, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteComplianceExternalURL(ctx, fc.Args["input"].(types.DeleteComplianceExternalURLInput)) - }, - nil, - ec.marshalNDeleteComplianceExternalURLPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceExternalURLPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteComplianceExternalURL(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 "deletedComplianceExternalUrlId": - return ec.fieldContext_DeleteComplianceExternalURLPayload_deletedComplianceExternalUrlId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteComplianceExternalURLPayload", 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_deleteComplianceExternalURL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createTrustCenterFile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createTrustCenterFile, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateTrustCenterFile(ctx, fc.Args["input"].(types.CreateTrustCenterFileInput)) - }, - nil, - ec.marshalNCreateTrustCenterFilePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterFilePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createTrustCenterFile(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 "trustCenterFileEdge": - return ec.fieldContext_CreateTrustCenterFilePayload_trustCenterFileEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateTrustCenterFilePayload", 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_createTrustCenterFile_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateTrustCenterFile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateTrustCenterFile, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateTrustCenterFile(ctx, fc.Args["input"].(types.UpdateTrustCenterFileInput)) - }, - nil, - ec.marshalNUpdateTrustCenterFilePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterFilePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateTrustCenterFile(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 "trustCenterFile": - return ec.fieldContext_UpdateTrustCenterFilePayload_trustCenterFile(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateTrustCenterFilePayload", 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_updateTrustCenterFile_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_getTrustCenterFile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_getTrustCenterFile, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().GetTrustCenterFile(ctx, fc.Args["input"].(types.GetTrustCenterFileInput)) - }, - nil, - ec.marshalNGetTrustCenterFilePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGetTrustCenterFilePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_getTrustCenterFile(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 "trustCenterFile": - return ec.fieldContext_GetTrustCenterFilePayload_trustCenterFile(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GetTrustCenterFilePayload", 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_getTrustCenterFile_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteTrustCenterFile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteTrustCenterFile, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteTrustCenterFile(ctx, fc.Args["input"].(types.DeleteTrustCenterFileInput)) - }, - nil, - ec.marshalNDeleteTrustCenterFilePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterFilePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteTrustCenterFile(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 "deletedTrustCenterFileId": - return ec.fieldContext_DeleteTrustCenterFilePayload_deletedTrustCenterFileId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteTrustCenterFilePayload", 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_deleteTrustCenterFile_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createVendor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createVendor, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateVendor(ctx, fc.Args["input"].(types.CreateVendorInput)) - }, - nil, - ec.marshalNCreateVendorPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createVendor(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 "vendorEdge": - return ec.fieldContext_CreateVendorPayload_vendorEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateVendorPayload", 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_createVendor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateVendor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateVendor, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateVendor(ctx, fc.Args["input"].(types.UpdateVendorInput)) - }, - nil, - ec.marshalNUpdateVendorPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateVendor(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 "vendor": - return ec.fieldContext_UpdateVendorPayload_vendor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateVendorPayload", 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_updateVendor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteVendor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteVendor, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteVendor(ctx, fc.Args["input"].(types.DeleteVendorInput)) - }, - nil, - ec.marshalNDeleteVendorPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteVendor(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 "deletedVendorId": - return ec.fieldContext_DeleteVendorPayload_deletedVendorId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteVendorPayload", 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_deleteVendor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createVendorContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createVendorContact, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateVendorContact(ctx, fc.Args["input"].(types.CreateVendorContactInput)) - }, - nil, - ec.marshalNCreateVendorContactPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorContactPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createVendorContact(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 "vendorContactEdge": - return ec.fieldContext_CreateVendorContactPayload_vendorContactEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateVendorContactPayload", 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_createVendorContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateVendorContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateVendorContact, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateVendorContact(ctx, fc.Args["input"].(types.UpdateVendorContactInput)) - }, - nil, - ec.marshalNUpdateVendorContactPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorContactPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateVendorContact(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 "vendorContact": - return ec.fieldContext_UpdateVendorContactPayload_vendorContact(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateVendorContactPayload", 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_updateVendorContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteVendorContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteVendorContact, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteVendorContact(ctx, fc.Args["input"].(types.DeleteVendorContactInput)) - }, - nil, - ec.marshalNDeleteVendorContactPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorContactPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteVendorContact(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 "deletedVendorContactId": - return ec.fieldContext_DeleteVendorContactPayload_deletedVendorContactId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteVendorContactPayload", 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_deleteVendorContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createVendorService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createVendorService, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateVendorService(ctx, fc.Args["input"].(types.CreateVendorServiceInput)) - }, - nil, - ec.marshalNCreateVendorServicePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorServicePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createVendorService(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 "vendorServiceEdge": - return ec.fieldContext_CreateVendorServicePayload_vendorServiceEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateVendorServicePayload", 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_createVendorService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateVendorService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateVendorService, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateVendorService(ctx, fc.Args["input"].(types.UpdateVendorServiceInput)) - }, - nil, - ec.marshalNUpdateVendorServicePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorServicePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateVendorService(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 "vendorService": - return ec.fieldContext_UpdateVendorServicePayload_vendorService(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateVendorServicePayload", 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_updateVendorService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteVendorService(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteVendorService, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteVendorService(ctx, fc.Args["input"].(types.DeleteVendorServiceInput)) - }, - nil, - ec.marshalNDeleteVendorServicePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorServicePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteVendorService(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 "deletedVendorServiceId": - return ec.fieldContext_DeleteVendorServicePayload_deletedVendorServiceId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteVendorServicePayload", 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_deleteVendorService_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createFramework, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateFramework(ctx, fc.Args["input"].(types.CreateFrameworkInput)) - }, - nil, - ec.marshalNCreateFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateFrameworkPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createFramework(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 "frameworkEdge": - return ec.fieldContext_CreateFrameworkPayload_frameworkEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateFrameworkPayload", 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_createFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateFramework, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateFramework(ctx, fc.Args["input"].(types.UpdateFrameworkInput)) - }, - nil, - ec.marshalNUpdateFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateFrameworkPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateFramework(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 "framework": - return ec.fieldContext_UpdateFrameworkPayload_framework(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateFrameworkPayload", 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_updateFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_importFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_importFramework, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ImportFramework(ctx, fc.Args["input"].(types.ImportFrameworkInput)) - }, - nil, - ec.marshalNImportFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportFrameworkPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_importFramework(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 "frameworkEdge": - return ec.fieldContext_ImportFrameworkPayload_frameworkEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ImportFrameworkPayload", 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_importFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteFramework, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteFramework(ctx, fc.Args["input"].(types.DeleteFrameworkInput)) - }, - nil, - ec.marshalNDeleteFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteFrameworkPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteFramework(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 "deletedFrameworkId": - return ec.fieldContext_DeleteFrameworkPayload_deletedFrameworkId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteFrameworkPayload", 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_deleteFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_exportFramework(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_exportFramework, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ExportFramework(ctx, fc.Args["input"].(types.ExportFrameworkInput)) - }, - nil, - ec.marshalNExportFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportFrameworkPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_exportFramework(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 "exportJobId": - return ec.fieldContext_ExportFrameworkPayload_exportJobId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExportFrameworkPayload", 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_exportFramework_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createControl, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateControl(ctx, fc.Args["input"].(types.CreateControlInput)) - }, - nil, - ec.marshalNCreateControlPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createControl(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 "controlEdge": - return ec.fieldContext_CreateControlPayload_controlEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateControlPayload", 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_createControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateControl, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateControl(ctx, fc.Args["input"].(types.UpdateControlInput)) - }, - nil, - ec.marshalNUpdateControlPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateControlPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateControl(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 "control": - return ec.fieldContext_UpdateControlPayload_control(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateControlPayload", 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_updateControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteControl, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteControl(ctx, fc.Args["input"].(types.DeleteControlInput)) - }, - nil, - ec.marshalNDeleteControlPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteControl(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 "deletedControlId": - return ec.fieldContext_DeleteControlPayload_deletedControlId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteControlPayload", 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_deleteControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createMeasure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createMeasure, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateMeasure(ctx, fc.Args["input"].(types.CreateMeasureInput)) - }, - nil, - ec.marshalNCreateMeasurePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeasurePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createMeasure(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 "measureEdge": - return ec.fieldContext_CreateMeasurePayload_measureEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateMeasurePayload", 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_createMeasure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateMeasure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateMeasure, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateMeasure(ctx, fc.Args["input"].(types.UpdateMeasureInput)) - }, - nil, - ec.marshalNUpdateMeasurePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeasurePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateMeasure(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 "measure": - return ec.fieldContext_UpdateMeasurePayload_measure(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateMeasurePayload", 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_updateMeasure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_importMeasure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_importMeasure, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ImportMeasure(ctx, fc.Args["input"].(types.ImportMeasureInput)) - }, - nil, - ec.marshalNImportMeasurePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMeasurePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_importMeasure(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 "measureEdges": - return ec.fieldContext_ImportMeasurePayload_measureEdges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ImportMeasurePayload", 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_importMeasure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteMeasure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteMeasure, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteMeasure(ctx, fc.Args["input"].(types.DeleteMeasureInput)) - }, - nil, - ec.marshalNDeleteMeasurePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeasurePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteMeasure(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 "deletedMeasureId": - return ec.fieldContext_DeleteMeasurePayload_deletedMeasureId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteMeasurePayload", 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_deleteMeasure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createControlMeasureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createControlMeasureMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateControlMeasureMapping(ctx, fc.Args["input"].(types.CreateControlMeasureMappingInput)) - }, - nil, - ec.marshalNCreateControlMeasureMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMeasureMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createControlMeasureMapping(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 "controlEdge": - return ec.fieldContext_CreateControlMeasureMappingPayload_controlEdge(ctx, field) - case "measureEdge": - return ec.fieldContext_CreateControlMeasureMappingPayload_measureEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateControlMeasureMappingPayload", 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_createControlMeasureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createControlDocumentMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createControlDocumentMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateControlDocumentMapping(ctx, fc.Args["input"].(types.CreateControlDocumentMappingInput)) - }, - nil, - ec.marshalNCreateControlDocumentMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlDocumentMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createControlDocumentMapping(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 "controlEdge": - return ec.fieldContext_CreateControlDocumentMappingPayload_controlEdge(ctx, field) - case "documentEdge": - return ec.fieldContext_CreateControlDocumentMappingPayload_documentEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateControlDocumentMappingPayload", 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_createControlDocumentMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteControlMeasureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteControlMeasureMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteControlMeasureMapping(ctx, fc.Args["input"].(types.DeleteControlMeasureMappingInput)) - }, - nil, - ec.marshalNDeleteControlMeasureMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMeasureMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteControlMeasureMapping(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 "deletedControlId": - return ec.fieldContext_DeleteControlMeasureMappingPayload_deletedControlId(ctx, field) - case "deletedMeasureId": - return ec.fieldContext_DeleteControlMeasureMappingPayload_deletedMeasureId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteControlMeasureMappingPayload", 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_deleteControlMeasureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteControlDocumentMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteControlDocumentMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteControlDocumentMapping(ctx, fc.Args["input"].(types.DeleteControlDocumentMappingInput)) - }, - nil, - ec.marshalNDeleteControlDocumentMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlDocumentMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteControlDocumentMapping(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 "deletedControlId": - return ec.fieldContext_DeleteControlDocumentMappingPayload_deletedControlId(ctx, field) - case "deletedDocumentId": - return ec.fieldContext_DeleteControlDocumentMappingPayload_deletedDocumentId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteControlDocumentMappingPayload", 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_deleteControlDocumentMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createApplicabilityStatement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createApplicabilityStatement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateApplicabilityStatement(ctx, fc.Args["input"].(types.CreateApplicabilityStatementInput)) - }, - nil, - ec.marshalNCreateApplicabilityStatementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateApplicabilityStatementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createApplicabilityStatement(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 "applicabilityStatementEdge": - return ec.fieldContext_CreateApplicabilityStatementPayload_applicabilityStatementEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateApplicabilityStatementPayload", 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_createApplicabilityStatement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateApplicabilityStatement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateApplicabilityStatement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateApplicabilityStatement(ctx, fc.Args["input"].(types.UpdateApplicabilityStatementInput)) - }, - nil, - ec.marshalNUpdateApplicabilityStatementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateApplicabilityStatementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateApplicabilityStatement(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 "applicabilityStatement": - return ec.fieldContext_UpdateApplicabilityStatementPayload_applicabilityStatement(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateApplicabilityStatementPayload", 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_updateApplicabilityStatement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteApplicabilityStatement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteApplicabilityStatement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteApplicabilityStatement(ctx, fc.Args["input"].(types.DeleteApplicabilityStatementInput)) - }, - nil, - ec.marshalNDeleteApplicabilityStatementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteApplicabilityStatementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteApplicabilityStatement(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 "deletedApplicabilityStatementId": - return ec.fieldContext_DeleteApplicabilityStatementPayload_deletedApplicabilityStatementId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteApplicabilityStatementPayload", 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_deleteApplicabilityStatement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createControlAuditMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createControlAuditMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateControlAuditMapping(ctx, fc.Args["input"].(types.CreateControlAuditMappingInput)) - }, - nil, - ec.marshalNCreateControlAuditMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlAuditMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createControlAuditMapping(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 "controlEdge": - return ec.fieldContext_CreateControlAuditMappingPayload_controlEdge(ctx, field) - case "auditEdge": - return ec.fieldContext_CreateControlAuditMappingPayload_auditEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateControlAuditMappingPayload", 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_createControlAuditMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteControlAuditMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteControlAuditMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteControlAuditMapping(ctx, fc.Args["input"].(types.DeleteControlAuditMappingInput)) - }, - nil, - ec.marshalNDeleteControlAuditMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlAuditMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteControlAuditMapping(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 "deletedControlId": - return ec.fieldContext_DeleteControlAuditMappingPayload_deletedControlId(ctx, field) - case "deletedAuditId": - return ec.fieldContext_DeleteControlAuditMappingPayload_deletedAuditId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteControlAuditMappingPayload", 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_deleteControlAuditMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createControlObligationMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createControlObligationMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateControlObligationMapping(ctx, fc.Args["input"].(types.CreateControlObligationMappingInput)) - }, - nil, - ec.marshalNCreateControlObligationMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlObligationMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createControlObligationMapping(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 "controlEdge": - return ec.fieldContext_CreateControlObligationMappingPayload_controlEdge(ctx, field) - case "obligationEdge": - return ec.fieldContext_CreateControlObligationMappingPayload_obligationEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateControlObligationMappingPayload", 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_createControlObligationMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteControlObligationMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteControlObligationMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteControlObligationMapping(ctx, fc.Args["input"].(types.DeleteControlObligationMappingInput)) - }, - nil, - ec.marshalNDeleteControlObligationMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlObligationMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteControlObligationMapping(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 "deletedControlId": - return ec.fieldContext_DeleteControlObligationMappingPayload_deletedControlId(ctx, field) - case "deletedObligationId": - return ec.fieldContext_DeleteControlObligationMappingPayload_deletedObligationId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteControlObligationMappingPayload", 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_deleteControlObligationMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createControlSnapshotMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createControlSnapshotMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateControlSnapshotMapping(ctx, fc.Args["input"].(types.CreateControlSnapshotMappingInput)) - }, - nil, - ec.marshalNCreateControlSnapshotMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlSnapshotMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createControlSnapshotMapping(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 "controlEdge": - return ec.fieldContext_CreateControlSnapshotMappingPayload_controlEdge(ctx, field) - case "snapshotEdge": - return ec.fieldContext_CreateControlSnapshotMappingPayload_snapshotEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateControlSnapshotMappingPayload", 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_createControlSnapshotMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteControlSnapshotMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteControlSnapshotMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteControlSnapshotMapping(ctx, fc.Args["input"].(types.DeleteControlSnapshotMappingInput)) - }, - nil, - ec.marshalNDeleteControlSnapshotMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlSnapshotMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteControlSnapshotMapping(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 "deletedControlId": - return ec.fieldContext_DeleteControlSnapshotMappingPayload_deletedControlId(ctx, field) - case "deletedSnapshotId": - return ec.fieldContext_DeleteControlSnapshotMappingPayload_deletedSnapshotId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteControlSnapshotMappingPayload", 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_deleteControlSnapshotMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createTask, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateTask(ctx, fc.Args["input"].(types.CreateTaskInput)) - }, - nil, - ec.marshalNCreateTaskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTaskPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createTask(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 "taskEdge": - return ec.fieldContext_CreateTaskPayload_taskEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateTaskPayload", 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_createTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateTask, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateTask(ctx, fc.Args["input"].(types.UpdateTaskInput)) - }, - nil, - ec.marshalNUpdateTaskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTaskPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateTask(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 "task": - return ec.fieldContext_UpdateTaskPayload_task(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateTaskPayload", 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_updateTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteTask, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteTask(ctx, fc.Args["input"].(types.DeleteTaskInput)) - }, - nil, - ec.marshalNDeleteTaskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTaskPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteTask(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 "deletedTaskId": - return ec.fieldContext_DeleteTaskPayload_deletedTaskId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteTaskPayload", 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_deleteTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createRisk, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateRisk(ctx, fc.Args["input"].(types.CreateRiskInput)) - }, - nil, - ec.marshalNCreateRiskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createRisk(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 "riskEdge": - return ec.fieldContext_CreateRiskPayload_riskEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateRiskPayload", 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_createRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateRisk, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateRisk(ctx, fc.Args["input"].(types.UpdateRiskInput)) - }, - nil, - ec.marshalNUpdateRiskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRiskPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateRisk(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 "risk": - return ec.fieldContext_UpdateRiskPayload_risk(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateRiskPayload", 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_updateRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteRisk, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteRisk(ctx, fc.Args["input"].(types.DeleteRiskInput)) - }, - nil, - ec.marshalNDeleteRiskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteRisk(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 "deletedRiskId": - return ec.fieldContext_DeleteRiskPayload_deletedRiskId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteRiskPayload", 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_deleteRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createRiskMeasureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createRiskMeasureMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateRiskMeasureMapping(ctx, fc.Args["input"].(types.CreateRiskMeasureMappingInput)) - }, - nil, - ec.marshalNCreateRiskMeasureMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMeasureMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createRiskMeasureMapping(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 "riskEdge": - return ec.fieldContext_CreateRiskMeasureMappingPayload_riskEdge(ctx, field) - case "measureEdge": - return ec.fieldContext_CreateRiskMeasureMappingPayload_measureEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateRiskMeasureMappingPayload", 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_createRiskMeasureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteRiskMeasureMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteRiskMeasureMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteRiskMeasureMapping(ctx, fc.Args["input"].(types.DeleteRiskMeasureMappingInput)) - }, - nil, - ec.marshalNDeleteRiskMeasureMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMeasureMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteRiskMeasureMapping(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 "deletedMeasureId": - return ec.fieldContext_DeleteRiskMeasureMappingPayload_deletedMeasureId(ctx, field) - case "deletedRiskId": - return ec.fieldContext_DeleteRiskMeasureMappingPayload_deletedRiskId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteRiskMeasureMappingPayload", 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_deleteRiskMeasureMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createRiskDocumentMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createRiskDocumentMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateRiskDocumentMapping(ctx, fc.Args["input"].(types.CreateRiskDocumentMappingInput)) - }, - nil, - ec.marshalNCreateRiskDocumentMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskDocumentMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createRiskDocumentMapping(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 "riskEdge": - return ec.fieldContext_CreateRiskDocumentMappingPayload_riskEdge(ctx, field) - case "documentEdge": - return ec.fieldContext_CreateRiskDocumentMappingPayload_documentEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateRiskDocumentMappingPayload", 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_createRiskDocumentMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteRiskDocumentMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteRiskDocumentMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteRiskDocumentMapping(ctx, fc.Args["input"].(types.DeleteRiskDocumentMappingInput)) - }, - nil, - ec.marshalNDeleteRiskDocumentMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskDocumentMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteRiskDocumentMapping(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 "deletedRiskId": - return ec.fieldContext_DeleteRiskDocumentMappingPayload_deletedRiskId(ctx, field) - case "deletedDocumentId": - return ec.fieldContext_DeleteRiskDocumentMappingPayload_deletedDocumentId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteRiskDocumentMappingPayload", 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_deleteRiskDocumentMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createRiskObligationMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createRiskObligationMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateRiskObligationMapping(ctx, fc.Args["input"].(types.CreateRiskObligationMappingInput)) - }, - nil, - ec.marshalNCreateRiskObligationMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskObligationMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createRiskObligationMapping(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 "riskEdge": - return ec.fieldContext_CreateRiskObligationMappingPayload_riskEdge(ctx, field) - case "obligationEdge": - return ec.fieldContext_CreateRiskObligationMappingPayload_obligationEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateRiskObligationMappingPayload", 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_createRiskObligationMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteRiskObligationMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteRiskObligationMapping, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteRiskObligationMapping(ctx, fc.Args["input"].(types.DeleteRiskObligationMappingInput)) - }, - nil, - ec.marshalNDeleteRiskObligationMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskObligationMappingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteRiskObligationMapping(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 "deletedRiskId": - return ec.fieldContext_DeleteRiskObligationMappingPayload_deletedRiskId(ctx, field) - case "deletedObligationId": - return ec.fieldContext_DeleteRiskObligationMappingPayload_deletedObligationId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteRiskObligationMappingPayload", 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_deleteRiskObligationMapping_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteEvidence, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteEvidence(ctx, fc.Args["input"].(types.DeleteEvidenceInput)) - }, - nil, - ec.marshalNDeleteEvidencePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteEvidencePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteEvidence(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 "deletedEvidenceId": - return ec.fieldContext_DeleteEvidencePayload_deletedEvidenceId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteEvidencePayload", 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_deleteEvidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_uploadMeasureEvidence(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_uploadMeasureEvidence, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UploadMeasureEvidence(ctx, fc.Args["input"].(types.UploadMeasureEvidenceInput)) - }, - nil, - ec.marshalNUploadMeasureEvidencePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadMeasureEvidencePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_uploadMeasureEvidence(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 "evidenceEdge": - return ec.fieldContext_UploadMeasureEvidencePayload_evidenceEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UploadMeasureEvidencePayload", 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_uploadMeasureEvidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_uploadVendorComplianceReport(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_uploadVendorComplianceReport, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UploadVendorComplianceReport(ctx, fc.Args["input"].(types.UploadVendorComplianceReportInput)) - }, - nil, - ec.marshalNUploadVendorComplianceReportPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorComplianceReportPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_uploadVendorComplianceReport(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 "vendorComplianceReportEdge": - return ec.fieldContext_UploadVendorComplianceReportPayload_vendorComplianceReportEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UploadVendorComplianceReportPayload", 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_uploadVendorComplianceReport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteVendorComplianceReport(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteVendorComplianceReport, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteVendorComplianceReport(ctx, fc.Args["input"].(types.DeleteVendorComplianceReportInput)) - }, - nil, - ec.marshalNDeleteVendorComplianceReportPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorComplianceReportPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteVendorComplianceReport(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 "deletedVendorComplianceReportId": - return ec.fieldContext_DeleteVendorComplianceReportPayload_deletedVendorComplianceReportId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteVendorComplianceReportPayload", 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_deleteVendorComplianceReport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_uploadVendorBusinessAssociateAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_uploadVendorBusinessAssociateAgreement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UploadVendorBusinessAssociateAgreement(ctx, fc.Args["input"].(types.UploadVendorBusinessAssociateAgreementInput)) - }, - nil, - ec.marshalNUploadVendorBusinessAssociateAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorBusinessAssociateAgreementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_uploadVendorBusinessAssociateAgreement(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 "vendorBusinessAssociateAgreement": - return ec.fieldContext_UploadVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UploadVendorBusinessAssociateAgreementPayload", 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_uploadVendorBusinessAssociateAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateVendorBusinessAssociateAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateVendorBusinessAssociateAgreement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateVendorBusinessAssociateAgreement(ctx, fc.Args["input"].(types.UpdateVendorBusinessAssociateAgreementInput)) - }, - nil, - ec.marshalNUpdateVendorBusinessAssociateAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorBusinessAssociateAgreementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateVendorBusinessAssociateAgreement(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 "vendorBusinessAssociateAgreement": - return ec.fieldContext_UpdateVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateVendorBusinessAssociateAgreementPayload", 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_updateVendorBusinessAssociateAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteVendorBusinessAssociateAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteVendorBusinessAssociateAgreement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteVendorBusinessAssociateAgreement(ctx, fc.Args["input"].(types.DeleteVendorBusinessAssociateAgreementInput)) - }, - nil, - ec.marshalNDeleteVendorBusinessAssociateAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorBusinessAssociateAgreementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteVendorBusinessAssociateAgreement(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 "deletedVendorId": - return ec.fieldContext_DeleteVendorBusinessAssociateAgreementPayload_deletedVendorId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteVendorBusinessAssociateAgreementPayload", 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_deleteVendorBusinessAssociateAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_uploadVendorDataPrivacyAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_uploadVendorDataPrivacyAgreement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UploadVendorDataPrivacyAgreement(ctx, fc.Args["input"].(types.UploadVendorDataPrivacyAgreementInput)) - }, - nil, - ec.marshalNUploadVendorDataPrivacyAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorDataPrivacyAgreementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_uploadVendorDataPrivacyAgreement(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 "vendorDataPrivacyAgreement": - return ec.fieldContext_UploadVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UploadVendorDataPrivacyAgreementPayload", 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_uploadVendorDataPrivacyAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateVendorDataPrivacyAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateVendorDataPrivacyAgreement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateVendorDataPrivacyAgreement(ctx, fc.Args["input"].(types.UpdateVendorDataPrivacyAgreementInput)) - }, - nil, - ec.marshalNUpdateVendorDataPrivacyAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorDataPrivacyAgreementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateVendorDataPrivacyAgreement(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 "vendorDataPrivacyAgreement": - return ec.fieldContext_UpdateVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateVendorDataPrivacyAgreementPayload", 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_updateVendorDataPrivacyAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteVendorDataPrivacyAgreement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteVendorDataPrivacyAgreement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteVendorDataPrivacyAgreement(ctx, fc.Args["input"].(types.DeleteVendorDataPrivacyAgreementInput)) - }, - nil, - ec.marshalNDeleteVendorDataPrivacyAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorDataPrivacyAgreementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteVendorDataPrivacyAgreement(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 "deletedVendorId": - return ec.fieldContext_DeleteVendorDataPrivacyAgreementPayload_deletedVendorId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteVendorDataPrivacyAgreementPayload", 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_deleteVendorDataPrivacyAgreement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createDocument, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateDocument(ctx, fc.Args["input"].(types.CreateDocumentInput)) - }, - nil, - ec.marshalNCreateDocumentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDocumentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createDocument(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 "documentEdge": - return ec.fieldContext_CreateDocumentPayload_documentEdge(ctx, field) - case "documentVersionEdge": - return ec.fieldContext_CreateDocumentPayload_documentVersionEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateDocumentPayload", 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_createDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateDocument, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateDocument(ctx, fc.Args["input"].(types.UpdateDocumentInput)) - }, - nil, - ec.marshalNUpdateDocumentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateDocument(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 "document": - return ec.fieldContext_UpdateDocumentPayload_document(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateDocumentPayload", 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_updateDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteDocument, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteDocument(ctx, fc.Args["input"].(types.DeleteDocumentInput)) - }, - nil, - ec.marshalNDeleteDocumentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDocumentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteDocument(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 "deletedDocumentId": - return ec.fieldContext_DeleteDocumentPayload_deletedDocumentId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteDocumentPayload", 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_deleteDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createMeeting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createMeeting, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateMeeting(ctx, fc.Args["input"].(types.CreateMeetingInput)) - }, - nil, - ec.marshalNCreateMeetingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeetingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createMeeting(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 "meetingEdge": - return ec.fieldContext_CreateMeetingPayload_meetingEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateMeetingPayload", 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_createMeeting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateMeeting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateMeeting, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateMeeting(ctx, fc.Args["input"].(types.UpdateMeetingInput)) - }, - nil, - ec.marshalNUpdateMeetingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeetingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateMeeting(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 "meeting": - return ec.fieldContext_UpdateMeetingPayload_meeting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateMeetingPayload", 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_updateMeeting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteMeeting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteMeeting, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteMeeting(ctx, fc.Args["input"].(types.DeleteMeetingInput)) - }, - nil, - ec.marshalNDeleteMeetingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeetingPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteMeeting(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 "deletedMeetingId": - return ec.fieldContext_DeleteMeetingPayload_deletedMeetingId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteMeetingPayload", 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_deleteMeeting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createWebhookSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createWebhookSubscription, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateWebhookSubscription(ctx, fc.Args["input"].(types.CreateWebhookSubscriptionInput)) - }, - nil, - ec.marshalNCreateWebhookSubscriptionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateWebhookSubscriptionPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createWebhookSubscription(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 "webhookSubscriptionEdge": - return ec.fieldContext_CreateWebhookSubscriptionPayload_webhookSubscriptionEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateWebhookSubscriptionPayload", 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_createWebhookSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateWebhookSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateWebhookSubscription, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateWebhookSubscription(ctx, fc.Args["input"].(types.UpdateWebhookSubscriptionInput)) - }, - nil, - ec.marshalNUpdateWebhookSubscriptionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateWebhookSubscriptionPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateWebhookSubscription(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 "webhookSubscription": - return ec.fieldContext_UpdateWebhookSubscriptionPayload_webhookSubscription(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateWebhookSubscriptionPayload", 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_updateWebhookSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteWebhookSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteWebhookSubscription, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteWebhookSubscription(ctx, fc.Args["input"].(types.DeleteWebhookSubscriptionInput)) - }, - nil, - ec.marshalNDeleteWebhookSubscriptionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteWebhookSubscriptionPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteWebhookSubscription(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 "deletedWebhookSubscriptionId": - return ec.fieldContext_DeleteWebhookSubscriptionPayload_deletedWebhookSubscriptionId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteWebhookSubscriptionPayload", 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_deleteWebhookSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createStateOfApplicability(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createStateOfApplicability, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateStateOfApplicability(ctx, fc.Args["input"].(types.CreateStateOfApplicabilityInput)) - }, - nil, - ec.marshalNCreateStateOfApplicabilityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateStateOfApplicabilityPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createStateOfApplicability(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 "stateOfApplicabilityEdge": - return ec.fieldContext_CreateStateOfApplicabilityPayload_stateOfApplicabilityEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateStateOfApplicabilityPayload", 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_createStateOfApplicability_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateStateOfApplicability(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateStateOfApplicability, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateStateOfApplicability(ctx, fc.Args["input"].(types.UpdateStateOfApplicabilityInput)) - }, - nil, - ec.marshalNUpdateStateOfApplicabilityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateStateOfApplicabilityPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateStateOfApplicability(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 "stateOfApplicability": - return ec.fieldContext_UpdateStateOfApplicabilityPayload_stateOfApplicability(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateStateOfApplicabilityPayload", 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_updateStateOfApplicability_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteStateOfApplicability(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteStateOfApplicability, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteStateOfApplicability(ctx, fc.Args["input"].(types.DeleteStateOfApplicabilityInput)) - }, - nil, - ec.marshalNDeleteStateOfApplicabilityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteStateOfApplicabilityPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteStateOfApplicability(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 "deletedStateOfApplicabilityId": - return ec.fieldContext_DeleteStateOfApplicabilityPayload_deletedStateOfApplicabilityId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteStateOfApplicabilityPayload", 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_deleteStateOfApplicability_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_exportStateOfApplicabilityPDF(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_exportStateOfApplicabilityPDF, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ExportStateOfApplicabilityPDF(ctx, fc.Args["input"].(types.ExportStateOfApplicabilityPDFInput)) - }, - nil, - ec.marshalNExportStateOfApplicabilityPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportStateOfApplicabilityPDFPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_exportStateOfApplicabilityPDF(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 "data": - return ec.fieldContext_ExportStateOfApplicabilityPDFPayload_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExportStateOfApplicabilityPDFPayload", 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_exportStateOfApplicabilityPDF_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_publishDocumentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_publishDocumentVersion, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().PublishDocumentVersion(ctx, fc.Args["input"].(types.PublishDocumentVersionInput)) - }, - nil, - ec.marshalNPublishDocumentVersionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPublishDocumentVersionPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_publishDocumentVersion(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 "documentVersion": - return ec.fieldContext_PublishDocumentVersionPayload_documentVersion(ctx, field) - case "document": - return ec.fieldContext_PublishDocumentVersionPayload_document(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PublishDocumentVersionPayload", 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_publishDocumentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_bulkPublishDocumentVersions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_bulkPublishDocumentVersions, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().BulkPublishDocumentVersions(ctx, fc.Args["input"].(types.BulkPublishDocumentVersionsInput)) - }, - nil, - ec.marshalNBulkPublishDocumentVersionsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkPublishDocumentVersionsPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_bulkPublishDocumentVersions(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 "documentVersionEdges": - return ec.fieldContext_BulkPublishDocumentVersionsPayload_documentVersionEdges(ctx, field) - case "documentEdges": - return ec.fieldContext_BulkPublishDocumentVersionsPayload_documentEdges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type BulkPublishDocumentVersionsPayload", 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_bulkPublishDocumentVersions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_bulkDeleteDocuments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_bulkDeleteDocuments, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().BulkDeleteDocuments(ctx, fc.Args["input"].(types.BulkDeleteDocumentsInput)) - }, - nil, - ec.marshalNBulkDeleteDocumentsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkDeleteDocumentsPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_bulkDeleteDocuments(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 "deletedDocumentIds": - return ec.fieldContext_BulkDeleteDocumentsPayload_deletedDocumentIds(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type BulkDeleteDocumentsPayload", 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_bulkDeleteDocuments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_bulkExportDocuments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_bulkExportDocuments, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().BulkExportDocuments(ctx, fc.Args["input"].(types.BulkExportDocumentsInput)) - }, - nil, - ec.marshalNBulkExportDocumentsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkExportDocumentsPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_bulkExportDocuments(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 "exportJobId": - return ec.fieldContext_BulkExportDocumentsPayload_exportJobId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type BulkExportDocumentsPayload", 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_bulkExportDocuments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_generateDocumentChangelog(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_generateDocumentChangelog, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().GenerateDocumentChangelog(ctx, fc.Args["input"].(types.GenerateDocumentChangelogInput)) - }, - nil, - ec.marshalNGenerateDocumentChangelogPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateDocumentChangelogPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_generateDocumentChangelog(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 "changelog": - return ec.fieldContext_GenerateDocumentChangelogPayload_changelog(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GenerateDocumentChangelogPayload", 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_generateDocumentChangelog_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createDraftDocumentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createDraftDocumentVersion, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateDraftDocumentVersion(ctx, fc.Args["input"].(types.CreateDraftDocumentVersionInput)) - }, - nil, - ec.marshalNCreateDraftDocumentVersionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDraftDocumentVersionPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createDraftDocumentVersion(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 "documentVersionEdge": - return ec.fieldContext_CreateDraftDocumentVersionPayload_documentVersionEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateDraftDocumentVersionPayload", 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_createDraftDocumentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteDraftDocumentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteDraftDocumentVersion, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteDraftDocumentVersion(ctx, fc.Args["input"].(types.DeleteDraftDocumentVersionInput)) - }, - nil, - ec.marshalNDeleteDraftDocumentVersionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDraftDocumentVersionPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteDraftDocumentVersion(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 "deletedDocumentVersionId": - return ec.fieldContext_DeleteDraftDocumentVersionPayload_deletedDocumentVersionId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteDraftDocumentVersionPayload", 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_deleteDraftDocumentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateDocumentVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateDocumentVersion, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateDocumentVersion(ctx, fc.Args["input"].(types.UpdateDocumentVersionInput)) - }, - nil, - ec.marshalNUpdateDocumentVersionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentVersionPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateDocumentVersion(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 "documentVersion": - return ec.fieldContext_UpdateDocumentVersionPayload_documentVersion(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateDocumentVersionPayload", 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_updateDocumentVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_requestSignature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_requestSignature, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().RequestSignature(ctx, fc.Args["input"].(types.RequestSignatureInput)) - }, - nil, - ec.marshalNRequestSignaturePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestSignaturePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_requestSignature(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 "documentVersionSignatureEdge": - return ec.fieldContext_RequestSignaturePayload_documentVersionSignatureEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RequestSignaturePayload", 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_requestSignature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_bulkRequestSignatures(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_bulkRequestSignatures, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().BulkRequestSignatures(ctx, fc.Args["input"].(types.BulkRequestSignaturesInput)) - }, - nil, - ec.marshalNBulkRequestSignaturesPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkRequestSignaturesPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_bulkRequestSignatures(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 "documentVersionSignatureEdges": - return ec.fieldContext_BulkRequestSignaturesPayload_documentVersionSignatureEdges(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type BulkRequestSignaturesPayload", 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_bulkRequestSignatures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_sendSigningNotifications(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_sendSigningNotifications, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().SendSigningNotifications(ctx, fc.Args["input"].(types.SendSigningNotificationsInput)) - }, - nil, - ec.marshalNSendSigningNotificationsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendSigningNotificationsPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_sendSigningNotifications(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 "success": - return ec.fieldContext_SendSigningNotificationsPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SendSigningNotificationsPayload", 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_sendSigningNotifications_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_cancelSignatureRequest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_cancelSignatureRequest, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CancelSignatureRequest(ctx, fc.Args["input"].(types.CancelSignatureRequestInput)) - }, - nil, - ec.marshalNCancelSignatureRequestPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCancelSignatureRequestPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_cancelSignatureRequest(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 "deletedDocumentVersionSignatureId": - return ec.fieldContext_CancelSignatureRequestPayload_deletedDocumentVersionSignatureId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CancelSignatureRequestPayload", 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_cancelSignatureRequest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_signDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_signDocument, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().SignDocument(ctx, fc.Args["input"].(types.SignDocumentInput)) - }, - nil, - ec.marshalNSignDocumentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignDocumentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_signDocument(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 "documentVersionSignature": - return ec.fieldContext_SignDocumentPayload_documentVersionSignature(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SignDocumentPayload", 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_signDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_exportDocumentVersionPDF(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_exportDocumentVersionPDF, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ExportDocumentVersionPDF(ctx, fc.Args["input"].(types.ExportDocumentVersionPDFInput)) - }, - nil, - ec.marshalNExportDocumentVersionPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDocumentVersionPDFPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_exportDocumentVersionPDF(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 "data": - return ec.fieldContext_ExportDocumentVersionPDFPayload_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExportDocumentVersionPDFPayload", 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_exportDocumentVersionPDF_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_exportSignableVersionDocumentPDF(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_exportSignableVersionDocumentPDF, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ExportSignableVersionDocumentPDF(ctx, fc.Args["input"].(types.ExportSignableDocumentVersionPDFInput)) - }, - nil, - ec.marshalNExportSignableDocumentVersionPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportSignableDocumentVersionPDFPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_exportSignableVersionDocumentPDF(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 "data": - return ec.fieldContext_ExportSignableDocumentVersionPDFPayload_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExportSignableDocumentVersionPDFPayload", 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_exportSignableVersionDocumentPDF_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_exportProcessingActivitiesPDF(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_exportProcessingActivitiesPDF, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ExportProcessingActivitiesPDF(ctx, fc.Args["input"].(types.ExportProcessingActivitiesPDFInput)) - }, - nil, - ec.marshalNExportProcessingActivitiesPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportProcessingActivitiesPDFPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_exportProcessingActivitiesPDF(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 "data": - return ec.fieldContext_ExportProcessingActivitiesPDFPayload_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExportProcessingActivitiesPDFPayload", 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_exportProcessingActivitiesPDF_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_exportDataProtectionImpactAssessmentsPDF(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_exportDataProtectionImpactAssessmentsPDF, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ExportDataProtectionImpactAssessmentsPDF(ctx, fc.Args["input"].(types.ExportDataProtectionImpactAssessmentsPDFInput)) - }, - nil, - ec.marshalNExportDataProtectionImpactAssessmentsPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDataProtectionImpactAssessmentsPDFPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_exportDataProtectionImpactAssessmentsPDF(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 "data": - return ec.fieldContext_ExportDataProtectionImpactAssessmentsPDFPayload_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExportDataProtectionImpactAssessmentsPDFPayload", 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_exportDataProtectionImpactAssessmentsPDF_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_exportTransferImpactAssessmentsPDF(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_exportTransferImpactAssessmentsPDF, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ExportTransferImpactAssessmentsPDF(ctx, fc.Args["input"].(types.ExportTransferImpactAssessmentsPDFInput)) - }, - nil, - ec.marshalNExportTransferImpactAssessmentsPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportTransferImpactAssessmentsPDFPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_exportTransferImpactAssessmentsPDF(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 "data": - return ec.fieldContext_ExportTransferImpactAssessmentsPDFPayload_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExportTransferImpactAssessmentsPDFPayload", 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_exportTransferImpactAssessmentsPDF_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createVendorRiskAssessment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createVendorRiskAssessment, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateVendorRiskAssessment(ctx, fc.Args["input"].(types.CreateVendorRiskAssessmentInput)) - }, - nil, - ec.marshalNCreateVendorRiskAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorRiskAssessmentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createVendorRiskAssessment(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 "vendorRiskAssessmentEdge": - return ec.fieldContext_CreateVendorRiskAssessmentPayload_vendorRiskAssessmentEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateVendorRiskAssessmentPayload", 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_createVendorRiskAssessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_assessVendor(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_assessVendor, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().AssessVendor(ctx, fc.Args["input"].(types.AssessVendorInput)) - }, - nil, - ec.marshalNAssessVendorPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssessVendorPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_assessVendor(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 "vendor": - return ec.fieldContext_AssessVendorPayload_vendor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AssessVendorPayload", 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_assessVendor_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createAsset(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createAsset, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateAsset(ctx, fc.Args["input"].(types.CreateAssetInput)) - }, - nil, - ec.marshalNCreateAssetPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAssetPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createAsset(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 "assetEdge": - return ec.fieldContext_CreateAssetPayload_assetEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateAssetPayload", 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_createAsset_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateAsset(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateAsset, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateAsset(ctx, fc.Args["input"].(types.UpdateAssetInput)) - }, - nil, - ec.marshalNUpdateAssetPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAssetPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateAsset(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 "asset": - return ec.fieldContext_UpdateAssetPayload_asset(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateAssetPayload", 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_updateAsset_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteAsset(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteAsset, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteAsset(ctx, fc.Args["input"].(types.DeleteAssetInput)) - }, - nil, - ec.marshalNDeleteAssetPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAssetPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteAsset(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 "deletedAssetId": - return ec.fieldContext_DeleteAssetPayload_deletedAssetId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteAssetPayload", 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_deleteAsset_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createDatum(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createDatum, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateDatum(ctx, fc.Args["input"].(types.CreateDatumInput)) - }, - nil, - ec.marshalNCreateDatumPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDatumPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createDatum(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 "datumEdge": - return ec.fieldContext_CreateDatumPayload_datumEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateDatumPayload", 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_createDatum_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateDatum(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateDatum, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateDatum(ctx, fc.Args["input"].(types.UpdateDatumInput)) - }, - nil, - ec.marshalNUpdateDatumPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDatumPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateDatum(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 "datum": - return ec.fieldContext_UpdateDatumPayload_datum(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateDatumPayload", 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_updateDatum_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteDatum(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteDatum, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteDatum(ctx, fc.Args["input"].(types.DeleteDatumInput)) - }, - nil, - ec.marshalNDeleteDatumPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDatumPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteDatum(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 "deletedDatumId": - return ec.fieldContext_DeleteDatumPayload_deletedDatumId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteDatumPayload", 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_deleteDatum_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createAudit(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createAudit, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateAudit(ctx, fc.Args["input"].(types.CreateAuditInput)) - }, - nil, - ec.marshalNCreateAuditPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAuditPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createAudit(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 "auditEdge": - return ec.fieldContext_CreateAuditPayload_auditEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateAuditPayload", 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_createAudit_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateAudit(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateAudit, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateAudit(ctx, fc.Args["input"].(types.UpdateAuditInput)) - }, - nil, - ec.marshalNUpdateAuditPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAuditPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateAudit(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 "audit": - return ec.fieldContext_UpdateAuditPayload_audit(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateAuditPayload", 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_updateAudit_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteAudit(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteAudit, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteAudit(ctx, fc.Args["input"].(types.DeleteAuditInput)) - }, - nil, - ec.marshalNDeleteAuditPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteAudit(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 "deletedAuditId": - return ec.fieldContext_DeleteAuditPayload_deletedAuditId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteAuditPayload", 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_deleteAudit_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_uploadAuditReport(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_uploadAuditReport, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UploadAuditReport(ctx, fc.Args["input"].(types.UploadAuditReportInput)) - }, - nil, - ec.marshalNUploadAuditReportPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadAuditReportPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_uploadAuditReport(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 "audit": - return ec.fieldContext_UploadAuditReportPayload_audit(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UploadAuditReportPayload", 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_uploadAuditReport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteAuditReport(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteAuditReport, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteAuditReport(ctx, fc.Args["input"].(types.DeleteAuditReportInput)) - }, - nil, - ec.marshalNDeleteAuditReportPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditReportPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteAuditReport(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 "audit": - return ec.fieldContext_DeleteAuditReportPayload_audit(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteAuditReportPayload", 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_deleteAuditReport_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createNonconformity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createNonconformity, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateNonconformity(ctx, fc.Args["input"].(types.CreateNonconformityInput)) - }, - nil, - ec.marshalNCreateNonconformityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateNonconformityPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createNonconformity(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 "nonconformityEdge": - return ec.fieldContext_CreateNonconformityPayload_nonconformityEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateNonconformityPayload", 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_createNonconformity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateNonconformity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateNonconformity, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateNonconformity(ctx, fc.Args["input"].(types.UpdateNonconformityInput)) - }, - nil, - ec.marshalNUpdateNonconformityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateNonconformityPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateNonconformity(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 "nonconformity": - return ec.fieldContext_UpdateNonconformityPayload_nonconformity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateNonconformityPayload", 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_updateNonconformity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteNonconformity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteNonconformity, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteNonconformity(ctx, fc.Args["input"].(types.DeleteNonconformityInput)) - }, - nil, - ec.marshalNDeleteNonconformityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteNonconformityPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteNonconformity(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 "deletedNonconformityId": - return ec.fieldContext_DeleteNonconformityPayload_deletedNonconformityId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteNonconformityPayload", 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_deleteNonconformity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createObligation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createObligation, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateObligation(ctx, fc.Args["input"].(types.CreateObligationInput)) - }, - nil, - ec.marshalNCreateObligationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateObligationPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createObligation(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 "obligationEdge": - return ec.fieldContext_CreateObligationPayload_obligationEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateObligationPayload", 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_createObligation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateObligation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateObligation, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateObligation(ctx, fc.Args["input"].(types.UpdateObligationInput)) - }, - nil, - ec.marshalNUpdateObligationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateObligationPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateObligation(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 "obligation": - return ec.fieldContext_UpdateObligationPayload_obligation(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateObligationPayload", 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_updateObligation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteObligation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteObligation, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteObligation(ctx, fc.Args["input"].(types.DeleteObligationInput)) - }, - nil, - ec.marshalNDeleteObligationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteObligationPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteObligation(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 "deletedObligationId": - return ec.fieldContext_DeleteObligationPayload_deletedObligationId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteObligationPayload", 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_deleteObligation_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createContinualImprovement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createContinualImprovement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateContinualImprovement(ctx, fc.Args["input"].(types.CreateContinualImprovementInput)) - }, - nil, - ec.marshalNCreateContinualImprovementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateContinualImprovementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createContinualImprovement(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 "continualImprovementEdge": - return ec.fieldContext_CreateContinualImprovementPayload_continualImprovementEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateContinualImprovementPayload", 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_createContinualImprovement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateContinualImprovement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateContinualImprovement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateContinualImprovement(ctx, fc.Args["input"].(types.UpdateContinualImprovementInput)) - }, - nil, - ec.marshalNUpdateContinualImprovementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateContinualImprovementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateContinualImprovement(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 "continualImprovement": - return ec.fieldContext_UpdateContinualImprovementPayload_continualImprovement(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateContinualImprovementPayload", 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_updateContinualImprovement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteContinualImprovement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteContinualImprovement, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteContinualImprovement(ctx, fc.Args["input"].(types.DeleteContinualImprovementInput)) - }, - nil, - ec.marshalNDeleteContinualImprovementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteContinualImprovementPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteContinualImprovement(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 "deletedContinualImprovementId": - return ec.fieldContext_DeleteContinualImprovementPayload_deletedContinualImprovementId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteContinualImprovementPayload", 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_deleteContinualImprovement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createRightsRequest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createRightsRequest, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateRightsRequest(ctx, fc.Args["input"].(types.CreateRightsRequestInput)) - }, - nil, - ec.marshalNCreateRightsRequestPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRightsRequestPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createRightsRequest(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 "rightsRequestEdge": - return ec.fieldContext_CreateRightsRequestPayload_rightsRequestEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateRightsRequestPayload", 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_createRightsRequest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateRightsRequest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateRightsRequest, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateRightsRequest(ctx, fc.Args["input"].(types.UpdateRightsRequestInput)) - }, - nil, - ec.marshalNUpdateRightsRequestPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRightsRequestPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateRightsRequest(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 "rightsRequest": - return ec.fieldContext_UpdateRightsRequestPayload_rightsRequest(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateRightsRequestPayload", 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_updateRightsRequest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteRightsRequest(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteRightsRequest, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteRightsRequest(ctx, fc.Args["input"].(types.DeleteRightsRequestInput)) - }, - nil, - ec.marshalNDeleteRightsRequestPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRightsRequestPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteRightsRequest(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 "deletedRightsRequestId": - return ec.fieldContext_DeleteRightsRequestPayload_deletedRightsRequestId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteRightsRequestPayload", 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_deleteRightsRequest_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createProcessingActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createProcessingActivity, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateProcessingActivity(ctx, fc.Args["input"].(types.CreateProcessingActivityInput)) - }, - nil, - ec.marshalNCreateProcessingActivityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateProcessingActivityPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createProcessingActivity(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 "processingActivityEdge": - return ec.fieldContext_CreateProcessingActivityPayload_processingActivityEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateProcessingActivityPayload", 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_createProcessingActivity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateProcessingActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateProcessingActivity, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateProcessingActivity(ctx, fc.Args["input"].(types.UpdateProcessingActivityInput)) - }, - nil, - ec.marshalNUpdateProcessingActivityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateProcessingActivityPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateProcessingActivity(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 "processingActivity": - return ec.fieldContext_UpdateProcessingActivityPayload_processingActivity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateProcessingActivityPayload", 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_updateProcessingActivity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteProcessingActivity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteProcessingActivity, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteProcessingActivity(ctx, fc.Args["input"].(types.DeleteProcessingActivityInput)) - }, - nil, - ec.marshalNDeleteProcessingActivityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteProcessingActivityPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteProcessingActivity(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 "deletedProcessingActivityId": - return ec.fieldContext_DeleteProcessingActivityPayload_deletedProcessingActivityId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteProcessingActivityPayload", 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_deleteProcessingActivity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createDataProtectionImpactAssessment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createDataProtectionImpactAssessment, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateDataProtectionImpactAssessment(ctx, fc.Args["input"].(types.CreateDataProtectionImpactAssessmentInput)) - }, - nil, - ec.marshalNCreateDataProtectionImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDataProtectionImpactAssessmentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createDataProtectionImpactAssessment(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 "dataProtectionImpactAssessment": - return ec.fieldContext_CreateDataProtectionImpactAssessmentPayload_dataProtectionImpactAssessment(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateDataProtectionImpactAssessmentPayload", 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_createDataProtectionImpactAssessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateDataProtectionImpactAssessment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateDataProtectionImpactAssessment, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateDataProtectionImpactAssessment(ctx, fc.Args["input"].(types.UpdateDataProtectionImpactAssessmentInput)) - }, - nil, - ec.marshalNUpdateDataProtectionImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDataProtectionImpactAssessmentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateDataProtectionImpactAssessment(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 "dataProtectionImpactAssessment": - return ec.fieldContext_UpdateDataProtectionImpactAssessmentPayload_dataProtectionImpactAssessment(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateDataProtectionImpactAssessmentPayload", 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_updateDataProtectionImpactAssessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteDataProtectionImpactAssessment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteDataProtectionImpactAssessment, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteDataProtectionImpactAssessment(ctx, fc.Args["input"].(types.DeleteDataProtectionImpactAssessmentInput)) - }, - nil, - ec.marshalNDeleteDataProtectionImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDataProtectionImpactAssessmentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteDataProtectionImpactAssessment(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 "deletedDataProtectionImpactAssessmentId": - return ec.fieldContext_DeleteDataProtectionImpactAssessmentPayload_deletedDataProtectionImpactAssessmentId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteDataProtectionImpactAssessmentPayload", 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_deleteDataProtectionImpactAssessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createTransferImpactAssessment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createTransferImpactAssessment, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateTransferImpactAssessment(ctx, fc.Args["input"].(types.CreateTransferImpactAssessmentInput)) - }, - nil, - ec.marshalNCreateTransferImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTransferImpactAssessmentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createTransferImpactAssessment(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 "transferImpactAssessment": - return ec.fieldContext_CreateTransferImpactAssessmentPayload_transferImpactAssessment(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateTransferImpactAssessmentPayload", 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_createTransferImpactAssessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateTransferImpactAssessment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateTransferImpactAssessment, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateTransferImpactAssessment(ctx, fc.Args["input"].(types.UpdateTransferImpactAssessmentInput)) - }, - nil, - ec.marshalNUpdateTransferImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTransferImpactAssessmentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateTransferImpactAssessment(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 "transferImpactAssessment": - return ec.fieldContext_UpdateTransferImpactAssessmentPayload_transferImpactAssessment(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateTransferImpactAssessmentPayload", 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_updateTransferImpactAssessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteTransferImpactAssessment(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteTransferImpactAssessment, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteTransferImpactAssessment(ctx, fc.Args["input"].(types.DeleteTransferImpactAssessmentInput)) - }, - nil, - ec.marshalNDeleteTransferImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTransferImpactAssessmentPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteTransferImpactAssessment(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 "deletedTransferImpactAssessmentId": - return ec.fieldContext_DeleteTransferImpactAssessmentPayload_deletedTransferImpactAssessmentId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteTransferImpactAssessmentPayload", 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_deleteTransferImpactAssessment_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createSnapshot(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createSnapshot, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateSnapshot(ctx, fc.Args["input"].(types.CreateSnapshotInput)) - }, - nil, - ec.marshalNCreateSnapshotPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateSnapshotPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createSnapshot(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 "snapshotEdge": - return ec.fieldContext_CreateSnapshotPayload_snapshotEdge(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateSnapshotPayload", 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_createSnapshot_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteSnapshot(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteSnapshot, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteSnapshot(ctx, fc.Args["input"].(types.DeleteSnapshotInput)) - }, - nil, - ec.marshalNDeleteSnapshotPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteSnapshotPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteSnapshot(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 "deletedSnapshotId": - return ec.fieldContext_DeleteSnapshotPayload_deletedSnapshotId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteSnapshotPayload", 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_deleteSnapshot_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_createCustomDomain(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_createCustomDomain, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().CreateCustomDomain(ctx, fc.Args["input"].(types.CreateCustomDomainInput)) - }, - nil, - ec.marshalNCreateCustomDomainPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateCustomDomainPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_createCustomDomain(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 "customDomain": - return ec.fieldContext_CreateCustomDomainPayload_customDomain(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CreateCustomDomainPayload", 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_createCustomDomain_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_deleteCustomDomain(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_deleteCustomDomain, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().DeleteCustomDomain(ctx, fc.Args["input"].(types.DeleteCustomDomainInput)) - }, - nil, - ec.marshalNDeleteCustomDomainPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteCustomDomainPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_deleteCustomDomain(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 "deletedCustomDomainId": - return ec.fieldContext_DeleteCustomDomainPayload_deletedCustomDomainId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DeleteCustomDomainPayload", 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_deleteCustomDomain_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_id(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_snapshotId, - func(ctx context.Context) (any, error) { - return obj.SnapshotID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_organization(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Nonconformity().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_referenceId(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_referenceId, - func(ctx context.Context) (any, error) { - return obj.ReferenceID, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_referenceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_description(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_audit(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_audit, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Nonconformity().Audit(ctx, obj) - }, - nil, - ec.marshalOAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_audit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - 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_Audit_id(ctx, field) - case "name": - return ec.fieldContext_Audit_name(ctx, field) - case "organization": - return ec.fieldContext_Audit_organization(ctx, field) - case "framework": - return ec.fieldContext_Audit_framework(ctx, field) - case "validFrom": - return ec.fieldContext_Audit_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_Audit_validUntil(ctx, field) - case "report": - return ec.fieldContext_Audit_report(ctx, field) - case "reportUrl": - return ec.fieldContext_Audit_reportUrl(ctx, field) - case "state": - return ec.fieldContext_Audit_state(ctx, field) - case "controls": - return ec.fieldContext_Audit_controls(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Audit_trustCenterVisibility(ctx, field) - case "createdAt": - return ec.fieldContext_Audit_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Audit_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Audit_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_dateIdentified(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_dateIdentified, - func(ctx context.Context) (any, error) { - return obj.DateIdentified, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_dateIdentified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_rootCause(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_rootCause, - func(ctx context.Context) (any, error) { - return obj.RootCause, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_rootCause(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_correctiveAction(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_correctiveAction, - func(ctx context.Context) (any, error) { - return obj.CorrectiveAction, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_correctiveAction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_owner(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_owner, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Nonconformity().Owner(ctx, obj) - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_dueDate(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_dueDate, - func(ctx context.Context) (any, error) { - return obj.DueDate, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_status(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNNonconformityStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type NonconformityStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_effectivenessCheck(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_effectivenessCheck, - func(ctx context.Context) (any, error) { - return obj.EffectivenessCheck, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_effectivenessCheck(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Nonconformity_permission(ctx context.Context, field graphql.CollectedField, obj *types.Nonconformity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Nonconformity_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Nonconformity().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Nonconformity_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Nonconformity", - 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_Nonconformity_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _NonconformityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_NonconformityConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.NonconformityConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_NonconformityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NonconformityConnection", - 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) _NonconformityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_NonconformityConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNNonconformityEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_NonconformityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NonconformityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_NonconformityEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_NonconformityEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NonconformityEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _NonconformityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_NonconformityConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_NonconformityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NonconformityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _NonconformityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_NonconformityEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_NonconformityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NonconformityEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NonconformityEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.NonconformityEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_NonconformityEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNNonconformity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformity, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_NonconformityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NonconformityEdge", - 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_Nonconformity_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Nonconformity_snapshotId(ctx, field) - case "organization": - return ec.fieldContext_Nonconformity_organization(ctx, field) - case "referenceId": - return ec.fieldContext_Nonconformity_referenceId(ctx, field) - case "description": - return ec.fieldContext_Nonconformity_description(ctx, field) - case "audit": - return ec.fieldContext_Nonconformity_audit(ctx, field) - case "dateIdentified": - return ec.fieldContext_Nonconformity_dateIdentified(ctx, field) - case "rootCause": - return ec.fieldContext_Nonconformity_rootCause(ctx, field) - case "correctiveAction": - return ec.fieldContext_Nonconformity_correctiveAction(ctx, field) - case "owner": - return ec.fieldContext_Nonconformity_owner(ctx, field) - case "dueDate": - return ec.fieldContext_Nonconformity_dueDate(ctx, field) - case "status": - return ec.fieldContext_Nonconformity_status(ctx, field) - case "effectivenessCheck": - return ec.fieldContext_Nonconformity_effectivenessCheck(ctx, field) - case "createdAt": - return ec.fieldContext_Nonconformity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Nonconformity_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Nonconformity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Nonconformity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_id(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Obligation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_snapshotId, - func(ctx context.Context) (any, error) { - return obj.SnapshotID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Obligation_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_sourceId(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_sourceId, - func(ctx context.Context) (any, error) { - return obj.SourceID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Obligation_sourceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_organization(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Obligation().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Obligation_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_area(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_area, - func(ctx context.Context) (any, error) { - return obj.Area, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Obligation_area(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_source(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_source, - func(ctx context.Context) (any, error) { - return obj.Source, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Obligation_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_requirement(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_requirement, - func(ctx context.Context) (any, error) { - return obj.Requirement, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Obligation_requirement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_actionsToBeImplemented(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_actionsToBeImplemented, - func(ctx context.Context) (any, error) { - return obj.ActionsToBeImplemented, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Obligation_actionsToBeImplemented(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_regulator(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_regulator, - func(ctx context.Context) (any, error) { - return obj.Regulator, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Obligation_regulator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_owner(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_owner, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Obligation().Owner(ctx, obj) - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Obligation_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_lastReviewDate(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_lastReviewDate, - func(ctx context.Context) (any, error) { - return obj.LastReviewDate, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Obligation_lastReviewDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_dueDate(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_dueDate, - func(ctx context.Context) (any, error) { - return obj.DueDate, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Obligation_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_status(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNObligationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Obligation_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ObligationStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_type(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalNObligationType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Obligation_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ObligationType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Obligation_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Obligation_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Obligation_permission(ctx context.Context, field graphql.CollectedField, obj *types.Obligation) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Obligation_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Obligation().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Obligation_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Obligation", - 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_Obligation_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ObligationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ObligationConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ObligationConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ObligationConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ObligationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ObligationConnection", - 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) _ObligationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ObligationConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ObligationConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNObligationEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ObligationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ObligationConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ObligationEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ObligationEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ObligationEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ObligationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ObligationConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ObligationConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ObligationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ObligationConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ObligationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ObligationEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ObligationEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ObligationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ObligationEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ObligationEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ObligationEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ObligationEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNObligation2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligation, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ObligationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ObligationEdge", - 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_Obligation_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Obligation_snapshotId(ctx, field) - case "sourceId": - return ec.fieldContext_Obligation_sourceId(ctx, field) - case "organization": - return ec.fieldContext_Obligation_organization(ctx, field) - case "area": - return ec.fieldContext_Obligation_area(ctx, field) - case "source": - return ec.fieldContext_Obligation_source(ctx, field) - case "requirement": - return ec.fieldContext_Obligation_requirement(ctx, field) - case "actionsToBeImplemented": - return ec.fieldContext_Obligation_actionsToBeImplemented(ctx, field) - case "regulator": - return ec.fieldContext_Obligation_regulator(ctx, field) - case "owner": - return ec.fieldContext_Obligation_owner(ctx, field) - case "lastReviewDate": - return ec.fieldContext_Obligation_lastReviewDate(ctx, field) - case "dueDate": - return ec.fieldContext_Obligation_dueDate(ctx, field) - case "status": - return ec.fieldContext_Obligation_status(ctx, field) - case "type": - return ec.fieldContext_Obligation_type(ctx, field) - case "createdAt": - return ec.fieldContext_Obligation_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Obligation_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Obligation_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Obligation", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_id(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_name(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_logoUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_logoUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Organization().LogoURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_logoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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) _Organization_horizontalLogoUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_horizontalLogoUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Organization().HorizontalLogoURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_horizontalLogoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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) _Organization_description(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_websiteUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_websiteUrl, - func(ctx context.Context) (any, error) { - return obj.WebsiteURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_websiteUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_email(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_email, - func(ctx context.Context) (any, error) { - return obj.Email, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_headquarterAddress(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_headquarterAddress, - func(ctx context.Context) (any, error) { - return obj.HeadquarterAddress, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_headquarterAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_context(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_context, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Organization().Context(ctx, obj) - }, - nil, - ec.marshalOOrganizationContext2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationContext, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_context(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizationId": - return ec.fieldContext_OrganizationContext_organizationId(ctx, field) - case "summary": - return ec.fieldContext_OrganizationContext_summary(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationContext", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_profiles(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_profiles, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Profiles(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ProfileOrderBy), fc.Args["filter"].(*types.ProfileFilter)) - }, - nil, - ec.marshalNProfileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_profiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ProfileConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ProfileConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProfileConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProfileConnection", 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_Organization_profiles_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_slackConnections(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_slackConnections, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().SlackConnections(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - nil, - ec.marshalNSlackConnectionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSlackConnectionConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_slackConnections(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_SlackConnectionConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SlackConnectionConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SlackConnectionConnection", 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_Organization_slackConnections_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_frameworks(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_frameworks, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Frameworks(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.FrameworkOrderBy)) - }, - nil, - ec.marshalNFrameworkConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_frameworks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_FrameworkConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_FrameworkConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_FrameworkConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FrameworkConnection", 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_Organization_frameworks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_controls(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_controls, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Controls(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy), fc.Args["filter"].(*types.ControlFilter)) - }, - nil, - ec.marshalNControlConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ControlConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ControlConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlConnection", 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_Organization_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_vendors(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_vendors, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Vendors(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorOrderBy), fc.Args["filter"].(*types.VendorFilter)) - }, - nil, - ec.marshalNVendorConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_vendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_VendorConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_VendorConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_VendorConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorConnection", 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_Organization_vendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_documents(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_documents, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Documents(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentOrderBy), fc.Args["filter"].(*types.DocumentFilter)) - }, - nil, - ec.marshalNDocumentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_DocumentConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_DocumentConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentConnection", 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_Organization_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_meetings(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_meetings, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Meetings(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.MeetingOrderBy)) - }, - nil, - ec.marshalNMeetingConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeetingConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_meetings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_MeetingConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_MeetingConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_MeetingConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeetingConnection", 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_Organization_meetings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_statesOfApplicability(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_statesOfApplicability, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().StatesOfApplicability(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.StateOfApplicabilityOrderBy), fc.Args["filter"].(*types.StateOfApplicabilityFilter)) - }, - nil, - ec.marshalNStateOfApplicabilityConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_statesOfApplicability(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_StateOfApplicabilityConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_StateOfApplicabilityConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_StateOfApplicabilityConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type StateOfApplicabilityConnection", 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_Organization_statesOfApplicability_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_measures(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_measures, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Measures(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.MeasureOrderBy), fc.Args["filter"].(*types.MeasureFilter)) - }, - nil, - ec.marshalNMeasureConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_measures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_MeasureConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_MeasureConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_MeasureConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeasureConnection", 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_Organization_measures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_risks(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_risks, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Risks(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.RiskOrderBy), fc.Args["filter"].(*types.RiskFilter)) - }, - nil, - ec.marshalNRiskConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_RiskConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_RiskConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_RiskConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RiskConnection", 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_Organization_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_tasks(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_tasks, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Tasks(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.TaskOrderBy)) - }, - nil, - ec.marshalNTaskConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_TaskConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_TaskConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TaskConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaskConnection", 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_Organization_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_assets(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_assets, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Assets(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.AssetOrderBy), fc.Args["filter"].(*types.AssetFilter)) - }, - nil, - ec.marshalNAssetConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_AssetConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_AssetConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_AssetConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AssetConnection", 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_Organization_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_data(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_data, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Data(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DatumOrderBy), fc.Args["filter"].(*types.DatumFilter)) - }, - nil, - ec.marshalNDatumConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_data(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_DatumConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_DatumConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DatumConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DatumConnection", 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_Organization_data_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_audits(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_audits, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Audits(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.AuditOrderBy)) - }, - nil, - ec.marshalNAuditConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_audits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_AuditConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_AuditConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_AuditConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditConnection", 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_Organization_audits_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_nonconformities(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_nonconformities, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Nonconformities(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.NonconformityOrderBy), fc.Args["filter"].(*types.NonconformityFilter)) - }, - nil, - ec.marshalNNonconformityConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_nonconformities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_NonconformityConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_NonconformityConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_NonconformityConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NonconformityConnection", 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_Organization_nonconformities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_obligations(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_obligations, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Obligations(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ObligationOrderBy), fc.Args["filter"].(*types.ObligationFilter)) - }, - nil, - ec.marshalNObligationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_obligations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ObligationConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ObligationConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ObligationConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ObligationConnection", 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_Organization_obligations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_continualImprovements(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_continualImprovements, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().ContinualImprovements(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ContinualImprovementOrderBy), fc.Args["filter"].(*types.ContinualImprovementFilter)) - }, - nil, - ec.marshalNContinualImprovementConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_continualImprovements(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ContinualImprovementConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ContinualImprovementConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ContinualImprovementConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContinualImprovementConnection", 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_Organization_continualImprovements_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_rightsRequests(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_rightsRequests, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().RightsRequests(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.RightsRequestOrderBy)) - }, - nil, - ec.marshalNRightsRequestConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequestConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_rightsRequests(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_RightsRequestConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_RightsRequestConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_RightsRequestConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RightsRequestConnection", 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_Organization_rightsRequests_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_processingActivities(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_processingActivities, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().ProcessingActivities(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ProcessingActivityOrderBy), fc.Args["filter"].(*types.ProcessingActivityFilter)) - }, - nil, - ec.marshalNProcessingActivityConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_processingActivities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ProcessingActivityConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ProcessingActivityConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProcessingActivityConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcessingActivityConnection", 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_Organization_processingActivities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_dataProtectionImpactAssessments(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_dataProtectionImpactAssessments, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().DataProtectionImpactAssessments(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DataProtectionImpactAssessmentOrderBy), fc.Args["filter"].(*types.DataProtectionImpactAssessmentFilter)) - }, - nil, - ec.marshalNDataProtectionImpactAssessmentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_dataProtectionImpactAssessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_DataProtectionImpactAssessmentConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_DataProtectionImpactAssessmentConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DataProtectionImpactAssessmentConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DataProtectionImpactAssessmentConnection", 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_Organization_dataProtectionImpactAssessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_transferImpactAssessments(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_transferImpactAssessments, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().TransferImpactAssessments(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.TransferImpactAssessmentOrderBy), fc.Args["filter"].(*types.TransferImpactAssessmentFilter)) - }, - nil, - ec.marshalNTransferImpactAssessmentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_transferImpactAssessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_TransferImpactAssessmentConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_TransferImpactAssessmentConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TransferImpactAssessmentConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TransferImpactAssessmentConnection", 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_Organization_transferImpactAssessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_snapshots(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_snapshots, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Snapshots(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.SnapshotOrderBy)) - }, - nil, - ec.marshalNSnapshotConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_snapshots(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_SnapshotConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_SnapshotConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SnapshotConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SnapshotConnection", 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_Organization_snapshots_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_trustCenterFiles(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_trustCenterFiles, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().TrustCenterFiles(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.OrderBy[coredata.TrustCenterFileOrderField])) - }, - nil, - ec.marshalNTrustCenterFileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFileConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_trustCenterFiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_TrustCenterFileConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_TrustCenterFileConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TrustCenterFileConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFileConnection", 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_Organization_trustCenterFiles_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_trustCenter(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_trustCenter, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Organization().TrustCenter(ctx, obj) - }, - nil, - ec.marshalOTrustCenter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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_TrustCenter_id(ctx, field) - case "active": - return ec.fieldContext_TrustCenter_active(ctx, field) - case "logoFileUrl": - return ec.fieldContext_TrustCenter_logoFileUrl(ctx, field) - case "darkLogoFileUrl": - return ec.fieldContext_TrustCenter_darkLogoFileUrl(ctx, field) - case "ndaFileName": - return ec.fieldContext_TrustCenter_ndaFileName(ctx, field) - case "ndaFileUrl": - return ec.fieldContext_TrustCenter_ndaFileUrl(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenter_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenter_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_TrustCenter_organization(ctx, field) - case "accesses": - return ec.fieldContext_TrustCenter_accesses(ctx, field) - case "references": - return ec.fieldContext_TrustCenter_references(ctx, field) - case "complianceFrameworks": - return ec.fieldContext_TrustCenter_complianceFrameworks(ctx, field) - case "externalUrls": - return ec.fieldContext_TrustCenter_externalUrls(ctx, field) - case "mailingList": - return ec.fieldContext_TrustCenter_mailingList(ctx, field) - case "permission": - return ec.fieldContext_TrustCenter_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenter", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_customDomain(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_customDomain, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Organization().CustomDomain(ctx, obj) - }, - nil, - ec.marshalOCustomDomain2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCustomDomain, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_customDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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_CustomDomain_id(ctx, field) - case "organization": - return ec.fieldContext_CustomDomain_organization(ctx, field) - case "domain": - return ec.fieldContext_CustomDomain_domain(ctx, field) - case "sslStatus": - return ec.fieldContext_CustomDomain_sslStatus(ctx, field) - case "sslExpiresAt": - return ec.fieldContext_CustomDomain_sslExpiresAt(ctx, field) - case "dnsRecords": - return ec.fieldContext_CustomDomain_dnsRecords(ctx, field) - case "createdAt": - return ec.fieldContext_CustomDomain_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_CustomDomain_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_CustomDomain_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type CustomDomain", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_webhookSubscriptions(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_webhookSubscriptions, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().WebhookSubscriptions(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.WebhookSubscriptionOrderBy)) - }, - nil, - ec.marshalNWebhookSubscriptionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscriptionConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_webhookSubscriptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_WebhookSubscriptionConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_WebhookSubscriptionConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_WebhookSubscriptionConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type WebhookSubscriptionConnection", 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_Organization_webhookSubscriptions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_permission(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Organization().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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_Organization_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _OrganizationContext_organizationId(ctx context.Context, field graphql.CollectedField, obj *types.OrganizationContext) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_OrganizationContext_organizationId, - func(ctx context.Context) (any, error) { - return obj.OrganizationID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_OrganizationContext_organizationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationContext", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationContext_summary(ctx context.Context, field graphql.CollectedField, obj *types.OrganizationContext) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_OrganizationContext_summary, - func(ctx context.Context) (any, error) { - return obj.Summary, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_OrganizationContext_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationContext", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_hasNextPage, - func(ctx context.Context) (any, error) { - return obj.HasNextPage, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - 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) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_hasPreviousPage, - func(ctx context.Context) (any, error) { - return obj.HasPreviousPage, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - 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) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_startCursor, - func(ctx context.Context) (any, error) { - return obj.StartCursor, nil - }, - nil, - ec.marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_endCursor, - func(ctx context.Context) (any, error) { - return obj.EndCursor, nil - }, - nil, - ec.marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_id(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_snapshotId, - func(ctx context.Context) (any, error) { - return obj.SnapshotID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_sourceId(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_sourceId, - func(ctx context.Context) (any, error) { - return obj.SourceID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_sourceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_organization(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ProcessingActivity().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_name(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_purpose(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_purpose, - func(ctx context.Context) (any, error) { - return obj.Purpose, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_purpose(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_dataSubjectCategory(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_dataSubjectCategory, - func(ctx context.Context) (any, error) { - return obj.DataSubjectCategory, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_dataSubjectCategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_personalDataCategory(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_personalDataCategory, - func(ctx context.Context) (any, error) { - return obj.PersonalDataCategory, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_personalDataCategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_specialOrCriminalData(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_specialOrCriminalData, - func(ctx context.Context) (any, error) { - return obj.SpecialOrCriminalData, nil - }, - nil, - ec.marshalNProcessingActivitySpecialOrCriminalDatum2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_specialOrCriminalData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcessingActivitySpecialOrCriminalDatum does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_consentEvidenceLink(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_consentEvidenceLink, - func(ctx context.Context) (any, error) { - return obj.ConsentEvidenceLink, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_consentEvidenceLink(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_lawfulBasis(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_lawfulBasis, - func(ctx context.Context) (any, error) { - return obj.LawfulBasis, nil - }, - nil, - ec.marshalNProcessingActivityLawfulBasis2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_lawfulBasis(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcessingActivityLawfulBasis does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_recipients(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_recipients, - func(ctx context.Context) (any, error) { - return obj.Recipients, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_recipients(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_location(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_location, - func(ctx context.Context) (any, error) { - return obj.Location, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_location(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_internationalTransfers(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_internationalTransfers, - func(ctx context.Context) (any, error) { - return obj.InternationalTransfers, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_internationalTransfers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - 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) _ProcessingActivity_transferSafeguards(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_transferSafeguards, - func(ctx context.Context) (any, error) { - return obj.TransferSafeguards, nil - }, - nil, - ec.marshalOProcessingActivityTransferSafeguard2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferSafeguard, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_transferSafeguards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcessingActivityTransferSafeguard does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_retentionPeriod(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_retentionPeriod, - func(ctx context.Context) (any, error) { - return obj.RetentionPeriod, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_retentionPeriod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_securityMeasures(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_securityMeasures, - func(ctx context.Context) (any, error) { - return obj.SecurityMeasures, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_securityMeasures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_dataProtectionImpactAssessmentNeeded(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_dataProtectionImpactAssessmentNeeded, - func(ctx context.Context) (any, error) { - return obj.DataProtectionImpactAssessmentNeeded, nil - }, - nil, - ec.marshalNProcessingActivityDataProtectionImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_dataProtectionImpactAssessmentNeeded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcessingActivityDataProtectionImpactAssessment does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_transferImpactAssessmentNeeded(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_transferImpactAssessmentNeeded, - func(ctx context.Context) (any, error) { - return obj.TransferImpactAssessmentNeeded, nil - }, - nil, - ec.marshalNProcessingActivityTransferImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_transferImpactAssessmentNeeded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcessingActivityTransferImpactAssessment does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_lastReviewDate(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_lastReviewDate, - func(ctx context.Context) (any, error) { - return obj.LastReviewDate, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_lastReviewDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_nextReviewDate(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_nextReviewDate, - func(ctx context.Context) (any, error) { - return obj.NextReviewDate, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_nextReviewDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_role(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_role, - func(ctx context.Context) (any, error) { - return obj.Role, nil - }, - nil, - ec.marshalNProcessingActivityRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProcessingActivityRole does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_dataProtectionOfficer(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_dataProtectionOfficer, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ProcessingActivity().DataProtectionOfficer(ctx, obj) - }, - nil, - ec.marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_dataProtectionOfficer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_vendors(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_vendors, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.ProcessingActivity().Vendors(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorOrderBy)) - }, - nil, - ec.marshalNVendorConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_vendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_VendorConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_VendorConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_VendorConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorConnection", 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_ProcessingActivity_vendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_dataProtectionImpactAssessment(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_dataProtectionImpactAssessment, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ProcessingActivity().DataProtectionImpactAssessment(ctx, obj) - }, - nil, - ec.marshalODataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessment, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_dataProtectionImpactAssessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - 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_DataProtectionImpactAssessment_id(ctx, field) - case "processingActivity": - return ec.fieldContext_DataProtectionImpactAssessment_processingActivity(ctx, field) - case "organization": - return ec.fieldContext_DataProtectionImpactAssessment_organization(ctx, field) - case "description": - return ec.fieldContext_DataProtectionImpactAssessment_description(ctx, field) - case "necessityAndProportionality": - return ec.fieldContext_DataProtectionImpactAssessment_necessityAndProportionality(ctx, field) - case "potentialRisk": - return ec.fieldContext_DataProtectionImpactAssessment_potentialRisk(ctx, field) - case "mitigations": - return ec.fieldContext_DataProtectionImpactAssessment_mitigations(ctx, field) - case "residualRisk": - return ec.fieldContext_DataProtectionImpactAssessment_residualRisk(ctx, field) - case "createdAt": - return ec.fieldContext_DataProtectionImpactAssessment_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DataProtectionImpactAssessment_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_DataProtectionImpactAssessment_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DataProtectionImpactAssessment", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_transferImpactAssessment(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_transferImpactAssessment, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ProcessingActivity().TransferImpactAssessment(ctx, obj) - }, - nil, - ec.marshalOTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessment, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_transferImpactAssessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - 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_TransferImpactAssessment_id(ctx, field) - case "processingActivity": - return ec.fieldContext_TransferImpactAssessment_processingActivity(ctx, field) - case "organization": - return ec.fieldContext_TransferImpactAssessment_organization(ctx, field) - case "dataSubjects": - return ec.fieldContext_TransferImpactAssessment_dataSubjects(ctx, field) - case "legalMechanism": - return ec.fieldContext_TransferImpactAssessment_legalMechanism(ctx, field) - case "transfer": - return ec.fieldContext_TransferImpactAssessment_transfer(ctx, field) - case "localLawRisk": - return ec.fieldContext_TransferImpactAssessment_localLawRisk(ctx, field) - case "supplementaryMeasures": - return ec.fieldContext_TransferImpactAssessment_supplementaryMeasures(ctx, field) - case "createdAt": - return ec.fieldContext_TransferImpactAssessment_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TransferImpactAssessment_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_TransferImpactAssessment_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TransferImpactAssessment", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivity_permission(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivity_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.ProcessingActivity().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivity_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivity", - 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_ProcessingActivity_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivityConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ProcessingActivityConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivityConnection", - 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) _ProcessingActivityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivityConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNProcessingActivityEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ProcessingActivityEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ProcessingActivityEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcessingActivityEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivityConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivityEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivityEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProcessingActivityEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ProcessingActivityEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProcessingActivityEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNProcessingActivity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivity, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProcessingActivityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProcessingActivityEdge", - 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_ProcessingActivity_id(ctx, field) - case "snapshotId": - return ec.fieldContext_ProcessingActivity_snapshotId(ctx, field) - case "sourceId": - return ec.fieldContext_ProcessingActivity_sourceId(ctx, field) - case "organization": - return ec.fieldContext_ProcessingActivity_organization(ctx, field) - case "name": - return ec.fieldContext_ProcessingActivity_name(ctx, field) - case "purpose": - return ec.fieldContext_ProcessingActivity_purpose(ctx, field) - case "dataSubjectCategory": - return ec.fieldContext_ProcessingActivity_dataSubjectCategory(ctx, field) - case "personalDataCategory": - return ec.fieldContext_ProcessingActivity_personalDataCategory(ctx, field) - case "specialOrCriminalData": - return ec.fieldContext_ProcessingActivity_specialOrCriminalData(ctx, field) - case "consentEvidenceLink": - return ec.fieldContext_ProcessingActivity_consentEvidenceLink(ctx, field) - case "lawfulBasis": - return ec.fieldContext_ProcessingActivity_lawfulBasis(ctx, field) - case "recipients": - return ec.fieldContext_ProcessingActivity_recipients(ctx, field) - case "location": - return ec.fieldContext_ProcessingActivity_location(ctx, field) - case "internationalTransfers": - return ec.fieldContext_ProcessingActivity_internationalTransfers(ctx, field) - case "transferSafeguards": - return ec.fieldContext_ProcessingActivity_transferSafeguards(ctx, field) - case "retentionPeriod": - return ec.fieldContext_ProcessingActivity_retentionPeriod(ctx, field) - case "securityMeasures": - return ec.fieldContext_ProcessingActivity_securityMeasures(ctx, field) - case "dataProtectionImpactAssessmentNeeded": - return ec.fieldContext_ProcessingActivity_dataProtectionImpactAssessmentNeeded(ctx, field) - case "transferImpactAssessmentNeeded": - return ec.fieldContext_ProcessingActivity_transferImpactAssessmentNeeded(ctx, field) - case "lastReviewDate": - return ec.fieldContext_ProcessingActivity_lastReviewDate(ctx, field) - case "nextReviewDate": - return ec.fieldContext_ProcessingActivity_nextReviewDate(ctx, field) - case "role": - return ec.fieldContext_ProcessingActivity_role(ctx, field) - case "dataProtectionOfficer": - return ec.fieldContext_ProcessingActivity_dataProtectionOfficer(ctx, field) - case "vendors": - return ec.fieldContext_ProcessingActivity_vendors(ctx, field) - case "dataProtectionImpactAssessment": - return ec.fieldContext_ProcessingActivity_dataProtectionImpactAssessment(ctx, field) - case "transferImpactAssessment": - return ec.fieldContext_ProcessingActivity_transferImpactAssessment(ctx, field) - case "createdAt": - return ec.fieldContext_ProcessingActivity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProcessingActivity_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_ProcessingActivity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcessingActivity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_id(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_fullName(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_fullName, - func(ctx context.Context) (any, error) { - return obj.FullName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_emailAddress(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_emailAddress, - func(ctx context.Context) (any, error) { - return obj.EmailAddress, nil - }, - nil, - ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_emailAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_state(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_state, - func(ctx context.Context) (any, error) { - return obj.State, nil - }, - nil, - ec.marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProfileState does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_additionalEmailAddresses(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_additionalEmailAddresses, - func(ctx context.Context) (any, error) { - return obj.AdditionalEmailAddresses, nil - }, - nil, - ec.marshalNEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_additionalEmailAddresses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_kind(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_kind, - func(ctx context.Context) (any, error) { - return obj.Kind, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_position(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_position, - func(ctx context.Context) (any, error) { - return obj.Position, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_position(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_contractStartDate(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_contractStartDate, - func(ctx context.Context) (any, error) { - return obj.ContractStartDate, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_contractStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_contractEndDate(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_contractEndDate, - func(ctx context.Context) (any, error) { - return obj.ContractEndDate, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Profile_contractEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Profile_permission(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Profile_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Profile().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Profile_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Profile", - 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_Profile_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _ProfileConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ProfileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProfileConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ProfileConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProfileConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProfileConnection", - 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) _ProfileConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ProfileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProfileConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNProfileEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProfileConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProfileConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ProfileEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ProfileEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProfileEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProfileConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ProfileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProfileConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProfileConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProfileConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProfileEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ProfileEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProfileEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProfileEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProfileEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ProfileEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ProfileEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ProfileEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ProfileEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProfileEdge", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PublishDocumentVersionPayload_documentVersion(ctx context.Context, field graphql.CollectedField, obj *types.PublishDocumentVersionPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PublishDocumentVersionPayload_documentVersion, - func(ctx context.Context) (any, error) { - return obj.DocumentVersion, nil - }, - nil, - ec.marshalNDocumentVersion2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PublishDocumentVersionPayload_documentVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PublishDocumentVersionPayload", - 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_DocumentVersion_id(ctx, field) - case "document": - return ec.fieldContext_DocumentVersion_document(ctx, field) - case "status": - return ec.fieldContext_DocumentVersion_status(ctx, field) - case "version": - return ec.fieldContext_DocumentVersion_version(ctx, field) - case "content": - return ec.fieldContext_DocumentVersion_content(ctx, field) - case "changelog": - return ec.fieldContext_DocumentVersion_changelog(ctx, field) - case "title": - return ec.fieldContext_DocumentVersion_title(ctx, field) - case "classification": - return ec.fieldContext_DocumentVersion_classification(ctx, field) - case "approvers": - return ec.fieldContext_DocumentVersion_approvers(ctx, field) - case "signatures": - return ec.fieldContext_DocumentVersion_signatures(ctx, field) - case "signed": - return ec.fieldContext_DocumentVersion_signed(ctx, field) - case "publishedAt": - return ec.fieldContext_DocumentVersion_publishedAt(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentVersion_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentVersion_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_DocumentVersion_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PublishDocumentVersionPayload_document(ctx context.Context, field graphql.CollectedField, obj *types.PublishDocumentVersionPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PublishDocumentVersionPayload_document, - func(ctx context.Context) (any, error) { - return obj.Document, nil - }, - nil, - ec.marshalNDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PublishDocumentVersionPayload_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PublishDocumentVersionPayload", - 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_Document_id(ctx, field) - case "title": - return ec.fieldContext_Document_title(ctx, field) - case "description": - return ec.fieldContext_Document_description(ctx, field) - case "documentType": - return ec.fieldContext_Document_documentType(ctx, field) - case "classification": - return ec.fieldContext_Document_classification(ctx, field) - case "currentPublishedVersion": - return ec.fieldContext_Document_currentPublishedVersion(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Document_trustCenterVisibility(ctx, field) - case "approvers": - return ec.fieldContext_Document_approvers(ctx, field) - case "organization": - return ec.fieldContext_Document_organization(ctx, field) - case "versions": - return ec.fieldContext_Document_versions(ctx, field) - case "controls": - return ec.fieldContext_Document_controls(ctx, field) - case "createdAt": - return ec.fieldContext_Document_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Document_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Document_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Document", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query_node, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Node(ctx, fc.Args["id"].(gid.GID)) - }, - nil, - ec.marshalNNode2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNode, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Query_node(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) { - return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") - }, - } - 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_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query_viewer, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Query().Viewer(ctx) - }, - nil, - ec.marshalNViewer2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐViewer, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Query_viewer(_ 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_Viewer_id(ctx, field) - case "signableDocuments": - return ec.fieldContext_Viewer_signableDocuments(ctx, field) - case "signableDocument": - return ec.fieldContext_Viewer_signableDocument(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Viewer", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query___type, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.IntrospectType(fc.Args["name"].(string)) - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query___schema, - func(ctx context.Context) (any, error) { - return ec.IntrospectSchema() - }, - nil, - ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Query___schema(_ 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) _Report_id(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Report_objectKey(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_objectKey, - func(ctx context.Context) (any, error) { - return obj.ObjectKey, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_objectKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Report_mimeType(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_mimeType, - func(ctx context.Context) (any, error) { - return obj.MimeType, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_mimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Report_filename(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_filename, - func(ctx context.Context) (any, error) { - return obj.Filename, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_filename(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Report_size(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_size, - func(ctx context.Context) (any, error) { - return obj.Size, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_size(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - 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) _Report_downloadUrl(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_downloadUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Report().DownloadURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Report_downloadUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - 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) _Report_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Report_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Report_audit(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_audit, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Report().Audit(ctx, obj) - }, - nil, - ec.marshalOAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Report_audit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - 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_Audit_id(ctx, field) - case "name": - return ec.fieldContext_Audit_name(ctx, field) - case "organization": - return ec.fieldContext_Audit_organization(ctx, field) - case "framework": - return ec.fieldContext_Audit_framework(ctx, field) - case "validFrom": - return ec.fieldContext_Audit_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_Audit_validUntil(ctx, field) - case "report": - return ec.fieldContext_Audit_report(ctx, field) - case "reportUrl": - return ec.fieldContext_Audit_reportUrl(ctx, field) - case "state": - return ec.fieldContext_Audit_state(ctx, field) - case "controls": - return ec.fieldContext_Audit_controls(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Audit_trustCenterVisibility(ctx, field) - case "createdAt": - return ec.fieldContext_Audit_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Audit_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Audit_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Report_permission(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Report().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - 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_Report_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _RequestSignaturePayload_documentVersionSignatureEdge(ctx context.Context, field graphql.CollectedField, obj *types.RequestSignaturePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RequestSignaturePayload_documentVersionSignatureEdge, - func(ctx context.Context) (any, error) { - return obj.DocumentVersionSignatureEdge, nil - }, - nil, - ec.marshalNDocumentVersionSignatureEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RequestSignaturePayload_documentVersionSignatureEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RequestSignaturePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentVersionSignatureEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentVersionSignatureEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignatureEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_id(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_organization(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.RightsRequest().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_requestType(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_requestType, - func(ctx context.Context) (any, error) { - return obj.RequestType, nil - }, - nil, - ec.marshalNRightsRequestType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_requestType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type RightsRequestType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_requestState(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_requestState, - func(ctx context.Context) (any, error) { - return obj.RequestState, nil - }, - nil, - ec.marshalNRightsRequestState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_requestState(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type RightsRequestState does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_dataSubject(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_dataSubject, - func(ctx context.Context) (any, error) { - return obj.DataSubject, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_dataSubject(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_contact(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_contact, - func(ctx context.Context) (any, error) { - return obj.Contact, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_details(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_details, - func(ctx context.Context) (any, error) { - return obj.Details, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_deadline(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_deadline, - func(ctx context.Context) (any, error) { - return obj.Deadline, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_deadline(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_actionTaken(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_actionTaken, - func(ctx context.Context) (any, error) { - return obj.ActionTaken, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_actionTaken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequest_permission(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequest) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequest_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.RightsRequest().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequest_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequest", - 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_RightsRequest_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _RightsRequestConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequestConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequestConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.RightsRequestConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequestConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequestConnection", - 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) _RightsRequestConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequestConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequestConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNRightsRequestEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequestEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequestConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequestConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_RightsRequestEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_RightsRequestEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RightsRequestEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequestConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequestConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequestConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequestConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequestConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequestEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequestEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequestEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequestEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequestEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RightsRequestEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.RightsRequestEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RightsRequestEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNRightsRequest2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequest, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RightsRequestEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RightsRequestEdge", - 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_RightsRequest_id(ctx, field) - case "organization": - return ec.fieldContext_RightsRequest_organization(ctx, field) - case "requestType": - return ec.fieldContext_RightsRequest_requestType(ctx, field) - case "requestState": - return ec.fieldContext_RightsRequest_requestState(ctx, field) - case "dataSubject": - return ec.fieldContext_RightsRequest_dataSubject(ctx, field) - case "contact": - return ec.fieldContext_RightsRequest_contact(ctx, field) - case "details": - return ec.fieldContext_RightsRequest_details(ctx, field) - case "deadline": - return ec.fieldContext_RightsRequest_deadline(ctx, field) - case "actionTaken": - return ec.fieldContext_RightsRequest_actionTaken(ctx, field) - case "createdAt": - return ec.fieldContext_RightsRequest_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_RightsRequest_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_RightsRequest_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RightsRequest", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_id(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_snapshotId, - func(ctx context.Context) (any, error) { - return obj.SnapshotID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Risk_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_name(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_description(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Risk_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_category(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_category, - func(ctx context.Context) (any, error) { - return obj.Category, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_treatment(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_treatment, - func(ctx context.Context) (any, error) { - return obj.Treatment, nil - }, - nil, - ec.marshalNRiskTreatment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_treatment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type RiskTreatment does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_inherentLikelihood(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_inherentLikelihood, - func(ctx context.Context) (any, error) { - return obj.InherentLikelihood, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_inherentLikelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - 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) _Risk_inherentImpact(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_inherentImpact, - func(ctx context.Context) (any, error) { - return obj.InherentImpact, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_inherentImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - 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) _Risk_inherentRiskScore(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_inherentRiskScore, - func(ctx context.Context) (any, error) { - return obj.InherentRiskScore, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_inherentRiskScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - 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) _Risk_residualLikelihood(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_residualLikelihood, - func(ctx context.Context) (any, error) { - return obj.ResidualLikelihood, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_residualLikelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - 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) _Risk_residualImpact(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_residualImpact, - func(ctx context.Context) (any, error) { - return obj.ResidualImpact, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_residualImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - 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) _Risk_residualRiskScore(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_residualRiskScore, - func(ctx context.Context) (any, error) { - return obj.ResidualRiskScore, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_residualRiskScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - 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) _Risk_note(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_note, - func(ctx context.Context) (any, error) { - return obj.Note, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_note(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_owner(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_owner, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Risk().Owner(ctx, obj) - }, - nil, - ec.marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Risk_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_organization(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Risk().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_measures(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_measures, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Risk().Measures(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.MeasureOrderBy), fc.Args["filter"].(*types.MeasureFilter)) - }, - nil, - ec.marshalNMeasureConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_measures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_MeasureConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_MeasureConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_MeasureConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MeasureConnection", 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_Risk_measures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Risk_documents(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_documents, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Risk().Documents(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentOrderBy), fc.Args["filter"].(*types.DocumentFilter)) - }, - nil, - ec.marshalNDocumentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_DocumentConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_DocumentConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentConnection", 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_Risk_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Risk_controls(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_controls, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Risk().Controls(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy), fc.Args["filter"].(*types.ControlFilter)) - }, - nil, - ec.marshalNControlConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ControlConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ControlConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlConnection", 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_Risk_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Risk_obligations(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_obligations, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Risk().Obligations(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ObligationOrderBy), fc.Args["filter"].(*types.ObligationFilter)) - }, - nil, - ec.marshalNObligationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_obligations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ObligationConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ObligationConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ObligationConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ObligationConnection", 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_Risk_obligations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Risk_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_permission(ctx context.Context, field graphql.CollectedField, obj *types.Risk) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Risk_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Risk().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Risk_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Risk", - 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_Risk_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _RiskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.RiskConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RiskConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.RiskConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RiskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RiskConnection", - 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) _RiskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.RiskConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RiskConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNRiskEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RiskConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RiskConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_RiskEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_RiskEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RiskEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RiskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.RiskConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RiskConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RiskConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RiskConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RiskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.RiskEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RiskEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RiskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RiskEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _RiskEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.RiskEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RiskEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRisk, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RiskEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RiskEdge", - 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_Risk_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Risk_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "category": - return ec.fieldContext_Risk_category(ctx, field) - case "treatment": - return ec.fieldContext_Risk_treatment(ctx, field) - case "inherentLikelihood": - return ec.fieldContext_Risk_inherentLikelihood(ctx, field) - case "inherentImpact": - return ec.fieldContext_Risk_inherentImpact(ctx, field) - case "inherentRiskScore": - return ec.fieldContext_Risk_inherentRiskScore(ctx, field) - case "residualLikelihood": - return ec.fieldContext_Risk_residualLikelihood(ctx, field) - case "residualImpact": - return ec.fieldContext_Risk_residualImpact(ctx, field) - case "residualRiskScore": - return ec.fieldContext_Risk_residualRiskScore(ctx, field) - case "note": - return ec.fieldContext_Risk_note(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "organization": - return ec.fieldContext_Risk_organization(ctx, field) - case "measures": - return ec.fieldContext_Risk_measures(ctx, field) - case "documents": - return ec.fieldContext_Risk_documents(ctx, field) - case "controls": - return ec.fieldContext_Risk_controls(ctx, field) - case "obligations": - return ec.fieldContext_Risk_obligations(ctx, field) - case "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Risk_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SendMailingListUpdatePayload_mailingListUpdate(ctx context.Context, field graphql.CollectedField, obj *types.SendMailingListUpdatePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SendMailingListUpdatePayload_mailingListUpdate, - func(ctx context.Context) (any, error) { - return obj.MailingListUpdate, nil - }, - nil, - ec.marshalNMailingListUpdate2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdate, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SendMailingListUpdatePayload_mailingListUpdate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SendMailingListUpdatePayload", - 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_MailingListUpdate_id(ctx, field) - case "title": - return ec.fieldContext_MailingListUpdate_title(ctx, field) - case "body": - return ec.fieldContext_MailingListUpdate_body(ctx, field) - case "status": - return ec.fieldContext_MailingListUpdate_status(ctx, field) - case "createdAt": - return ec.fieldContext_MailingListUpdate_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_MailingListUpdate_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListUpdate", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SendSigningNotificationsPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.SendSigningNotificationsPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SendSigningNotificationsPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SendSigningNotificationsPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SendSigningNotificationsPayload", - 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) _SignDocumentPayload_documentVersionSignature(ctx context.Context, field graphql.CollectedField, obj *types.SignDocumentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignDocumentPayload_documentVersionSignature, - func(ctx context.Context) (any, error) { - return obj.DocumentVersionSignature, nil - }, - nil, - ec.marshalNDocumentVersionSignature2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignature, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignDocumentPayload_documentVersionSignature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignDocumentPayload", - 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_DocumentVersionSignature_id(ctx, field) - case "documentVersion": - return ec.fieldContext_DocumentVersionSignature_documentVersion(ctx, field) - case "state": - return ec.fieldContext_DocumentVersionSignature_state(ctx, field) - case "signedBy": - return ec.fieldContext_DocumentVersionSignature_signedBy(ctx, field) - case "signedAt": - return ec.fieldContext_DocumentVersionSignature_signedAt(ctx, field) - case "requestedAt": - return ec.fieldContext_DocumentVersionSignature_requestedAt(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentVersionSignature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentVersionSignature_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_DocumentVersionSignature_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionSignature", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SignableDocument_id(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocument) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocument_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocument_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SignableDocument_title(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocument) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocument_title, - func(ctx context.Context) (any, error) { - return obj.Title, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocument_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SignableDocument_description(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocument) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocument_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SignableDocument_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SignableDocument_documentType(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocument) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocument_documentType, - func(ctx context.Context) (any, error) { - return obj.DocumentType, nil - }, - nil, - ec.marshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocument_documentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocument", - 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) _SignableDocument_classification(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocument) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocument_classification, - func(ctx context.Context) (any, error) { - return obj.Classification, nil - }, - nil, - ec.marshalNDocumentClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocument_classification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentClassification does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SignableDocument_signed(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocument) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocument_signed, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SignableDocument().Signed(ctx, obj) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocument_signed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocument", - 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) _SignableDocument_versions(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocument) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocument_versions, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.SignableDocument().Versions(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentVersionOrderBy), fc.Args["filter"].(*types.DocumentVersionFilter)) - }, - nil, - ec.marshalNDocumentVersionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocument_versions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocument", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_DocumentVersionConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentVersionConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_DocumentVersionConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersionConnection", 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_SignableDocument_versions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SignableDocument_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocument) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocument_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocument_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SignableDocument_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocument) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocument_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocument_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocument", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SignableDocumentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocumentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocumentConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNSignableDocumentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocumentEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocumentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocumentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_SignableDocumentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_SignableDocumentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SignableDocumentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SignableDocumentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocumentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocumentConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocumentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocumentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SignableDocumentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocumentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocumentEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocumentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocumentEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SignableDocumentEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.SignableDocumentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SignableDocumentEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNSignableDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocument, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SignableDocumentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SignableDocumentEdge", - 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_SignableDocument_id(ctx, field) - case "title": - return ec.fieldContext_SignableDocument_title(ctx, field) - case "description": - return ec.fieldContext_SignableDocument_description(ctx, field) - case "documentType": - return ec.fieldContext_SignableDocument_documentType(ctx, field) - case "classification": - return ec.fieldContext_SignableDocument_classification(ctx, field) - case "signed": - return ec.fieldContext_SignableDocument_signed(ctx, field) - case "versions": - return ec.fieldContext_SignableDocument_versions(ctx, field) - case "createdAt": - return ec.fieldContext_SignableDocument_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SignableDocument_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SignableDocument", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SlackConnection_id(ctx context.Context, field graphql.CollectedField, obj *types.SlackConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SlackConnection_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SlackConnection_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SlackConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SlackConnection_channel(ctx context.Context, field graphql.CollectedField, obj *types.SlackConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SlackConnection_channel, - func(ctx context.Context) (any, error) { - return obj.Channel, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SlackConnection_channel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SlackConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SlackConnection_channelId(ctx context.Context, field graphql.CollectedField, obj *types.SlackConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SlackConnection_channelId, - func(ctx context.Context) (any, error) { - return obj.ChannelID, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_SlackConnection_channelId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SlackConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SlackConnection_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.SlackConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SlackConnection_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SlackConnection_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SlackConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SlackConnection_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.SlackConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SlackConnection_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SlackConnection_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SlackConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SlackConnectionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.SlackConnectionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SlackConnectionConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNSlackConnectionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSlackConnectionEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SlackConnectionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SlackConnectionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_SlackConnectionEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_SlackConnectionEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SlackConnectionEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SlackConnectionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.SlackConnectionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SlackConnectionConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SlackConnectionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SlackConnectionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SlackConnectionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.SlackConnectionEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SlackConnectionEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SlackConnectionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SlackConnectionEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SlackConnectionEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.SlackConnectionEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SlackConnectionEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNSlackConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSlackConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SlackConnectionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SlackConnectionEdge", - 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_SlackConnection_id(ctx, field) - case "channel": - return ec.fieldContext_SlackConnection_channel(ctx, field) - case "channelId": - return ec.fieldContext_SlackConnection_channelId(ctx, field) - case "createdAt": - return ec.fieldContext_SlackConnection_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SlackConnection_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SlackConnection", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Snapshot_id(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Snapshot_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Snapshot_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Snapshot", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Snapshot_organization(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Snapshot_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Snapshot().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Snapshot_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Snapshot", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Snapshot_name(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Snapshot_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Snapshot_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Snapshot", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Snapshot_description(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Snapshot_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Snapshot_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Snapshot", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Snapshot_type(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Snapshot_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalNSnapshotsType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotsType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Snapshot_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Snapshot", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SnapshotsType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Snapshot_controls(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Snapshot_controls, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Snapshot().Controls(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ControlOrderBy), fc.Args["filter"].(*types.ControlFilter)) - }, - nil, - ec.marshalNControlConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Snapshot_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Snapshot", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ControlConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ControlConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlConnection", 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_Snapshot_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Snapshot_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Snapshot_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Snapshot_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Snapshot", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Snapshot_permission(ctx context.Context, field graphql.CollectedField, obj *types.Snapshot) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Snapshot_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Snapshot().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Snapshot_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Snapshot", - 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_Snapshot_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _SnapshotConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.SnapshotConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SnapshotConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.SnapshotConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SnapshotConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SnapshotConnection", - 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) _SnapshotConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.SnapshotConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SnapshotConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNSnapshotEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SnapshotConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SnapshotConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_SnapshotEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_SnapshotEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SnapshotEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SnapshotConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.SnapshotConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SnapshotConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SnapshotConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SnapshotConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SnapshotEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.SnapshotEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SnapshotEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SnapshotEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SnapshotEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SnapshotEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.SnapshotEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SnapshotEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNSnapshot2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshot, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SnapshotEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SnapshotEdge", - 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_Snapshot_id(ctx, field) - case "organization": - return ec.fieldContext_Snapshot_organization(ctx, field) - case "name": - return ec.fieldContext_Snapshot_name(ctx, field) - case "description": - return ec.fieldContext_Snapshot_description(ctx, field) - case "type": - return ec.fieldContext_Snapshot_type(ctx, field) - case "controls": - return ec.fieldContext_Snapshot_controls(ctx, field) - case "createdAt": - return ec.fieldContext_Snapshot_createdAt(ctx, field) - case "permission": - return ec.fieldContext_Snapshot_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Snapshot", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicability_id(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicability) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicability_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicability_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicability", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicability_name(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicability) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicability_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicability_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicability", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicability_sourceId(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicability) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicability_sourceId, - func(ctx context.Context) (any, error) { - return obj.SourceID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicability_sourceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicability", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicability_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicability) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicability_snapshotId, - func(ctx context.Context) (any, error) { - return obj.SnapshotID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicability_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicability", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicability_organization(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicability) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicability_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.StateOfApplicability().Organization(ctx, obj) - }, - nil, - ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicability_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicability", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicability_owner(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicability) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicability_owner, - func(ctx context.Context) (any, error) { - return ec.Resolvers.StateOfApplicability().Owner(ctx, obj) - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicability_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicability", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicability_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicability) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicability_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicability_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicability", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicability_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicability) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicability_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicability_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicability", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicability_applicabilityStatements(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicability) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicability_applicabilityStatements, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.StateOfApplicability().ApplicabilityStatements(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ApplicabilityStatementOrderBy)) - }, - nil, - ec.marshalNApplicabilityStatementConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatementConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicability_applicabilityStatements(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicability", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_ApplicabilityStatementConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_ApplicabilityStatementConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ApplicabilityStatementConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ApplicabilityStatementConnection", 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_StateOfApplicability_applicabilityStatements_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicability_permission(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicability) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicability_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.StateOfApplicability().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicability_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicability", - 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_StateOfApplicability_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicabilityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicabilityConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicabilityConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.StateOfApplicabilityConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicabilityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicabilityConnection", - 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) _StateOfApplicabilityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicabilityConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicabilityConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNStateOfApplicabilityEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicabilityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicabilityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_StateOfApplicabilityEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_StateOfApplicabilityEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type StateOfApplicabilityEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicabilityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicabilityConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicabilityConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicabilityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicabilityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicabilityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicabilityEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicabilityEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicabilityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicabilityEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _StateOfApplicabilityEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.StateOfApplicabilityEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_StateOfApplicabilityEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNStateOfApplicability2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicability, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_StateOfApplicabilityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StateOfApplicabilityEdge", - 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_StateOfApplicability_id(ctx, field) - case "name": - return ec.fieldContext_StateOfApplicability_name(ctx, field) - case "sourceId": - return ec.fieldContext_StateOfApplicability_sourceId(ctx, field) - case "snapshotId": - return ec.fieldContext_StateOfApplicability_snapshotId(ctx, field) - case "organization": - return ec.fieldContext_StateOfApplicability_organization(ctx, field) - case "owner": - return ec.fieldContext_StateOfApplicability_owner(ctx, field) - case "createdAt": - return ec.fieldContext_StateOfApplicability_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_StateOfApplicability_updatedAt(ctx, field) - case "applicabilityStatements": - return ec.fieldContext_StateOfApplicability_applicabilityStatements(ctx, field) - case "permission": - return ec.fieldContext_StateOfApplicability_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type StateOfApplicability", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_id(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Task_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_name(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Task_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_description(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Task_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_state(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_state, - func(ctx context.Context) (any, error) { - return obj.State, nil - }, - nil, - ec.marshalNTaskState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Task_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskState does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_timeEstimate(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_timeEstimate, - func(ctx context.Context) (any, error) { - return obj.TimeEstimate, nil - }, - nil, - ec.marshalODuration2ᚖtimeᚐDuration, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Task_timeEstimate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Duration does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_deadline(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_deadline, - func(ctx context.Context) (any, error) { - return obj.Deadline, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Task_deadline(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_assignedTo(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_assignedTo, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Task().AssignedTo(ctx, obj) - }, - nil, - ec.marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Task_assignedTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_organization(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Task().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Task_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_measure(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_measure, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Task().Measure(ctx, obj) - }, - nil, - ec.marshalOMeasure2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Task_measure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - 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_Measure_id(ctx, field) - case "category": - return ec.fieldContext_Measure_category(ctx, field) - case "name": - return ec.fieldContext_Measure_name(ctx, field) - case "description": - return ec.fieldContext_Measure_description(ctx, field) - case "state": - return ec.fieldContext_Measure_state(ctx, field) - case "evidences": - return ec.fieldContext_Measure_evidences(ctx, field) - case "tasks": - return ec.fieldContext_Measure_tasks(ctx, field) - case "risks": - return ec.fieldContext_Measure_risks(ctx, field) - case "controls": - return ec.fieldContext_Measure_controls(ctx, field) - case "createdAt": - return ec.fieldContext_Measure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Measure_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Measure_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Measure", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_evidences(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_evidences, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Task().Evidences(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.EvidenceOrderBy)) - }, - nil, - ec.marshalNEvidenceConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Task_evidences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_EvidenceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_EvidenceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EvidenceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EvidenceConnection", 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_Task_evidences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Task_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Task_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Task_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Task_permission(ctx context.Context, field graphql.CollectedField, obj *types.Task) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Task_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Task().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Task_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Task", - 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_Task_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TaskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.TaskConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TaskConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TaskConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TaskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskConnection", - 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) _TaskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TaskConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TaskConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNTaskEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TaskConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TaskEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TaskEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaskEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TaskConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TaskConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TaskConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TaskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TaskEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TaskEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TaskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TaskEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TaskEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TaskEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNTask2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TaskEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskEdge", - 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_Task_id(ctx, field) - case "name": - return ec.fieldContext_Task_name(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "state": - return ec.fieldContext_Task_state(ctx, field) - case "timeEstimate": - return ec.fieldContext_Task_timeEstimate(ctx, field) - case "deadline": - return ec.fieldContext_Task_deadline(ctx, field) - case "assignedTo": - return ec.fieldContext_Task_assignedTo(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "measure": - return ec.fieldContext_Task_measure(ctx, field) - case "evidences": - return ec.fieldContext_Task_evidences(ctx, field) - case "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Task_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_id(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_processingActivity(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_processingActivity, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TransferImpactAssessment().ProcessingActivity(ctx, obj) - }, - nil, - ec.marshalNProcessingActivity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivity, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_processingActivity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - 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_ProcessingActivity_id(ctx, field) - case "snapshotId": - return ec.fieldContext_ProcessingActivity_snapshotId(ctx, field) - case "sourceId": - return ec.fieldContext_ProcessingActivity_sourceId(ctx, field) - case "organization": - return ec.fieldContext_ProcessingActivity_organization(ctx, field) - case "name": - return ec.fieldContext_ProcessingActivity_name(ctx, field) - case "purpose": - return ec.fieldContext_ProcessingActivity_purpose(ctx, field) - case "dataSubjectCategory": - return ec.fieldContext_ProcessingActivity_dataSubjectCategory(ctx, field) - case "personalDataCategory": - return ec.fieldContext_ProcessingActivity_personalDataCategory(ctx, field) - case "specialOrCriminalData": - return ec.fieldContext_ProcessingActivity_specialOrCriminalData(ctx, field) - case "consentEvidenceLink": - return ec.fieldContext_ProcessingActivity_consentEvidenceLink(ctx, field) - case "lawfulBasis": - return ec.fieldContext_ProcessingActivity_lawfulBasis(ctx, field) - case "recipients": - return ec.fieldContext_ProcessingActivity_recipients(ctx, field) - case "location": - return ec.fieldContext_ProcessingActivity_location(ctx, field) - case "internationalTransfers": - return ec.fieldContext_ProcessingActivity_internationalTransfers(ctx, field) - case "transferSafeguards": - return ec.fieldContext_ProcessingActivity_transferSafeguards(ctx, field) - case "retentionPeriod": - return ec.fieldContext_ProcessingActivity_retentionPeriod(ctx, field) - case "securityMeasures": - return ec.fieldContext_ProcessingActivity_securityMeasures(ctx, field) - case "dataProtectionImpactAssessmentNeeded": - return ec.fieldContext_ProcessingActivity_dataProtectionImpactAssessmentNeeded(ctx, field) - case "transferImpactAssessmentNeeded": - return ec.fieldContext_ProcessingActivity_transferImpactAssessmentNeeded(ctx, field) - case "lastReviewDate": - return ec.fieldContext_ProcessingActivity_lastReviewDate(ctx, field) - case "nextReviewDate": - return ec.fieldContext_ProcessingActivity_nextReviewDate(ctx, field) - case "role": - return ec.fieldContext_ProcessingActivity_role(ctx, field) - case "dataProtectionOfficer": - return ec.fieldContext_ProcessingActivity_dataProtectionOfficer(ctx, field) - case "vendors": - return ec.fieldContext_ProcessingActivity_vendors(ctx, field) - case "dataProtectionImpactAssessment": - return ec.fieldContext_ProcessingActivity_dataProtectionImpactAssessment(ctx, field) - case "transferImpactAssessment": - return ec.fieldContext_ProcessingActivity_transferImpactAssessment(ctx, field) - case "createdAt": - return ec.fieldContext_ProcessingActivity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProcessingActivity_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_ProcessingActivity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcessingActivity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_organization(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TransferImpactAssessment().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_dataSubjects(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_dataSubjects, - func(ctx context.Context) (any, error) { - return obj.DataSubjects, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_dataSubjects(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_legalMechanism(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_legalMechanism, - func(ctx context.Context) (any, error) { - return obj.LegalMechanism, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_legalMechanism(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_transfer(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_transfer, - func(ctx context.Context) (any, error) { - return obj.Transfer, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_transfer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_localLawRisk(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_localLawRisk, - func(ctx context.Context) (any, error) { - return obj.LocalLawRisk, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_localLawRisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_supplementaryMeasures(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_supplementaryMeasures, - func(ctx context.Context) (any, error) { - return obj.SupplementaryMeasures, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_supplementaryMeasures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessment_permission(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessment_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TransferImpactAssessment().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessment_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessment", - 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_TransferImpactAssessment_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessmentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessmentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessmentConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TransferImpactAssessmentConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessmentConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessmentConnection", - 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) _TransferImpactAssessmentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessmentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessmentConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNTransferImpactAssessmentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessmentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessmentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TransferImpactAssessmentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TransferImpactAssessmentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TransferImpactAssessmentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessmentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessmentConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessmentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessmentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessmentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessmentEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessmentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessmentEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TransferImpactAssessmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TransferImpactAssessmentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TransferImpactAssessmentEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessment, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TransferImpactAssessmentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TransferImpactAssessmentEdge", - 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_TransferImpactAssessment_id(ctx, field) - case "processingActivity": - return ec.fieldContext_TransferImpactAssessment_processingActivity(ctx, field) - case "organization": - return ec.fieldContext_TransferImpactAssessment_organization(ctx, field) - case "dataSubjects": - return ec.fieldContext_TransferImpactAssessment_dataSubjects(ctx, field) - case "legalMechanism": - return ec.fieldContext_TransferImpactAssessment_legalMechanism(ctx, field) - case "transfer": - return ec.fieldContext_TransferImpactAssessment_transfer(ctx, field) - case "localLawRisk": - return ec.fieldContext_TransferImpactAssessment_localLawRisk(ctx, field) - case "supplementaryMeasures": - return ec.fieldContext_TransferImpactAssessment_supplementaryMeasures(ctx, field) - case "createdAt": - return ec.fieldContext_TransferImpactAssessment_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TransferImpactAssessment_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_TransferImpactAssessment_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TransferImpactAssessment", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_active(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_active, - func(ctx context.Context) (any, error) { - return obj.Active, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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) _TrustCenter_logoFileUrl(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_logoFileUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenter().LogoFileURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_logoFileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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) _TrustCenter_darkLogoFileUrl(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_darkLogoFileUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenter().DarkLogoFileURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_darkLogoFileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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) _TrustCenter_ndaFileName(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_ndaFileName, - func(ctx context.Context) (any, error) { - return obj.NdaFileName, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_ndaFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_ndaFileUrl(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_ndaFileUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenter().NdaFileURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_ndaFileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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) _TrustCenter_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_organization(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenter().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_accesses(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_accesses, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().Accesses(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.OrderBy[coredata.TrustCenterAccessOrderField])) - }, - nil, - ec.marshalNTrustCenterAccessConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_accesses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_TrustCenterAccessConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TrustCenterAccessConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterAccessConnection", 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_TrustCenter_accesses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_references(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_references, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().References(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.OrderBy[coredata.TrustCenterReferenceOrderField])) - }, - nil, - ec.marshalNTrustCenterReferenceConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReferenceConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_references(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_TrustCenterReferenceConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_TrustCenterReferenceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TrustCenterReferenceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterReferenceConnection", 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_TrustCenter_references_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_complianceFrameworks(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_complianceFrameworks, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().ComplianceFrameworks(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.OrderBy[coredata.ComplianceFrameworkOrderField])) - }, - nil, - ec.marshalNComplianceFrameworkConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFrameworkConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_complianceFrameworks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ComplianceFrameworkConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComplianceFrameworkConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceFrameworkConnection", 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_TrustCenter_complianceFrameworks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_externalUrls(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_externalUrls, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().ExternalUrls(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.OrderBy[coredata.ComplianceExternalURLOrderField])) - }, - nil, - ec.marshalNComplianceExternalURLConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURLConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_externalUrls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ComplianceExternalURLConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComplianceExternalURLConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceExternalURLConnection", 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_TrustCenter_externalUrls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_mailingList(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_mailingList, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenter().MailingList(ctx, obj) - }, - nil, - ec.marshalOMailingList2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingList, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_mailingList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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_MailingList_id(ctx, field) - case "replyTo": - return ec.fieldContext_MailingList_replyTo(ctx, field) - case "subscribers": - return ec.fieldContext_MailingList_subscribers(ctx, field) - case "updates": - return ec.fieldContext_MailingList_updates(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingList", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_permission(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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_TrustCenter_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_ndaSignature(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_ndaSignature, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterAccess().NdaSignature(ctx, obj) - }, - nil, - ec.marshalOElectronicSignature2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐElectronicSignature, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_ndaSignature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - 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_ElectronicSignature_id(ctx, field) - case "status": - return ec.fieldContext_ElectronicSignature_status(ctx, field) - case "documentType": - return ec.fieldContext_ElectronicSignature_documentType(ctx, field) - case "consentText": - return ec.fieldContext_ElectronicSignature_consentText(ctx, field) - case "lastError": - return ec.fieldContext_ElectronicSignature_lastError(ctx, field) - case "signedAt": - return ec.fieldContext_ElectronicSignature_signedAt(ctx, field) - case "certificateFileUrl": - return ec.fieldContext_ElectronicSignature_certificateFileUrl(ctx, field) - case "events": - return ec.fieldContext_ElectronicSignature_events(ctx, field) - case "createdAt": - return ec.fieldContext_ElectronicSignature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ElectronicSignature_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ElectronicSignature", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_pendingRequestCount(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_pendingRequestCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterAccess().PendingRequestCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_pendingRequestCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - 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) _TrustCenterAccess_activeCount(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_activeCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterAccess().ActiveCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_activeCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - 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) _TrustCenterAccess_organizationId(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_organizationId, - func(ctx context.Context) (any, error) { - return obj.OrganizationID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_organizationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_identityID(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_identityID, - func(ctx context.Context) (any, error) { - return obj.IdentityID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_identityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_profile(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_profile, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterAccess().Profile(ctx, obj) - }, - nil, - ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_availableDocumentAccesses(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_availableDocumentAccesses, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenterAccess().AvailableDocumentAccesses(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.OrderBy[coredata.TrustCenterDocumentAccessOrderField])) - }, - nil, - ec.marshalNTrustCenterDocumentAccessConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_availableDocumentAccesses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "totalCount": - return ec.fieldContext_TrustCenterDocumentAccessConnection_totalCount(ctx, field) - case "edges": - return ec.fieldContext_TrustCenterDocumentAccessConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TrustCenterDocumentAccessConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterDocumentAccessConnection", 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_TrustCenterAccess_availableDocumentAccesses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_permission(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenterAccess().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - 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_TrustCenterAccess_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccessConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccessConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccessConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNTrustCenterAccessEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccessConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccessConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TrustCenterAccessEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TrustCenterAccessEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterAccessEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccessConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccessConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccessConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccessConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccessConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccessEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccessEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccessEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccessEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccessEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccessEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccessEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccessEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNTrustCenterAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccess, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccessEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccessEdge", - 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_TrustCenterAccess_id(ctx, field) - case "ndaSignature": - return ec.fieldContext_TrustCenterAccess_ndaSignature(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenterAccess_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenterAccess_updatedAt(ctx, field) - case "pendingRequestCount": - return ec.fieldContext_TrustCenterAccess_pendingRequestCount(ctx, field) - case "activeCount": - return ec.fieldContext_TrustCenterAccess_activeCount(ctx, field) - case "organizationId": - return ec.fieldContext_TrustCenterAccess_organizationId(ctx, field) - case "identityID": - return ec.fieldContext_TrustCenterAccess_identityID(ctx, field) - case "profile": - return ec.fieldContext_TrustCenterAccess_profile(ctx, field) - case "availableDocumentAccesses": - return ec.fieldContext_TrustCenterAccess_availableDocumentAccesses(ctx, field) - case "permission": - return ec.fieldContext_TrustCenterAccess_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterAccess", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNTrustCenterEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TrustCenterEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TrustCenterEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterDocumentAccess_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterDocumentAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterDocumentAccess_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterDocumentAccess_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterDocumentAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterDocumentAccess_status(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterDocumentAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterDocumentAccess_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNTrustCenterDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterDocumentAccess_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterDocumentAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TrustCenterDocumentAccessStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterDocumentAccess_document(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterDocumentAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterDocumentAccess_document, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterDocumentAccess().Document(ctx, obj) - }, - nil, - ec.marshalODocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterDocumentAccess_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterDocumentAccess", - 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_Document_id(ctx, field) - case "title": - return ec.fieldContext_Document_title(ctx, field) - case "description": - return ec.fieldContext_Document_description(ctx, field) - case "documentType": - return ec.fieldContext_Document_documentType(ctx, field) - case "classification": - return ec.fieldContext_Document_classification(ctx, field) - case "currentPublishedVersion": - return ec.fieldContext_Document_currentPublishedVersion(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Document_trustCenterVisibility(ctx, field) - case "approvers": - return ec.fieldContext_Document_approvers(ctx, field) - case "organization": - return ec.fieldContext_Document_organization(ctx, field) - case "versions": - return ec.fieldContext_Document_versions(ctx, field) - case "controls": - return ec.fieldContext_Document_controls(ctx, field) - case "createdAt": - return ec.fieldContext_Document_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Document_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Document_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Document", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterDocumentAccess_report(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterDocumentAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterDocumentAccess_report, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterDocumentAccess().Report(ctx, obj) - }, - nil, - ec.marshalOReport2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐReport, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterDocumentAccess_report(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterDocumentAccess", - 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_Report_id(ctx, field) - case "objectKey": - return ec.fieldContext_Report_objectKey(ctx, field) - case "mimeType": - return ec.fieldContext_Report_mimeType(ctx, field) - case "filename": - return ec.fieldContext_Report_filename(ctx, field) - case "size": - return ec.fieldContext_Report_size(ctx, field) - case "downloadUrl": - return ec.fieldContext_Report_downloadUrl(ctx, field) - case "createdAt": - return ec.fieldContext_Report_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Report_updatedAt(ctx, field) - case "audit": - return ec.fieldContext_Report_audit(ctx, field) - case "permission": - return ec.fieldContext_Report_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Report", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterDocumentAccess_trustCenterFile(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterDocumentAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterDocumentAccess_trustCenterFile, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterDocumentAccess().TrustCenterFile(ctx, obj) - }, - nil, - ec.marshalOTrustCenterFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterDocumentAccess_trustCenterFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterDocumentAccess", - 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_TrustCenterFile_id(ctx, field) - case "name": - return ec.fieldContext_TrustCenterFile_name(ctx, field) - case "category": - return ec.fieldContext_TrustCenterFile_category(ctx, field) - case "fileUrl": - return ec.fieldContext_TrustCenterFile_fileUrl(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_TrustCenterFile_trustCenterVisibility(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenterFile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenterFile_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_TrustCenterFile_organization(ctx, field) - case "permission": - return ec.fieldContext_TrustCenterFile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterDocumentAccessConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterDocumentAccessConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterDocumentAccessConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterDocumentAccessConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterDocumentAccessConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterDocumentAccessConnection", - 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) _TrustCenterDocumentAccessConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterDocumentAccessConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterDocumentAccessConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNTrustCenterDocumentAccessEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterDocumentAccessConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterDocumentAccessConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TrustCenterDocumentAccessEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TrustCenterDocumentAccessEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterDocumentAccessEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterDocumentAccessConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterDocumentAccessConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterDocumentAccessConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterDocumentAccessConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterDocumentAccessConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterDocumentAccessEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterDocumentAccessEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterDocumentAccessEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterDocumentAccessEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterDocumentAccessEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterDocumentAccessEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterDocumentAccessEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterDocumentAccessEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNTrustCenterDocumentAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccess, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterDocumentAccessEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterDocumentAccessEdge", - 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_TrustCenterDocumentAccess_id(ctx, field) - case "status": - return ec.fieldContext_TrustCenterDocumentAccess_status(ctx, field) - case "document": - return ec.fieldContext_TrustCenterDocumentAccess_document(ctx, field) - case "report": - return ec.fieldContext_TrustCenterDocumentAccess_report(ctx, field) - case "trustCenterFile": - return ec.fieldContext_TrustCenterDocumentAccess_trustCenterFile(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterDocumentAccess", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNTrustCenter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterEdge", - 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_TrustCenter_id(ctx, field) - case "active": - return ec.fieldContext_TrustCenter_active(ctx, field) - case "logoFileUrl": - return ec.fieldContext_TrustCenter_logoFileUrl(ctx, field) - case "darkLogoFileUrl": - return ec.fieldContext_TrustCenter_darkLogoFileUrl(ctx, field) - case "ndaFileName": - return ec.fieldContext_TrustCenter_ndaFileName(ctx, field) - case "ndaFileUrl": - return ec.fieldContext_TrustCenter_ndaFileUrl(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenter_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenter_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_TrustCenter_organization(ctx, field) - case "accesses": - return ec.fieldContext_TrustCenter_accesses(ctx, field) - case "references": - return ec.fieldContext_TrustCenter_references(ctx, field) - case "complianceFrameworks": - return ec.fieldContext_TrustCenter_complianceFrameworks(ctx, field) - case "externalUrls": - return ec.fieldContext_TrustCenter_externalUrls(ctx, field) - case "mailingList": - return ec.fieldContext_TrustCenter_mailingList(ctx, field) - case "permission": - return ec.fieldContext_TrustCenter_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenter", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_name(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_category(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_category, - func(ctx context.Context) (any, error) { - return obj.Category, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_fileUrl(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_fileUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterFile().FileURL(ctx, obj) - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_fileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - 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) _TrustCenterFile_trustCenterVisibility(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_trustCenterVisibility, - func(ctx context.Context) (any, error) { - return obj.TrustCenterVisibility, nil - }, - nil, - ec.marshalNTrustCenterVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_trustCenterVisibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TrustCenterVisibility does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_organization(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterFile().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_permission(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenterFile().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - 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_TrustCenterFile_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFileConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFileConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterFileConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFileConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFileConnection", - 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) _TrustCenterFileConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFileConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNTrustCenterFileEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFileEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFileConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFileConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TrustCenterFileEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TrustCenterFileEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFileEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFileConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFileConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFileConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFileConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFileEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFileEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFileEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFileEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFileEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFileEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFileEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFileEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNTrustCenterFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFileEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFileEdge", - 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_TrustCenterFile_id(ctx, field) - case "name": - return ec.fieldContext_TrustCenterFile_name(ctx, field) - case "category": - return ec.fieldContext_TrustCenterFile_category(ctx, field) - case "fileUrl": - return ec.fieldContext_TrustCenterFile_fileUrl(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_TrustCenterFile_trustCenterVisibility(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenterFile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenterFile_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_TrustCenterFile_organization(ctx, field) - case "permission": - return ec.fieldContext_TrustCenterFile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_name(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_description(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_websiteUrl(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_websiteUrl, - func(ctx context.Context) (any, error) { - return obj.WebsiteURL, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_websiteUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_logoUrl(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_logoUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterReference().LogoURL(ctx, obj) - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_logoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - 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) _TrustCenterReference_rank(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_rank, - func(ctx context.Context) (any, error) { - return obj.Rank, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_rank(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - 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) _TrustCenterReference_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_permission(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenterReference().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - 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_TrustCenterReference_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReferenceConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReferenceConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReferenceConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterReferenceConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReferenceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReferenceConnection", - 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) _TrustCenterReferenceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReferenceConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReferenceConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNTrustCenterReferenceEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReferenceEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReferenceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReferenceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TrustCenterReferenceEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TrustCenterReferenceEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterReferenceEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReferenceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReferenceConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReferenceConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReferenceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReferenceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReferenceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReferenceEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReferenceEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReferenceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReferenceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReferenceEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReferenceEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReferenceEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNTrustCenterReference2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReference, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReferenceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReferenceEdge", - 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_TrustCenterReference_id(ctx, field) - case "name": - return ec.fieldContext_TrustCenterReference_name(ctx, field) - case "description": - return ec.fieldContext_TrustCenterReference_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_TrustCenterReference_websiteUrl(ctx, field) - case "logoUrl": - return ec.fieldContext_TrustCenterReference_logoUrl(ctx, field) - case "rank": - return ec.fieldContext_TrustCenterReference_rank(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenterReference_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenterReference_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_TrustCenterReference_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterReference", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateApplicabilityStatementPayload_applicabilityStatement(ctx context.Context, field graphql.CollectedField, obj *types.UpdateApplicabilityStatementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateApplicabilityStatementPayload_applicabilityStatement, - func(ctx context.Context) (any, error) { - return obj.ApplicabilityStatement, nil - }, - nil, - ec.marshalNApplicabilityStatement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatement, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateApplicabilityStatementPayload_applicabilityStatement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateApplicabilityStatementPayload", - 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_ApplicabilityStatement_id(ctx, field) - case "stateOfApplicability": - return ec.fieldContext_ApplicabilityStatement_stateOfApplicability(ctx, field) - case "control": - return ec.fieldContext_ApplicabilityStatement_control(ctx, field) - case "applicability": - return ec.fieldContext_ApplicabilityStatement_applicability(ctx, field) - case "justification": - return ec.fieldContext_ApplicabilityStatement_justification(ctx, field) - case "createdAt": - return ec.fieldContext_ApplicabilityStatement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ApplicabilityStatement_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_ApplicabilityStatement_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ApplicabilityStatement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateAssetPayload_asset(ctx context.Context, field graphql.CollectedField, obj *types.UpdateAssetPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateAssetPayload_asset, - func(ctx context.Context) (any, error) { - return obj.Asset, nil - }, - nil, - ec.marshalNAsset2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAsset, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateAssetPayload_asset(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateAssetPayload", - 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_Asset_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Asset_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Asset_name(ctx, field) - case "amount": - return ec.fieldContext_Asset_amount(ctx, field) - case "owner": - return ec.fieldContext_Asset_owner(ctx, field) - case "vendors": - return ec.fieldContext_Asset_vendors(ctx, field) - case "assetType": - return ec.fieldContext_Asset_assetType(ctx, field) - case "dataTypesStored": - return ec.fieldContext_Asset_dataTypesStored(ctx, field) - case "organization": - return ec.fieldContext_Asset_organization(ctx, field) - case "createdAt": - return ec.fieldContext_Asset_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Asset_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Asset_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Asset", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateAuditPayload_audit(ctx context.Context, field graphql.CollectedField, obj *types.UpdateAuditPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateAuditPayload_audit, - func(ctx context.Context) (any, error) { - return obj.Audit, nil - }, - nil, - ec.marshalNAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateAuditPayload_audit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateAuditPayload", - 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_Audit_id(ctx, field) - case "name": - return ec.fieldContext_Audit_name(ctx, field) - case "organization": - return ec.fieldContext_Audit_organization(ctx, field) - case "framework": - return ec.fieldContext_Audit_framework(ctx, field) - case "validFrom": - return ec.fieldContext_Audit_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_Audit_validUntil(ctx, field) - case "report": - return ec.fieldContext_Audit_report(ctx, field) - case "reportUrl": - return ec.fieldContext_Audit_reportUrl(ctx, field) - case "state": - return ec.fieldContext_Audit_state(ctx, field) - case "controls": - return ec.fieldContext_Audit_controls(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Audit_trustCenterVisibility(ctx, field) - case "createdAt": - return ec.fieldContext_Audit_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Audit_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Audit_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateComplianceExternalURLPayload_complianceExternalUrl(ctx context.Context, field graphql.CollectedField, obj *types.UpdateComplianceExternalURLPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateComplianceExternalURLPayload_complianceExternalUrl, - func(ctx context.Context) (any, error) { - return obj.ComplianceExternalURL, nil - }, - nil, - ec.marshalNComplianceExternalURL2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURL, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateComplianceExternalURLPayload_complianceExternalUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateComplianceExternalURLPayload", - 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_ComplianceExternalURL_id(ctx, field) - case "name": - return ec.fieldContext_ComplianceExternalURL_name(ctx, field) - case "url": - return ec.fieldContext_ComplianceExternalURL_url(ctx, field) - case "rank": - return ec.fieldContext_ComplianceExternalURL_rank(ctx, field) - case "createdAt": - return ec.fieldContext_ComplianceExternalURL_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ComplianceExternalURL_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_ComplianceExternalURL_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceExternalURL", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateComplianceFrameworkPayload_complianceFramework(ctx context.Context, field graphql.CollectedField, obj *types.UpdateComplianceFrameworkPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateComplianceFrameworkPayload_complianceFramework, - func(ctx context.Context) (any, error) { - return obj.ComplianceFramework, nil - }, - nil, - ec.marshalNComplianceFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFramework, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateComplianceFrameworkPayload_complianceFramework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateComplianceFrameworkPayload", - 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_ComplianceFramework_id(ctx, field) - case "framework": - return ec.fieldContext_ComplianceFramework_framework(ctx, field) - case "rank": - return ec.fieldContext_ComplianceFramework_rank(ctx, field) - case "visibility": - return ec.fieldContext_ComplianceFramework_visibility(ctx, field) - case "createdAt": - return ec.fieldContext_ComplianceFramework_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ComplianceFramework_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceFramework", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateContinualImprovementPayload_continualImprovement(ctx context.Context, field graphql.CollectedField, obj *types.UpdateContinualImprovementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateContinualImprovementPayload_continualImprovement, - func(ctx context.Context) (any, error) { - return obj.ContinualImprovement, nil - }, - nil, - ec.marshalNContinualImprovement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovement, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateContinualImprovementPayload_continualImprovement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateContinualImprovementPayload", - 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_ContinualImprovement_id(ctx, field) - case "snapshotId": - return ec.fieldContext_ContinualImprovement_snapshotId(ctx, field) - case "sourceId": - return ec.fieldContext_ContinualImprovement_sourceId(ctx, field) - case "organization": - return ec.fieldContext_ContinualImprovement_organization(ctx, field) - case "referenceId": - return ec.fieldContext_ContinualImprovement_referenceId(ctx, field) - case "description": - return ec.fieldContext_ContinualImprovement_description(ctx, field) - case "source": - return ec.fieldContext_ContinualImprovement_source(ctx, field) - case "owner": - return ec.fieldContext_ContinualImprovement_owner(ctx, field) - case "targetDate": - return ec.fieldContext_ContinualImprovement_targetDate(ctx, field) - case "status": - return ec.fieldContext_ContinualImprovement_status(ctx, field) - case "priority": - return ec.fieldContext_ContinualImprovement_priority(ctx, field) - case "createdAt": - return ec.fieldContext_ContinualImprovement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ContinualImprovement_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_ContinualImprovement_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContinualImprovement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateControlPayload_control(ctx context.Context, field graphql.CollectedField, obj *types.UpdateControlPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateControlPayload_control, - func(ctx context.Context) (any, error) { - return obj.Control, nil - }, - nil, - ec.marshalNControl2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControl, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateControlPayload_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateControlPayload", - 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_Control_id(ctx, field) - case "organization": - return ec.fieldContext_Control_organization(ctx, field) - case "sectionTitle": - return ec.fieldContext_Control_sectionTitle(ctx, field) - case "name": - return ec.fieldContext_Control_name(ctx, field) - case "description": - return ec.fieldContext_Control_description(ctx, field) - case "bestPractice": - return ec.fieldContext_Control_bestPractice(ctx, field) - case "regulatory": - return ec.fieldContext_Control_regulatory(ctx, field) - case "contractual": - return ec.fieldContext_Control_contractual(ctx, field) - case "riskAssessment": - return ec.fieldContext_Control_riskAssessment(ctx, field) - case "framework": - return ec.fieldContext_Control_framework(ctx, field) - case "measures": - return ec.fieldContext_Control_measures(ctx, field) - case "documents": - return ec.fieldContext_Control_documents(ctx, field) - case "audits": - return ec.fieldContext_Control_audits(ctx, field) - case "obligations": - return ec.fieldContext_Control_obligations(ctx, field) - case "snapshots": - return ec.fieldContext_Control_snapshots(ctx, field) - case "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Control_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateDataProtectionImpactAssessmentPayload_dataProtectionImpactAssessment(ctx context.Context, field graphql.CollectedField, obj *types.UpdateDataProtectionImpactAssessmentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateDataProtectionImpactAssessmentPayload_dataProtectionImpactAssessment, - func(ctx context.Context) (any, error) { - return obj.DataProtectionImpactAssessment, nil - }, - nil, - ec.marshalNDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessment, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateDataProtectionImpactAssessmentPayload_dataProtectionImpactAssessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateDataProtectionImpactAssessmentPayload", - 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_DataProtectionImpactAssessment_id(ctx, field) - case "processingActivity": - return ec.fieldContext_DataProtectionImpactAssessment_processingActivity(ctx, field) - case "organization": - return ec.fieldContext_DataProtectionImpactAssessment_organization(ctx, field) - case "description": - return ec.fieldContext_DataProtectionImpactAssessment_description(ctx, field) - case "necessityAndProportionality": - return ec.fieldContext_DataProtectionImpactAssessment_necessityAndProportionality(ctx, field) - case "potentialRisk": - return ec.fieldContext_DataProtectionImpactAssessment_potentialRisk(ctx, field) - case "mitigations": - return ec.fieldContext_DataProtectionImpactAssessment_mitigations(ctx, field) - case "residualRisk": - return ec.fieldContext_DataProtectionImpactAssessment_residualRisk(ctx, field) - case "createdAt": - return ec.fieldContext_DataProtectionImpactAssessment_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DataProtectionImpactAssessment_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_DataProtectionImpactAssessment_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DataProtectionImpactAssessment", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateDatumPayload_datum(ctx context.Context, field graphql.CollectedField, obj *types.UpdateDatumPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateDatumPayload_datum, - func(ctx context.Context) (any, error) { - return obj.Datum, nil - }, - nil, - ec.marshalNDatum2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatum, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateDatumPayload_datum(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateDatumPayload", - 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_Datum_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Datum_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Datum_name(ctx, field) - case "dataClassification": - return ec.fieldContext_Datum_dataClassification(ctx, field) - case "owner": - return ec.fieldContext_Datum_owner(ctx, field) - case "vendors": - return ec.fieldContext_Datum_vendors(ctx, field) - case "organization": - return ec.fieldContext_Datum_organization(ctx, field) - case "createdAt": - return ec.fieldContext_Datum_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Datum_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Datum_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Datum", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateDocumentPayload_document(ctx context.Context, field graphql.CollectedField, obj *types.UpdateDocumentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateDocumentPayload_document, - func(ctx context.Context) (any, error) { - return obj.Document, nil - }, - nil, - ec.marshalNDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateDocumentPayload_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateDocumentPayload", - 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_Document_id(ctx, field) - case "title": - return ec.fieldContext_Document_title(ctx, field) - case "description": - return ec.fieldContext_Document_description(ctx, field) - case "documentType": - return ec.fieldContext_Document_documentType(ctx, field) - case "classification": - return ec.fieldContext_Document_classification(ctx, field) - case "currentPublishedVersion": - return ec.fieldContext_Document_currentPublishedVersion(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Document_trustCenterVisibility(ctx, field) - case "approvers": - return ec.fieldContext_Document_approvers(ctx, field) - case "organization": - return ec.fieldContext_Document_organization(ctx, field) - case "versions": - return ec.fieldContext_Document_versions(ctx, field) - case "controls": - return ec.fieldContext_Document_controls(ctx, field) - case "createdAt": - return ec.fieldContext_Document_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Document_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Document_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Document", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateDocumentVersionPayload_documentVersion(ctx context.Context, field graphql.CollectedField, obj *types.UpdateDocumentVersionPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateDocumentVersionPayload_documentVersion, - func(ctx context.Context) (any, error) { - return obj.DocumentVersion, nil - }, - nil, - ec.marshalNDocumentVersion2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateDocumentVersionPayload_documentVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateDocumentVersionPayload", - 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_DocumentVersion_id(ctx, field) - case "document": - return ec.fieldContext_DocumentVersion_document(ctx, field) - case "status": - return ec.fieldContext_DocumentVersion_status(ctx, field) - case "version": - return ec.fieldContext_DocumentVersion_version(ctx, field) - case "content": - return ec.fieldContext_DocumentVersion_content(ctx, field) - case "changelog": - return ec.fieldContext_DocumentVersion_changelog(ctx, field) - case "title": - return ec.fieldContext_DocumentVersion_title(ctx, field) - case "classification": - return ec.fieldContext_DocumentVersion_classification(ctx, field) - case "approvers": - return ec.fieldContext_DocumentVersion_approvers(ctx, field) - case "signatures": - return ec.fieldContext_DocumentVersion_signatures(ctx, field) - case "signed": - return ec.fieldContext_DocumentVersion_signed(ctx, field) - case "publishedAt": - return ec.fieldContext_DocumentVersion_publishedAt(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentVersion_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentVersion_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_DocumentVersion_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentVersion", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateFrameworkPayload_framework(ctx context.Context, field graphql.CollectedField, obj *types.UpdateFrameworkPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateFrameworkPayload_framework, - func(ctx context.Context) (any, error) { - return obj.Framework, nil - }, - nil, - ec.marshalNFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateFrameworkPayload_framework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateFrameworkPayload", - 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_Framework_id(ctx, field) - case "name": - return ec.fieldContext_Framework_name(ctx, field) - case "description": - return ec.fieldContext_Framework_description(ctx, field) - case "organization": - return ec.fieldContext_Framework_organization(ctx, field) - case "controls": - return ec.fieldContext_Framework_controls(ctx, field) - case "lightLogoURL": - return ec.fieldContext_Framework_lightLogoURL(ctx, field) - case "darkLogoURL": - return ec.fieldContext_Framework_darkLogoURL(ctx, field) - case "createdAt": - return ec.fieldContext_Framework_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Framework_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Framework_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Framework", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateMailingListPayload_mailingList(ctx context.Context, field graphql.CollectedField, obj *types.UpdateMailingListPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateMailingListPayload_mailingList, - func(ctx context.Context) (any, error) { - return obj.MailingList, nil - }, - nil, - ec.marshalNMailingList2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingList, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateMailingListPayload_mailingList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateMailingListPayload", - 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_MailingList_id(ctx, field) - case "replyTo": - return ec.fieldContext_MailingList_replyTo(ctx, field) - case "subscribers": - return ec.fieldContext_MailingList_subscribers(ctx, field) - case "updates": - return ec.fieldContext_MailingList_updates(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingList", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateMailingListUpdatePayload_mailingListUpdate(ctx context.Context, field graphql.CollectedField, obj *types.UpdateMailingListUpdatePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateMailingListUpdatePayload_mailingListUpdate, - func(ctx context.Context) (any, error) { - return obj.MailingListUpdate, nil - }, - nil, - ec.marshalNMailingListUpdate2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdate, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateMailingListUpdatePayload_mailingListUpdate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateMailingListUpdatePayload", - 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_MailingListUpdate_id(ctx, field) - case "title": - return ec.fieldContext_MailingListUpdate_title(ctx, field) - case "body": - return ec.fieldContext_MailingListUpdate_body(ctx, field) - case "status": - return ec.fieldContext_MailingListUpdate_status(ctx, field) - case "createdAt": - return ec.fieldContext_MailingListUpdate_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_MailingListUpdate_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListUpdate", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateMeasurePayload_measure(ctx context.Context, field graphql.CollectedField, obj *types.UpdateMeasurePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateMeasurePayload_measure, - func(ctx context.Context) (any, error) { - return obj.Measure, nil - }, - nil, - ec.marshalNMeasure2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateMeasurePayload_measure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateMeasurePayload", - 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_Measure_id(ctx, field) - case "category": - return ec.fieldContext_Measure_category(ctx, field) - case "name": - return ec.fieldContext_Measure_name(ctx, field) - case "description": - return ec.fieldContext_Measure_description(ctx, field) - case "state": - return ec.fieldContext_Measure_state(ctx, field) - case "evidences": - return ec.fieldContext_Measure_evidences(ctx, field) - case "tasks": - return ec.fieldContext_Measure_tasks(ctx, field) - case "risks": - return ec.fieldContext_Measure_risks(ctx, field) - case "controls": - return ec.fieldContext_Measure_controls(ctx, field) - case "createdAt": - return ec.fieldContext_Measure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Measure_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Measure_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Measure", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateMeetingPayload_meeting(ctx context.Context, field graphql.CollectedField, obj *types.UpdateMeetingPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateMeetingPayload_meeting, - func(ctx context.Context) (any, error) { - return obj.Meeting, nil - }, - nil, - ec.marshalNMeeting2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeeting, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateMeetingPayload_meeting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateMeetingPayload", - 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_Meeting_id(ctx, field) - case "name": - return ec.fieldContext_Meeting_name(ctx, field) - case "date": - return ec.fieldContext_Meeting_date(ctx, field) - case "minutes": - return ec.fieldContext_Meeting_minutes(ctx, field) - case "attendees": - return ec.fieldContext_Meeting_attendees(ctx, field) - case "organization": - return ec.fieldContext_Meeting_organization(ctx, field) - case "createdAt": - return ec.fieldContext_Meeting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Meeting_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Meeting_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Meeting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateNonconformityPayload_nonconformity(ctx context.Context, field graphql.CollectedField, obj *types.UpdateNonconformityPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateNonconformityPayload_nonconformity, - func(ctx context.Context) (any, error) { - return obj.Nonconformity, nil - }, - nil, - ec.marshalNNonconformity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformity, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateNonconformityPayload_nonconformity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateNonconformityPayload", - 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_Nonconformity_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Nonconformity_snapshotId(ctx, field) - case "organization": - return ec.fieldContext_Nonconformity_organization(ctx, field) - case "referenceId": - return ec.fieldContext_Nonconformity_referenceId(ctx, field) - case "description": - return ec.fieldContext_Nonconformity_description(ctx, field) - case "audit": - return ec.fieldContext_Nonconformity_audit(ctx, field) - case "dateIdentified": - return ec.fieldContext_Nonconformity_dateIdentified(ctx, field) - case "rootCause": - return ec.fieldContext_Nonconformity_rootCause(ctx, field) - case "correctiveAction": - return ec.fieldContext_Nonconformity_correctiveAction(ctx, field) - case "owner": - return ec.fieldContext_Nonconformity_owner(ctx, field) - case "dueDate": - return ec.fieldContext_Nonconformity_dueDate(ctx, field) - case "status": - return ec.fieldContext_Nonconformity_status(ctx, field) - case "effectivenessCheck": - return ec.fieldContext_Nonconformity_effectivenessCheck(ctx, field) - case "createdAt": - return ec.fieldContext_Nonconformity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Nonconformity_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Nonconformity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Nonconformity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateObligationPayload_obligation(ctx context.Context, field graphql.CollectedField, obj *types.UpdateObligationPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateObligationPayload_obligation, - func(ctx context.Context) (any, error) { - return obj.Obligation, nil - }, - nil, - ec.marshalNObligation2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligation, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateObligationPayload_obligation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateObligationPayload", - 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_Obligation_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Obligation_snapshotId(ctx, field) - case "sourceId": - return ec.fieldContext_Obligation_sourceId(ctx, field) - case "organization": - return ec.fieldContext_Obligation_organization(ctx, field) - case "area": - return ec.fieldContext_Obligation_area(ctx, field) - case "source": - return ec.fieldContext_Obligation_source(ctx, field) - case "requirement": - return ec.fieldContext_Obligation_requirement(ctx, field) - case "actionsToBeImplemented": - return ec.fieldContext_Obligation_actionsToBeImplemented(ctx, field) - case "regulator": - return ec.fieldContext_Obligation_regulator(ctx, field) - case "owner": - return ec.fieldContext_Obligation_owner(ctx, field) - case "lastReviewDate": - return ec.fieldContext_Obligation_lastReviewDate(ctx, field) - case "dueDate": - return ec.fieldContext_Obligation_dueDate(ctx, field) - case "status": - return ec.fieldContext_Obligation_status(ctx, field) - case "type": - return ec.fieldContext_Obligation_type(ctx, field) - case "createdAt": - return ec.fieldContext_Obligation_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Obligation_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Obligation_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Obligation", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateOrganizationContextPayload_context(ctx context.Context, field graphql.CollectedField, obj *types.UpdateOrganizationContextPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateOrganizationContextPayload_context, - func(ctx context.Context) (any, error) { - return obj.Context, nil - }, - nil, - ec.marshalNOrganizationContext2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationContext, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateOrganizationContextPayload_context(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateOrganizationContextPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizationId": - return ec.fieldContext_OrganizationContext_organizationId(ctx, field) - case "summary": - return ec.fieldContext_OrganizationContext_summary(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationContext", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateProcessingActivityPayload_processingActivity(ctx context.Context, field graphql.CollectedField, obj *types.UpdateProcessingActivityPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateProcessingActivityPayload_processingActivity, - func(ctx context.Context) (any, error) { - return obj.ProcessingActivity, nil - }, - nil, - ec.marshalNProcessingActivity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivity, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateProcessingActivityPayload_processingActivity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateProcessingActivityPayload", - 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_ProcessingActivity_id(ctx, field) - case "snapshotId": - return ec.fieldContext_ProcessingActivity_snapshotId(ctx, field) - case "sourceId": - return ec.fieldContext_ProcessingActivity_sourceId(ctx, field) - case "organization": - return ec.fieldContext_ProcessingActivity_organization(ctx, field) - case "name": - return ec.fieldContext_ProcessingActivity_name(ctx, field) - case "purpose": - return ec.fieldContext_ProcessingActivity_purpose(ctx, field) - case "dataSubjectCategory": - return ec.fieldContext_ProcessingActivity_dataSubjectCategory(ctx, field) - case "personalDataCategory": - return ec.fieldContext_ProcessingActivity_personalDataCategory(ctx, field) - case "specialOrCriminalData": - return ec.fieldContext_ProcessingActivity_specialOrCriminalData(ctx, field) - case "consentEvidenceLink": - return ec.fieldContext_ProcessingActivity_consentEvidenceLink(ctx, field) - case "lawfulBasis": - return ec.fieldContext_ProcessingActivity_lawfulBasis(ctx, field) - case "recipients": - return ec.fieldContext_ProcessingActivity_recipients(ctx, field) - case "location": - return ec.fieldContext_ProcessingActivity_location(ctx, field) - case "internationalTransfers": - return ec.fieldContext_ProcessingActivity_internationalTransfers(ctx, field) - case "transferSafeguards": - return ec.fieldContext_ProcessingActivity_transferSafeguards(ctx, field) - case "retentionPeriod": - return ec.fieldContext_ProcessingActivity_retentionPeriod(ctx, field) - case "securityMeasures": - return ec.fieldContext_ProcessingActivity_securityMeasures(ctx, field) - case "dataProtectionImpactAssessmentNeeded": - return ec.fieldContext_ProcessingActivity_dataProtectionImpactAssessmentNeeded(ctx, field) - case "transferImpactAssessmentNeeded": - return ec.fieldContext_ProcessingActivity_transferImpactAssessmentNeeded(ctx, field) - case "lastReviewDate": - return ec.fieldContext_ProcessingActivity_lastReviewDate(ctx, field) - case "nextReviewDate": - return ec.fieldContext_ProcessingActivity_nextReviewDate(ctx, field) - case "role": - return ec.fieldContext_ProcessingActivity_role(ctx, field) - case "dataProtectionOfficer": - return ec.fieldContext_ProcessingActivity_dataProtectionOfficer(ctx, field) - case "vendors": - return ec.fieldContext_ProcessingActivity_vendors(ctx, field) - case "dataProtectionImpactAssessment": - return ec.fieldContext_ProcessingActivity_dataProtectionImpactAssessment(ctx, field) - case "transferImpactAssessment": - return ec.fieldContext_ProcessingActivity_transferImpactAssessment(ctx, field) - case "createdAt": - return ec.fieldContext_ProcessingActivity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProcessingActivity_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_ProcessingActivity_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcessingActivity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateRightsRequestPayload_rightsRequest(ctx context.Context, field graphql.CollectedField, obj *types.UpdateRightsRequestPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateRightsRequestPayload_rightsRequest, - func(ctx context.Context) (any, error) { - return obj.RightsRequest, nil - }, - nil, - ec.marshalNRightsRequest2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequest, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateRightsRequestPayload_rightsRequest(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateRightsRequestPayload", - 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_RightsRequest_id(ctx, field) - case "organization": - return ec.fieldContext_RightsRequest_organization(ctx, field) - case "requestType": - return ec.fieldContext_RightsRequest_requestType(ctx, field) - case "requestState": - return ec.fieldContext_RightsRequest_requestState(ctx, field) - case "dataSubject": - return ec.fieldContext_RightsRequest_dataSubject(ctx, field) - case "contact": - return ec.fieldContext_RightsRequest_contact(ctx, field) - case "details": - return ec.fieldContext_RightsRequest_details(ctx, field) - case "deadline": - return ec.fieldContext_RightsRequest_deadline(ctx, field) - case "actionTaken": - return ec.fieldContext_RightsRequest_actionTaken(ctx, field) - case "createdAt": - return ec.fieldContext_RightsRequest_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_RightsRequest_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_RightsRequest_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RightsRequest", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateRiskPayload_risk(ctx context.Context, field graphql.CollectedField, obj *types.UpdateRiskPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateRiskPayload_risk, - func(ctx context.Context) (any, error) { - return obj.Risk, nil - }, - nil, - ec.marshalNRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRisk, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateRiskPayload_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateRiskPayload", - 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_Risk_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Risk_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "category": - return ec.fieldContext_Risk_category(ctx, field) - case "treatment": - return ec.fieldContext_Risk_treatment(ctx, field) - case "inherentLikelihood": - return ec.fieldContext_Risk_inherentLikelihood(ctx, field) - case "inherentImpact": - return ec.fieldContext_Risk_inherentImpact(ctx, field) - case "inherentRiskScore": - return ec.fieldContext_Risk_inherentRiskScore(ctx, field) - case "residualLikelihood": - return ec.fieldContext_Risk_residualLikelihood(ctx, field) - case "residualImpact": - return ec.fieldContext_Risk_residualImpact(ctx, field) - case "residualRiskScore": - return ec.fieldContext_Risk_residualRiskScore(ctx, field) - case "note": - return ec.fieldContext_Risk_note(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "organization": - return ec.fieldContext_Risk_organization(ctx, field) - case "measures": - return ec.fieldContext_Risk_measures(ctx, field) - case "documents": - return ec.fieldContext_Risk_documents(ctx, field) - case "controls": - return ec.fieldContext_Risk_controls(ctx, field) - case "obligations": - return ec.fieldContext_Risk_obligations(ctx, field) - case "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Risk_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateStateOfApplicabilityPayload_stateOfApplicability(ctx context.Context, field graphql.CollectedField, obj *types.UpdateStateOfApplicabilityPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateStateOfApplicabilityPayload_stateOfApplicability, - func(ctx context.Context) (any, error) { - return obj.StateOfApplicability, nil - }, - nil, - ec.marshalNStateOfApplicability2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicability, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateStateOfApplicabilityPayload_stateOfApplicability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateStateOfApplicabilityPayload", - 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_StateOfApplicability_id(ctx, field) - case "name": - return ec.fieldContext_StateOfApplicability_name(ctx, field) - case "sourceId": - return ec.fieldContext_StateOfApplicability_sourceId(ctx, field) - case "snapshotId": - return ec.fieldContext_StateOfApplicability_snapshotId(ctx, field) - case "organization": - return ec.fieldContext_StateOfApplicability_organization(ctx, field) - case "owner": - return ec.fieldContext_StateOfApplicability_owner(ctx, field) - case "createdAt": - return ec.fieldContext_StateOfApplicability_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_StateOfApplicability_updatedAt(ctx, field) - case "applicabilityStatements": - return ec.fieldContext_StateOfApplicability_applicabilityStatements(ctx, field) - case "permission": - return ec.fieldContext_StateOfApplicability_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type StateOfApplicability", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateTaskPayload_task(ctx context.Context, field graphql.CollectedField, obj *types.UpdateTaskPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateTaskPayload_task, - func(ctx context.Context) (any, error) { - return obj.Task, nil - }, - nil, - ec.marshalNTask2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateTaskPayload_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateTaskPayload", - 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_Task_id(ctx, field) - case "name": - return ec.fieldContext_Task_name(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "state": - return ec.fieldContext_Task_state(ctx, field) - case "timeEstimate": - return ec.fieldContext_Task_timeEstimate(ctx, field) - case "deadline": - return ec.fieldContext_Task_deadline(ctx, field) - case "assignedTo": - return ec.fieldContext_Task_assignedTo(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "measure": - return ec.fieldContext_Task_measure(ctx, field) - case "evidences": - return ec.fieldContext_Task_evidences(ctx, field) - case "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Task_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateTransferImpactAssessmentPayload_transferImpactAssessment(ctx context.Context, field graphql.CollectedField, obj *types.UpdateTransferImpactAssessmentPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateTransferImpactAssessmentPayload_transferImpactAssessment, - func(ctx context.Context) (any, error) { - return obj.TransferImpactAssessment, nil - }, - nil, - ec.marshalNTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessment, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateTransferImpactAssessmentPayload_transferImpactAssessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateTransferImpactAssessmentPayload", - 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_TransferImpactAssessment_id(ctx, field) - case "processingActivity": - return ec.fieldContext_TransferImpactAssessment_processingActivity(ctx, field) - case "organization": - return ec.fieldContext_TransferImpactAssessment_organization(ctx, field) - case "dataSubjects": - return ec.fieldContext_TransferImpactAssessment_dataSubjects(ctx, field) - case "legalMechanism": - return ec.fieldContext_TransferImpactAssessment_legalMechanism(ctx, field) - case "transfer": - return ec.fieldContext_TransferImpactAssessment_transfer(ctx, field) - case "localLawRisk": - return ec.fieldContext_TransferImpactAssessment_localLawRisk(ctx, field) - case "supplementaryMeasures": - return ec.fieldContext_TransferImpactAssessment_supplementaryMeasures(ctx, field) - case "createdAt": - return ec.fieldContext_TransferImpactAssessment_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TransferImpactAssessment_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_TransferImpactAssessment_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TransferImpactAssessment", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateTrustCenterAccessPayload_trustCenterAccess(ctx context.Context, field graphql.CollectedField, obj *types.UpdateTrustCenterAccessPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateTrustCenterAccessPayload_trustCenterAccess, - func(ctx context.Context) (any, error) { - return obj.TrustCenterAccess, nil - }, - nil, - ec.marshalNTrustCenterAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccess, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateTrustCenterAccessPayload_trustCenterAccess(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateTrustCenterAccessPayload", - 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_TrustCenterAccess_id(ctx, field) - case "ndaSignature": - return ec.fieldContext_TrustCenterAccess_ndaSignature(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenterAccess_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenterAccess_updatedAt(ctx, field) - case "pendingRequestCount": - return ec.fieldContext_TrustCenterAccess_pendingRequestCount(ctx, field) - case "activeCount": - return ec.fieldContext_TrustCenterAccess_activeCount(ctx, field) - case "organizationId": - return ec.fieldContext_TrustCenterAccess_organizationId(ctx, field) - case "identityID": - return ec.fieldContext_TrustCenterAccess_identityID(ctx, field) - case "profile": - return ec.fieldContext_TrustCenterAccess_profile(ctx, field) - case "availableDocumentAccesses": - return ec.fieldContext_TrustCenterAccess_availableDocumentAccesses(ctx, field) - case "permission": - return ec.fieldContext_TrustCenterAccess_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterAccess", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateTrustCenterBrandPayload_trustCenter(ctx context.Context, field graphql.CollectedField, obj *types.UpdateTrustCenterBrandPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateTrustCenterBrandPayload_trustCenter, - func(ctx context.Context) (any, error) { - return obj.TrustCenter, nil - }, - nil, - ec.marshalNTrustCenter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateTrustCenterBrandPayload_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateTrustCenterBrandPayload", - 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_TrustCenter_id(ctx, field) - case "active": - return ec.fieldContext_TrustCenter_active(ctx, field) - case "logoFileUrl": - return ec.fieldContext_TrustCenter_logoFileUrl(ctx, field) - case "darkLogoFileUrl": - return ec.fieldContext_TrustCenter_darkLogoFileUrl(ctx, field) - case "ndaFileName": - return ec.fieldContext_TrustCenter_ndaFileName(ctx, field) - case "ndaFileUrl": - return ec.fieldContext_TrustCenter_ndaFileUrl(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenter_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenter_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_TrustCenter_organization(ctx, field) - case "accesses": - return ec.fieldContext_TrustCenter_accesses(ctx, field) - case "references": - return ec.fieldContext_TrustCenter_references(ctx, field) - case "complianceFrameworks": - return ec.fieldContext_TrustCenter_complianceFrameworks(ctx, field) - case "externalUrls": - return ec.fieldContext_TrustCenter_externalUrls(ctx, field) - case "mailingList": - return ec.fieldContext_TrustCenter_mailingList(ctx, field) - case "permission": - return ec.fieldContext_TrustCenter_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenter", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateTrustCenterFilePayload_trustCenterFile(ctx context.Context, field graphql.CollectedField, obj *types.UpdateTrustCenterFilePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateTrustCenterFilePayload_trustCenterFile, - func(ctx context.Context) (any, error) { - return obj.TrustCenterFile, nil - }, - nil, - ec.marshalNTrustCenterFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateTrustCenterFilePayload_trustCenterFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateTrustCenterFilePayload", - 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_TrustCenterFile_id(ctx, field) - case "name": - return ec.fieldContext_TrustCenterFile_name(ctx, field) - case "category": - return ec.fieldContext_TrustCenterFile_category(ctx, field) - case "fileUrl": - return ec.fieldContext_TrustCenterFile_fileUrl(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_TrustCenterFile_trustCenterVisibility(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenterFile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenterFile_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_TrustCenterFile_organization(ctx, field) - case "permission": - return ec.fieldContext_TrustCenterFile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateTrustCenterPayload_trustCenter(ctx context.Context, field graphql.CollectedField, obj *types.UpdateTrustCenterPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateTrustCenterPayload_trustCenter, - func(ctx context.Context) (any, error) { - return obj.TrustCenter, nil - }, - nil, - ec.marshalNTrustCenter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateTrustCenterPayload_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateTrustCenterPayload", - 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_TrustCenter_id(ctx, field) - case "active": - return ec.fieldContext_TrustCenter_active(ctx, field) - case "logoFileUrl": - return ec.fieldContext_TrustCenter_logoFileUrl(ctx, field) - case "darkLogoFileUrl": - return ec.fieldContext_TrustCenter_darkLogoFileUrl(ctx, field) - case "ndaFileName": - return ec.fieldContext_TrustCenter_ndaFileName(ctx, field) - case "ndaFileUrl": - return ec.fieldContext_TrustCenter_ndaFileUrl(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenter_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenter_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_TrustCenter_organization(ctx, field) - case "accesses": - return ec.fieldContext_TrustCenter_accesses(ctx, field) - case "references": - return ec.fieldContext_TrustCenter_references(ctx, field) - case "complianceFrameworks": - return ec.fieldContext_TrustCenter_complianceFrameworks(ctx, field) - case "externalUrls": - return ec.fieldContext_TrustCenter_externalUrls(ctx, field) - case "mailingList": - return ec.fieldContext_TrustCenter_mailingList(ctx, field) - case "permission": - return ec.fieldContext_TrustCenter_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenter", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateTrustCenterReferencePayload_trustCenterReference(ctx context.Context, field graphql.CollectedField, obj *types.UpdateTrustCenterReferencePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateTrustCenterReferencePayload_trustCenterReference, - func(ctx context.Context) (any, error) { - return obj.TrustCenterReference, nil - }, - nil, - ec.marshalNTrustCenterReference2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReference, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateTrustCenterReferencePayload_trustCenterReference(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateTrustCenterReferencePayload", - 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_TrustCenterReference_id(ctx, field) - case "name": - return ec.fieldContext_TrustCenterReference_name(ctx, field) - case "description": - return ec.fieldContext_TrustCenterReference_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_TrustCenterReference_websiteUrl(ctx, field) - case "logoUrl": - return ec.fieldContext_TrustCenterReference_logoUrl(ctx, field) - case "rank": - return ec.fieldContext_TrustCenterReference_rank(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenterReference_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenterReference_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_TrustCenterReference_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterReference", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(ctx context.Context, field graphql.CollectedField, obj *types.UpdateVendorBusinessAssociateAgreementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement, - func(ctx context.Context) (any, error) { - return obj.VendorBusinessAssociateAgreement, nil - }, - nil, - ec.marshalNVendorBusinessAssociateAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorBusinessAssociateAgreement, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateVendorBusinessAssociateAgreementPayload", - 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_VendorBusinessAssociateAgreement_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorBusinessAssociateAgreement_vendor(ctx, field) - case "validFrom": - return ec.fieldContext_VendorBusinessAssociateAgreement_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_VendorBusinessAssociateAgreement_validUntil(ctx, field) - case "fileName": - return ec.fieldContext_VendorBusinessAssociateAgreement_fileName(ctx, field) - case "fileUrl": - return ec.fieldContext_VendorBusinessAssociateAgreement_fileUrl(ctx, field) - case "fileSize": - return ec.fieldContext_VendorBusinessAssociateAgreement_fileSize(ctx, field) - case "createdAt": - return ec.fieldContext_VendorBusinessAssociateAgreement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorBusinessAssociateAgreement_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorBusinessAssociateAgreement_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorBusinessAssociateAgreement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateVendorContactPayload_vendorContact(ctx context.Context, field graphql.CollectedField, obj *types.UpdateVendorContactPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateVendorContactPayload_vendorContact, - func(ctx context.Context) (any, error) { - return obj.VendorContact, nil - }, - nil, - ec.marshalNVendorContact2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContact, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateVendorContactPayload_vendorContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateVendorContactPayload", - 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_VendorContact_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorContact_vendor(ctx, field) - case "fullName": - return ec.fieldContext_VendorContact_fullName(ctx, field) - case "email": - return ec.fieldContext_VendorContact_email(ctx, field) - case "phone": - return ec.fieldContext_VendorContact_phone(ctx, field) - case "role": - return ec.fieldContext_VendorContact_role(ctx, field) - case "createdAt": - return ec.fieldContext_VendorContact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorContact_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorContact_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorContact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(ctx context.Context, field graphql.CollectedField, obj *types.UpdateVendorDataPrivacyAgreementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement, - func(ctx context.Context) (any, error) { - return obj.VendorDataPrivacyAgreement, nil - }, - nil, - ec.marshalNVendorDataPrivacyAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorDataPrivacyAgreement, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateVendorDataPrivacyAgreementPayload", - 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_VendorDataPrivacyAgreement_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorDataPrivacyAgreement_vendor(ctx, field) - case "validFrom": - return ec.fieldContext_VendorDataPrivacyAgreement_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_VendorDataPrivacyAgreement_validUntil(ctx, field) - case "fileName": - return ec.fieldContext_VendorDataPrivacyAgreement_fileName(ctx, field) - case "fileUrl": - return ec.fieldContext_VendorDataPrivacyAgreement_fileUrl(ctx, field) - case "fileSize": - return ec.fieldContext_VendorDataPrivacyAgreement_fileSize(ctx, field) - case "createdAt": - return ec.fieldContext_VendorDataPrivacyAgreement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorDataPrivacyAgreement_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorDataPrivacyAgreement_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorDataPrivacyAgreement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateVendorPayload_vendor(ctx context.Context, field graphql.CollectedField, obj *types.UpdateVendorPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateVendorPayload_vendor, - func(ctx context.Context) (any, error) { - return obj.Vendor, nil - }, - nil, - ec.marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateVendorPayload_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateVendorPayload", - 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_Vendor_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Vendor_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Vendor_name(ctx, field) - case "category": - return ec.fieldContext_Vendor_category(ctx, field) - case "description": - return ec.fieldContext_Vendor_description(ctx, field) - case "organization": - return ec.fieldContext_Vendor_organization(ctx, field) - case "complianceReports": - return ec.fieldContext_Vendor_complianceReports(ctx, field) - case "businessAssociateAgreement": - return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field) - case "dataPrivacyAgreement": - return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field) - case "contacts": - return ec.fieldContext_Vendor_contacts(ctx, field) - case "services": - return ec.fieldContext_Vendor_services(ctx, field) - case "riskAssessments": - return ec.fieldContext_Vendor_riskAssessments(ctx, field) - case "businessOwner": - return ec.fieldContext_Vendor_businessOwner(ctx, field) - case "securityOwner": - return ec.fieldContext_Vendor_securityOwner(ctx, field) - case "statusPageUrl": - return ec.fieldContext_Vendor_statusPageUrl(ctx, field) - case "termsOfServiceUrl": - return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field) - case "privacyPolicyUrl": - return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field) - case "serviceLevelAgreementUrl": - return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field) - case "dataProcessingAgreementUrl": - return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field) - case "businessAssociateAgreementUrl": - return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field) - case "subprocessorsListUrl": - return ec.fieldContext_Vendor_subprocessorsListUrl(ctx, field) - case "certifications": - return ec.fieldContext_Vendor_certifications(ctx, field) - case "countries": - return ec.fieldContext_Vendor_countries(ctx, field) - case "securityPageUrl": - return ec.fieldContext_Vendor_securityPageUrl(ctx, field) - case "trustPageUrl": - return ec.fieldContext_Vendor_trustPageUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Vendor_headquarterAddress(ctx, field) - case "legalName": - return ec.fieldContext_Vendor_legalName(ctx, field) - case "websiteUrl": - return ec.fieldContext_Vendor_websiteUrl(ctx, field) - case "showOnTrustCenter": - return ec.fieldContext_Vendor_showOnTrustCenter(ctx, field) - case "createdAt": - return ec.fieldContext_Vendor_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Vendor_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Vendor_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateVendorServicePayload_vendorService(ctx context.Context, field graphql.CollectedField, obj *types.UpdateVendorServicePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateVendorServicePayload_vendorService, - func(ctx context.Context) (any, error) { - return obj.VendorService, nil - }, - nil, - ec.marshalNVendorService2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorService, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateVendorServicePayload_vendorService(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateVendorServicePayload", - 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_VendorService_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorService_vendor(ctx, field) - case "name": - return ec.fieldContext_VendorService_name(ctx, field) - case "description": - return ec.fieldContext_VendorService_description(ctx, field) - case "createdAt": - return ec.fieldContext_VendorService_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorService_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorService_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorService", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateWebhookSubscriptionPayload_webhookSubscription(ctx context.Context, field graphql.CollectedField, obj *types.UpdateWebhookSubscriptionPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateWebhookSubscriptionPayload_webhookSubscription, - func(ctx context.Context) (any, error) { - return obj.WebhookSubscription, nil - }, - nil, - ec.marshalNWebhookSubscription2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscription, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateWebhookSubscriptionPayload_webhookSubscription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateWebhookSubscriptionPayload", - 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_WebhookSubscription_id(ctx, field) - case "organization": - return ec.fieldContext_WebhookSubscription_organization(ctx, field) - case "endpointUrl": - return ec.fieldContext_WebhookSubscription_endpointUrl(ctx, field) - case "signingSecret": - return ec.fieldContext_WebhookSubscription_signingSecret(ctx, field) - case "selectedEvents": - return ec.fieldContext_WebhookSubscription_selectedEvents(ctx, field) - case "createdAt": - return ec.fieldContext_WebhookSubscription_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_WebhookSubscription_updatedAt(ctx, field) - case "events": - return ec.fieldContext_WebhookSubscription_events(ctx, field) - case "permission": - return ec.fieldContext_WebhookSubscription_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type WebhookSubscription", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UploadAuditReportPayload_audit(ctx context.Context, field graphql.CollectedField, obj *types.UploadAuditReportPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UploadAuditReportPayload_audit, - func(ctx context.Context) (any, error) { - return obj.Audit, nil - }, - nil, - ec.marshalNAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UploadAuditReportPayload_audit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UploadAuditReportPayload", - 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_Audit_id(ctx, field) - case "name": - return ec.fieldContext_Audit_name(ctx, field) - case "organization": - return ec.fieldContext_Audit_organization(ctx, field) - case "framework": - return ec.fieldContext_Audit_framework(ctx, field) - case "validFrom": - return ec.fieldContext_Audit_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_Audit_validUntil(ctx, field) - case "report": - return ec.fieldContext_Audit_report(ctx, field) - case "reportUrl": - return ec.fieldContext_Audit_reportUrl(ctx, field) - case "state": - return ec.fieldContext_Audit_state(ctx, field) - case "controls": - return ec.fieldContext_Audit_controls(ctx, field) - case "trustCenterVisibility": - return ec.fieldContext_Audit_trustCenterVisibility(ctx, field) - case "createdAt": - return ec.fieldContext_Audit_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Audit_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Audit_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UploadMeasureEvidencePayload_evidenceEdge(ctx context.Context, field graphql.CollectedField, obj *types.UploadMeasureEvidencePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UploadMeasureEvidencePayload_evidenceEdge, - func(ctx context.Context) (any, error) { - return obj.EvidenceEdge, nil - }, - nil, - ec.marshalNEvidenceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UploadMeasureEvidencePayload_evidenceEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UploadMeasureEvidencePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_EvidenceEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_EvidenceEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EvidenceEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UploadTrustCenterNDAPayload_trustCenter(ctx context.Context, field graphql.CollectedField, obj *types.UploadTrustCenterNDAPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UploadTrustCenterNDAPayload_trustCenter, - func(ctx context.Context) (any, error) { - return obj.TrustCenter, nil - }, - nil, - ec.marshalNTrustCenter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UploadTrustCenterNDAPayload_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UploadTrustCenterNDAPayload", - 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_TrustCenter_id(ctx, field) - case "active": - return ec.fieldContext_TrustCenter_active(ctx, field) - case "logoFileUrl": - return ec.fieldContext_TrustCenter_logoFileUrl(ctx, field) - case "darkLogoFileUrl": - return ec.fieldContext_TrustCenter_darkLogoFileUrl(ctx, field) - case "ndaFileName": - return ec.fieldContext_TrustCenter_ndaFileName(ctx, field) - case "ndaFileUrl": - return ec.fieldContext_TrustCenter_ndaFileUrl(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenter_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenter_updatedAt(ctx, field) - case "organization": - return ec.fieldContext_TrustCenter_organization(ctx, field) - case "accesses": - return ec.fieldContext_TrustCenter_accesses(ctx, field) - case "references": - return ec.fieldContext_TrustCenter_references(ctx, field) - case "complianceFrameworks": - return ec.fieldContext_TrustCenter_complianceFrameworks(ctx, field) - case "externalUrls": - return ec.fieldContext_TrustCenter_externalUrls(ctx, field) - case "mailingList": - return ec.fieldContext_TrustCenter_mailingList(ctx, field) - case "permission": - return ec.fieldContext_TrustCenter_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenter", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UploadVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(ctx context.Context, field graphql.CollectedField, obj *types.UploadVendorBusinessAssociateAgreementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UploadVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement, - func(ctx context.Context) (any, error) { - return obj.VendorBusinessAssociateAgreement, nil - }, - nil, - ec.marshalNVendorBusinessAssociateAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorBusinessAssociateAgreement, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UploadVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UploadVendorBusinessAssociateAgreementPayload", - 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_VendorBusinessAssociateAgreement_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorBusinessAssociateAgreement_vendor(ctx, field) - case "validFrom": - return ec.fieldContext_VendorBusinessAssociateAgreement_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_VendorBusinessAssociateAgreement_validUntil(ctx, field) - case "fileName": - return ec.fieldContext_VendorBusinessAssociateAgreement_fileName(ctx, field) - case "fileUrl": - return ec.fieldContext_VendorBusinessAssociateAgreement_fileUrl(ctx, field) - case "fileSize": - return ec.fieldContext_VendorBusinessAssociateAgreement_fileSize(ctx, field) - case "createdAt": - return ec.fieldContext_VendorBusinessAssociateAgreement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorBusinessAssociateAgreement_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorBusinessAssociateAgreement_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorBusinessAssociateAgreement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UploadVendorComplianceReportPayload_vendorComplianceReportEdge(ctx context.Context, field graphql.CollectedField, obj *types.UploadVendorComplianceReportPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UploadVendorComplianceReportPayload_vendorComplianceReportEdge, - func(ctx context.Context) (any, error) { - return obj.VendorComplianceReportEdge, nil - }, - nil, - ec.marshalNVendorComplianceReportEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportEdge, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UploadVendorComplianceReportPayload_vendorComplianceReportEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UploadVendorComplianceReportPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorComplianceReportEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorComplianceReportEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorComplianceReportEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UploadVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(ctx context.Context, field graphql.CollectedField, obj *types.UploadVendorDataPrivacyAgreementPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UploadVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement, - func(ctx context.Context) (any, error) { - return obj.VendorDataPrivacyAgreement, nil - }, - nil, - ec.marshalNVendorDataPrivacyAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorDataPrivacyAgreement, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UploadVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UploadVendorDataPrivacyAgreementPayload", - 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_VendorDataPrivacyAgreement_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorDataPrivacyAgreement_vendor(ctx, field) - case "validFrom": - return ec.fieldContext_VendorDataPrivacyAgreement_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_VendorDataPrivacyAgreement_validUntil(ctx, field) - case "fileName": - return ec.fieldContext_VendorDataPrivacyAgreement_fileName(ctx, field) - case "fileUrl": - return ec.fieldContext_VendorDataPrivacyAgreement_fileUrl(ctx, field) - case "fileSize": - return ec.fieldContext_VendorDataPrivacyAgreement_fileSize(ctx, field) - case "createdAt": - return ec.fieldContext_VendorDataPrivacyAgreement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorDataPrivacyAgreement_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorDataPrivacyAgreement_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorDataPrivacyAgreement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_id(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_snapshotId(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_snapshotId, - func(ctx context.Context) (any, error) { - return obj.SnapshotID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_snapshotId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_name(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_category(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_category, - func(ctx context.Context) (any, error) { - return obj.Category, nil - }, - nil, - ec.marshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type VendorCategory does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_description(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_organization(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Vendor().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_complianceReports(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_complianceReports, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Vendor().ComplianceReports(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorComplianceReportOrderBy)) - }, - nil, - ec.marshalNVendorComplianceReportConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_complianceReports(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_VendorComplianceReportConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_VendorComplianceReportConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorComplianceReportConnection", 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_Vendor_complianceReports_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Vendor_businessAssociateAgreement(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_businessAssociateAgreement, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Vendor().BusinessAssociateAgreement(ctx, obj) - }, - nil, - ec.marshalOVendorBusinessAssociateAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorBusinessAssociateAgreement, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_businessAssociateAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - 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_VendorBusinessAssociateAgreement_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorBusinessAssociateAgreement_vendor(ctx, field) - case "validFrom": - return ec.fieldContext_VendorBusinessAssociateAgreement_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_VendorBusinessAssociateAgreement_validUntil(ctx, field) - case "fileName": - return ec.fieldContext_VendorBusinessAssociateAgreement_fileName(ctx, field) - case "fileUrl": - return ec.fieldContext_VendorBusinessAssociateAgreement_fileUrl(ctx, field) - case "fileSize": - return ec.fieldContext_VendorBusinessAssociateAgreement_fileSize(ctx, field) - case "createdAt": - return ec.fieldContext_VendorBusinessAssociateAgreement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorBusinessAssociateAgreement_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorBusinessAssociateAgreement_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorBusinessAssociateAgreement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_dataPrivacyAgreement(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_dataPrivacyAgreement, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Vendor().DataPrivacyAgreement(ctx, obj) - }, - nil, - ec.marshalOVendorDataPrivacyAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorDataPrivacyAgreement, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_dataPrivacyAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - 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_VendorDataPrivacyAgreement_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorDataPrivacyAgreement_vendor(ctx, field) - case "validFrom": - return ec.fieldContext_VendorDataPrivacyAgreement_validFrom(ctx, field) - case "validUntil": - return ec.fieldContext_VendorDataPrivacyAgreement_validUntil(ctx, field) - case "fileName": - return ec.fieldContext_VendorDataPrivacyAgreement_fileName(ctx, field) - case "fileUrl": - return ec.fieldContext_VendorDataPrivacyAgreement_fileUrl(ctx, field) - case "fileSize": - return ec.fieldContext_VendorDataPrivacyAgreement_fileSize(ctx, field) - case "createdAt": - return ec.fieldContext_VendorDataPrivacyAgreement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorDataPrivacyAgreement_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorDataPrivacyAgreement_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorDataPrivacyAgreement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_contacts(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_contacts, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Vendor().Contacts(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorContactOrderBy)) - }, - nil, - ec.marshalNVendorContactConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_contacts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_VendorContactConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_VendorContactConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorContactConnection", 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_Vendor_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Vendor_services(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_services, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Vendor().Services(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorServiceOrderBy)) - }, - nil, - ec.marshalNVendorServiceConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_services(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_VendorServiceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_VendorServiceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorServiceConnection", 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_Vendor_services_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Vendor_riskAssessments(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_riskAssessments, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Vendor().RiskAssessments(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.VendorRiskAssessmentOrder)) - }, - nil, - ec.marshalNVendorRiskAssessmentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_riskAssessments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_VendorRiskAssessmentConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_VendorRiskAssessmentConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorRiskAssessmentConnection", 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_Vendor_riskAssessments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Vendor_businessOwner(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_businessOwner, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Vendor().BusinessOwner(ctx, obj) - }, - nil, - ec.marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_businessOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_securityOwner(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_securityOwner, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Vendor().SecurityOwner(ctx, obj) - }, - nil, - ec.marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_securityOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - 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_Profile_id(ctx, field) - case "fullName": - return ec.fieldContext_Profile_fullName(ctx, field) - case "emailAddress": - return ec.fieldContext_Profile_emailAddress(ctx, field) - case "state": - return ec.fieldContext_Profile_state(ctx, field) - case "additionalEmailAddresses": - return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field) - case "kind": - return ec.fieldContext_Profile_kind(ctx, field) - case "position": - return ec.fieldContext_Profile_position(ctx, field) - case "contractStartDate": - return ec.fieldContext_Profile_contractStartDate(ctx, field) - case "contractEndDate": - return ec.fieldContext_Profile_contractEndDate(ctx, field) - case "createdAt": - return ec.fieldContext_Profile_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Profile_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Profile_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_statusPageUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_statusPageUrl, - func(ctx context.Context) (any, error) { - return obj.StatusPageURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_statusPageUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_termsOfServiceUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_termsOfServiceUrl, - func(ctx context.Context) (any, error) { - return obj.TermsOfServiceURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_termsOfServiceUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_privacyPolicyUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_privacyPolicyUrl, - func(ctx context.Context) (any, error) { - return obj.PrivacyPolicyURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_privacyPolicyUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_serviceLevelAgreementUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_serviceLevelAgreementUrl, - func(ctx context.Context) (any, error) { - return obj.ServiceLevelAgreementURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_serviceLevelAgreementUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_dataProcessingAgreementUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_dataProcessingAgreementUrl, - func(ctx context.Context) (any, error) { - return obj.DataProcessingAgreementURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_dataProcessingAgreementUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_businessAssociateAgreementUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_businessAssociateAgreementUrl, - func(ctx context.Context) (any, error) { - return obj.BusinessAssociateAgreementURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_businessAssociateAgreementUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_subprocessorsListUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_subprocessorsListUrl, - func(ctx context.Context) (any, error) { - return obj.SubprocessorsListURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_subprocessorsListUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_certifications(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_certifications, - func(ctx context.Context) (any, error) { - return obj.Certifications, nil - }, - nil, - ec.marshalNString2ᚕstringᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_certifications(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_countries(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_countries, - func(ctx context.Context) (any, error) { - return obj.Countries, nil - }, - nil, - ec.marshalNCountryCode2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCodeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_countries(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CountryCode does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_securityPageUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_securityPageUrl, - func(ctx context.Context) (any, error) { - return obj.SecurityPageURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_securityPageUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_trustPageUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_trustPageUrl, - func(ctx context.Context) (any, error) { - return obj.TrustPageURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_trustPageUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_headquarterAddress(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_headquarterAddress, - func(ctx context.Context) (any, error) { - return obj.HeadquarterAddress, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_headquarterAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_legalName(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_legalName, - func(ctx context.Context) (any, error) { - return obj.LegalName, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_legalName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_websiteUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_websiteUrl, - func(ctx context.Context) (any, error) { - return obj.WebsiteURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_websiteUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_showOnTrustCenter(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_showOnTrustCenter, - func(ctx context.Context) (any, error) { - return obj.ShowOnTrustCenter, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_showOnTrustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - 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) _Vendor_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_permission(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Vendor().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - 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_Vendor_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _VendorBusinessAssociateAgreement_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorBusinessAssociateAgreement_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorBusinessAssociateAgreement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorBusinessAssociateAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorBusinessAssociateAgreement_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorBusinessAssociateAgreement_vendor, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorBusinessAssociateAgreement().Vendor(ctx, obj) - }, - nil, - ec.marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorBusinessAssociateAgreement_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorBusinessAssociateAgreement", - 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_Vendor_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Vendor_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Vendor_name(ctx, field) - case "category": - return ec.fieldContext_Vendor_category(ctx, field) - case "description": - return ec.fieldContext_Vendor_description(ctx, field) - case "organization": - return ec.fieldContext_Vendor_organization(ctx, field) - case "complianceReports": - return ec.fieldContext_Vendor_complianceReports(ctx, field) - case "businessAssociateAgreement": - return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field) - case "dataPrivacyAgreement": - return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field) - case "contacts": - return ec.fieldContext_Vendor_contacts(ctx, field) - case "services": - return ec.fieldContext_Vendor_services(ctx, field) - case "riskAssessments": - return ec.fieldContext_Vendor_riskAssessments(ctx, field) - case "businessOwner": - return ec.fieldContext_Vendor_businessOwner(ctx, field) - case "securityOwner": - return ec.fieldContext_Vendor_securityOwner(ctx, field) - case "statusPageUrl": - return ec.fieldContext_Vendor_statusPageUrl(ctx, field) - case "termsOfServiceUrl": - return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field) - case "privacyPolicyUrl": - return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field) - case "serviceLevelAgreementUrl": - return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field) - case "dataProcessingAgreementUrl": - return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field) - case "businessAssociateAgreementUrl": - return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field) - case "subprocessorsListUrl": - return ec.fieldContext_Vendor_subprocessorsListUrl(ctx, field) - case "certifications": - return ec.fieldContext_Vendor_certifications(ctx, field) - case "countries": - return ec.fieldContext_Vendor_countries(ctx, field) - case "securityPageUrl": - return ec.fieldContext_Vendor_securityPageUrl(ctx, field) - case "trustPageUrl": - return ec.fieldContext_Vendor_trustPageUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Vendor_headquarterAddress(ctx, field) - case "legalName": - return ec.fieldContext_Vendor_legalName(ctx, field) - case "websiteUrl": - return ec.fieldContext_Vendor_websiteUrl(ctx, field) - case "showOnTrustCenter": - return ec.fieldContext_Vendor_showOnTrustCenter(ctx, field) - case "createdAt": - return ec.fieldContext_Vendor_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Vendor_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Vendor_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorBusinessAssociateAgreement_validFrom(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorBusinessAssociateAgreement_validFrom, - func(ctx context.Context) (any, error) { - return obj.ValidFrom, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorBusinessAssociateAgreement_validFrom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorBusinessAssociateAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorBusinessAssociateAgreement_validUntil(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorBusinessAssociateAgreement_validUntil, - func(ctx context.Context) (any, error) { - return obj.ValidUntil, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorBusinessAssociateAgreement_validUntil(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorBusinessAssociateAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorBusinessAssociateAgreement_fileName(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorBusinessAssociateAgreement_fileName, - func(ctx context.Context) (any, error) { - return obj.FileName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorBusinessAssociateAgreement_fileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorBusinessAssociateAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorBusinessAssociateAgreement_fileUrl(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorBusinessAssociateAgreement_fileUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorBusinessAssociateAgreement().FileURL(ctx, obj) - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorBusinessAssociateAgreement_fileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorBusinessAssociateAgreement", - 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) _VendorBusinessAssociateAgreement_fileSize(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorBusinessAssociateAgreement_fileSize, - func(ctx context.Context) (any, error) { - return obj.FileSize, nil - }, - nil, - ec.marshalNBigInt2int64, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorBusinessAssociateAgreement_fileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorBusinessAssociateAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type BigInt does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorBusinessAssociateAgreement_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorBusinessAssociateAgreement_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorBusinessAssociateAgreement_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorBusinessAssociateAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorBusinessAssociateAgreement_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorBusinessAssociateAgreement_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorBusinessAssociateAgreement_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorBusinessAssociateAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorBusinessAssociateAgreement_permission(ctx context.Context, field graphql.CollectedField, obj *types.VendorBusinessAssociateAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorBusinessAssociateAgreement_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.VendorBusinessAssociateAgreement().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorBusinessAssociateAgreement_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorBusinessAssociateAgreement", - 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_VendorBusinessAssociateAgreement_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReport_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReport_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReport_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReport", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReport_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReport_vendor, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorComplianceReport().Vendor(ctx, obj) - }, - nil, - ec.marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReport_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReport", - 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_Vendor_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Vendor_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Vendor_name(ctx, field) - case "category": - return ec.fieldContext_Vendor_category(ctx, field) - case "description": - return ec.fieldContext_Vendor_description(ctx, field) - case "organization": - return ec.fieldContext_Vendor_organization(ctx, field) - case "complianceReports": - return ec.fieldContext_Vendor_complianceReports(ctx, field) - case "businessAssociateAgreement": - return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field) - case "dataPrivacyAgreement": - return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field) - case "contacts": - return ec.fieldContext_Vendor_contacts(ctx, field) - case "services": - return ec.fieldContext_Vendor_services(ctx, field) - case "riskAssessments": - return ec.fieldContext_Vendor_riskAssessments(ctx, field) - case "businessOwner": - return ec.fieldContext_Vendor_businessOwner(ctx, field) - case "securityOwner": - return ec.fieldContext_Vendor_securityOwner(ctx, field) - case "statusPageUrl": - return ec.fieldContext_Vendor_statusPageUrl(ctx, field) - case "termsOfServiceUrl": - return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field) - case "privacyPolicyUrl": - return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field) - case "serviceLevelAgreementUrl": - return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field) - case "dataProcessingAgreementUrl": - return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field) - case "businessAssociateAgreementUrl": - return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field) - case "subprocessorsListUrl": - return ec.fieldContext_Vendor_subprocessorsListUrl(ctx, field) - case "certifications": - return ec.fieldContext_Vendor_certifications(ctx, field) - case "countries": - return ec.fieldContext_Vendor_countries(ctx, field) - case "securityPageUrl": - return ec.fieldContext_Vendor_securityPageUrl(ctx, field) - case "trustPageUrl": - return ec.fieldContext_Vendor_trustPageUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Vendor_headquarterAddress(ctx, field) - case "legalName": - return ec.fieldContext_Vendor_legalName(ctx, field) - case "websiteUrl": - return ec.fieldContext_Vendor_websiteUrl(ctx, field) - case "showOnTrustCenter": - return ec.fieldContext_Vendor_showOnTrustCenter(ctx, field) - case "createdAt": - return ec.fieldContext_Vendor_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Vendor_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Vendor_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReport_reportDate(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReport_reportDate, - func(ctx context.Context) (any, error) { - return obj.ReportDate, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReport_reportDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReport", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReport_validUntil(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReport_validUntil, - func(ctx context.Context) (any, error) { - return obj.ValidUntil, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReport_validUntil(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReport", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReport_reportName(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReport_reportName, - func(ctx context.Context) (any, error) { - return obj.ReportName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReport_reportName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReport", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReport_file(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReport_file, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorComplianceReport().File(ctx, obj) - }, - nil, - ec.marshalOFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReport_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReport", - 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_File_id(ctx, field) - case "mimeType": - return ec.fieldContext_File_mimeType(ctx, field) - case "fileName": - return ec.fieldContext_File_fileName(ctx, field) - case "size": - return ec.fieldContext_File_size(ctx, field) - case "downloadUrl": - return ec.fieldContext_File_downloadUrl(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReport_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReport_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReport_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReport", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReport_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReport_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReport_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReport", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReport_permission(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReport) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReport_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.VendorComplianceReport().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReport_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReport", - 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_VendorComplianceReport_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReportConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReportConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReportConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNVendorComplianceReportEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReportConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReportConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorComplianceReportEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorComplianceReportEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorComplianceReportEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReportConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReportConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReportConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReportConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReportConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReportEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReportEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReportEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReportEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReportEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorComplianceReportEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorComplianceReportEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorComplianceReportEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNVendorComplianceReport2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReport, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorComplianceReportEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorComplianceReportEdge", - 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_VendorComplianceReport_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorComplianceReport_vendor(ctx, field) - case "reportDate": - return ec.fieldContext_VendorComplianceReport_reportDate(ctx, field) - case "validUntil": - return ec.fieldContext_VendorComplianceReport_validUntil(ctx, field) - case "reportName": - return ec.fieldContext_VendorComplianceReport_reportName(ctx, field) - case "file": - return ec.fieldContext_VendorComplianceReport_file(ctx, field) - case "createdAt": - return ec.fieldContext_VendorComplianceReport_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorComplianceReport_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorComplianceReport_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorComplianceReport", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.VendorConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorConnection", - 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) _VendorConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNVendorEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContact_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContact_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorContact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContact_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContact_vendor, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorContact().Vendor(ctx, obj) - }, - nil, - ec.marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorContact_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContact", - 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_Vendor_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Vendor_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Vendor_name(ctx, field) - case "category": - return ec.fieldContext_Vendor_category(ctx, field) - case "description": - return ec.fieldContext_Vendor_description(ctx, field) - case "organization": - return ec.fieldContext_Vendor_organization(ctx, field) - case "complianceReports": - return ec.fieldContext_Vendor_complianceReports(ctx, field) - case "businessAssociateAgreement": - return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field) - case "dataPrivacyAgreement": - return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field) - case "contacts": - return ec.fieldContext_Vendor_contacts(ctx, field) - case "services": - return ec.fieldContext_Vendor_services(ctx, field) - case "riskAssessments": - return ec.fieldContext_Vendor_riskAssessments(ctx, field) - case "businessOwner": - return ec.fieldContext_Vendor_businessOwner(ctx, field) - case "securityOwner": - return ec.fieldContext_Vendor_securityOwner(ctx, field) - case "statusPageUrl": - return ec.fieldContext_Vendor_statusPageUrl(ctx, field) - case "termsOfServiceUrl": - return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field) - case "privacyPolicyUrl": - return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field) - case "serviceLevelAgreementUrl": - return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field) - case "dataProcessingAgreementUrl": - return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field) - case "businessAssociateAgreementUrl": - return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field) - case "subprocessorsListUrl": - return ec.fieldContext_Vendor_subprocessorsListUrl(ctx, field) - case "certifications": - return ec.fieldContext_Vendor_certifications(ctx, field) - case "countries": - return ec.fieldContext_Vendor_countries(ctx, field) - case "securityPageUrl": - return ec.fieldContext_Vendor_securityPageUrl(ctx, field) - case "trustPageUrl": - return ec.fieldContext_Vendor_trustPageUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Vendor_headquarterAddress(ctx, field) - case "legalName": - return ec.fieldContext_Vendor_legalName(ctx, field) - case "websiteUrl": - return ec.fieldContext_Vendor_websiteUrl(ctx, field) - case "showOnTrustCenter": - return ec.fieldContext_Vendor_showOnTrustCenter(ctx, field) - case "createdAt": - return ec.fieldContext_Vendor_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Vendor_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Vendor_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContact_fullName(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContact_fullName, - func(ctx context.Context) (any, error) { - return obj.FullName, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorContact_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContact_email(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContact_email, - func(ctx context.Context) (any, error) { - return obj.Email, nil - }, - nil, - ec.marshalOEmailAddr2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorContact_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContact_phone(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContact_phone, - func(ctx context.Context) (any, error) { - return obj.Phone, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorContact_phone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContact_role(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContact_role, - func(ctx context.Context) (any, error) { - return obj.Role, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorContact_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContact_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContact_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorContact_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContact_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContact_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorContact_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContact_permission(ctx context.Context, field graphql.CollectedField, obj *types.VendorContact) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContact_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.VendorContact().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorContact_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContact", - 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_VendorContact_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _VendorContactConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorContactConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContactConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNVendorContactEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorContactConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContactConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorContactEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorContactEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorContactEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContactConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorContactConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContactConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorContactConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContactConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContactEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorContactEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContactEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorContactEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContactEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorContactEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorContactEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorContactEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNVendorContact2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContact, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorContactEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorContactEdge", - 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_VendorContact_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorContact_vendor(ctx, field) - case "fullName": - return ec.fieldContext_VendorContact_fullName(ctx, field) - case "email": - return ec.fieldContext_VendorContact_email(ctx, field) - case "phone": - return ec.fieldContext_VendorContact_phone(ctx, field) - case "role": - return ec.fieldContext_VendorContact_role(ctx, field) - case "createdAt": - return ec.fieldContext_VendorContact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorContact_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorContact_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorContact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorDataPrivacyAgreement_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorDataPrivacyAgreement_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorDataPrivacyAgreement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorDataPrivacyAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorDataPrivacyAgreement_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorDataPrivacyAgreement_vendor, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorDataPrivacyAgreement().Vendor(ctx, obj) - }, - nil, - ec.marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorDataPrivacyAgreement_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorDataPrivacyAgreement", - 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_Vendor_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Vendor_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Vendor_name(ctx, field) - case "category": - return ec.fieldContext_Vendor_category(ctx, field) - case "description": - return ec.fieldContext_Vendor_description(ctx, field) - case "organization": - return ec.fieldContext_Vendor_organization(ctx, field) - case "complianceReports": - return ec.fieldContext_Vendor_complianceReports(ctx, field) - case "businessAssociateAgreement": - return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field) - case "dataPrivacyAgreement": - return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field) - case "contacts": - return ec.fieldContext_Vendor_contacts(ctx, field) - case "services": - return ec.fieldContext_Vendor_services(ctx, field) - case "riskAssessments": - return ec.fieldContext_Vendor_riskAssessments(ctx, field) - case "businessOwner": - return ec.fieldContext_Vendor_businessOwner(ctx, field) - case "securityOwner": - return ec.fieldContext_Vendor_securityOwner(ctx, field) - case "statusPageUrl": - return ec.fieldContext_Vendor_statusPageUrl(ctx, field) - case "termsOfServiceUrl": - return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field) - case "privacyPolicyUrl": - return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field) - case "serviceLevelAgreementUrl": - return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field) - case "dataProcessingAgreementUrl": - return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field) - case "businessAssociateAgreementUrl": - return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field) - case "subprocessorsListUrl": - return ec.fieldContext_Vendor_subprocessorsListUrl(ctx, field) - case "certifications": - return ec.fieldContext_Vendor_certifications(ctx, field) - case "countries": - return ec.fieldContext_Vendor_countries(ctx, field) - case "securityPageUrl": - return ec.fieldContext_Vendor_securityPageUrl(ctx, field) - case "trustPageUrl": - return ec.fieldContext_Vendor_trustPageUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Vendor_headquarterAddress(ctx, field) - case "legalName": - return ec.fieldContext_Vendor_legalName(ctx, field) - case "websiteUrl": - return ec.fieldContext_Vendor_websiteUrl(ctx, field) - case "showOnTrustCenter": - return ec.fieldContext_Vendor_showOnTrustCenter(ctx, field) - case "createdAt": - return ec.fieldContext_Vendor_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Vendor_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Vendor_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorDataPrivacyAgreement_validFrom(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorDataPrivacyAgreement_validFrom, - func(ctx context.Context) (any, error) { - return obj.ValidFrom, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorDataPrivacyAgreement_validFrom(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorDataPrivacyAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorDataPrivacyAgreement_validUntil(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorDataPrivacyAgreement_validUntil, - func(ctx context.Context) (any, error) { - return obj.ValidUntil, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorDataPrivacyAgreement_validUntil(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorDataPrivacyAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorDataPrivacyAgreement_fileName(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorDataPrivacyAgreement_fileName, - func(ctx context.Context) (any, error) { - return obj.FileName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorDataPrivacyAgreement_fileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorDataPrivacyAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorDataPrivacyAgreement_fileUrl(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorDataPrivacyAgreement_fileUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorDataPrivacyAgreement().FileURL(ctx, obj) - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorDataPrivacyAgreement_fileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorDataPrivacyAgreement", - 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) _VendorDataPrivacyAgreement_fileSize(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorDataPrivacyAgreement_fileSize, - func(ctx context.Context) (any, error) { - return obj.FileSize, nil - }, - nil, - ec.marshalNBigInt2int64, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorDataPrivacyAgreement_fileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorDataPrivacyAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type BigInt does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorDataPrivacyAgreement_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorDataPrivacyAgreement_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorDataPrivacyAgreement_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorDataPrivacyAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorDataPrivacyAgreement_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorDataPrivacyAgreement_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorDataPrivacyAgreement_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorDataPrivacyAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorDataPrivacyAgreement_permission(ctx context.Context, field graphql.CollectedField, obj *types.VendorDataPrivacyAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorDataPrivacyAgreement_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.VendorDataPrivacyAgreement().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorDataPrivacyAgreement_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorDataPrivacyAgreement", - 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_VendorDataPrivacyAgreement_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _VendorEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorEdge", - 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_Vendor_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Vendor_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Vendor_name(ctx, field) - case "category": - return ec.fieldContext_Vendor_category(ctx, field) - case "description": - return ec.fieldContext_Vendor_description(ctx, field) - case "organization": - return ec.fieldContext_Vendor_organization(ctx, field) - case "complianceReports": - return ec.fieldContext_Vendor_complianceReports(ctx, field) - case "businessAssociateAgreement": - return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field) - case "dataPrivacyAgreement": - return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field) - case "contacts": - return ec.fieldContext_Vendor_contacts(ctx, field) - case "services": - return ec.fieldContext_Vendor_services(ctx, field) - case "riskAssessments": - return ec.fieldContext_Vendor_riskAssessments(ctx, field) - case "businessOwner": - return ec.fieldContext_Vendor_businessOwner(ctx, field) - case "securityOwner": - return ec.fieldContext_Vendor_securityOwner(ctx, field) - case "statusPageUrl": - return ec.fieldContext_Vendor_statusPageUrl(ctx, field) - case "termsOfServiceUrl": - return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field) - case "privacyPolicyUrl": - return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field) - case "serviceLevelAgreementUrl": - return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field) - case "dataProcessingAgreementUrl": - return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field) - case "businessAssociateAgreementUrl": - return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field) - case "subprocessorsListUrl": - return ec.fieldContext_Vendor_subprocessorsListUrl(ctx, field) - case "certifications": - return ec.fieldContext_Vendor_certifications(ctx, field) - case "countries": - return ec.fieldContext_Vendor_countries(ctx, field) - case "securityPageUrl": - return ec.fieldContext_Vendor_securityPageUrl(ctx, field) - case "trustPageUrl": - return ec.fieldContext_Vendor_trustPageUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Vendor_headquarterAddress(ctx, field) - case "legalName": - return ec.fieldContext_Vendor_legalName(ctx, field) - case "websiteUrl": - return ec.fieldContext_Vendor_websiteUrl(ctx, field) - case "showOnTrustCenter": - return ec.fieldContext_Vendor_showOnTrustCenter(ctx, field) - case "createdAt": - return ec.fieldContext_Vendor_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Vendor_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Vendor_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessment_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessment_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessment_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessment_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessment_vendor, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorRiskAssessment().Vendor(ctx, obj) - }, - nil, - ec.marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessment_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessment", - 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_Vendor_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Vendor_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Vendor_name(ctx, field) - case "category": - return ec.fieldContext_Vendor_category(ctx, field) - case "description": - return ec.fieldContext_Vendor_description(ctx, field) - case "organization": - return ec.fieldContext_Vendor_organization(ctx, field) - case "complianceReports": - return ec.fieldContext_Vendor_complianceReports(ctx, field) - case "businessAssociateAgreement": - return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field) - case "dataPrivacyAgreement": - return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field) - case "contacts": - return ec.fieldContext_Vendor_contacts(ctx, field) - case "services": - return ec.fieldContext_Vendor_services(ctx, field) - case "riskAssessments": - return ec.fieldContext_Vendor_riskAssessments(ctx, field) - case "businessOwner": - return ec.fieldContext_Vendor_businessOwner(ctx, field) - case "securityOwner": - return ec.fieldContext_Vendor_securityOwner(ctx, field) - case "statusPageUrl": - return ec.fieldContext_Vendor_statusPageUrl(ctx, field) - case "termsOfServiceUrl": - return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field) - case "privacyPolicyUrl": - return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field) - case "serviceLevelAgreementUrl": - return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field) - case "dataProcessingAgreementUrl": - return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field) - case "businessAssociateAgreementUrl": - return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field) - case "subprocessorsListUrl": - return ec.fieldContext_Vendor_subprocessorsListUrl(ctx, field) - case "certifications": - return ec.fieldContext_Vendor_certifications(ctx, field) - case "countries": - return ec.fieldContext_Vendor_countries(ctx, field) - case "securityPageUrl": - return ec.fieldContext_Vendor_securityPageUrl(ctx, field) - case "trustPageUrl": - return ec.fieldContext_Vendor_trustPageUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Vendor_headquarterAddress(ctx, field) - case "legalName": - return ec.fieldContext_Vendor_legalName(ctx, field) - case "websiteUrl": - return ec.fieldContext_Vendor_websiteUrl(ctx, field) - case "showOnTrustCenter": - return ec.fieldContext_Vendor_showOnTrustCenter(ctx, field) - case "createdAt": - return ec.fieldContext_Vendor_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Vendor_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Vendor_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessment_expiresAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessment_expiresAt, - func(ctx context.Context) (any, error) { - return obj.ExpiresAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessment_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessment_dataSensitivity(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessment_dataSensitivity, - func(ctx context.Context) (any, error) { - return obj.DataSensitivity, nil - }, - nil, - ec.marshalNDataSensitivity2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataSensitivity, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessment_dataSensitivity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DataSensitivity does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessment_businessImpact(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessment_businessImpact, - func(ctx context.Context) (any, error) { - return obj.BusinessImpact, nil - }, - nil, - ec.marshalNBusinessImpact2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐBusinessImpact, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessment_businessImpact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type BusinessImpact does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessment_notes(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessment_notes, - func(ctx context.Context) (any, error) { - return obj.Notes, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessment_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessment_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessment_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessment_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessment_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessment_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessment_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessment", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessment_permission(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessment) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessment_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.VendorRiskAssessment().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessment_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessment", - 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_VendorRiskAssessment_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessmentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessmentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessmentConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNVendorRiskAssessmentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessmentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessmentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorRiskAssessmentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorRiskAssessmentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorRiskAssessmentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessmentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessmentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessmentConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessmentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessmentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessmentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessmentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessmentEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessmentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessmentEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorRiskAssessmentEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorRiskAssessmentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorRiskAssessmentEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNVendorRiskAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessment, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorRiskAssessmentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorRiskAssessmentEdge", - 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_VendorRiskAssessment_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorRiskAssessment_vendor(ctx, field) - case "expiresAt": - return ec.fieldContext_VendorRiskAssessment_expiresAt(ctx, field) - case "dataSensitivity": - return ec.fieldContext_VendorRiskAssessment_dataSensitivity(ctx, field) - case "businessImpact": - return ec.fieldContext_VendorRiskAssessment_businessImpact(ctx, field) - case "notes": - return ec.fieldContext_VendorRiskAssessment_notes(ctx, field) - case "createdAt": - return ec.fieldContext_VendorRiskAssessment_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorRiskAssessment_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorRiskAssessment_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorRiskAssessment", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorService_id(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorService_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorService_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorService", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorService_vendor(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorService_vendor, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorService().Vendor(ctx, obj) - }, - nil, - ec.marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorService_vendor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorService", - 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_Vendor_id(ctx, field) - case "snapshotId": - return ec.fieldContext_Vendor_snapshotId(ctx, field) - case "name": - return ec.fieldContext_Vendor_name(ctx, field) - case "category": - return ec.fieldContext_Vendor_category(ctx, field) - case "description": - return ec.fieldContext_Vendor_description(ctx, field) - case "organization": - return ec.fieldContext_Vendor_organization(ctx, field) - case "complianceReports": - return ec.fieldContext_Vendor_complianceReports(ctx, field) - case "businessAssociateAgreement": - return ec.fieldContext_Vendor_businessAssociateAgreement(ctx, field) - case "dataPrivacyAgreement": - return ec.fieldContext_Vendor_dataPrivacyAgreement(ctx, field) - case "contacts": - return ec.fieldContext_Vendor_contacts(ctx, field) - case "services": - return ec.fieldContext_Vendor_services(ctx, field) - case "riskAssessments": - return ec.fieldContext_Vendor_riskAssessments(ctx, field) - case "businessOwner": - return ec.fieldContext_Vendor_businessOwner(ctx, field) - case "securityOwner": - return ec.fieldContext_Vendor_securityOwner(ctx, field) - case "statusPageUrl": - return ec.fieldContext_Vendor_statusPageUrl(ctx, field) - case "termsOfServiceUrl": - return ec.fieldContext_Vendor_termsOfServiceUrl(ctx, field) - case "privacyPolicyUrl": - return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field) - case "serviceLevelAgreementUrl": - return ec.fieldContext_Vendor_serviceLevelAgreementUrl(ctx, field) - case "dataProcessingAgreementUrl": - return ec.fieldContext_Vendor_dataProcessingAgreementUrl(ctx, field) - case "businessAssociateAgreementUrl": - return ec.fieldContext_Vendor_businessAssociateAgreementUrl(ctx, field) - case "subprocessorsListUrl": - return ec.fieldContext_Vendor_subprocessorsListUrl(ctx, field) - case "certifications": - return ec.fieldContext_Vendor_certifications(ctx, field) - case "countries": - return ec.fieldContext_Vendor_countries(ctx, field) - case "securityPageUrl": - return ec.fieldContext_Vendor_securityPageUrl(ctx, field) - case "trustPageUrl": - return ec.fieldContext_Vendor_trustPageUrl(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Vendor_headquarterAddress(ctx, field) - case "legalName": - return ec.fieldContext_Vendor_legalName(ctx, field) - case "websiteUrl": - return ec.fieldContext_Vendor_websiteUrl(ctx, field) - case "showOnTrustCenter": - return ec.fieldContext_Vendor_showOnTrustCenter(ctx, field) - case "createdAt": - return ec.fieldContext_Vendor_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Vendor_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Vendor_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorService_name(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorService_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorService_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorService", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorService_description(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorService_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VendorService_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorService", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorService_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorService_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorService_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorService", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorService_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorService_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorService_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorService", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorService_permission(ctx context.Context, field graphql.CollectedField, obj *types.VendorService) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorService_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.VendorService().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorService_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorService", - 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_VendorService_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _VendorServiceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorServiceConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorServiceConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNVendorServiceEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorServiceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorServiceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorServiceEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorServiceEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorServiceEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorServiceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorServiceConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorServiceConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorServiceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorServiceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorServiceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorServiceEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorServiceEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorServiceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorServiceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorServiceEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorServiceEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorServiceEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNVendorService2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorService, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorServiceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorServiceEdge", - 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_VendorService_id(ctx, field) - case "vendor": - return ec.fieldContext_VendorService_vendor(ctx, field) - case "name": - return ec.fieldContext_VendorService_name(ctx, field) - case "description": - return ec.fieldContext_VendorService_description(ctx, field) - case "createdAt": - return ec.fieldContext_VendorService_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_VendorService_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_VendorService_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorService", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Viewer_id(ctx context.Context, field graphql.CollectedField, obj *types.Viewer) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Viewer_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Viewer_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Viewer", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Viewer_signableDocuments(ctx context.Context, field graphql.CollectedField, obj *types.Viewer) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Viewer_signableDocuments, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Viewer().SignableDocuments(ctx, obj, fc.Args["organizationId"].(gid.GID), fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.DocumentOrderBy)) - }, - nil, - ec.marshalNSignableDocumentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocumentConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Viewer_signableDocuments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Viewer", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_SignableDocumentConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SignableDocumentConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SignableDocumentConnection", 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_Viewer_signableDocuments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Viewer_signableDocument(ctx context.Context, field graphql.CollectedField, obj *types.Viewer) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Viewer_signableDocument, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Viewer().SignableDocument(ctx, obj, fc.Args["id"].(gid.GID)) - }, - nil, - ec.marshalOSignableDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocument, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Viewer_signableDocument(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Viewer", - 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_SignableDocument_id(ctx, field) - case "title": - return ec.fieldContext_SignableDocument_title(ctx, field) - case "description": - return ec.fieldContext_SignableDocument_description(ctx, field) - case "documentType": - return ec.fieldContext_SignableDocument_documentType(ctx, field) - case "classification": - return ec.fieldContext_SignableDocument_classification(ctx, field) - case "signed": - return ec.fieldContext_SignableDocument_signed(ctx, field) - case "versions": - return ec.fieldContext_SignableDocument_versions(ctx, field) - case "createdAt": - return ec.fieldContext_SignableDocument_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SignableDocument_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SignableDocument", 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_Viewer_signableDocument_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _WebhookEvent_id(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookEvent_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookEvent_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookEvent_webhookSubscriptionId(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookEvent_webhookSubscriptionId, - func(ctx context.Context) (any, error) { - return obj.WebhookSubscriptionID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookEvent_webhookSubscriptionId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookEvent_status(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookEvent_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNWebhookEventStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookEvent_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type WebhookEventStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookEvent_response(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookEvent_response, - func(ctx context.Context) (any, error) { - return obj.Response, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_WebhookEvent_response(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookEvent_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEvent) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookEvent_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookEvent_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEvent", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookEventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEventConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookEventConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNWebhookEventEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEventEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookEventConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEventConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_WebhookEventEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_WebhookEventEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type WebhookEventEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookEventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEventConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookEventConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookEventConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEventConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookEventConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEventConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookEventConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.WebhookEventConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookEventConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEventConnection", - 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) _WebhookEventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEventEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookEventEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookEventEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEventEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookEventEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.WebhookEventEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookEventEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNWebhookEvent2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEvent, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookEventEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEventEdge", - 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_WebhookEvent_id(ctx, field) - case "webhookSubscriptionId": - return ec.fieldContext_WebhookEvent_webhookSubscriptionId(ctx, field) - case "status": - return ec.fieldContext_WebhookEvent_status(ctx, field) - case "response": - return ec.fieldContext_WebhookEvent_response(ctx, field) - case "createdAt": - return ec.fieldContext_WebhookEvent_createdAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type WebhookEvent", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscription_id(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscription) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscription_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscription_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscription", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscription_organization(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscription) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscription_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.WebhookSubscription().Organization(ctx, obj) - }, - nil, - ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscription_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscription", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "horizontalLogoUrl": - return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - case "context": - return ec.fieldContext_Organization_context(ctx, field) - case "profiles": - return ec.fieldContext_Organization_profiles(ctx, field) - case "slackConnections": - return ec.fieldContext_Organization_slackConnections(ctx, field) - case "frameworks": - return ec.fieldContext_Organization_frameworks(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "vendors": - return ec.fieldContext_Organization_vendors(ctx, field) - case "documents": - return ec.fieldContext_Organization_documents(ctx, field) - case "meetings": - return ec.fieldContext_Organization_meetings(ctx, field) - case "statesOfApplicability": - return ec.fieldContext_Organization_statesOfApplicability(ctx, field) - case "measures": - return ec.fieldContext_Organization_measures(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "assets": - return ec.fieldContext_Organization_assets(ctx, field) - case "data": - return ec.fieldContext_Organization_data(ctx, field) - case "audits": - return ec.fieldContext_Organization_audits(ctx, field) - case "nonconformities": - return ec.fieldContext_Organization_nonconformities(ctx, field) - case "obligations": - return ec.fieldContext_Organization_obligations(ctx, field) - case "continualImprovements": - return ec.fieldContext_Organization_continualImprovements(ctx, field) - case "rightsRequests": - return ec.fieldContext_Organization_rightsRequests(ctx, field) - case "processingActivities": - return ec.fieldContext_Organization_processingActivities(ctx, field) - case "dataProtectionImpactAssessments": - return ec.fieldContext_Organization_dataProtectionImpactAssessments(ctx, field) - case "transferImpactAssessments": - return ec.fieldContext_Organization_transferImpactAssessments(ctx, field) - case "snapshots": - return ec.fieldContext_Organization_snapshots(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_Organization_trustCenterFiles(ctx, field) - case "trustCenter": - return ec.fieldContext_Organization_trustCenter(ctx, field) - case "customDomain": - return ec.fieldContext_Organization_customDomain(ctx, field) - case "webhookSubscriptions": - return ec.fieldContext_Organization_webhookSubscriptions(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "permission": - return ec.fieldContext_Organization_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscription_endpointUrl(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscription) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscription_endpointUrl, - func(ctx context.Context) (any, error) { - return obj.EndpointURL, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscription_endpointUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscription", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscription_signingSecret(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscription) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscription_signingSecret, - func(ctx context.Context) (any, error) { - return ec.Resolvers.WebhookSubscription().SigningSecret(ctx, obj) - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscription_signingSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscription", - 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) _WebhookSubscription_selectedEvents(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscription) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscription_selectedEvents, - func(ctx context.Context) (any, error) { - return obj.SelectedEvents, nil - }, - nil, - ec.marshalNWebhookEventType2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventTypeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscription_selectedEvents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscription", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type WebhookEventType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscription_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscription) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscription_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscription_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscription", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscription_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscription) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscription_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscription_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscription", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscription_events(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscription) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscription_events, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.WebhookSubscription().Events(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.WebhookEventOrderBy)) - }, - nil, - ec.marshalNWebhookEventConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEventConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscription_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscription", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_WebhookEventConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_WebhookEventConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_WebhookEventConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type WebhookEventConnection", 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_WebhookSubscription_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscription_permission(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscription) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscription_permission, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.WebhookSubscription().Permission(ctx, obj, fc.Args["action"].(string)) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscription_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscription", - 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_WebhookSubscription_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscriptionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscriptionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscriptionConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNWebhookSubscriptionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscriptionEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscriptionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscriptionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_WebhookSubscriptionEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_WebhookSubscriptionEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type WebhookSubscriptionEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscriptionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscriptionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscriptionConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscriptionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscriptionConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscriptionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscriptionConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscriptionConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.WebhookSubscriptionConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscriptionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscriptionConnection", - 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) _WebhookSubscriptionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscriptionEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscriptionEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscriptionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscriptionEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookSubscriptionEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.WebhookSubscriptionEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_WebhookSubscriptionEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNWebhookSubscription2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscription, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_WebhookSubscriptionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSubscriptionEdge", - 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_WebhookSubscription_id(ctx, field) - case "organization": - return ec.fieldContext_WebhookSubscription_organization(ctx, field) - case "endpointUrl": - return ec.fieldContext_WebhookSubscription_endpointUrl(ctx, field) - case "signingSecret": - return ec.fieldContext_WebhookSubscription_signingSecret(ctx, field) - case "selectedEvents": - return ec.fieldContext_WebhookSubscription_selectedEvents(ctx, field) - case "createdAt": - return ec.fieldContext_WebhookSubscription_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_WebhookSubscription_updatedAt(ctx, field) - case "events": - return ec.fieldContext_WebhookSubscription_events(ctx, field) - case "permission": - return ec.fieldContext_WebhookSubscription_permission(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type WebhookSubscription", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Directive_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Directive_description(_ 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_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_isRepeatable, - func(ctx context.Context) (any, error) { - return obj.IsRepeatable, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Directive_isRepeatable(_ 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) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_locations, - func(ctx context.Context) (any, error) { - return obj.Locations, nil - }, - nil, - ec.marshalN__DirectiveLocation2ᚕstringᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Directive_locations(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_args, - func(ctx context.Context) (any, error) { - return obj.Args, nil - }, - nil, - ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ, - true, - true, - ) -} - -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) - case "isDeprecated": - return ec.fieldContext___InputValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___InputValue_deprecationReason(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", 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___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_isDeprecated, - func(ctx context.Context) (any, error) { - return obj.IsDeprecated(), nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_deprecationReason, - func(ctx context.Context) (any, error) { - return obj.DeprecationReason(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Field_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Field_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_args, - func(ctx context.Context) (any, error) { - return obj.Args, nil - }, - nil, - ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ, - true, - true, - ) -} - -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) - case "isDeprecated": - return ec.fieldContext___InputValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___InputValue_deprecationReason(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", 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___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Field_type(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_isDeprecated, - func(ctx context.Context) (any, error) { - return obj.IsDeprecated(), nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Field_isDeprecated(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_deprecationReason, - func(ctx context.Context) (any, error) { - return obj.DeprecationReason(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Field_deprecationReason(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___InputValue_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___InputValue_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___InputValue_type(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_defaultValue, - func(ctx context.Context) (any, error) { - return obj.DefaultValue, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___InputValue_defaultValue(_ 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_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_isDeprecated, - func(ctx context.Context) (any, error) { - return obj.IsDeprecated(), nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ 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 Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_deprecationReason, - func(ctx context.Context) (any, error) { - return obj.DeprecationReason(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ 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) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Schema_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_types, - func(ctx context.Context) (any, error) { - return obj.Types(), nil - }, - nil, - ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Schema_types(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_queryType, - func(ctx context.Context) (any, error) { - return obj.QueryType(), nil - }, - nil, - ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Schema_queryType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_mutationType, - func(ctx context.Context) (any, error) { - return obj.MutationType(), nil - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Schema_mutationType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_subscriptionType, - func(ctx context.Context) (any, error) { - return obj.SubscriptionType(), nil - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Schema_subscriptionType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_directives, - func(ctx context.Context) (any, error) { - return obj.Directives(), nil - }, - nil, - ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Schema_directives(_ 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 "isRepeatable": - return ec.fieldContext___Directive_isRepeatable(ctx, field) - case "locations": - return ec.fieldContext___Directive_locations(ctx, field) - case "args": - return ec.fieldContext___Directive_args(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_kind, - func(ctx context.Context) (any, error) { - return obj.Kind(), nil - }, - nil, - ec.marshalN__TypeKind2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Type_kind(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_name, - func(ctx context.Context) (any, error) { - return obj.Name(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_description(_ 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_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_specifiedByURL, - func(ctx context.Context) (any, error) { - return obj.SpecifiedByURL(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_specifiedByURL(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_fields, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil - }, - nil, - ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ, - true, - false, - ) -} - -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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_interfaces, - func(ctx context.Context) (any, error) { - return obj.Interfaces(), nil - }, - nil, - ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_interfaces(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_possibleTypes, - func(ctx context.Context) (any, error) { - return obj.PossibleTypes(), nil - }, - nil, - ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_possibleTypes(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_enumValues, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil - }, - nil, - ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ, - true, - false, - ) -} - -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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_inputFields, - func(ctx context.Context) (any, error) { - return obj.InputFields(), nil - }, - nil, - ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_inputFields(_ 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) - case "isDeprecated": - return ec.fieldContext___InputValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___InputValue_deprecationReason(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_ofType, - func(ctx context.Context) (any, error) { - return obj.OfType(), nil - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_ofType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_isOneOf, - func(ctx context.Context) (any, error) { - return obj.IsOneOf(), nil - }, - nil, - ec.marshalOBoolean2bool, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_isOneOf(_ 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 Boolean does not have child fields") - }, - } - return fc, nil -} - -// endregion **************************** field.gotpl ***************************** - -// region **************************** input.gotpl ***************************** - -func (ec *executionContext) unmarshalInputApplicabilityStatementInput(ctx context.Context, obj any) (types.ApplicabilityStatementInput, error) { - var it types.ApplicabilityStatementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "applicability", "justification"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "applicability": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("applicability")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.Applicability = data - case "justification": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("justification")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Justification = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputApplicabilityStatementOrder(ctx context.Context, obj any) (types.ApplicabilityStatementOrderBy, error) { - var it types.ApplicabilityStatementOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNApplicabilityStatementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐApplicabilityStatementOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputAssessVendorInput(ctx context.Context, obj any) (types.AssessVendorInput, error) { - var it types.AssessVendorInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "websiteUrl"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "websiteUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.WebsiteURL = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputAssetFilter(ctx context.Context, obj any) (types.AssetFilter, error) { - var it types.AssetFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputAssetOrder(ctx context.Context, obj any) (types.AssetOrderBy, error) { - var it types.AssetOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNAssetOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputAuditOrder(ctx context.Context, obj any) (types.AuditOrderBy, error) { - var it types.AuditOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNAuditOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputBulkDeleteDocumentsInput(ctx context.Context, obj any) (types.BulkDeleteDocumentsInput, error) { - var it types.BulkDeleteDocumentsInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentIds"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIds")) - data, err := ec.unmarshalNID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.DocumentIds = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputBulkExportDocumentsInput(ctx context.Context, obj any) (types.BulkExportDocumentsInput, error) { - var it types.BulkExportDocumentsInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentIds", "withWatermark", "watermarkEmail", "withSignatures"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIds")) - data, err := ec.unmarshalNID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.DocumentIds = data - case "withWatermark": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("withWatermark")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.WithWatermark = data - case "watermarkEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("watermarkEmail")) - data, err := ec.unmarshalOEmailAddr2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.WatermarkEmail = data - case "withSignatures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("withSignatures")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.WithSignatures = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputBulkPublishDocumentVersionsInput(ctx context.Context, obj any) (types.BulkPublishDocumentVersionsInput, error) { - var it types.BulkPublishDocumentVersionsInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentIds", "changelog"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIds")) - data, err := ec.unmarshalNID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.DocumentIds = data - case "changelog": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changelog")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Changelog = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputBulkRequestSignaturesInput(ctx context.Context, obj any) (types.BulkRequestSignaturesInput, error) { - var it types.BulkRequestSignaturesInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentIds", "signatoryIds"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIds")) - data, err := ec.unmarshalNID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.DocumentIds = data - case "signatoryIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatoryIds")) - data, err := ec.unmarshalNID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.SignatoryIds = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCancelSignatureRequestInput(ctx context.Context, obj any) (types.CancelSignatureRequestInput, error) { - var it types.CancelSignatureRequestInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentVersionSignatureId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentVersionSignatureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionSignatureId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentVersionSignatureID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputComplianceExternalURLOrder(ctx context.Context, obj any) (types.OrderBy[coredata.ComplianceExternalURLOrderField], error) { - var it types.OrderBy[coredata.ComplianceExternalURLOrderField] - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNComplianceExternalURLOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceExternalURLOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputComplianceFrameworkOrder(ctx context.Context, obj any) (types.OrderBy[coredata.ComplianceFrameworkOrderField], error) { - var it types.OrderBy[coredata.ComplianceFrameworkOrderField] - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNComplianceFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputContinualImprovementFilter(ctx context.Context, obj any) (types.ContinualImprovementFilter, error) { - var it types.ContinualImprovementFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputContinualImprovementOrder(ctx context.Context, obj any) (types.ContinualImprovementOrderBy, error) { - var it types.ContinualImprovementOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNContinualImprovementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputControlFilter(ctx context.Context, obj any) (types.ControlFilter, error) { - var it types.ControlFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"query"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "query": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Query = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputControlOrder(ctx context.Context, obj any) (types.ControlOrderBy, error) { - var it types.ControlOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNControlOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐControlOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateApplicabilityStatementInput(ctx context.Context, obj any) (types.CreateApplicabilityStatementInput, error) { - var it types.CreateApplicabilityStatementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"stateOfApplicabilityId", "controlId", "applicability", "justification"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "stateOfApplicabilityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stateOfApplicabilityId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.StateOfApplicabilityID = data - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "applicability": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("applicability")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.Applicability = data - case "justification": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("justification")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Justification = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateAssetInput(ctx context.Context, obj any) (types.CreateAssetInput, error) { - var it types.CreateAssetInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "amount", "ownerId", "assetType", "dataTypesStored", "vendorIds"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "amount": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("amount")) - data, err := ec.unmarshalNInt2int(ctx, v) - if err != nil { - return it, err - } - it.Amount = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "assetType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetType")) - data, err := ec.unmarshalNAssetType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType(ctx, v) - if err != nil { - return it, err - } - it.AssetType = data - case "dataTypesStored": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataTypesStored")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.DataTypesStored = data - case "vendorIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorIds")) - data, err := ec.unmarshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.VendorIds = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateAuditInput(ctx context.Context, obj any) (types.CreateAuditInput, error) { - var it types.CreateAuditInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "frameworkId", "name", "validFrom", "validUntil", "state", "trustCenterVisibility"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "frameworkId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("frameworkId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.FrameworkID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "validFrom": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidFrom = data - case "validUntil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidUntil = data - case "state": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) - data, err := ec.unmarshalOAuditState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState(ctx, v) - if err != nil { - return it, err - } - it.State = data - case "trustCenterVisibility": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterVisibility")) - data, err := ec.unmarshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterVisibility = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateComplianceExternalURLInput(ctx context.Context, obj any) (types.CreateComplianceExternalURLInput, error) { - var it types.CreateComplianceExternalURLInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"trustCenterId", "name", "url"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "trustCenterId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "url": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.URL = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateComplianceFrameworkInput(ctx context.Context, obj any) (types.CreateComplianceFrameworkInput, error) { - var it types.CreateComplianceFrameworkInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"trustCenterId", "frameworkId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "trustCenterId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterID = data - case "frameworkId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("frameworkId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.FrameworkID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateContinualImprovementInput(ctx context.Context, obj any) (types.CreateContinualImprovementInput, error) { - var it types.CreateContinualImprovementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "referenceId", "description", "source", "ownerId", "targetDate", "status", "priority"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "referenceId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("referenceId")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.ReferenceID = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "source": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Source = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "targetDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("targetDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.TargetDate = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalNContinualImprovementStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "priority": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority")) - data, err := ec.unmarshalNContinualImprovementPriority2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority(ctx, v) - if err != nil { - return it, err - } - it.Priority = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateControlAuditMappingInput(ctx context.Context, obj any) (types.CreateControlAuditMappingInput, error) { - var it types.CreateControlAuditMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "auditId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "auditId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.AuditID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateControlDocumentMappingInput(ctx context.Context, obj any) (types.CreateControlDocumentMappingInput, error) { - var it types.CreateControlDocumentMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "documentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "documentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateControlInput(ctx context.Context, obj any) (types.CreateControlInput, error) { - var it types.CreateControlInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"frameworkId", "sectionTitle", "name", "description", "bestPractice"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "frameworkId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("frameworkId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.FrameworkID = data - case "sectionTitle": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sectionTitle")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.SectionTitle = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "bestPractice": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bestPractice")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BestPractice = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateControlMeasureMappingInput(ctx context.Context, obj any) (types.CreateControlMeasureMappingInput, error) { - var it types.CreateControlMeasureMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "measureId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "measureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MeasureID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateControlObligationMappingInput(ctx context.Context, obj any) (types.CreateControlObligationMappingInput, error) { - var it types.CreateControlObligationMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "obligationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "obligationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("obligationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ObligationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateControlSnapshotMappingInput(ctx context.Context, obj any) (types.CreateControlSnapshotMappingInput, error) { - var it types.CreateControlSnapshotMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateCustomDomainInput(ctx context.Context, obj any) (types.CreateCustomDomainInput, error) { - var it types.CreateCustomDomainInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "domain"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "domain": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domain")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Domain = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateDataProtectionImpactAssessmentInput(ctx context.Context, obj any) (types.CreateDataProtectionImpactAssessmentInput, error) { - var it types.CreateDataProtectionImpactAssessmentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"processingActivityId", "description", "necessityAndProportionality", "potentialRisk", "mitigations", "residualRisk"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "processingActivityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("processingActivityId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ProcessingActivityID = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "necessityAndProportionality": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("necessityAndProportionality")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.NecessityAndProportionality = data - case "potentialRisk": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("potentialRisk")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PotentialRisk = data - case "mitigations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigations")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Mitigations = data - case "residualRisk": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("residualRisk")) - data, err := ec.unmarshalODataProtectionImpactAssessmentResidualRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentResidualRisk(ctx, v) - if err != nil { - return it, err - } - it.ResidualRisk = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateDatumInput(ctx context.Context, obj any) (types.CreateDatumInput, error) { - var it types.CreateDatumInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "dataClassification", "ownerId", "vendorIds"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "dataClassification": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataClassification")) - data, err := ec.unmarshalNDataClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx, v) - if err != nil { - return it, err - } - it.DataClassification = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "vendorIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorIds")) - data, err := ec.unmarshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.VendorIds = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateDocumentInput(ctx context.Context, obj any) (types.CreateDocumentInput, error) { - var it types.CreateDocumentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "title", "content", "approverIds", "documentType", "classification", "trustCenterVisibility"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "title": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Title = data - case "content": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Content = data - case "approverIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("approverIds")) - data, err := ec.unmarshalNID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.ApproverIds = data - case "documentType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentType")) - data, err := ec.unmarshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx, v) - if err != nil { - return it, err - } - it.DocumentType = data - case "classification": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classification")) - data, err := ec.unmarshalNDocumentClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification(ctx, v) - if err != nil { - return it, err - } - it.Classification = data - case "trustCenterVisibility": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterVisibility")) - data, err := ec.unmarshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterVisibility = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateDraftDocumentVersionInput(ctx context.Context, obj any) (types.CreateDraftDocumentVersionInput, error) { - var it types.CreateDraftDocumentVersionInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentID"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentID")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateFrameworkInput(ctx context.Context, obj any) (types.CreateFrameworkInput, error) { - var it types.CreateFrameworkInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "description"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateMailingListSubscriberInput(ctx context.Context, obj any) (types.CreateMailingListSubscriberInput, error) { - var it types.CreateMailingListSubscriberInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"mailingListId", "fullName", "email"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "mailingListId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mailingListId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MailingListID = data - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.FullName = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.Email = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateMailingListUpdateInput(ctx context.Context, obj any) (types.CreateMailingListUpdateInput, error) { - var it types.CreateMailingListUpdateInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"mailingListId", "title", "body"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "mailingListId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mailingListId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MailingListID = data - case "title": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Title = data - case "body": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("body")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Body = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateMeasureInput(ctx context.Context, obj any) (types.CreateMeasureInput, error) { - var it types.CreateMeasureInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "description", "category"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "category": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Category = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateMeetingInput(ctx context.Context, obj any) (types.CreateMeetingInput, error) { - var it types.CreateMeetingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "date", "attendeeIds", "minutes"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "date": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("date")) - data, err := ec.unmarshalNDatetime2timeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.Date = data - case "attendeeIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attendeeIds")) - data, err := ec.unmarshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.AttendeeIds = data - case "minutes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("minutes")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Minutes = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateNonconformityInput(ctx context.Context, obj any) (types.CreateNonconformityInput, error) { - var it types.CreateNonconformityInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "referenceId", "description", "auditId", "dateIdentified", "rootCause", "correctiveAction", "ownerId", "dueDate", "status", "effectivenessCheck"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "referenceId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("referenceId")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.ReferenceID = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "auditId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.AuditID = data - case "dateIdentified": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateIdentified")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DateIdentified = data - case "rootCause": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rootCause")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.RootCause = data - case "correctiveAction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correctiveAction")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrectiveAction = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "dueDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DueDate = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalNNonconformityStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "effectivenessCheck": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("effectivenessCheck")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EffectivenessCheck = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateObligationInput(ctx context.Context, obj any) (types.CreateObligationInput, error) { - var it types.CreateObligationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "area", "source", "requirement", "actionsToBeImplemented", "regulator", "ownerId", "lastReviewDate", "dueDate", "status", "type"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "area": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("area")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Area = data - case "source": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Source = data - case "requirement": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requirement")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Requirement = data - case "actionsToBeImplemented": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionsToBeImplemented")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ActionsToBeImplemented = data - case "regulator": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("regulator")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Regulator = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "lastReviewDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReviewDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.LastReviewDate = data - case "dueDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DueDate = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalNObligationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "type": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalNObligationType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType(ctx, v) - if err != nil { - return it, err - } - it.Type = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateProcessingActivityInput(ctx context.Context, obj any) (types.CreateProcessingActivityInput, error) { - var it types.CreateProcessingActivityInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "purpose", "dataSubjectCategory", "personalDataCategory", "specialOrCriminalData", "consentEvidenceLink", "lawfulBasis", "recipients", "location", "internationalTransfers", "transferSafeguards", "retentionPeriod", "securityMeasures", "dataProtectionImpactAssessmentNeeded", "transferImpactAssessmentNeeded", "lastReviewDate", "nextReviewDate", "role", "dataProtectionOfficerId", "vendorIds"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "purpose": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purpose")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Purpose = data - case "dataSubjectCategory": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSubjectCategory")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DataSubjectCategory = data - case "personalDataCategory": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalDataCategory")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PersonalDataCategory = data - case "specialOrCriminalData": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("specialOrCriminalData")) - data, err := ec.unmarshalNProcessingActivitySpecialOrCriminalDatum2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum(ctx, v) - if err != nil { - return it, err - } - it.SpecialOrCriminalData = data - case "consentEvidenceLink": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consentEvidenceLink")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ConsentEvidenceLink = data - case "lawfulBasis": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lawfulBasis")) - data, err := ec.unmarshalNProcessingActivityLawfulBasis2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis(ctx, v) - if err != nil { - return it, err - } - it.LawfulBasis = data - case "recipients": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipients")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Recipients = data - case "location": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Location = data - case "internationalTransfers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internationalTransfers")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.InternationalTransfers = data - case "transferSafeguards": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transferSafeguards")) - data, err := ec.unmarshalOProcessingActivityTransferSafeguard2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferSafeguard(ctx, v) - if err != nil { - return it, err - } - it.TransferSafeguards = data - case "retentionPeriod": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retentionPeriod")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RetentionPeriod = data - case "securityMeasures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityMeasures")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SecurityMeasures = data - case "dataProtectionImpactAssessmentNeeded": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProtectionImpactAssessmentNeeded")) - data, err := ec.unmarshalNProcessingActivityDataProtectionImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment(ctx, v) - if err != nil { - return it, err - } - it.DataProtectionImpactAssessmentNeeded = data - case "transferImpactAssessmentNeeded": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transferImpactAssessmentNeeded")) - data, err := ec.unmarshalNProcessingActivityTransferImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment(ctx, v) - if err != nil { - return it, err - } - it.TransferImpactAssessmentNeeded = data - case "lastReviewDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReviewDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.LastReviewDate = data - case "nextReviewDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nextReviewDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.NextReviewDate = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalNProcessingActivityRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole(ctx, v) - if err != nil { - return it, err - } - it.Role = data - case "dataProtectionOfficerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProtectionOfficerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DataProtectionOfficerID = data - case "vendorIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorIds")) - data, err := ec.unmarshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.VendorIds = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateRightsRequestInput(ctx context.Context, obj any) (types.CreateRightsRequestInput, error) { - var it types.CreateRightsRequestInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "requestType", "requestState", "dataSubject", "contact", "details", "deadline", "actionTaken"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "requestType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestType")) - data, err := ec.unmarshalNRightsRequestType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType(ctx, v) - if err != nil { - return it, err - } - it.RequestType = data - case "requestState": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestState")) - data, err := ec.unmarshalNRightsRequestState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState(ctx, v) - if err != nil { - return it, err - } - it.RequestState = data - case "dataSubject": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSubject")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DataSubject = data - case "contact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contact")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Contact = data - case "details": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Details = data - case "deadline": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deadline")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.Deadline = data - case "actionTaken": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionTaken")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ActionTaken = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateRiskDocumentMappingInput(ctx context.Context, obj any) (types.CreateRiskDocumentMappingInput, error) { - var it types.CreateRiskDocumentMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"riskId", "documentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "riskId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.RiskID = data - case "documentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateRiskInput(ctx context.Context, obj any) (types.CreateRiskInput, error) { - var it types.CreateRiskInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "description", "category", "ownerId", "treatment", "inherentLikelihood", "inherentImpact", "residualLikelihood", "residualImpact", "note"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "category": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Category = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "treatment": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("treatment")) - data, err := ec.unmarshalNRiskTreatment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx, v) - if err != nil { - return it, err - } - it.Treatment = data - case "inherentLikelihood": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inherentLikelihood")) - data, err := ec.unmarshalNInt2int(ctx, v) - if err != nil { - return it, err - } - it.InherentLikelihood = data - case "inherentImpact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inherentImpact")) - data, err := ec.unmarshalNInt2int(ctx, v) - if err != nil { - return it, err - } - it.InherentImpact = data - case "residualLikelihood": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("residualLikelihood")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.ResidualLikelihood = data - case "residualImpact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("residualImpact")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.ResidualImpact = data - case "note": - 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) unmarshalInputCreateRiskMeasureMappingInput(ctx context.Context, obj any) (types.CreateRiskMeasureMappingInput, error) { - var it types.CreateRiskMeasureMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"riskId", "measureId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "riskId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.RiskID = data - case "measureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MeasureID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateRiskObligationMappingInput(ctx context.Context, obj any) (types.CreateRiskObligationMappingInput, error) { - var it types.CreateRiskObligationMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"riskId", "obligationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "riskId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.RiskID = data - case "obligationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("obligationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ObligationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateSnapshotInput(ctx context.Context, obj any) (types.CreateSnapshotInput, error) { - var it types.CreateSnapshotInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "description", "type"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "type": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalNSnapshotsType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotsType(ctx, v) - if err != nil { - return it, err - } - it.Type = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateStateOfApplicabilityInput(ctx context.Context, obj any) (types.CreateStateOfApplicabilityInput, error) { - var it types.CreateStateOfApplicabilityInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "ownerId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateTaskInput(ctx context.Context, obj any) (types.CreateTaskInput, error) { - var it types.CreateTaskInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "measureId", "name", "description", "timeEstimate", "assignedToId", "deadline"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "measureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MeasureID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "timeEstimate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timeEstimate")) - data, err := ec.unmarshalODuration2ᚖtimeᚐDuration(ctx, v) - if err != nil { - return it, err - } - it.TimeEstimate = data - case "assignedToId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assignedToId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.AssignedToID = data - case "deadline": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deadline")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.Deadline = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateTransferImpactAssessmentInput(ctx context.Context, obj any) (types.CreateTransferImpactAssessmentInput, error) { - var it types.CreateTransferImpactAssessmentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"processingActivityId", "dataSubjects", "legalMechanism", "transfer", "localLawRisk", "supplementaryMeasures"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "processingActivityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("processingActivityId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ProcessingActivityID = data - case "dataSubjects": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSubjects")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DataSubjects = data - case "legalMechanism": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("legalMechanism")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.LegalMechanism = data - case "transfer": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transfer")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Transfer = data - case "localLawRisk": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("localLawRisk")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.LocalLawRisk = data - case "supplementaryMeasures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supplementaryMeasures")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SupplementaryMeasures = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateTrustCenterFileInput(ctx context.Context, obj any) (types.CreateTrustCenterFileInput, error) { - var it types.CreateTrustCenterFileInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "category", "file", "trustCenterVisibility"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "category": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Category = data - case "file": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.File = data - case "trustCenterVisibility": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterVisibility")) - data, err := ec.unmarshalNTrustCenterVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterVisibility = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateTrustCenterReferenceInput(ctx context.Context, obj any) (types.CreateTrustCenterReferenceInput, error) { - var it types.CreateTrustCenterReferenceInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"trustCenterId", "name", "description", "websiteUrl", "logoFile"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "trustCenterId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "websiteUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.WebsiteURL = data - case "logoFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoFile")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.LogoFile = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateVendorContactInput(ctx context.Context, obj any) (types.CreateVendorContactInput, error) { - var it types.CreateVendorContactInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId", "fullName", "email", "phone", "role"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.FullName = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalOEmailAddr2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.Email = data - case "phone": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phone")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Phone = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Role = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateVendorInput(ctx context.Context, obj any) (types.CreateVendorInput, error) { - var it types.CreateVendorInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "name", "description", "headquarterAddress", "legalName", "websiteUrl", "privacyPolicyUrl", "category", "serviceLevelAgreementUrl", "dataProcessingAgreementUrl", "businessAssociateAgreementUrl", "subprocessorsListUrl", "certifications", "countries", "securityPageUrl", "trustPageUrl", "statusPageUrl", "termsOfServiceUrl", "businessOwnerId", "securityOwnerId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "headquarterAddress": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("headquarterAddress")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.HeadquarterAddress = data - case "legalName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("legalName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.LegalName = data - case "websiteUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.WebsiteURL = data - case "privacyPolicyUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privacyPolicyUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PrivacyPolicyURL = data - case "category": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) - data, err := ec.unmarshalOVendorCategory2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx, v) - if err != nil { - return it, err - } - it.Category = data - case "serviceLevelAgreementUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceLevelAgreementUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ServiceLevelAgreementURL = data - case "dataProcessingAgreementUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProcessingAgreementUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DataProcessingAgreementURL = data - case "businessAssociateAgreementUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessAssociateAgreementUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BusinessAssociateAgreementURL = data - case "subprocessorsListUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subprocessorsListUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SubprocessorsListURL = data - case "certifications": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("certifications")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.Certifications = data - case "countries": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("countries")) - data, err := ec.unmarshalOCountryCode2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCodeᚄ(ctx, v) - if err != nil { - return it, err - } - it.Countries = data - case "securityPageUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityPageUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SecurityPageURL = data - case "trustPageUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustPageUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TrustPageURL = data - case "statusPageUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusPageUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.StatusPageURL = data - case "termsOfServiceUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("termsOfServiceUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TermsOfServiceURL = data - case "businessOwnerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessOwnerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.BusinessOwnerID = data - case "securityOwnerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityOwnerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SecurityOwnerID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateVendorRiskAssessmentInput(ctx context.Context, obj any) (types.CreateVendorRiskAssessmentInput, error) { - var it types.CreateVendorRiskAssessmentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId", "expiresAt", "dataSensitivity", "businessImpact", "notes"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) - data, err := ec.unmarshalNDatetime2timeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ExpiresAt = data - case "dataSensitivity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSensitivity")) - data, err := ec.unmarshalNDataSensitivity2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataSensitivity(ctx, v) - if err != nil { - return it, err - } - it.DataSensitivity = data - case "businessImpact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessImpact")) - data, err := ec.unmarshalNBusinessImpact2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐBusinessImpact(ctx, v) - if err != nil { - return it, err - } - it.BusinessImpact = data - case "notes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notes")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Notes = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateVendorServiceInput(ctx context.Context, obj any) (types.CreateVendorServiceInput, error) { - var it types.CreateVendorServiceInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId", "name", "description", "url", "type"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = data - case "url": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.URL = data - case "type": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Type = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateWebhookSubscriptionInput(ctx context.Context, obj any) (types.CreateWebhookSubscriptionInput, error) { - var it types.CreateWebhookSubscriptionInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "endpointUrl", "selectedEvents"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "endpointUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("endpointUrl")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.EndpointURL = data - case "selectedEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("selectedEvents")) - data, err := ec.unmarshalNWebhookEventType2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventTypeᚄ(ctx, v) - if err != nil { - return it, err - } - it.SelectedEvents = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDataProtectionImpactAssessmentFilter(ctx context.Context, obj any) (types.DataProtectionImpactAssessmentFilter, error) { - var it types.DataProtectionImpactAssessmentFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDataProtectionImpactAssessmentOrder(ctx context.Context, obj any) (types.DataProtectionImpactAssessmentOrderBy, error) { - var it types.DataProtectionImpactAssessmentOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNDataProtectionImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDatumFilter(ctx context.Context, obj any) (types.DatumFilter, error) { - var it types.DatumFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDatumOrder(ctx context.Context, obj any) (types.DatumOrderBy, error) { - var it types.DatumOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNDatumOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDatumOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteApplicabilityStatementInput(ctx context.Context, obj any) (types.DeleteApplicabilityStatementInput, error) { - var it types.DeleteApplicabilityStatementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"applicabilityStatementId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "applicabilityStatementId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("applicabilityStatementId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ApplicabilityStatementID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteAssetInput(ctx context.Context, obj any) (types.DeleteAssetInput, error) { - var it types.DeleteAssetInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"assetId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "assetId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.AssetID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteAuditInput(ctx context.Context, obj any) (types.DeleteAuditInput, error) { - var it types.DeleteAuditInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"auditId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "auditId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.AuditID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteAuditReportInput(ctx context.Context, obj any) (types.DeleteAuditReportInput, error) { - var it types.DeleteAuditReportInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"auditId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "auditId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.AuditID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteComplianceExternalURLInput(ctx context.Context, obj any) (types.DeleteComplianceExternalURLInput, error) { - var it types.DeleteComplianceExternalURLInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteComplianceFrameworkInput(ctx context.Context, obj any) (types.DeleteComplianceFrameworkInput, error) { - var it types.DeleteComplianceFrameworkInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteContinualImprovementInput(ctx context.Context, obj any) (types.DeleteContinualImprovementInput, error) { - var it types.DeleteContinualImprovementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"continualImprovementId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "continualImprovementId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continualImprovementId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ContinualImprovementID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteControlAuditMappingInput(ctx context.Context, obj any) (types.DeleteControlAuditMappingInput, error) { - var it types.DeleteControlAuditMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "auditId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "auditId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.AuditID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteControlDocumentMappingInput(ctx context.Context, obj any) (types.DeleteControlDocumentMappingInput, error) { - var it types.DeleteControlDocumentMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "documentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "documentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteControlInput(ctx context.Context, obj any) (types.DeleteControlInput, error) { - var it types.DeleteControlInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteControlMeasureMappingInput(ctx context.Context, obj any) (types.DeleteControlMeasureMappingInput, error) { - var it types.DeleteControlMeasureMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "measureId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "measureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MeasureID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteControlObligationMappingInput(ctx context.Context, obj any) (types.DeleteControlObligationMappingInput, error) { - var it types.DeleteControlObligationMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "obligationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "obligationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("obligationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ObligationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteControlSnapshotMappingInput(ctx context.Context, obj any) (types.DeleteControlSnapshotMappingInput, error) { - var it types.DeleteControlSnapshotMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"controlId", "snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "controlId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ControlID = data - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteCustomDomainInput(ctx context.Context, obj any) (types.DeleteCustomDomainInput, error) { - var it types.DeleteCustomDomainInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteDataProtectionImpactAssessmentInput(ctx context.Context, obj any) (types.DeleteDataProtectionImpactAssessmentInput, error) { - var it types.DeleteDataProtectionImpactAssessmentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"dataProtectionImpactAssessmentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "dataProtectionImpactAssessmentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProtectionImpactAssessmentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DataProtectionImpactAssessmentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteDatumInput(ctx context.Context, obj any) (types.DeleteDatumInput, error) { - var it types.DeleteDatumInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"datumId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "datumId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("datumId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DatumID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteDocumentInput(ctx context.Context, obj any) (types.DeleteDocumentInput, error) { - var it types.DeleteDocumentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteDraftDocumentVersionInput(ctx context.Context, obj any) (types.DeleteDraftDocumentVersionInput, error) { - var it types.DeleteDraftDocumentVersionInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentVersionId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentVersionId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentVersionID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteEvidenceInput(ctx context.Context, obj any) (types.DeleteEvidenceInput, error) { - var it types.DeleteEvidenceInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"evidenceId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "evidenceId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("evidenceId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.EvidenceID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteFrameworkInput(ctx context.Context, obj any) (types.DeleteFrameworkInput, error) { - var it types.DeleteFrameworkInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"frameworkId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "frameworkId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("frameworkId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.FrameworkID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteMailingListSubscriberInput(ctx context.Context, obj any) (types.DeleteMailingListSubscriberInput, error) { - var it types.DeleteMailingListSubscriberInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteMailingListUpdateInput(ctx context.Context, obj any) (types.DeleteMailingListUpdateInput, error) { - var it types.DeleteMailingListUpdateInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteMeasureInput(ctx context.Context, obj any) (types.DeleteMeasureInput, error) { - var it types.DeleteMeasureInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"measureId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "measureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MeasureID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteMeetingInput(ctx context.Context, obj any) (types.DeleteMeetingInput, error) { - var it types.DeleteMeetingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"meetingId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "meetingId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("meetingId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MeetingID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteNonconformityInput(ctx context.Context, obj any) (types.DeleteNonconformityInput, error) { - var it types.DeleteNonconformityInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"nonconformityId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "nonconformityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonconformityId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.NonconformityID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteObligationInput(ctx context.Context, obj any) (types.DeleteObligationInput, error) { - var it types.DeleteObligationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"obligationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "obligationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("obligationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ObligationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteProcessingActivityInput(ctx context.Context, obj any) (types.DeleteProcessingActivityInput, error) { - var it types.DeleteProcessingActivityInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"processingActivityId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "processingActivityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("processingActivityId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ProcessingActivityID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteRightsRequestInput(ctx context.Context, obj any) (types.DeleteRightsRequestInput, error) { - var it types.DeleteRightsRequestInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"rightsRequestId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "rightsRequestId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rightsRequestId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.RightsRequestID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteRiskDocumentMappingInput(ctx context.Context, obj any) (types.DeleteRiskDocumentMappingInput, error) { - var it types.DeleteRiskDocumentMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"riskId", "documentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "riskId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.RiskID = data - case "documentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteRiskInput(ctx context.Context, obj any) (types.DeleteRiskInput, error) { - var it types.DeleteRiskInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"riskId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "riskId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.RiskID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteRiskMeasureMappingInput(ctx context.Context, obj any) (types.DeleteRiskMeasureMappingInput, error) { - var it types.DeleteRiskMeasureMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"riskId", "measureId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "riskId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.RiskID = data - case "measureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MeasureID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteRiskObligationMappingInput(ctx context.Context, obj any) (types.DeleteRiskObligationMappingInput, error) { - var it types.DeleteRiskObligationMappingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"riskId", "obligationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "riskId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.RiskID = data - case "obligationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("obligationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ObligationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteSnapshotInput(ctx context.Context, obj any) (types.DeleteSnapshotInput, error) { - var it types.DeleteSnapshotInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteStateOfApplicabilityInput(ctx context.Context, obj any) (types.DeleteStateOfApplicabilityInput, error) { - var it types.DeleteStateOfApplicabilityInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"stateOfApplicabilityId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "stateOfApplicabilityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stateOfApplicabilityId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.StateOfApplicabilityID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteTaskInput(ctx context.Context, obj any) (types.DeleteTaskInput, error) { - var it types.DeleteTaskInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"taskId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "taskId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TaskID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteTransferImpactAssessmentInput(ctx context.Context, obj any) (types.DeleteTransferImpactAssessmentInput, error) { - var it types.DeleteTransferImpactAssessmentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"transferImpactAssessmentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "transferImpactAssessmentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transferImpactAssessmentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TransferImpactAssessmentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteTrustCenterAccessInput(ctx context.Context, obj any) (types.DeleteTrustCenterAccessInput, error) { - var it types.DeleteTrustCenterAccessInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteTrustCenterFileInput(ctx context.Context, obj any) (types.DeleteTrustCenterFileInput, error) { - var it types.DeleteTrustCenterFileInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteTrustCenterNDAInput(ctx context.Context, obj any) (types.DeleteTrustCenterNDAInput, error) { - var it types.DeleteTrustCenterNDAInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"trustCenterId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "trustCenterId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteTrustCenterReferenceInput(ctx context.Context, obj any) (types.DeleteTrustCenterReferenceInput, error) { - var it types.DeleteTrustCenterReferenceInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteVendorBusinessAssociateAgreementInput(ctx context.Context, obj any) (types.DeleteVendorBusinessAssociateAgreementInput, error) { - var it types.DeleteVendorBusinessAssociateAgreementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteVendorComplianceReportInput(ctx context.Context, obj any) (types.DeleteVendorComplianceReportInput, error) { - var it types.DeleteVendorComplianceReportInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"reportId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "reportId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reportId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ReportID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteVendorContactInput(ctx context.Context, obj any) (types.DeleteVendorContactInput, error) { - var it types.DeleteVendorContactInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorContactId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorContactId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorContactId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorContactID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteVendorDataPrivacyAgreementInput(ctx context.Context, obj any) (types.DeleteVendorDataPrivacyAgreementInput, error) { - var it types.DeleteVendorDataPrivacyAgreementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteVendorInput(ctx context.Context, obj any) (types.DeleteVendorInput, error) { - var it types.DeleteVendorInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteVendorServiceInput(ctx context.Context, obj any) (types.DeleteVendorServiceInput, error) { - var it types.DeleteVendorServiceInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorServiceId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorServiceId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorServiceId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorServiceID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDeleteWebhookSubscriptionInput(ctx context.Context, obj any) (types.DeleteWebhookSubscriptionInput, error) { - var it types.DeleteWebhookSubscriptionInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"webhookSubscriptionId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "webhookSubscriptionId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookSubscriptionId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.WebhookSubscriptionID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDocumentFilter(ctx context.Context, obj any) (types.DocumentFilter, error) { - var it types.DocumentFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"query"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "query": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Query = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDocumentOrder(ctx context.Context, obj any) (types.DocumentOrderBy, error) { - var it types.DocumentOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNDocumentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDocumentVersionFilter(ctx context.Context, obj any) (types.DocumentVersionFilter, error) { - var it types.DocumentVersionFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"status"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalODocumentStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDocumentVersionOrder(ctx context.Context, obj any) (types.DocumentVersionOrderBy, error) { - var it types.DocumentVersionOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNDocumentVersionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDocumentVersionSignatureFilter(ctx context.Context, obj any) (types.DocumentVersionSignatureFilter, error) { - var it types.DocumentVersionSignatureFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"states", "activeContract"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "states": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("states")) - data, err := ec.unmarshalODocumentVersionSignatureState2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureStateᚄ(ctx, v) - if err != nil { - return it, err - } - it.States = data - case "activeContract": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activeContract")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.ActiveContract = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputDocumentVersionSignatureOrder(ctx context.Context, obj any) (types.DocumentVersionSignatureOrder, error) { - var it types.DocumentVersionSignatureOrder - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"field", "direction"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNDocumentVersionSignatureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputEvidenceOrder(ctx context.Context, obj any) (types.EvidenceOrderBy, error) { - var it types.EvidenceOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNEvidenceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputExportDataProtectionImpactAssessmentsPDFInput(ctx context.Context, obj any) (types.ExportDataProtectionImpactAssessmentsPDFInput, error) { - var it types.ExportDataProtectionImpactAssessmentsPDFInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "filter"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "filter": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - data, err := ec.unmarshalODataProtectionImpactAssessmentFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentFilter(ctx, v) - if err != nil { - return it, err - } - it.Filter = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputExportDocumentVersionPDFInput(ctx context.Context, obj any) (types.ExportDocumentVersionPDFInput, error) { - var it types.ExportDocumentVersionPDFInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentVersionId", "withWatermark", "watermarkEmail", "withSignatures"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentVersionId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentVersionID = data - case "withWatermark": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("withWatermark")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.WithWatermark = data - case "watermarkEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("watermarkEmail")) - data, err := ec.unmarshalOEmailAddr2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.WatermarkEmail = data - case "withSignatures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("withSignatures")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.WithSignatures = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputExportFrameworkInput(ctx context.Context, obj any) (types.ExportFrameworkInput, error) { - var it types.ExportFrameworkInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"frameworkId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "frameworkId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("frameworkId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.FrameworkID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputExportProcessingActivitiesPDFInput(ctx context.Context, obj any) (types.ExportProcessingActivitiesPDFInput, error) { - var it types.ExportProcessingActivitiesPDFInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "filter"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "filter": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - data, err := ec.unmarshalOProcessingActivityFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityFilter(ctx, v) - if err != nil { - return it, err - } - it.Filter = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputExportSignableDocumentVersionPDFInput(ctx context.Context, obj any) (types.ExportSignableDocumentVersionPDFInput, error) { - var it types.ExportSignableDocumentVersionPDFInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentVersionId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentVersionId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentVersionID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputExportStateOfApplicabilityPDFInput(ctx context.Context, obj any) (types.ExportStateOfApplicabilityPDFInput, error) { - var it types.ExportStateOfApplicabilityPDFInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"stateOfApplicabilityId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "stateOfApplicabilityId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("stateOfApplicabilityId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.StateOfApplicabilityID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputExportTransferImpactAssessmentsPDFInput(ctx context.Context, obj any) (types.ExportTransferImpactAssessmentsPDFInput, error) { - var it types.ExportTransferImpactAssessmentsPDFInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "filter"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "filter": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filter")) - data, err := ec.unmarshalOTransferImpactAssessmentFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentFilter(ctx, v) - if err != nil { - return it, err - } - it.Filter = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputFrameworkOrder(ctx context.Context, obj any) (types.FrameworkOrderBy, error) { - var it types.FrameworkOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputGenerateDocumentChangelogInput(ctx context.Context, obj any) (types.GenerateDocumentChangelogInput, error) { - var it types.GenerateDocumentChangelogInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputGetTrustCenterFileInput(ctx context.Context, obj any) (types.GetTrustCenterFileInput, error) { - var it types.GetTrustCenterFileInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputImportFrameworkInput(ctx context.Context, obj any) (types.ImportFrameworkInput, error) { - var it types.ImportFrameworkInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "file"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "file": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.File = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputImportMeasureInput(ctx context.Context, obj any) (types.ImportMeasureInput, error) { - var it types.ImportMeasureInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "file"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "file": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.File = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputMeasureFilter(ctx context.Context, obj any) (types.MeasureFilter, error) { - var it types.MeasureFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"query", "state"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "query": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Query = data - case "state": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) - data, err := ec.unmarshalOMeasureState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx, v) - if err != nil { - return it, err - } - it.State = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputMeasureOrder(ctx context.Context, obj any) (types.MeasureOrderBy, error) { - var it types.MeasureOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNMeasureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputMeetingOrder(ctx context.Context, obj any) (types.MeetingOrderBy, error) { - var it types.MeetingOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNMeetingOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeetingOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputNonconformityFilter(ctx context.Context, obj any) (types.NonconformityFilter, error) { - var it types.NonconformityFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputNonconformityOrder(ctx context.Context, obj any) (types.NonconformityOrderBy, error) { - var it types.NonconformityOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNNonconformityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputObligationFilter(ctx context.Context, obj any) (types.ObligationFilter, error) { - var it types.ObligationFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputObligationOrder(ctx context.Context, obj any) (types.ObligationOrderBy, error) { - var it types.ObligationOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNObligationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputProcessingActivityFilter(ctx context.Context, obj any) (types.ProcessingActivityFilter, error) { - var it types.ProcessingActivityFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputProcessingActivityOrder(ctx context.Context, obj any) (types.ProcessingActivityOrderBy, error) { - var it types.ProcessingActivityOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNProcessingActivityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputProfileFilter(ctx context.Context, obj any) (types.ProfileFilter, error) { - var it types.ProfileFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"excludeContractEnded"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "excludeContractEnded": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("excludeContractEnded")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.ExcludeContractEnded = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputProfileOrder(ctx context.Context, obj any) (types.ProfileOrderBy, error) { - var it types.ProfileOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputPublishDocumentVersionInput(ctx context.Context, obj any) (types.PublishDocumentVersionInput, error) { - var it types.PublishDocumentVersionInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentId", "changelog"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentID = data - case "changelog": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("changelog")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Changelog = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRequestSignatureInput(ctx context.Context, obj any) (types.RequestSignatureInput, error) { - var it types.RequestSignatureInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentVersionId", "signatoryId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentVersionId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentVersionID = data - case "signatoryId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatoryId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SignatoryID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRightsRequestOrder(ctx context.Context, obj any) (types.RightsRequestOrderBy, error) { - var it types.RightsRequestOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNRightsRequestOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRiskFilter(ctx context.Context, obj any) (types.RiskFilter, error) { - var it types.RiskFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"query", "snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "query": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Query = data - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRiskOrder(ctx context.Context, obj any) (types.RiskOrderBy, error) { - var it types.RiskOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNRiskOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputSendMailingListUpdateInput(ctx context.Context, obj any) (types.SendMailingListUpdateInput, error) { - var it types.SendMailingListUpdateInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputSendSigningNotificationsInput(ctx context.Context, obj any) (types.SendSigningNotificationsInput, error) { - var it types.SendSigningNotificationsInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputSignDocumentInput(ctx context.Context, obj any) (types.SignDocumentInput, error) { - var it types.SignDocumentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentVersionId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentVersionId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentVersionID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputSnapshotOrder(ctx context.Context, obj any) (types.SnapshotOrderBy, error) { - var it types.SnapshotOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNSnapshotOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputStateOfApplicabilityFilter(ctx context.Context, obj any) (types.StateOfApplicabilityFilter, error) { - var it types.StateOfApplicabilityFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputStateOfApplicabilityOrder(ctx context.Context, obj any) (types.StateOfApplicabilityOrderBy, error) { - var it types.StateOfApplicabilityOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNStateOfApplicabilityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐStateOfApplicabilityOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputTaskOrder(ctx context.Context, obj any) (types.TaskOrderBy, error) { - var it types.TaskOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTaskOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputTransferImpactAssessmentFilter(ctx context.Context, obj any) (types.TransferImpactAssessmentFilter, error) { - var it types.TransferImpactAssessmentFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputTransferImpactAssessmentOrder(ctx context.Context, obj any) (types.TransferImpactAssessmentOrderBy, error) { - var it types.TransferImpactAssessmentOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTransferImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTransferImpactAssessmentOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputTrustCenterAccessOrder(ctx context.Context, obj any) (types.OrderBy[coredata.TrustCenterAccessOrderField], error) { - var it types.OrderBy[coredata.TrustCenterAccessOrderField] - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTrustCenterAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputTrustCenterDocumentAccessInput(ctx context.Context, obj any) (types.TrustCenterDocumentAccessInput, error) { - var it types.TrustCenterDocumentAccessInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "status"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalNTrustCenterDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputTrustCenterDocumentAccessOrder(ctx context.Context, obj any) (types.OrderBy[coredata.TrustCenterDocumentAccessOrderField], error) { - var it types.OrderBy[coredata.TrustCenterDocumentAccessOrderField] - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTrustCenterDocumentAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputTrustCenterFileOrder(ctx context.Context, obj any) (types.OrderBy[coredata.TrustCenterFileOrderField], error) { - var it types.OrderBy[coredata.TrustCenterFileOrderField] - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTrustCenterFileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterFileOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputTrustCenterReferenceOrder(ctx context.Context, obj any) (types.OrderBy[coredata.TrustCenterReferenceOrderField], error) { - var it types.OrderBy[coredata.TrustCenterReferenceOrderField] - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTrustCenterReferenceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterReferenceOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateApplicabilityStatementInput(ctx context.Context, obj any) (types.UpdateApplicabilityStatementInput, error) { - var it types.UpdateApplicabilityStatementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"applicabilityStatementId", "applicability", "justification"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "applicabilityStatementId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("applicabilityStatementId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ApplicabilityStatementID = data - case "applicability": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("applicability")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.Applicability = data - case "justification": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("justification")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Justification = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateAssetInput(ctx context.Context, obj any) (types.UpdateAssetInput, error) { - var it types.UpdateAssetInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "amount", "ownerId", "assetType", "dataTypesStored", "vendorIds"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "amount": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("amount")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.Amount = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "assetType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assetType")) - data, err := ec.unmarshalOAssetType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType(ctx, v) - if err != nil { - return it, err - } - it.AssetType = data - case "dataTypesStored": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataTypesStored")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DataTypesStored = data - case "vendorIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorIds")) - data, err := ec.unmarshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.VendorIds = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateAuditInput(ctx context.Context, obj any) (types.UpdateAuditInput, error) { - var it types.UpdateAuditInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "validFrom", "validUntil", "state", "trustCenterVisibility"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = graphql.OmittableOf(data) - case "validFrom": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidFrom = data - case "validUntil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidUntil = data - case "state": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) - data, err := ec.unmarshalOAuditState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState(ctx, v) - if err != nil { - return it, err - } - it.State = data - case "trustCenterVisibility": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterVisibility")) - data, err := ec.unmarshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterVisibility = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateComplianceExternalURLInput(ctx context.Context, obj any) (types.UpdateComplianceExternalURLInput, error) { - var it types.UpdateComplianceExternalURLInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "url", "rank"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "url": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.URL = data - case "rank": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rank")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.Rank = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateComplianceFrameworkInput(ctx context.Context, obj any) (types.UpdateComplianceFrameworkInput, error) { - var it types.UpdateComplianceFrameworkInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "rank"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "rank": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rank")) - data, err := ec.unmarshalNInt2int(ctx, v) - if err != nil { - return it, err - } - it.Rank = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateContinualImprovementInput(ctx context.Context, obj any) (types.UpdateContinualImprovementInput, error) { - var it types.UpdateContinualImprovementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "referenceId", "description", "source", "ownerId", "targetDate", "status", "priority"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "referenceId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("referenceId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ReferenceID = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "source": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Source = graphql.OmittableOf(data) - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "targetDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("targetDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.TargetDate = graphql.OmittableOf(data) - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOContinualImprovementStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "priority": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority")) - data, err := ec.unmarshalOContinualImprovementPriority2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority(ctx, v) - if err != nil { - return it, err - } - it.Priority = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateControlInput(ctx context.Context, obj any) (types.UpdateControlInput, error) { - var it types.UpdateControlInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "sectionTitle", "name", "description", "bestPractice"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "sectionTitle": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sectionTitle")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SectionTitle = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "bestPractice": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bestPractice")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.BestPractice = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateDataProtectionImpactAssessmentInput(ctx context.Context, obj any) (types.UpdateDataProtectionImpactAssessmentInput, error) { - var it types.UpdateDataProtectionImpactAssessmentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "description", "necessityAndProportionality", "potentialRisk", "mitigations", "residualRisk"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "necessityAndProportionality": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("necessityAndProportionality")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.NecessityAndProportionality = graphql.OmittableOf(data) - case "potentialRisk": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("potentialRisk")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PotentialRisk = graphql.OmittableOf(data) - case "mitigations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigations")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Mitigations = graphql.OmittableOf(data) - case "residualRisk": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("residualRisk")) - data, err := ec.unmarshalODataProtectionImpactAssessmentResidualRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentResidualRisk(ctx, v) - if err != nil { - return it, err - } - it.ResidualRisk = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateDatumInput(ctx context.Context, obj any) (types.UpdateDatumInput, error) { - var it types.UpdateDatumInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "dataClassification", "ownerId", "vendorIds"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "dataClassification": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataClassification")) - data, err := ec.unmarshalODataClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx, v) - if err != nil { - return it, err - } - it.DataClassification = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "vendorIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorIds")) - data, err := ec.unmarshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.VendorIds = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateDocumentInput(ctx context.Context, obj any) (types.UpdateDocumentInput, error) { - var it types.UpdateDocumentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "title", "content", "approverIds", "documentType", "classification", "trustCenterVisibility"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "title": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Title = data - case "content": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Content = data - case "approverIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("approverIds")) - data, err := ec.unmarshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.ApproverIds = data - case "documentType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentType")) - data, err := ec.unmarshalODocumentType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx, v) - if err != nil { - return it, err - } - it.DocumentType = data - case "classification": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classification")) - data, err := ec.unmarshalODocumentClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification(ctx, v) - if err != nil { - return it, err - } - it.Classification = data - case "trustCenterVisibility": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterVisibility")) - data, err := ec.unmarshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterVisibility = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateDocumentVersionInput(ctx context.Context, obj any) (types.UpdateDocumentVersionInput, error) { - var it types.UpdateDocumentVersionInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentVersionId", "content"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentVersionId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentVersionId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentVersionID = data - case "content": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("content")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Content = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateFrameworkInput(ctx context.Context, obj any) (types.UpdateFrameworkInput, error) { - var it types.UpdateFrameworkInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "description"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateMailingListInput(ctx context.Context, obj any) (types.UpdateMailingListInput, error) { - var it types.UpdateMailingListInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "replyTo"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "replyTo": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("replyTo")) - data, err := ec.unmarshalOEmailAddr2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.ReplyTo = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateMailingListUpdateInput(ctx context.Context, obj any) (types.UpdateMailingListUpdateInput, error) { - var it types.UpdateMailingListUpdateInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "title", "body"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "title": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Title = data - case "body": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("body")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Body = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateMeasureInput(ctx context.Context, obj any) (types.UpdateMeasureInput, error) { - var it types.UpdateMeasureInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "description", "category", "state"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "category": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Category = data - case "state": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) - data, err := ec.unmarshalOMeasureState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx, v) - if err != nil { - return it, err - } - it.State = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateMeetingInput(ctx context.Context, obj any) (types.UpdateMeetingInput, error) { - var it types.UpdateMeetingInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"meetingId", "name", "date", "attendeeIds", "minutes"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "meetingId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("meetingId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MeetingID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "date": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("date")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.Date = data - case "attendeeIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attendeeIds")) - data, err := ec.unmarshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.AttendeeIds = data - case "minutes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("minutes")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Minutes = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateNonconformityInput(ctx context.Context, obj any) (types.UpdateNonconformityInput, error) { - var it types.UpdateNonconformityInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "referenceId", "description", "dateIdentified", "rootCause", "correctiveAction", "ownerId", "auditId", "dueDate", "status", "effectivenessCheck"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "referenceId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("referenceId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ReferenceID = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "dateIdentified": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dateIdentified")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DateIdentified = graphql.OmittableOf(data) - case "rootCause": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rootCause")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RootCause = data - case "correctiveAction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correctiveAction")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrectiveAction = graphql.OmittableOf(data) - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "auditId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.AuditID = graphql.OmittableOf(data) - case "dueDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DueDate = graphql.OmittableOf(data) - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalONonconformityStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "effectivenessCheck": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("effectivenessCheck")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EffectivenessCheck = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateObligationInput(ctx context.Context, obj any) (types.UpdateObligationInput, error) { - var it types.UpdateObligationInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "area", "source", "requirement", "actionsToBeImplemented", "regulator", "ownerId", "lastReviewDate", "dueDate", "status", "type"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "area": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("area")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Area = graphql.OmittableOf(data) - case "source": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Source = graphql.OmittableOf(data) - case "requirement": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requirement")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Requirement = graphql.OmittableOf(data) - case "actionsToBeImplemented": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionsToBeImplemented")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ActionsToBeImplemented = graphql.OmittableOf(data) - case "regulator": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("regulator")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Regulator = graphql.OmittableOf(data) - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "lastReviewDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReviewDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.LastReviewDate = graphql.OmittableOf(data) - case "dueDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DueDate = graphql.OmittableOf(data) - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOObligationStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "type": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalOObligationType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType(ctx, v) - if err != nil { - return it, err - } - it.Type = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateOrganizationContextInput(ctx context.Context, obj any) (types.UpdateOrganizationContextInput, error) { - var it types.UpdateOrganizationContextInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"organizationId", "summary"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "organizationId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "summary": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("summary")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Summary = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateProcessingActivityInput(ctx context.Context, obj any) (types.UpdateProcessingActivityInput, error) { - var it types.UpdateProcessingActivityInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "purpose", "dataSubjectCategory", "personalDataCategory", "specialOrCriminalData", "consentEvidenceLink", "lawfulBasis", "recipients", "location", "internationalTransfers", "transferSafeguards", "retentionPeriod", "securityMeasures", "dataProtectionImpactAssessmentNeeded", "transferImpactAssessmentNeeded", "lastReviewDate", "nextReviewDate", "role", "dataProtectionOfficerId", "vendorIds"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "purpose": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purpose")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Purpose = graphql.OmittableOf(data) - case "dataSubjectCategory": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSubjectCategory")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DataSubjectCategory = graphql.OmittableOf(data) - case "personalDataCategory": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalDataCategory")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PersonalDataCategory = graphql.OmittableOf(data) - case "specialOrCriminalData": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("specialOrCriminalData")) - data, err := ec.unmarshalOProcessingActivitySpecialOrCriminalDatum2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum(ctx, v) - if err != nil { - return it, err - } - it.SpecialOrCriminalData = data - case "consentEvidenceLink": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consentEvidenceLink")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ConsentEvidenceLink = data - case "lawfulBasis": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lawfulBasis")) - data, err := ec.unmarshalOProcessingActivityLawfulBasis2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis(ctx, v) - if err != nil { - return it, err - } - it.LawfulBasis = data - case "recipients": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipients")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Recipients = graphql.OmittableOf(data) - case "location": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Location = graphql.OmittableOf(data) - case "internationalTransfers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internationalTransfers")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.InternationalTransfers = data - case "transferSafeguards": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transferSafeguards")) - data, err := ec.unmarshalOProcessingActivityTransferSafeguard2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferSafeguard(ctx, v) - if err != nil { - return it, err - } - it.TransferSafeguards = graphql.OmittableOf(data) - case "retentionPeriod": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("retentionPeriod")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RetentionPeriod = graphql.OmittableOf(data) - case "securityMeasures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityMeasures")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SecurityMeasures = graphql.OmittableOf(data) - case "dataProtectionImpactAssessmentNeeded": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProtectionImpactAssessmentNeeded")) - data, err := ec.unmarshalOProcessingActivityDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment(ctx, v) - if err != nil { - return it, err - } - it.DataProtectionImpactAssessmentNeeded = data - case "transferImpactAssessmentNeeded": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transferImpactAssessmentNeeded")) - data, err := ec.unmarshalOProcessingActivityTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment(ctx, v) - if err != nil { - return it, err - } - it.TransferImpactAssessmentNeeded = data - case "lastReviewDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastReviewDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.LastReviewDate = graphql.OmittableOf(data) - case "nextReviewDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nextReviewDate")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.NextReviewDate = graphql.OmittableOf(data) - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOProcessingActivityRole2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole(ctx, v) - if err != nil { - return it, err - } - it.Role = data - case "dataProtectionOfficerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProtectionOfficerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DataProtectionOfficerID = graphql.OmittableOf(data) - case "vendorIds": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorIds")) - data, err := ec.unmarshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx, v) - if err != nil { - return it, err - } - it.VendorIds = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateRightsRequestInput(ctx context.Context, obj any) (types.UpdateRightsRequestInput, error) { - var it types.UpdateRightsRequestInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "requestType", "requestState", "dataSubject", "contact", "details", "deadline", "actionTaken"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "requestType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestType")) - data, err := ec.unmarshalORightsRequestType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType(ctx, v) - if err != nil { - return it, err - } - it.RequestType = data - case "requestState": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestState")) - data, err := ec.unmarshalORightsRequestState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState(ctx, v) - if err != nil { - return it, err - } - it.RequestState = data - case "dataSubject": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSubject")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DataSubject = graphql.OmittableOf(data) - case "contact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contact")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Contact = graphql.OmittableOf(data) - case "details": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Details = graphql.OmittableOf(data) - case "deadline": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deadline")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.Deadline = graphql.OmittableOf(data) - case "actionTaken": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionTaken")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ActionTaken = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateRiskInput(ctx context.Context, obj any) (types.UpdateRiskInput, error) { - var it types.UpdateRiskInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "description", "category", "ownerId", "treatment", "inherentLikelihood", "inherentImpact", "residualLikelihood", "residualImpact", "note"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "category": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Category = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = graphql.OmittableOf(data) - case "treatment": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("treatment")) - data, err := ec.unmarshalORiskTreatment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx, v) - if err != nil { - return it, err - } - it.Treatment = data - case "inherentLikelihood": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inherentLikelihood")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.InherentLikelihood = data - case "inherentImpact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inherentImpact")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.InherentImpact = data - case "residualLikelihood": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("residualLikelihood")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.ResidualLikelihood = data - case "residualImpact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("residualImpact")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.ResidualImpact = data - case "note": - 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) unmarshalInputUpdateStateOfApplicabilityInput(ctx context.Context, obj any) (types.UpdateStateOfApplicabilityInput, error) { - var it types.UpdateStateOfApplicabilityInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "ownerId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "ownerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateTaskInput(ctx context.Context, obj any) (types.UpdateTaskInput, error) { - var it types.UpdateTaskInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"taskId", "name", "description", "state", "timeEstimate", "deadline", "assignedToId", "measureId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "taskId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TaskID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "state": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) - data, err := ec.unmarshalOTaskState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState(ctx, v) - if err != nil { - return it, err - } - it.State = data - case "timeEstimate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timeEstimate")) - data, err := ec.unmarshalODuration2ᚖtimeᚐDuration(ctx, v) - if err != nil { - return it, err - } - it.TimeEstimate = graphql.OmittableOf(data) - case "deadline": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deadline")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.Deadline = graphql.OmittableOf(data) - case "assignedToId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("assignedToId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.AssignedToID = graphql.OmittableOf(data) - case "measureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MeasureID = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateTransferImpactAssessmentInput(ctx context.Context, obj any) (types.UpdateTransferImpactAssessmentInput, error) { - var it types.UpdateTransferImpactAssessmentInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "dataSubjects", "legalMechanism", "transfer", "localLawRisk", "supplementaryMeasures"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "dataSubjects": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataSubjects")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DataSubjects = graphql.OmittableOf(data) - case "legalMechanism": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("legalMechanism")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.LegalMechanism = graphql.OmittableOf(data) - case "transfer": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("transfer")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Transfer = graphql.OmittableOf(data) - case "localLawRisk": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("localLawRisk")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.LocalLawRisk = graphql.OmittableOf(data) - case "supplementaryMeasures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("supplementaryMeasures")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SupplementaryMeasures = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateTrustCenterAccessInput(ctx context.Context, obj any) (types.UpdateTrustCenterAccessInput, error) { - var it types.UpdateTrustCenterAccessInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "state", "documents", "reports", "trustCenterFiles"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "state": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state")) - data, err := ec.unmarshalOTrustCenterAccessState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessState(ctx, v) - if err != nil { - return it, err - } - it.State = data - case "documents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documents")) - data, err := ec.unmarshalOTrustCenterDocumentAccessInput2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Documents = data - case "reports": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reports")) - data, err := ec.unmarshalOTrustCenterDocumentAccessInput2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Reports = data - case "trustCenterFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterFiles")) - data, err := ec.unmarshalOTrustCenterDocumentAccessInput2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterFiles = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateTrustCenterBrandInput(ctx context.Context, obj any) (types.UpdateTrustCenterBrandInput, error) { - var it types.UpdateTrustCenterBrandInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"trustCenterId", "logoFile", "darkLogoFile"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "trustCenterId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterID = data - case "logoFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoFile")) - data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.LogoFile = graphql.OmittableOf(data) - case "darkLogoFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("darkLogoFile")) - data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.DarkLogoFile = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateTrustCenterFileInput(ctx context.Context, obj any) (types.UpdateTrustCenterFileInput, error) { - var it types.UpdateTrustCenterFileInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "category", "trustCenterVisibility"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "category": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Category = data - case "trustCenterVisibility": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterVisibility")) - data, err := ec.unmarshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterVisibility = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateTrustCenterInput(ctx context.Context, obj any) (types.UpdateTrustCenterInput, error) { - var it types.UpdateTrustCenterInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"trustCenterId", "active"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "trustCenterId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterID = data - case "active": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.Active = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateTrustCenterReferenceInput(ctx context.Context, obj any) (types.UpdateTrustCenterReferenceInput, error) { - var it types.UpdateTrustCenterReferenceInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "description", "websiteUrl", "logoFile", "rank"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "websiteUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.WebsiteURL = data - case "logoFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoFile")) - data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.LogoFile = data - case "rank": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rank")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err - } - it.Rank = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateVendorBusinessAssociateAgreementInput(ctx context.Context, obj any) (types.UpdateVendorBusinessAssociateAgreementInput, error) { - var it types.UpdateVendorBusinessAssociateAgreementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId", "validFrom", "validUntil"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - case "validFrom": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidFrom = graphql.OmittableOf(data) - case "validUntil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidUntil = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateVendorContactInput(ctx context.Context, obj any) (types.UpdateVendorContactInput, error) { - var it types.UpdateVendorContactInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "fullName", "email", "phone", "role"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.FullName = graphql.OmittableOf(data) - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalOEmailAddr2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.Email = graphql.OmittableOf(data) - case "phone": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phone")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Phone = graphql.OmittableOf(data) - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Role = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateVendorDataPrivacyAgreementInput(ctx context.Context, obj any) (types.UpdateVendorDataPrivacyAgreementInput, error) { - var it types.UpdateVendorDataPrivacyAgreementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId", "validFrom", "validUntil"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - case "validFrom": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidFrom = graphql.OmittableOf(data) - case "validUntil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidUntil = graphql.OmittableOf(data) - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateVendorInput(ctx context.Context, obj any) (types.UpdateVendorInput, error) { - var it types.UpdateVendorInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "description", "statusPageUrl", "termsOfServiceUrl", "privacyPolicyUrl", "serviceLevelAgreementUrl", "dataProcessingAgreementUrl", "businessAssociateAgreementUrl", "subprocessorsListUrl", "websiteUrl", "legalName", "headquarterAddress", "category", "certifications", "countries", "securityPageUrl", "trustPageUrl", "businessOwnerId", "securityOwnerId", "showOnTrustCenter"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "statusPageUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusPageUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.StatusPageURL = graphql.OmittableOf(data) - case "termsOfServiceUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("termsOfServiceUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TermsOfServiceURL = graphql.OmittableOf(data) - case "privacyPolicyUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privacyPolicyUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PrivacyPolicyURL = graphql.OmittableOf(data) - case "serviceLevelAgreementUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("serviceLevelAgreementUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ServiceLevelAgreementURL = graphql.OmittableOf(data) - case "dataProcessingAgreementUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dataProcessingAgreementUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DataProcessingAgreementURL = graphql.OmittableOf(data) - case "businessAssociateAgreementUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessAssociateAgreementUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BusinessAssociateAgreementURL = graphql.OmittableOf(data) - case "subprocessorsListUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subprocessorsListUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SubprocessorsListURL = graphql.OmittableOf(data) - case "websiteUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.WebsiteURL = graphql.OmittableOf(data) - case "legalName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("legalName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.LegalName = graphql.OmittableOf(data) - case "headquarterAddress": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("headquarterAddress")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.HeadquarterAddress = graphql.OmittableOf(data) - case "category": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category")) - data, err := ec.unmarshalOVendorCategory2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx, v) - if err != nil { - return it, err - } - it.Category = data - case "certifications": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("certifications")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.Certifications = data - case "countries": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("countries")) - data, err := ec.unmarshalOCountryCode2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCodeᚄ(ctx, v) - if err != nil { - return it, err - } - it.Countries = data - case "securityPageUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityPageUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.SecurityPageURL = graphql.OmittableOf(data) - case "trustPageUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustPageUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TrustPageURL = graphql.OmittableOf(data) - case "businessOwnerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessOwnerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.BusinessOwnerID = graphql.OmittableOf(data) - case "securityOwnerId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("securityOwnerId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SecurityOwnerID = graphql.OmittableOf(data) - case "showOnTrustCenter": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("showOnTrustCenter")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.ShowOnTrustCenter = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateVendorServiceInput(ctx context.Context, obj any) (types.UpdateVendorServiceInput, error) { - var it types.UpdateVendorServiceInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "name", "description", "url", "type"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Description = graphql.OmittableOf(data) - case "url": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.URL = data - case "type": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("type")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Type = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateWebhookSubscriptionInput(ctx context.Context, obj any) (types.UpdateWebhookSubscriptionInput, error) { - var it types.UpdateWebhookSubscriptionInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"id", "endpointUrl", "selectedEvents"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "endpointUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("endpointUrl")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EndpointURL = data - case "selectedEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("selectedEvents")) - data, err := ec.unmarshalOWebhookEventType2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventTypeᚄ(ctx, v) - if err != nil { - return it, err - } - it.SelectedEvents = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUploadAuditReportInput(ctx context.Context, obj any) (types.UploadAuditReportInput, error) { - var it types.UploadAuditReportInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"auditId", "file"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "auditId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auditId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.AuditID = data - case "file": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.File = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUploadMeasureEvidenceInput(ctx context.Context, obj any) (types.UploadMeasureEvidenceInput, error) { - var it types.UploadMeasureEvidenceInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"measureId", "file"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "measureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("measureId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.MeasureID = data - case "file": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.File = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUploadTrustCenterNDAInput(ctx context.Context, obj any) (types.UploadTrustCenterNDAInput, error) { - var it types.UploadTrustCenterNDAInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"trustCenterId", "fileName", "file"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "trustCenterId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterID = data - case "fileName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.FileName = data - case "file": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.File = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUploadVendorBusinessAssociateAgreementInput(ctx context.Context, obj any) (types.UploadVendorBusinessAssociateAgreementInput, error) { - var it types.UploadVendorBusinessAssociateAgreementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId", "validFrom", "validUntil", "fileName", "file"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - case "validFrom": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidFrom = data - case "validUntil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidUntil = data - case "fileName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.FileName = data - case "file": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.File = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUploadVendorComplianceReportInput(ctx context.Context, obj any) (types.UploadVendorComplianceReportInput, error) { - var it types.UploadVendorComplianceReportInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId", "reportDate", "validUntil", "reportName", "file"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - case "reportDate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reportDate")) - data, err := ec.unmarshalNDatetime2timeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ReportDate = data - case "validUntil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidUntil = data - case "reportName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reportName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.ReportName = data - case "file": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.File = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUploadVendorDataPrivacyAgreementInput(ctx context.Context, obj any) (types.UploadVendorDataPrivacyAgreementInput, error) { - var it types.UploadVendorDataPrivacyAgreementInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"vendorId", "validFrom", "validUntil", "fileName", "file"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "vendorId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("vendorId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.VendorID = data - case "validFrom": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validFrom")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidFrom = data - case "validUntil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("validUntil")) - data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.ValidUntil = data - case "fileName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.FileName = data - case "file": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - data, err := ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) - if err != nil { - return it, err - } - it.File = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputVendorComplianceReportOrder(ctx context.Context, obj any) (types.VendorComplianceReportOrderBy, error) { - var it types.VendorComplianceReportOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNVendorComplianceReportOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputVendorContactOrder(ctx context.Context, obj any) (types.VendorContactOrderBy, error) { - var it types.VendorContactOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNVendorContactOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputVendorFilter(ctx context.Context, obj any) (types.VendorFilter, error) { - var it types.VendorFilter - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"snapshotId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "snapshotId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("snapshotId")) - data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SnapshotID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputVendorOrder(ctx context.Context, obj any) (types.VendorOrderBy, error) { - var it types.VendorOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNVendorOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputVendorRiskAssessmentOrder(ctx context.Context, obj any) (types.VendorRiskAssessmentOrder, error) { - var it types.VendorRiskAssessmentOrder - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"field", "direction"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNVendorRiskAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputVendorServiceOrder(ctx context.Context, obj any) (types.VendorServiceOrderBy, error) { - var it types.VendorServiceOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNVendorServiceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputWebhookEventOrder(ctx context.Context, obj any) (types.WebhookEventOrderBy, error) { - var it types.WebhookEventOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"field", "direction"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNWebhookEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputWebhookSubscriptionOrder(ctx context.Context, obj any) (types.WebhookSubscriptionOrderBy, error) { - var it types.WebhookSubscriptionOrderBy - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"direction", "field"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "direction": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction")) - data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v) - if err != nil { - return it, err - } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNWebhookSubscriptionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookSubscriptionOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - return it, nil -} - -// endregion **************************** input.gotpl ***************************** - -// region ************************** interface.gotpl *************************** - -func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj types.Node) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case types.WebhookSubscription: - return ec._WebhookSubscription(ctx, sel, &obj) - case *types.WebhookSubscription: - if obj == nil { - return graphql.Null - } - return ec._WebhookSubscription(ctx, sel, obj) - case types.WebhookEvent: - return ec._WebhookEvent(ctx, sel, &obj) - case *types.WebhookEvent: - if obj == nil { - return graphql.Null - } - return ec._WebhookEvent(ctx, sel, obj) - case types.VendorService: - return ec._VendorService(ctx, sel, &obj) - case *types.VendorService: - if obj == nil { - return graphql.Null - } - return ec._VendorService(ctx, sel, obj) - case types.VendorRiskAssessment: - return ec._VendorRiskAssessment(ctx, sel, &obj) - case *types.VendorRiskAssessment: - if obj == nil { - return graphql.Null - } - return ec._VendorRiskAssessment(ctx, sel, obj) - case types.VendorDataPrivacyAgreement: - return ec._VendorDataPrivacyAgreement(ctx, sel, &obj) - case *types.VendorDataPrivacyAgreement: - if obj == nil { - return graphql.Null - } - return ec._VendorDataPrivacyAgreement(ctx, sel, obj) - case types.VendorContact: - return ec._VendorContact(ctx, sel, &obj) - case *types.VendorContact: - if obj == nil { - return graphql.Null - } - return ec._VendorContact(ctx, sel, obj) - case types.VendorComplianceReport: - return ec._VendorComplianceReport(ctx, sel, &obj) - case *types.VendorComplianceReport: - if obj == nil { - return graphql.Null - } - return ec._VendorComplianceReport(ctx, sel, obj) - case types.VendorBusinessAssociateAgreement: - return ec._VendorBusinessAssociateAgreement(ctx, sel, &obj) - case *types.VendorBusinessAssociateAgreement: - if obj == nil { - return graphql.Null - } - return ec._VendorBusinessAssociateAgreement(ctx, sel, obj) - case types.Vendor: - return ec._Vendor(ctx, sel, &obj) - case *types.Vendor: - if obj == nil { - return graphql.Null - } - return ec._Vendor(ctx, sel, obj) - case types.TrustCenterReference: - return ec._TrustCenterReference(ctx, sel, &obj) - case *types.TrustCenterReference: - if obj == nil { - return graphql.Null - } - return ec._TrustCenterReference(ctx, sel, obj) - case types.TrustCenterFile: - return ec._TrustCenterFile(ctx, sel, &obj) - case *types.TrustCenterFile: - if obj == nil { - return graphql.Null - } - return ec._TrustCenterFile(ctx, sel, obj) - case types.TrustCenterAccess: - return ec._TrustCenterAccess(ctx, sel, &obj) - case *types.TrustCenterAccess: - if obj == nil { - return graphql.Null - } - return ec._TrustCenterAccess(ctx, sel, obj) - case types.TrustCenter: - return ec._TrustCenter(ctx, sel, &obj) - case *types.TrustCenter: - if obj == nil { - return graphql.Null - } - return ec._TrustCenter(ctx, sel, obj) - case types.TransferImpactAssessment: - return ec._TransferImpactAssessment(ctx, sel, &obj) - case *types.TransferImpactAssessment: - if obj == nil { - return graphql.Null - } - return ec._TransferImpactAssessment(ctx, sel, obj) - case types.Task: - return ec._Task(ctx, sel, &obj) - case *types.Task: - if obj == nil { - return graphql.Null - } - return ec._Task(ctx, sel, obj) - case types.StateOfApplicability: - return ec._StateOfApplicability(ctx, sel, &obj) - case *types.StateOfApplicability: - if obj == nil { - return graphql.Null - } - return ec._StateOfApplicability(ctx, sel, obj) - case types.Snapshot: - return ec._Snapshot(ctx, sel, &obj) - case *types.Snapshot: - if obj == nil { - return graphql.Null - } - return ec._Snapshot(ctx, sel, obj) - case types.Risk: - return ec._Risk(ctx, sel, &obj) - case *types.Risk: - if obj == nil { - return graphql.Null - } - return ec._Risk(ctx, sel, obj) - case types.RightsRequest: - return ec._RightsRequest(ctx, sel, &obj) - case *types.RightsRequest: - if obj == nil { - return graphql.Null - } - return ec._RightsRequest(ctx, sel, obj) - case types.Report: - return ec._Report(ctx, sel, &obj) - case *types.Report: - if obj == nil { - return graphql.Null - } - return ec._Report(ctx, sel, obj) - case types.Profile: - return ec._Profile(ctx, sel, &obj) - case *types.Profile: - if obj == nil { - return graphql.Null - } - return ec._Profile(ctx, sel, obj) - case types.ProcessingActivity: - return ec._ProcessingActivity(ctx, sel, &obj) - case *types.ProcessingActivity: - if obj == nil { - return graphql.Null - } - return ec._ProcessingActivity(ctx, sel, obj) - case types.Organization: - return ec._Organization(ctx, sel, &obj) - case *types.Organization: - if obj == nil { - return graphql.Null - } - return ec._Organization(ctx, sel, obj) - case types.Obligation: - return ec._Obligation(ctx, sel, &obj) - case *types.Obligation: - if obj == nil { - return graphql.Null - } - return ec._Obligation(ctx, sel, obj) - case types.Nonconformity: - return ec._Nonconformity(ctx, sel, &obj) - case *types.Nonconformity: - if obj == nil { - return graphql.Null - } - return ec._Nonconformity(ctx, sel, obj) - case types.Meeting: - return ec._Meeting(ctx, sel, &obj) - case *types.Meeting: - if obj == nil { - return graphql.Null - } - return ec._Meeting(ctx, sel, obj) - case types.Measure: - return ec._Measure(ctx, sel, &obj) - case *types.Measure: - if obj == nil { - return graphql.Null - } - return ec._Measure(ctx, sel, obj) - case types.MailingListUpdate: - return ec._MailingListUpdate(ctx, sel, &obj) - case *types.MailingListUpdate: - if obj == nil { - return graphql.Null - } - return ec._MailingListUpdate(ctx, sel, obj) - case types.MailingListSubscriber: - return ec._MailingListSubscriber(ctx, sel, &obj) - case *types.MailingListSubscriber: - if obj == nil { - return graphql.Null - } - return ec._MailingListSubscriber(ctx, sel, obj) - case types.MailingList: - return ec._MailingList(ctx, sel, &obj) - case *types.MailingList: - if obj == nil { - return graphql.Null - } - return ec._MailingList(ctx, sel, obj) - case types.Framework: - return ec._Framework(ctx, sel, &obj) - case *types.Framework: - if obj == nil { - return graphql.Null - } - return ec._Framework(ctx, sel, obj) - case types.Evidence: - return ec._Evidence(ctx, sel, &obj) - case *types.Evidence: - if obj == nil { - return graphql.Null - } - return ec._Evidence(ctx, sel, obj) - case types.ElectronicSignature: - return ec._ElectronicSignature(ctx, sel, &obj) - case *types.ElectronicSignature: - if obj == nil { - return graphql.Null - } - return ec._ElectronicSignature(ctx, sel, obj) - case types.DocumentVersionSignature: - return ec._DocumentVersionSignature(ctx, sel, &obj) - case *types.DocumentVersionSignature: - if obj == nil { - return graphql.Null - } - return ec._DocumentVersionSignature(ctx, sel, obj) - case types.DocumentVersion: - return ec._DocumentVersion(ctx, sel, &obj) - case *types.DocumentVersion: - if obj == nil { - return graphql.Null - } - return ec._DocumentVersion(ctx, sel, obj) - case types.Document: - return ec._Document(ctx, sel, &obj) - case *types.Document: - if obj == nil { - return graphql.Null - } - return ec._Document(ctx, sel, obj) - case types.Datum: - return ec._Datum(ctx, sel, &obj) - case *types.Datum: - if obj == nil { - return graphql.Null - } - return ec._Datum(ctx, sel, obj) - case types.DataProtectionImpactAssessment: - return ec._DataProtectionImpactAssessment(ctx, sel, &obj) - case *types.DataProtectionImpactAssessment: - if obj == nil { - return graphql.Null - } - return ec._DataProtectionImpactAssessment(ctx, sel, obj) - case types.CustomDomain: - return ec._CustomDomain(ctx, sel, &obj) - case *types.CustomDomain: - if obj == nil { - return graphql.Null - } - return ec._CustomDomain(ctx, sel, obj) - case types.Control: - return ec._Control(ctx, sel, &obj) - case *types.Control: - if obj == nil { - return graphql.Null - } - return ec._Control(ctx, sel, obj) - case types.ContinualImprovement: - return ec._ContinualImprovement(ctx, sel, &obj) - case *types.ContinualImprovement: - if obj == nil { - return graphql.Null - } - return ec._ContinualImprovement(ctx, sel, obj) - case types.ComplianceFramework: - return ec._ComplianceFramework(ctx, sel, &obj) - case *types.ComplianceFramework: - if obj == nil { - return graphql.Null - } - return ec._ComplianceFramework(ctx, sel, obj) - case types.ComplianceExternalURL: - return ec._ComplianceExternalURL(ctx, sel, &obj) - case *types.ComplianceExternalURL: - if obj == nil { - return graphql.Null - } - return ec._ComplianceExternalURL(ctx, sel, obj) - case types.Audit: - return ec._Audit(ctx, sel, &obj) - case *types.Audit: - if obj == nil { - return graphql.Null - } - return ec._Audit(ctx, sel, obj) - case types.Asset: - return ec._Asset(ctx, sel, &obj) - case *types.Asset: - if obj == nil { - return graphql.Null - } - return ec._Asset(ctx, sel, obj) - case types.ApplicabilityStatement: - return ec._ApplicabilityStatement(ctx, sel, &obj) - case *types.ApplicabilityStatement: - if obj == nil { - return graphql.Null - } - return ec._ApplicabilityStatement(ctx, sel, obj) - default: - if typedObj, ok := obj.(graphql.Marshaler); ok { - return typedObj - } else { - panic(fmt.Errorf("unexpected type %T; non-generated variants of Node must implement graphql.Marshaler", obj)) - } - } -} - -// endregion ************************** interface.gotpl *************************** - -// region **************************** object.gotpl **************************** - -var applicabilityStatementImplementors = []string{"ApplicabilityStatement", "Node"} - -func (ec *executionContext) _ApplicabilityStatement(ctx context.Context, sel ast.SelectionSet, obj *types.ApplicabilityStatement) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, applicabilityStatementImplementors) - - 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("ApplicabilityStatement") - case "id": - out.Values[i] = ec._ApplicabilityStatement_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "stateOfApplicability": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ApplicabilityStatement_stateOfApplicability(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "control": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ApplicabilityStatement_control(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "applicability": - out.Values[i] = ec._ApplicabilityStatement_applicability(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "justification": - out.Values[i] = ec._ApplicabilityStatement_justification(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._ApplicabilityStatement_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._ApplicabilityStatement_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ApplicabilityStatement_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 applicabilityStatementConnectionImplementors = []string{"ApplicabilityStatementConnection"} - -func (ec *executionContext) _ApplicabilityStatementConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ApplicabilityStatementConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, applicabilityStatementConnectionImplementors) - - 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("ApplicabilityStatementConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ApplicabilityStatementConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._ApplicabilityStatementConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._ApplicabilityStatementConnection_pageInfo(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 applicabilityStatementEdgeImplementors = []string{"ApplicabilityStatementEdge"} - -func (ec *executionContext) _ApplicabilityStatementEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ApplicabilityStatementEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, applicabilityStatementEdgeImplementors) - - 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("ApplicabilityStatementEdge") - case "cursor": - out.Values[i] = ec._ApplicabilityStatementEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ApplicabilityStatementEdge_node(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 assessVendorPayloadImplementors = []string{"AssessVendorPayload"} - -func (ec *executionContext) _AssessVendorPayload(ctx context.Context, sel ast.SelectionSet, obj *types.AssessVendorPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assessVendorPayloadImplementors) - - 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("AssessVendorPayload") - case "vendor": - out.Values[i] = ec._AssessVendorPayload_vendor(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 assetImplementors = []string{"Asset", "Node"} - -func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, obj *types.Asset) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assetImplementors) - - 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("Asset") - case "id": - out.Values[i] = ec._Asset_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "snapshotId": - out.Values[i] = ec._Asset_snapshotId(ctx, field, obj) - case "name": - out.Values[i] = ec._Asset_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "amount": - out.Values[i] = ec._Asset_amount(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "owner": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Asset_owner(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "vendors": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Asset_vendors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assetType": - out.Values[i] = ec._Asset_assetType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dataTypesStored": - out.Values[i] = ec._Asset_dataTypesStored(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Asset_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Asset_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Asset_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Asset_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 assetConnectionImplementors = []string{"AssetConnection"} - -func (ec *executionContext) _AssetConnection(ctx context.Context, sel ast.SelectionSet, obj *types.AssetConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assetConnectionImplementors) - - 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("AssetConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._AssetConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._AssetConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._AssetConnection_pageInfo(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 assetEdgeImplementors = []string{"AssetEdge"} - -func (ec *executionContext) _AssetEdge(ctx context.Context, sel ast.SelectionSet, obj *types.AssetEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assetEdgeImplementors) - - 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("AssetEdge") - case "cursor": - out.Values[i] = ec._AssetEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._AssetEdge_node(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 auditImplementors = []string{"Audit", "Node"} - -func (ec *executionContext) _Audit(ctx context.Context, sel ast.SelectionSet, obj *types.Audit) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditImplementors) - - 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("Audit") - case "id": - out.Values[i] = ec._Audit_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Audit_name(ctx, field, obj) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Audit_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "framework": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Audit_framework(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "validFrom": - out.Values[i] = ec._Audit_validFrom(ctx, field, obj) - case "validUntil": - out.Values[i] = ec._Audit_validUntil(ctx, field, obj) - case "report": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Audit_report(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 "reportUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Audit_reportUrl(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 "state": - out.Values[i] = ec._Audit_state(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "controls": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Audit_controls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenterVisibility": - out.Values[i] = ec._Audit_trustCenterVisibility(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Audit_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Audit_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Audit_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 auditConnectionImplementors = []string{"AuditConnection"} - -func (ec *executionContext) _AuditConnection(ctx context.Context, sel ast.SelectionSet, obj *types.AuditConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditConnectionImplementors) - - 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("AuditConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._AuditConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._AuditConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._AuditConnection_pageInfo(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 auditEdgeImplementors = []string{"AuditEdge"} - -func (ec *executionContext) _AuditEdge(ctx context.Context, sel ast.SelectionSet, obj *types.AuditEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditEdgeImplementors) - - 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("AuditEdge") - case "cursor": - out.Values[i] = ec._AuditEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._AuditEdge_node(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 bulkDeleteDocumentsPayloadImplementors = []string{"BulkDeleteDocumentsPayload"} - -func (ec *executionContext) _BulkDeleteDocumentsPayload(ctx context.Context, sel ast.SelectionSet, obj *types.BulkDeleteDocumentsPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, bulkDeleteDocumentsPayloadImplementors) - - 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("BulkDeleteDocumentsPayload") - case "deletedDocumentIds": - out.Values[i] = ec._BulkDeleteDocumentsPayload_deletedDocumentIds(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 bulkExportDocumentsPayloadImplementors = []string{"BulkExportDocumentsPayload"} - -func (ec *executionContext) _BulkExportDocumentsPayload(ctx context.Context, sel ast.SelectionSet, obj *types.BulkExportDocumentsPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, bulkExportDocumentsPayloadImplementors) - - 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("BulkExportDocumentsPayload") - case "exportJobId": - out.Values[i] = ec._BulkExportDocumentsPayload_exportJobId(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 bulkPublishDocumentVersionsPayloadImplementors = []string{"BulkPublishDocumentVersionsPayload"} - -func (ec *executionContext) _BulkPublishDocumentVersionsPayload(ctx context.Context, sel ast.SelectionSet, obj *types.BulkPublishDocumentVersionsPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, bulkPublishDocumentVersionsPayloadImplementors) - - 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("BulkPublishDocumentVersionsPayload") - case "documentVersionEdges": - out.Values[i] = ec._BulkPublishDocumentVersionsPayload_documentVersionEdges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "documentEdges": - out.Values[i] = ec._BulkPublishDocumentVersionsPayload_documentEdges(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 bulkRequestSignaturesPayloadImplementors = []string{"BulkRequestSignaturesPayload"} - -func (ec *executionContext) _BulkRequestSignaturesPayload(ctx context.Context, sel ast.SelectionSet, obj *types.BulkRequestSignaturesPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, bulkRequestSignaturesPayloadImplementors) - - 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("BulkRequestSignaturesPayload") - case "documentVersionSignatureEdges": - out.Values[i] = ec._BulkRequestSignaturesPayload_documentVersionSignatureEdges(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 cancelSignatureRequestPayloadImplementors = []string{"CancelSignatureRequestPayload"} - -func (ec *executionContext) _CancelSignatureRequestPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CancelSignatureRequestPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, cancelSignatureRequestPayloadImplementors) - - 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("CancelSignatureRequestPayload") - case "deletedDocumentVersionSignatureId": - out.Values[i] = ec._CancelSignatureRequestPayload_deletedDocumentVersionSignatureId(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 complianceExternalURLImplementors = []string{"ComplianceExternalURL", "Node"} - -func (ec *executionContext) _ComplianceExternalURL(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceExternalURL) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceExternalURLImplementors) - - 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("ComplianceExternalURL") - case "id": - out.Values[i] = ec._ComplianceExternalURL_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._ComplianceExternalURL_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "url": - out.Values[i] = ec._ComplianceExternalURL_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "rank": - out.Values[i] = ec._ComplianceExternalURL_rank(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._ComplianceExternalURL_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._ComplianceExternalURL_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComplianceExternalURL_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 complianceExternalURLConnectionImplementors = []string{"ComplianceExternalURLConnection"} - -func (ec *executionContext) _ComplianceExternalURLConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceExternalURLConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceExternalURLConnectionImplementors) - - 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("ComplianceExternalURLConnection") - case "edges": - out.Values[i] = ec._ComplianceExternalURLConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._ComplianceExternalURLConnection_pageInfo(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 complianceExternalURLEdgeImplementors = []string{"ComplianceExternalURLEdge"} - -func (ec *executionContext) _ComplianceExternalURLEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceExternalURLEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceExternalURLEdgeImplementors) - - 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("ComplianceExternalURLEdge") - case "cursor": - out.Values[i] = ec._ComplianceExternalURLEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ComplianceExternalURLEdge_node(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 complianceFrameworkImplementors = []string{"ComplianceFramework", "Node"} - -func (ec *executionContext) _ComplianceFramework(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceFramework) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceFrameworkImplementors) - - 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("ComplianceFramework") - case "id": - out.Values[i] = ec._ComplianceFramework_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "framework": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComplianceFramework_framework(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "rank": - out.Values[i] = ec._ComplianceFramework_rank(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "visibility": - out.Values[i] = ec._ComplianceFramework_visibility(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._ComplianceFramework_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._ComplianceFramework_updatedAt(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 complianceFrameworkConnectionImplementors = []string{"ComplianceFrameworkConnection"} - -func (ec *executionContext) _ComplianceFrameworkConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceFrameworkConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceFrameworkConnectionImplementors) - - 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("ComplianceFrameworkConnection") - case "edges": - out.Values[i] = ec._ComplianceFrameworkConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._ComplianceFrameworkConnection_pageInfo(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 complianceFrameworkEdgeImplementors = []string{"ComplianceFrameworkEdge"} - -func (ec *executionContext) _ComplianceFrameworkEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceFrameworkEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceFrameworkEdgeImplementors) - - 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("ComplianceFrameworkEdge") - case "cursor": - out.Values[i] = ec._ComplianceFrameworkEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ComplianceFrameworkEdge_node(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 continualImprovementImplementors = []string{"ContinualImprovement", "Node"} - -func (ec *executionContext) _ContinualImprovement(ctx context.Context, sel ast.SelectionSet, obj *types.ContinualImprovement) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, continualImprovementImplementors) - - 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("ContinualImprovement") - case "id": - out.Values[i] = ec._ContinualImprovement_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "snapshotId": - out.Values[i] = ec._ContinualImprovement_snapshotId(ctx, field, obj) - case "sourceId": - out.Values[i] = ec._ContinualImprovement_sourceId(ctx, field, obj) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ContinualImprovement_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "referenceId": - out.Values[i] = ec._ContinualImprovement_referenceId(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._ContinualImprovement_description(ctx, field, obj) - case "source": - out.Values[i] = ec._ContinualImprovement_source(ctx, field, obj) - case "owner": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ContinualImprovement_owner(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "targetDate": - out.Values[i] = ec._ContinualImprovement_targetDate(ctx, field, obj) - case "status": - out.Values[i] = ec._ContinualImprovement_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "priority": - out.Values[i] = ec._ContinualImprovement_priority(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._ContinualImprovement_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._ContinualImprovement_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ContinualImprovement_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 continualImprovementConnectionImplementors = []string{"ContinualImprovementConnection"} - -func (ec *executionContext) _ContinualImprovementConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ContinualImprovementConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, continualImprovementConnectionImplementors) - - 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("ContinualImprovementConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ContinualImprovementConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._ContinualImprovementConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._ContinualImprovementConnection_pageInfo(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 continualImprovementEdgeImplementors = []string{"ContinualImprovementEdge"} - -func (ec *executionContext) _ContinualImprovementEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ContinualImprovementEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, continualImprovementEdgeImplementors) - - 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("ContinualImprovementEdge") - case "cursor": - out.Values[i] = ec._ContinualImprovementEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ContinualImprovementEdge_node(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 controlImplementors = []string{"Control", "Node"} - -func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, obj *types.Control) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementors) - - 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("Control") - case "id": - out.Values[i] = ec._Control_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organization": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Control_organization(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 "sectionTitle": - out.Values[i] = ec._Control_sectionTitle(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Control_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Control_description(ctx, field, obj) - case "bestPractice": - out.Values[i] = ec._Control_bestPractice(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "regulatory": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Control_regulatory(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "contractual": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Control_contractual(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "riskAssessment": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Control_riskAssessment(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "framework": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Control_framework(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "measures": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Control_measures(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the 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._Control_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 "audits": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Control_audits(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "obligations": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Control_obligations(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "snapshots": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Control_snapshots(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Control_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Control_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Control_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 controlConnectionImplementors = []string{"ControlConnection"} - -func (ec *executionContext) _ControlConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ControlConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlConnectionImplementors) - - 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("ControlConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ControlConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._ControlConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._ControlConnection_pageInfo(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 controlEdgeImplementors = []string{"ControlEdge"} - -func (ec *executionContext) _ControlEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ControlEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlEdgeImplementors) - - 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("ControlEdge") - case "cursor": - out.Values[i] = ec._ControlEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ControlEdge_node(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 createApplicabilityStatementPayloadImplementors = []string{"CreateApplicabilityStatementPayload"} - -func (ec *executionContext) _CreateApplicabilityStatementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateApplicabilityStatementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createApplicabilityStatementPayloadImplementors) - - 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("CreateApplicabilityStatementPayload") - case "applicabilityStatementEdge": - out.Values[i] = ec._CreateApplicabilityStatementPayload_applicabilityStatementEdge(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 createAssetPayloadImplementors = []string{"CreateAssetPayload"} - -func (ec *executionContext) _CreateAssetPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateAssetPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createAssetPayloadImplementors) - - 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("CreateAssetPayload") - case "assetEdge": - out.Values[i] = ec._CreateAssetPayload_assetEdge(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 createAuditPayloadImplementors = []string{"CreateAuditPayload"} - -func (ec *executionContext) _CreateAuditPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateAuditPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createAuditPayloadImplementors) - - 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("CreateAuditPayload") - case "auditEdge": - out.Values[i] = ec._CreateAuditPayload_auditEdge(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 createComplianceExternalURLPayloadImplementors = []string{"CreateComplianceExternalURLPayload"} - -func (ec *executionContext) _CreateComplianceExternalURLPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateComplianceExternalURLPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createComplianceExternalURLPayloadImplementors) - - 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("CreateComplianceExternalURLPayload") - case "complianceExternalUrlEdge": - out.Values[i] = ec._CreateComplianceExternalURLPayload_complianceExternalUrlEdge(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 createComplianceFrameworkPayloadImplementors = []string{"CreateComplianceFrameworkPayload"} - -func (ec *executionContext) _CreateComplianceFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateComplianceFrameworkPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createComplianceFrameworkPayloadImplementors) - - 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("CreateComplianceFrameworkPayload") - case "complianceFrameworkEdge": - out.Values[i] = ec._CreateComplianceFrameworkPayload_complianceFrameworkEdge(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 createContinualImprovementPayloadImplementors = []string{"CreateContinualImprovementPayload"} - -func (ec *executionContext) _CreateContinualImprovementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateContinualImprovementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createContinualImprovementPayloadImplementors) - - 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("CreateContinualImprovementPayload") - case "continualImprovementEdge": - out.Values[i] = ec._CreateContinualImprovementPayload_continualImprovementEdge(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 createControlAuditMappingPayloadImplementors = []string{"CreateControlAuditMappingPayload"} - -func (ec *executionContext) _CreateControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlAuditMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createControlAuditMappingPayloadImplementors) - - 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("CreateControlAuditMappingPayload") - case "controlEdge": - out.Values[i] = ec._CreateControlAuditMappingPayload_controlEdge(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "auditEdge": - out.Values[i] = ec._CreateControlAuditMappingPayload_auditEdge(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 createControlDocumentMappingPayloadImplementors = []string{"CreateControlDocumentMappingPayload"} - -func (ec *executionContext) _CreateControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlDocumentMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createControlDocumentMappingPayloadImplementors) - - 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("CreateControlDocumentMappingPayload") - case "controlEdge": - out.Values[i] = ec._CreateControlDocumentMappingPayload_controlEdge(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "documentEdge": - out.Values[i] = ec._CreateControlDocumentMappingPayload_documentEdge(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 createControlMeasureMappingPayloadImplementors = []string{"CreateControlMeasureMappingPayload"} - -func (ec *executionContext) _CreateControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlMeasureMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createControlMeasureMappingPayloadImplementors) - - 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("CreateControlMeasureMappingPayload") - case "controlEdge": - out.Values[i] = ec._CreateControlMeasureMappingPayload_controlEdge(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "measureEdge": - out.Values[i] = ec._CreateControlMeasureMappingPayload_measureEdge(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 createControlObligationMappingPayloadImplementors = []string{"CreateControlObligationMappingPayload"} - -func (ec *executionContext) _CreateControlObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlObligationMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createControlObligationMappingPayloadImplementors) - - 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("CreateControlObligationMappingPayload") - case "controlEdge": - out.Values[i] = ec._CreateControlObligationMappingPayload_controlEdge(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "obligationEdge": - out.Values[i] = ec._CreateControlObligationMappingPayload_obligationEdge(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 createControlPayloadImplementors = []string{"CreateControlPayload"} - -func (ec *executionContext) _CreateControlPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createControlPayloadImplementors) - - 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("CreateControlPayload") - case "controlEdge": - out.Values[i] = ec._CreateControlPayload_controlEdge(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 createControlSnapshotMappingPayloadImplementors = []string{"CreateControlSnapshotMappingPayload"} - -func (ec *executionContext) _CreateControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateControlSnapshotMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createControlSnapshotMappingPayloadImplementors) - - 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("CreateControlSnapshotMappingPayload") - case "controlEdge": - out.Values[i] = ec._CreateControlSnapshotMappingPayload_controlEdge(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "snapshotEdge": - out.Values[i] = ec._CreateControlSnapshotMappingPayload_snapshotEdge(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 createCustomDomainPayloadImplementors = []string{"CreateCustomDomainPayload"} - -func (ec *executionContext) _CreateCustomDomainPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateCustomDomainPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createCustomDomainPayloadImplementors) - - 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("CreateCustomDomainPayload") - case "customDomain": - out.Values[i] = ec._CreateCustomDomainPayload_customDomain(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 createDataProtectionImpactAssessmentPayloadImplementors = []string{"CreateDataProtectionImpactAssessmentPayload"} - -func (ec *executionContext) _CreateDataProtectionImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateDataProtectionImpactAssessmentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createDataProtectionImpactAssessmentPayloadImplementors) - - 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("CreateDataProtectionImpactAssessmentPayload") - case "dataProtectionImpactAssessment": - out.Values[i] = ec._CreateDataProtectionImpactAssessmentPayload_dataProtectionImpactAssessment(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 createDatumPayloadImplementors = []string{"CreateDatumPayload"} - -func (ec *executionContext) _CreateDatumPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateDatumPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createDatumPayloadImplementors) - - 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("CreateDatumPayload") - case "datumEdge": - out.Values[i] = ec._CreateDatumPayload_datumEdge(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 createDocumentPayloadImplementors = []string{"CreateDocumentPayload"} - -func (ec *executionContext) _CreateDocumentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateDocumentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createDocumentPayloadImplementors) - - 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("CreateDocumentPayload") - case "documentEdge": - out.Values[i] = ec._CreateDocumentPayload_documentEdge(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "documentVersionEdge": - out.Values[i] = ec._CreateDocumentPayload_documentVersionEdge(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 createDraftDocumentVersionPayloadImplementors = []string{"CreateDraftDocumentVersionPayload"} - -func (ec *executionContext) _CreateDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateDraftDocumentVersionPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createDraftDocumentVersionPayloadImplementors) - - 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("CreateDraftDocumentVersionPayload") - case "documentVersionEdge": - out.Values[i] = ec._CreateDraftDocumentVersionPayload_documentVersionEdge(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 createFrameworkPayloadImplementors = []string{"CreateFrameworkPayload"} - -func (ec *executionContext) _CreateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateFrameworkPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createFrameworkPayloadImplementors) - - 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("CreateFrameworkPayload") - case "frameworkEdge": - out.Values[i] = ec._CreateFrameworkPayload_frameworkEdge(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 createMailingListSubscriberPayloadImplementors = []string{"CreateMailingListSubscriberPayload"} - -func (ec *executionContext) _CreateMailingListSubscriberPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateMailingListSubscriberPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createMailingListSubscriberPayloadImplementors) - - 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("CreateMailingListSubscriberPayload") - case "mailingListSubscriberEdge": - out.Values[i] = ec._CreateMailingListSubscriberPayload_mailingListSubscriberEdge(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 createMailingListUpdatePayloadImplementors = []string{"CreateMailingListUpdatePayload"} - -func (ec *executionContext) _CreateMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateMailingListUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createMailingListUpdatePayloadImplementors) - - 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("CreateMailingListUpdatePayload") - case "mailingListUpdate": - out.Values[i] = ec._CreateMailingListUpdatePayload_mailingListUpdate(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 createMeasurePayloadImplementors = []string{"CreateMeasurePayload"} - -func (ec *executionContext) _CreateMeasurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateMeasurePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createMeasurePayloadImplementors) - - 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("CreateMeasurePayload") - case "measureEdge": - out.Values[i] = ec._CreateMeasurePayload_measureEdge(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 createMeetingPayloadImplementors = []string{"CreateMeetingPayload"} - -func (ec *executionContext) _CreateMeetingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateMeetingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createMeetingPayloadImplementors) - - 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("CreateMeetingPayload") - case "meetingEdge": - out.Values[i] = ec._CreateMeetingPayload_meetingEdge(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 createNonconformityPayloadImplementors = []string{"CreateNonconformityPayload"} - -func (ec *executionContext) _CreateNonconformityPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateNonconformityPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createNonconformityPayloadImplementors) - - 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("CreateNonconformityPayload") - case "nonconformityEdge": - out.Values[i] = ec._CreateNonconformityPayload_nonconformityEdge(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 createObligationPayloadImplementors = []string{"CreateObligationPayload"} - -func (ec *executionContext) _CreateObligationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateObligationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createObligationPayloadImplementors) - - 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("CreateObligationPayload") - case "obligationEdge": - out.Values[i] = ec._CreateObligationPayload_obligationEdge(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 createProcessingActivityPayloadImplementors = []string{"CreateProcessingActivityPayload"} - -func (ec *executionContext) _CreateProcessingActivityPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateProcessingActivityPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createProcessingActivityPayloadImplementors) - - 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("CreateProcessingActivityPayload") - case "processingActivityEdge": - out.Values[i] = ec._CreateProcessingActivityPayload_processingActivityEdge(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 createRightsRequestPayloadImplementors = []string{"CreateRightsRequestPayload"} - -func (ec *executionContext) _CreateRightsRequestPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateRightsRequestPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createRightsRequestPayloadImplementors) - - 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("CreateRightsRequestPayload") - case "rightsRequestEdge": - out.Values[i] = ec._CreateRightsRequestPayload_rightsRequestEdge(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 createRiskDocumentMappingPayloadImplementors = []string{"CreateRiskDocumentMappingPayload"} - -func (ec *executionContext) _CreateRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateRiskDocumentMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createRiskDocumentMappingPayloadImplementors) - - 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("CreateRiskDocumentMappingPayload") - case "riskEdge": - out.Values[i] = ec._CreateRiskDocumentMappingPayload_riskEdge(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "documentEdge": - out.Values[i] = ec._CreateRiskDocumentMappingPayload_documentEdge(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 createRiskMeasureMappingPayloadImplementors = []string{"CreateRiskMeasureMappingPayload"} - -func (ec *executionContext) _CreateRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateRiskMeasureMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createRiskMeasureMappingPayloadImplementors) - - 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("CreateRiskMeasureMappingPayload") - case "riskEdge": - out.Values[i] = ec._CreateRiskMeasureMappingPayload_riskEdge(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "measureEdge": - out.Values[i] = ec._CreateRiskMeasureMappingPayload_measureEdge(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 createRiskObligationMappingPayloadImplementors = []string{"CreateRiskObligationMappingPayload"} - -func (ec *executionContext) _CreateRiskObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateRiskObligationMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createRiskObligationMappingPayloadImplementors) - - 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("CreateRiskObligationMappingPayload") - case "riskEdge": - out.Values[i] = ec._CreateRiskObligationMappingPayload_riskEdge(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "obligationEdge": - out.Values[i] = ec._CreateRiskObligationMappingPayload_obligationEdge(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 createRiskPayloadImplementors = []string{"CreateRiskPayload"} - -func (ec *executionContext) _CreateRiskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateRiskPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createRiskPayloadImplementors) - - 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("CreateRiskPayload") - case "riskEdge": - out.Values[i] = ec._CreateRiskPayload_riskEdge(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 createSnapshotPayloadImplementors = []string{"CreateSnapshotPayload"} - -func (ec *executionContext) _CreateSnapshotPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateSnapshotPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createSnapshotPayloadImplementors) - - 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("CreateSnapshotPayload") - case "snapshotEdge": - out.Values[i] = ec._CreateSnapshotPayload_snapshotEdge(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 createStateOfApplicabilityPayloadImplementors = []string{"CreateStateOfApplicabilityPayload"} - -func (ec *executionContext) _CreateStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateStateOfApplicabilityPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createStateOfApplicabilityPayloadImplementors) - - 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("CreateStateOfApplicabilityPayload") - case "stateOfApplicabilityEdge": - out.Values[i] = ec._CreateStateOfApplicabilityPayload_stateOfApplicabilityEdge(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 createTaskPayloadImplementors = []string{"CreateTaskPayload"} - -func (ec *executionContext) _CreateTaskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateTaskPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createTaskPayloadImplementors) - - 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("CreateTaskPayload") - case "taskEdge": - out.Values[i] = ec._CreateTaskPayload_taskEdge(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 createTransferImpactAssessmentPayloadImplementors = []string{"CreateTransferImpactAssessmentPayload"} - -func (ec *executionContext) _CreateTransferImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateTransferImpactAssessmentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createTransferImpactAssessmentPayloadImplementors) - - 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("CreateTransferImpactAssessmentPayload") - case "transferImpactAssessment": - out.Values[i] = ec._CreateTransferImpactAssessmentPayload_transferImpactAssessment(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 createTrustCenterFilePayloadImplementors = []string{"CreateTrustCenterFilePayload"} - -func (ec *executionContext) _CreateTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateTrustCenterFilePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createTrustCenterFilePayloadImplementors) - - 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("CreateTrustCenterFilePayload") - case "trustCenterFileEdge": - out.Values[i] = ec._CreateTrustCenterFilePayload_trustCenterFileEdge(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 createTrustCenterReferencePayloadImplementors = []string{"CreateTrustCenterReferencePayload"} - -func (ec *executionContext) _CreateTrustCenterReferencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateTrustCenterReferencePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createTrustCenterReferencePayloadImplementors) - - 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("CreateTrustCenterReferencePayload") - case "trustCenterReferenceEdge": - out.Values[i] = ec._CreateTrustCenterReferencePayload_trustCenterReferenceEdge(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 createVendorContactPayloadImplementors = []string{"CreateVendorContactPayload"} - -func (ec *executionContext) _CreateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateVendorContactPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createVendorContactPayloadImplementors) - - 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("CreateVendorContactPayload") - case "vendorContactEdge": - out.Values[i] = ec._CreateVendorContactPayload_vendorContactEdge(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 createVendorPayloadImplementors = []string{"CreateVendorPayload"} - -func (ec *executionContext) _CreateVendorPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateVendorPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createVendorPayloadImplementors) - - 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("CreateVendorPayload") - case "vendorEdge": - out.Values[i] = ec._CreateVendorPayload_vendorEdge(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 createVendorRiskAssessmentPayloadImplementors = []string{"CreateVendorRiskAssessmentPayload"} - -func (ec *executionContext) _CreateVendorRiskAssessmentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateVendorRiskAssessmentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createVendorRiskAssessmentPayloadImplementors) - - 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("CreateVendorRiskAssessmentPayload") - case "vendorRiskAssessmentEdge": - out.Values[i] = ec._CreateVendorRiskAssessmentPayload_vendorRiskAssessmentEdge(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 createVendorServicePayloadImplementors = []string{"CreateVendorServicePayload"} - -func (ec *executionContext) _CreateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateVendorServicePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createVendorServicePayloadImplementors) - - 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("CreateVendorServicePayload") - case "vendorServiceEdge": - out.Values[i] = ec._CreateVendorServicePayload_vendorServiceEdge(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 createWebhookSubscriptionPayloadImplementors = []string{"CreateWebhookSubscriptionPayload"} - -func (ec *executionContext) _CreateWebhookSubscriptionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateWebhookSubscriptionPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, createWebhookSubscriptionPayloadImplementors) - - 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("CreateWebhookSubscriptionPayload") - case "webhookSubscriptionEdge": - out.Values[i] = ec._CreateWebhookSubscriptionPayload_webhookSubscriptionEdge(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 customDomainImplementors = []string{"CustomDomain", "Node"} - -func (ec *executionContext) _CustomDomain(ctx context.Context, sel ast.SelectionSet, obj *types.CustomDomain) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, customDomainImplementors) - - 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("CustomDomain") - case "id": - out.Values[i] = ec._CustomDomain_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organization": - out.Values[i] = ec._CustomDomain_organization(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "domain": - out.Values[i] = ec._CustomDomain_domain(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "sslStatus": - out.Values[i] = ec._CustomDomain_sslStatus(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "sslExpiresAt": - out.Values[i] = ec._CustomDomain_sslExpiresAt(ctx, field, obj) - case "dnsRecords": - out.Values[i] = ec._CustomDomain_dnsRecords(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._CustomDomain_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._CustomDomain_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._CustomDomain_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 dNSRecordInstructionImplementors = []string{"DNSRecordInstruction"} - -func (ec *executionContext) _DNSRecordInstruction(ctx context.Context, sel ast.SelectionSet, obj *types.DNSRecordInstruction) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, dNSRecordInstructionImplementors) - - 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("DNSRecordInstruction") - case "type": - out.Values[i] = ec._DNSRecordInstruction_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec._DNSRecordInstruction_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "value": - out.Values[i] = ec._DNSRecordInstruction_value(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ttl": - out.Values[i] = ec._DNSRecordInstruction_ttl(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "purpose": - out.Values[i] = ec._DNSRecordInstruction_purpose(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 dataProtectionImpactAssessmentImplementors = []string{"DataProtectionImpactAssessment", "Node"} - -func (ec *executionContext) _DataProtectionImpactAssessment(ctx context.Context, sel ast.SelectionSet, obj *types.DataProtectionImpactAssessment) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, dataProtectionImpactAssessmentImplementors) - - 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("DataProtectionImpactAssessment") - case "id": - out.Values[i] = ec._DataProtectionImpactAssessment_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "processingActivity": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DataProtectionImpactAssessment_processingActivity(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DataProtectionImpactAssessment_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "description": - out.Values[i] = ec._DataProtectionImpactAssessment_description(ctx, field, obj) - case "necessityAndProportionality": - out.Values[i] = ec._DataProtectionImpactAssessment_necessityAndProportionality(ctx, field, obj) - case "potentialRisk": - out.Values[i] = ec._DataProtectionImpactAssessment_potentialRisk(ctx, field, obj) - case "mitigations": - out.Values[i] = ec._DataProtectionImpactAssessment_mitigations(ctx, field, obj) - case "residualRisk": - out.Values[i] = ec._DataProtectionImpactAssessment_residualRisk(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._DataProtectionImpactAssessment_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._DataProtectionImpactAssessment_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DataProtectionImpactAssessment_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 dataProtectionImpactAssessmentConnectionImplementors = []string{"DataProtectionImpactAssessmentConnection"} - -func (ec *executionContext) _DataProtectionImpactAssessmentConnection(ctx context.Context, sel ast.SelectionSet, obj *types.DataProtectionImpactAssessmentConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, dataProtectionImpactAssessmentConnectionImplementors) - - 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("DataProtectionImpactAssessmentConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DataProtectionImpactAssessmentConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._DataProtectionImpactAssessmentConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._DataProtectionImpactAssessmentConnection_pageInfo(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 dataProtectionImpactAssessmentEdgeImplementors = []string{"DataProtectionImpactAssessmentEdge"} - -func (ec *executionContext) _DataProtectionImpactAssessmentEdge(ctx context.Context, sel ast.SelectionSet, obj *types.DataProtectionImpactAssessmentEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, dataProtectionImpactAssessmentEdgeImplementors) - - 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("DataProtectionImpactAssessmentEdge") - case "cursor": - out.Values[i] = ec._DataProtectionImpactAssessmentEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._DataProtectionImpactAssessmentEdge_node(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 datumImplementors = []string{"Datum", "Node"} - -func (ec *executionContext) _Datum(ctx context.Context, sel ast.SelectionSet, obj *types.Datum) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, datumImplementors) - - 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("Datum") - case "id": - out.Values[i] = ec._Datum_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "snapshotId": - out.Values[i] = ec._Datum_snapshotId(ctx, field, obj) - case "name": - out.Values[i] = ec._Datum_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dataClassification": - out.Values[i] = ec._Datum_dataClassification(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "owner": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Datum_owner(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "vendors": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Datum_vendors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Datum_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Datum_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Datum_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Datum_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 datumConnectionImplementors = []string{"DatumConnection"} - -func (ec *executionContext) _DatumConnection(ctx context.Context, sel ast.SelectionSet, obj *types.DatumConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, datumConnectionImplementors) - - 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("DatumConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DatumConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._DatumConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._DatumConnection_pageInfo(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 datumEdgeImplementors = []string{"DatumEdge"} - -func (ec *executionContext) _DatumEdge(ctx context.Context, sel ast.SelectionSet, obj *types.DatumEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, datumEdgeImplementors) - - 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("DatumEdge") - case "cursor": - out.Values[i] = ec._DatumEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._DatumEdge_node(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 deleteApplicabilityStatementPayloadImplementors = []string{"DeleteApplicabilityStatementPayload"} - -func (ec *executionContext) _DeleteApplicabilityStatementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteApplicabilityStatementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteApplicabilityStatementPayloadImplementors) - - 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("DeleteApplicabilityStatementPayload") - case "deletedApplicabilityStatementId": - out.Values[i] = ec._DeleteApplicabilityStatementPayload_deletedApplicabilityStatementId(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 deleteAssetPayloadImplementors = []string{"DeleteAssetPayload"} - -func (ec *executionContext) _DeleteAssetPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteAssetPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteAssetPayloadImplementors) - - 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("DeleteAssetPayload") - case "deletedAssetId": - out.Values[i] = ec._DeleteAssetPayload_deletedAssetId(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 deleteAuditPayloadImplementors = []string{"DeleteAuditPayload"} - -func (ec *executionContext) _DeleteAuditPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteAuditPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteAuditPayloadImplementors) - - 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("DeleteAuditPayload") - case "deletedAuditId": - out.Values[i] = ec._DeleteAuditPayload_deletedAuditId(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 deleteAuditReportPayloadImplementors = []string{"DeleteAuditReportPayload"} - -func (ec *executionContext) _DeleteAuditReportPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteAuditReportPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteAuditReportPayloadImplementors) - - 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("DeleteAuditReportPayload") - case "audit": - out.Values[i] = ec._DeleteAuditReportPayload_audit(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 deleteComplianceExternalURLPayloadImplementors = []string{"DeleteComplianceExternalURLPayload"} - -func (ec *executionContext) _DeleteComplianceExternalURLPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteComplianceExternalURLPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteComplianceExternalURLPayloadImplementors) - - 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("DeleteComplianceExternalURLPayload") - case "deletedComplianceExternalUrlId": - out.Values[i] = ec._DeleteComplianceExternalURLPayload_deletedComplianceExternalUrlId(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 deleteComplianceFrameworkPayloadImplementors = []string{"DeleteComplianceFrameworkPayload"} - -func (ec *executionContext) _DeleteComplianceFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteComplianceFrameworkPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteComplianceFrameworkPayloadImplementors) - - 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("DeleteComplianceFrameworkPayload") - case "deletedComplianceFrameworkId": - out.Values[i] = ec._DeleteComplianceFrameworkPayload_deletedComplianceFrameworkId(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 deleteContinualImprovementPayloadImplementors = []string{"DeleteContinualImprovementPayload"} - -func (ec *executionContext) _DeleteContinualImprovementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteContinualImprovementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteContinualImprovementPayloadImplementors) - - 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("DeleteContinualImprovementPayload") - case "deletedContinualImprovementId": - out.Values[i] = ec._DeleteContinualImprovementPayload_deletedContinualImprovementId(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 deleteControlAuditMappingPayloadImplementors = []string{"DeleteControlAuditMappingPayload"} - -func (ec *executionContext) _DeleteControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlAuditMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlAuditMappingPayloadImplementors) - - 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("DeleteControlAuditMappingPayload") - case "deletedControlId": - out.Values[i] = ec._DeleteControlAuditMappingPayload_deletedControlId(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletedAuditId": - out.Values[i] = ec._DeleteControlAuditMappingPayload_deletedAuditId(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 deleteControlDocumentMappingPayloadImplementors = []string{"DeleteControlDocumentMappingPayload"} - -func (ec *executionContext) _DeleteControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlDocumentMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlDocumentMappingPayloadImplementors) - - 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("DeleteControlDocumentMappingPayload") - case "deletedControlId": - out.Values[i] = ec._DeleteControlDocumentMappingPayload_deletedControlId(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletedDocumentId": - out.Values[i] = ec._DeleteControlDocumentMappingPayload_deletedDocumentId(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 deleteControlMeasureMappingPayloadImplementors = []string{"DeleteControlMeasureMappingPayload"} - -func (ec *executionContext) _DeleteControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlMeasureMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlMeasureMappingPayloadImplementors) - - 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("DeleteControlMeasureMappingPayload") - case "deletedControlId": - out.Values[i] = ec._DeleteControlMeasureMappingPayload_deletedControlId(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletedMeasureId": - out.Values[i] = ec._DeleteControlMeasureMappingPayload_deletedMeasureId(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 deleteControlObligationMappingPayloadImplementors = []string{"DeleteControlObligationMappingPayload"} - -func (ec *executionContext) _DeleteControlObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlObligationMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlObligationMappingPayloadImplementors) - - 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("DeleteControlObligationMappingPayload") - case "deletedControlId": - out.Values[i] = ec._DeleteControlObligationMappingPayload_deletedControlId(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletedObligationId": - out.Values[i] = ec._DeleteControlObligationMappingPayload_deletedObligationId(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 deleteControlPayloadImplementors = []string{"DeleteControlPayload"} - -func (ec *executionContext) _DeleteControlPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlPayloadImplementors) - - 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("DeleteControlPayload") - case "deletedControlId": - out.Values[i] = ec._DeleteControlPayload_deletedControlId(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 deleteControlSnapshotMappingPayloadImplementors = []string{"DeleteControlSnapshotMappingPayload"} - -func (ec *executionContext) _DeleteControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteControlSnapshotMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteControlSnapshotMappingPayloadImplementors) - - 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("DeleteControlSnapshotMappingPayload") - case "deletedControlId": - out.Values[i] = ec._DeleteControlSnapshotMappingPayload_deletedControlId(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletedSnapshotId": - out.Values[i] = ec._DeleteControlSnapshotMappingPayload_deletedSnapshotId(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 deleteCustomDomainPayloadImplementors = []string{"DeleteCustomDomainPayload"} - -func (ec *executionContext) _DeleteCustomDomainPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteCustomDomainPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteCustomDomainPayloadImplementors) - - 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("DeleteCustomDomainPayload") - case "deletedCustomDomainId": - out.Values[i] = ec._DeleteCustomDomainPayload_deletedCustomDomainId(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 deleteDataProtectionImpactAssessmentPayloadImplementors = []string{"DeleteDataProtectionImpactAssessmentPayload"} - -func (ec *executionContext) _DeleteDataProtectionImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteDataProtectionImpactAssessmentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteDataProtectionImpactAssessmentPayloadImplementors) - - 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("DeleteDataProtectionImpactAssessmentPayload") - case "deletedDataProtectionImpactAssessmentId": - out.Values[i] = ec._DeleteDataProtectionImpactAssessmentPayload_deletedDataProtectionImpactAssessmentId(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 deleteDatumPayloadImplementors = []string{"DeleteDatumPayload"} - -func (ec *executionContext) _DeleteDatumPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteDatumPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteDatumPayloadImplementors) - - 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("DeleteDatumPayload") - case "deletedDatumId": - out.Values[i] = ec._DeleteDatumPayload_deletedDatumId(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 deleteDocumentPayloadImplementors = []string{"DeleteDocumentPayload"} - -func (ec *executionContext) _DeleteDocumentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteDocumentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteDocumentPayloadImplementors) - - 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("DeleteDocumentPayload") - case "deletedDocumentId": - out.Values[i] = ec._DeleteDocumentPayload_deletedDocumentId(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 deleteDraftDocumentVersionPayloadImplementors = []string{"DeleteDraftDocumentVersionPayload"} - -func (ec *executionContext) _DeleteDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteDraftDocumentVersionPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteDraftDocumentVersionPayloadImplementors) - - 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("DeleteDraftDocumentVersionPayload") - case "deletedDocumentVersionId": - out.Values[i] = ec._DeleteDraftDocumentVersionPayload_deletedDocumentVersionId(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 deleteEvidencePayloadImplementors = []string{"DeleteEvidencePayload"} - -func (ec *executionContext) _DeleteEvidencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteEvidencePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteEvidencePayloadImplementors) - - 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("DeleteEvidencePayload") - case "deletedEvidenceId": - out.Values[i] = ec._DeleteEvidencePayload_deletedEvidenceId(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 deleteFrameworkPayloadImplementors = []string{"DeleteFrameworkPayload"} - -func (ec *executionContext) _DeleteFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteFrameworkPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteFrameworkPayloadImplementors) - - 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("DeleteFrameworkPayload") - case "deletedFrameworkId": - out.Values[i] = ec._DeleteFrameworkPayload_deletedFrameworkId(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 deleteMailingListSubscriberPayloadImplementors = []string{"DeleteMailingListSubscriberPayload"} - -func (ec *executionContext) _DeleteMailingListSubscriberPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteMailingListSubscriberPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteMailingListSubscriberPayloadImplementors) - - 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("DeleteMailingListSubscriberPayload") - case "deletedMailingListSubscriberId": - out.Values[i] = ec._DeleteMailingListSubscriberPayload_deletedMailingListSubscriberId(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 deleteMailingListUpdatePayloadImplementors = []string{"DeleteMailingListUpdatePayload"} - -func (ec *executionContext) _DeleteMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteMailingListUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteMailingListUpdatePayloadImplementors) - - 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("DeleteMailingListUpdatePayload") - case "deletedMailingListUpdateId": - out.Values[i] = ec._DeleteMailingListUpdatePayload_deletedMailingListUpdateId(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 deleteMeasurePayloadImplementors = []string{"DeleteMeasurePayload"} - -func (ec *executionContext) _DeleteMeasurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteMeasurePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteMeasurePayloadImplementors) - - 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("DeleteMeasurePayload") - case "deletedMeasureId": - out.Values[i] = ec._DeleteMeasurePayload_deletedMeasureId(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 deleteMeetingPayloadImplementors = []string{"DeleteMeetingPayload"} - -func (ec *executionContext) _DeleteMeetingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteMeetingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteMeetingPayloadImplementors) - - 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("DeleteMeetingPayload") - case "deletedMeetingId": - out.Values[i] = ec._DeleteMeetingPayload_deletedMeetingId(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 deleteNonconformityPayloadImplementors = []string{"DeleteNonconformityPayload"} - -func (ec *executionContext) _DeleteNonconformityPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteNonconformityPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteNonconformityPayloadImplementors) - - 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("DeleteNonconformityPayload") - case "deletedNonconformityId": - out.Values[i] = ec._DeleteNonconformityPayload_deletedNonconformityId(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 deleteObligationPayloadImplementors = []string{"DeleteObligationPayload"} - -func (ec *executionContext) _DeleteObligationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteObligationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteObligationPayloadImplementors) - - 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("DeleteObligationPayload") - case "deletedObligationId": - out.Values[i] = ec._DeleteObligationPayload_deletedObligationId(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 deleteProcessingActivityPayloadImplementors = []string{"DeleteProcessingActivityPayload"} - -func (ec *executionContext) _DeleteProcessingActivityPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteProcessingActivityPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteProcessingActivityPayloadImplementors) - - 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("DeleteProcessingActivityPayload") - case "deletedProcessingActivityId": - out.Values[i] = ec._DeleteProcessingActivityPayload_deletedProcessingActivityId(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 deleteRightsRequestPayloadImplementors = []string{"DeleteRightsRequestPayload"} - -func (ec *executionContext) _DeleteRightsRequestPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteRightsRequestPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteRightsRequestPayloadImplementors) - - 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("DeleteRightsRequestPayload") - case "deletedRightsRequestId": - out.Values[i] = ec._DeleteRightsRequestPayload_deletedRightsRequestId(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 deleteRiskDocumentMappingPayloadImplementors = []string{"DeleteRiskDocumentMappingPayload"} - -func (ec *executionContext) _DeleteRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteRiskDocumentMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteRiskDocumentMappingPayloadImplementors) - - 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("DeleteRiskDocumentMappingPayload") - case "deletedRiskId": - out.Values[i] = ec._DeleteRiskDocumentMappingPayload_deletedRiskId(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletedDocumentId": - out.Values[i] = ec._DeleteRiskDocumentMappingPayload_deletedDocumentId(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 deleteRiskMeasureMappingPayloadImplementors = []string{"DeleteRiskMeasureMappingPayload"} - -func (ec *executionContext) _DeleteRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteRiskMeasureMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteRiskMeasureMappingPayloadImplementors) - - 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("DeleteRiskMeasureMappingPayload") - case "deletedMeasureId": - out.Values[i] = ec._DeleteRiskMeasureMappingPayload_deletedMeasureId(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletedRiskId": - out.Values[i] = ec._DeleteRiskMeasureMappingPayload_deletedRiskId(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 deleteRiskObligationMappingPayloadImplementors = []string{"DeleteRiskObligationMappingPayload"} - -func (ec *executionContext) _DeleteRiskObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteRiskObligationMappingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteRiskObligationMappingPayloadImplementors) - - 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("DeleteRiskObligationMappingPayload") - case "deletedRiskId": - out.Values[i] = ec._DeleteRiskObligationMappingPayload_deletedRiskId(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletedObligationId": - out.Values[i] = ec._DeleteRiskObligationMappingPayload_deletedObligationId(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 deleteRiskPayloadImplementors = []string{"DeleteRiskPayload"} - -func (ec *executionContext) _DeleteRiskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteRiskPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteRiskPayloadImplementors) - - 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("DeleteRiskPayload") - case "deletedRiskId": - out.Values[i] = ec._DeleteRiskPayload_deletedRiskId(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 deleteSnapshotPayloadImplementors = []string{"DeleteSnapshotPayload"} - -func (ec *executionContext) _DeleteSnapshotPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteSnapshotPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteSnapshotPayloadImplementors) - - 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("DeleteSnapshotPayload") - case "deletedSnapshotId": - out.Values[i] = ec._DeleteSnapshotPayload_deletedSnapshotId(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 deleteStateOfApplicabilityPayloadImplementors = []string{"DeleteStateOfApplicabilityPayload"} - -func (ec *executionContext) _DeleteStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteStateOfApplicabilityPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteStateOfApplicabilityPayloadImplementors) - - 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("DeleteStateOfApplicabilityPayload") - case "deletedStateOfApplicabilityId": - out.Values[i] = ec._DeleteStateOfApplicabilityPayload_deletedStateOfApplicabilityId(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 deleteTaskPayloadImplementors = []string{"DeleteTaskPayload"} - -func (ec *executionContext) _DeleteTaskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteTaskPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteTaskPayloadImplementors) - - 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("DeleteTaskPayload") - case "deletedTaskId": - out.Values[i] = ec._DeleteTaskPayload_deletedTaskId(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 deleteTransferImpactAssessmentPayloadImplementors = []string{"DeleteTransferImpactAssessmentPayload"} - -func (ec *executionContext) _DeleteTransferImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteTransferImpactAssessmentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteTransferImpactAssessmentPayloadImplementors) - - 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("DeleteTransferImpactAssessmentPayload") - case "deletedTransferImpactAssessmentId": - out.Values[i] = ec._DeleteTransferImpactAssessmentPayload_deletedTransferImpactAssessmentId(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 deleteTrustCenterAccessPayloadImplementors = []string{"DeleteTrustCenterAccessPayload"} - -func (ec *executionContext) _DeleteTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteTrustCenterAccessPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteTrustCenterAccessPayloadImplementors) - - 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("DeleteTrustCenterAccessPayload") - case "deletedTrustCenterAccessId": - out.Values[i] = ec._DeleteTrustCenterAccessPayload_deletedTrustCenterAccessId(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 deleteTrustCenterFilePayloadImplementors = []string{"DeleteTrustCenterFilePayload"} - -func (ec *executionContext) _DeleteTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteTrustCenterFilePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteTrustCenterFilePayloadImplementors) - - 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("DeleteTrustCenterFilePayload") - case "deletedTrustCenterFileId": - out.Values[i] = ec._DeleteTrustCenterFilePayload_deletedTrustCenterFileId(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 deleteTrustCenterNDAPayloadImplementors = []string{"DeleteTrustCenterNDAPayload"} - -func (ec *executionContext) _DeleteTrustCenterNDAPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteTrustCenterNDAPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteTrustCenterNDAPayloadImplementors) - - 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("DeleteTrustCenterNDAPayload") - case "trustCenter": - out.Values[i] = ec._DeleteTrustCenterNDAPayload_trustCenter(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 deleteTrustCenterReferencePayloadImplementors = []string{"DeleteTrustCenterReferencePayload"} - -func (ec *executionContext) _DeleteTrustCenterReferencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteTrustCenterReferencePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteTrustCenterReferencePayloadImplementors) - - 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("DeleteTrustCenterReferencePayload") - case "deletedTrustCenterReferenceId": - out.Values[i] = ec._DeleteTrustCenterReferencePayload_deletedTrustCenterReferenceId(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 deleteVendorBusinessAssociateAgreementPayloadImplementors = []string{"DeleteVendorBusinessAssociateAgreementPayload"} - -func (ec *executionContext) _DeleteVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorBusinessAssociateAgreementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorBusinessAssociateAgreementPayloadImplementors) - - 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("DeleteVendorBusinessAssociateAgreementPayload") - case "deletedVendorId": - out.Values[i] = ec._DeleteVendorBusinessAssociateAgreementPayload_deletedVendorId(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 deleteVendorComplianceReportPayloadImplementors = []string{"DeleteVendorComplianceReportPayload"} - -func (ec *executionContext) _DeleteVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorComplianceReportPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorComplianceReportPayloadImplementors) - - 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("DeleteVendorComplianceReportPayload") - case "deletedVendorComplianceReportId": - out.Values[i] = ec._DeleteVendorComplianceReportPayload_deletedVendorComplianceReportId(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 deleteVendorContactPayloadImplementors = []string{"DeleteVendorContactPayload"} - -func (ec *executionContext) _DeleteVendorContactPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorContactPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorContactPayloadImplementors) - - 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("DeleteVendorContactPayload") - case "deletedVendorContactId": - out.Values[i] = ec._DeleteVendorContactPayload_deletedVendorContactId(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 deleteVendorDataPrivacyAgreementPayloadImplementors = []string{"DeleteVendorDataPrivacyAgreementPayload"} - -func (ec *executionContext) _DeleteVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorDataPrivacyAgreementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorDataPrivacyAgreementPayloadImplementors) - - 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("DeleteVendorDataPrivacyAgreementPayload") - case "deletedVendorId": - out.Values[i] = ec._DeleteVendorDataPrivacyAgreementPayload_deletedVendorId(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 deleteVendorPayloadImplementors = []string{"DeleteVendorPayload"} - -func (ec *executionContext) _DeleteVendorPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorPayloadImplementors) - - 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("DeleteVendorPayload") - case "deletedVendorId": - out.Values[i] = ec._DeleteVendorPayload_deletedVendorId(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 deleteVendorServicePayloadImplementors = []string{"DeleteVendorServicePayload"} - -func (ec *executionContext) _DeleteVendorServicePayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteVendorServicePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteVendorServicePayloadImplementors) - - 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("DeleteVendorServicePayload") - case "deletedVendorServiceId": - out.Values[i] = ec._DeleteVendorServicePayload_deletedVendorServiceId(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 deleteWebhookSubscriptionPayloadImplementors = []string{"DeleteWebhookSubscriptionPayload"} - -func (ec *executionContext) _DeleteWebhookSubscriptionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteWebhookSubscriptionPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, deleteWebhookSubscriptionPayloadImplementors) - - 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("DeleteWebhookSubscriptionPayload") - case "deletedWebhookSubscriptionId": - out.Values[i] = ec._DeleteWebhookSubscriptionPayload_deletedWebhookSubscriptionId(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 documentImplementors = []string{"Document", "Node"} - -func (ec *executionContext) _Document(ctx context.Context, sel ast.SelectionSet, obj *types.Document) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentImplementors) - - 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("Document") - case "id": - out.Values[i] = ec._Document_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "title": - out.Values[i] = ec._Document_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Document_description(ctx, field, obj) - case "documentType": - out.Values[i] = ec._Document_documentType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "classification": - out.Values[i] = ec._Document_classification(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "currentPublishedVersion": - out.Values[i] = ec._Document_currentPublishedVersion(ctx, field, obj) - case "trustCenterVisibility": - out.Values[i] = ec._Document_trustCenterVisibility(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "approvers": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Document_approvers(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Document_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "versions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Document_versions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Document_controls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Document_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Document_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Document_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 documentConnectionImplementors = []string{"DocumentConnection"} - -func (ec *executionContext) _DocumentConnection(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentConnectionImplementors) - - 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("DocumentConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._DocumentConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._DocumentConnection_pageInfo(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 documentEdgeImplementors = []string{"DocumentEdge"} - -func (ec *executionContext) _DocumentEdge(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentEdgeImplementors) - - 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("DocumentEdge") - case "cursor": - out.Values[i] = ec._DocumentEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._DocumentEdge_node(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 documentVersionImplementors = []string{"DocumentVersion", "Node"} - -func (ec *executionContext) _DocumentVersion(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersion) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionImplementors) - - 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("DocumentVersion") - case "id": - out.Values[i] = ec._DocumentVersion_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "document": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentVersion_document(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the 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._DocumentVersion_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "version": - out.Values[i] = ec._DocumentVersion_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "content": - out.Values[i] = ec._DocumentVersion_content(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "changelog": - out.Values[i] = ec._DocumentVersion_changelog(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "title": - out.Values[i] = ec._DocumentVersion_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "classification": - out.Values[i] = ec._DocumentVersion_classification(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "approvers": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentVersion_approvers(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "signatures": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentVersion_signatures(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "signed": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentVersion_signed(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "publishedAt": - out.Values[i] = ec._DocumentVersion_publishedAt(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._DocumentVersion_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._DocumentVersion_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentVersion_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 documentVersionConnectionImplementors = []string{"DocumentVersionConnection"} - -func (ec *executionContext) _DocumentVersionConnection(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersionConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionConnectionImplementors) - - 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("DocumentVersionConnection") - case "edges": - out.Values[i] = ec._DocumentVersionConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._DocumentVersionConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentVersionConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 documentVersionEdgeImplementors = []string{"DocumentVersionEdge"} - -func (ec *executionContext) _DocumentVersionEdge(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersionEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionEdgeImplementors) - - 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("DocumentVersionEdge") - case "cursor": - out.Values[i] = ec._DocumentVersionEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._DocumentVersionEdge_node(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 documentVersionSignatureImplementors = []string{"DocumentVersionSignature", "Node"} - -func (ec *executionContext) _DocumentVersionSignature(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersionSignature) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionSignatureImplementors) - - 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("DocumentVersionSignature") - case "id": - out.Values[i] = ec._DocumentVersionSignature_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "documentVersion": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentVersionSignature_documentVersion(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "state": - out.Values[i] = ec._DocumentVersionSignature_state(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "signedBy": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentVersionSignature_signedBy(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "signedAt": - out.Values[i] = ec._DocumentVersionSignature_signedAt(ctx, field, obj) - case "requestedAt": - out.Values[i] = ec._DocumentVersionSignature_requestedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._DocumentVersionSignature_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._DocumentVersionSignature_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentVersionSignature_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 documentVersionSignatureConnectionImplementors = []string{"DocumentVersionSignatureConnection"} - -func (ec *executionContext) _DocumentVersionSignatureConnection(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersionSignatureConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionSignatureConnectionImplementors) - - 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("DocumentVersionSignatureConnection") - case "edges": - out.Values[i] = ec._DocumentVersionSignatureConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._DocumentVersionSignatureConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._DocumentVersionSignatureConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 documentVersionSignatureEdgeImplementors = []string{"DocumentVersionSignatureEdge"} - -func (ec *executionContext) _DocumentVersionSignatureEdge(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentVersionSignatureEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentVersionSignatureEdgeImplementors) - - 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("DocumentVersionSignatureEdge") - case "cursor": - out.Values[i] = ec._DocumentVersionSignatureEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._DocumentVersionSignatureEdge_node(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 electronicSignatureImplementors = []string{"ElectronicSignature", "Node"} - -func (ec *executionContext) _ElectronicSignature(ctx context.Context, sel ast.SelectionSet, obj *types.ElectronicSignature) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, electronicSignatureImplementors) - - 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("ElectronicSignature") - case "id": - out.Values[i] = ec._ElectronicSignature_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "status": - out.Values[i] = ec._ElectronicSignature_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "documentType": - out.Values[i] = ec._ElectronicSignature_documentType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "consentText": - out.Values[i] = ec._ElectronicSignature_consentText(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "lastError": - out.Values[i] = ec._ElectronicSignature_lastError(ctx, field, obj) - case "signedAt": - out.Values[i] = ec._ElectronicSignature_signedAt(ctx, field, obj) - case "certificateFileUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ElectronicSignature_certificateFileUrl(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 "events": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ElectronicSignature_events(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._ElectronicSignature_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._ElectronicSignature_updatedAt(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 electronicSignatureEventImplementors = []string{"ElectronicSignatureEvent"} - -func (ec *executionContext) _ElectronicSignatureEvent(ctx context.Context, sel ast.SelectionSet, obj *types.ElectronicSignatureEvent) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, electronicSignatureEventImplementors) - - 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("ElectronicSignatureEvent") - case "id": - out.Values[i] = ec._ElectronicSignatureEvent_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "eventType": - out.Values[i] = ec._ElectronicSignatureEvent_eventType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "eventSource": - out.Values[i] = ec._ElectronicSignatureEvent_eventSource(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "actorEmail": - out.Values[i] = ec._ElectronicSignatureEvent_actorEmail(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "actorIpAddress": - out.Values[i] = ec._ElectronicSignatureEvent_actorIpAddress(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "actorUserAgent": - out.Values[i] = ec._ElectronicSignatureEvent_actorUserAgent(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "occurredAt": - out.Values[i] = ec._ElectronicSignatureEvent_occurredAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._ElectronicSignatureEvent_createdAt(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 evidenceImplementors = []string{"Evidence", "Node"} - -func (ec *executionContext) _Evidence(ctx context.Context, sel ast.SelectionSet, obj *types.Evidence) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceImplementors) - - 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("Evidence") - case "id": - out.Values[i] = ec._Evidence_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "size": - out.Values[i] = ec._Evidence_size(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "state": - out.Values[i] = ec._Evidence_state(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._Evidence_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "file": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Evidence_file(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 "url": - out.Values[i] = ec._Evidence_url(ctx, field, obj) - case "description": - out.Values[i] = ec._Evidence_description(ctx, field, obj) - case "task": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Evidence_task(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 "measure": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Evidence_measure(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Evidence_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Evidence_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Evidence_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 evidenceConnectionImplementors = []string{"EvidenceConnection"} - -func (ec *executionContext) _EvidenceConnection(ctx context.Context, sel ast.SelectionSet, obj *types.EvidenceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceConnectionImplementors) - - 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("EvidenceConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._EvidenceConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._EvidenceConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._EvidenceConnection_pageInfo(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 evidenceEdgeImplementors = []string{"EvidenceEdge"} - -func (ec *executionContext) _EvidenceEdge(ctx context.Context, sel ast.SelectionSet, obj *types.EvidenceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, evidenceEdgeImplementors) - - 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("EvidenceEdge") - case "cursor": - out.Values[i] = ec._EvidenceEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._EvidenceEdge_node(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 exportDataProtectionImpactAssessmentsPDFPayloadImplementors = []string{"ExportDataProtectionImpactAssessmentsPDFPayload"} - -func (ec *executionContext) _ExportDataProtectionImpactAssessmentsPDFPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportDataProtectionImpactAssessmentsPDFPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportDataProtectionImpactAssessmentsPDFPayloadImplementors) - - 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("ExportDataProtectionImpactAssessmentsPDFPayload") - case "data": - out.Values[i] = ec._ExportDataProtectionImpactAssessmentsPDFPayload_data(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 exportDocumentVersionPDFPayloadImplementors = []string{"ExportDocumentVersionPDFPayload"} - -func (ec *executionContext) _ExportDocumentVersionPDFPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportDocumentVersionPDFPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportDocumentVersionPDFPayloadImplementors) - - 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("ExportDocumentVersionPDFPayload") - case "data": - out.Values[i] = ec._ExportDocumentVersionPDFPayload_data(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 exportFrameworkPayloadImplementors = []string{"ExportFrameworkPayload"} - -func (ec *executionContext) _ExportFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportFrameworkPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportFrameworkPayloadImplementors) - - 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("ExportFrameworkPayload") - case "exportJobId": - out.Values[i] = ec._ExportFrameworkPayload_exportJobId(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 exportProcessingActivitiesPDFPayloadImplementors = []string{"ExportProcessingActivitiesPDFPayload"} - -func (ec *executionContext) _ExportProcessingActivitiesPDFPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportProcessingActivitiesPDFPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportProcessingActivitiesPDFPayloadImplementors) - - 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("ExportProcessingActivitiesPDFPayload") - case "data": - out.Values[i] = ec._ExportProcessingActivitiesPDFPayload_data(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 exportSignableDocumentVersionPDFPayloadImplementors = []string{"ExportSignableDocumentVersionPDFPayload"} - -func (ec *executionContext) _ExportSignableDocumentVersionPDFPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportSignableDocumentVersionPDFPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportSignableDocumentVersionPDFPayloadImplementors) - - 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("ExportSignableDocumentVersionPDFPayload") - case "data": - out.Values[i] = ec._ExportSignableDocumentVersionPDFPayload_data(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 exportStateOfApplicabilityPDFPayloadImplementors = []string{"ExportStateOfApplicabilityPDFPayload"} - -func (ec *executionContext) _ExportStateOfApplicabilityPDFPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportStateOfApplicabilityPDFPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportStateOfApplicabilityPDFPayloadImplementors) - - 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("ExportStateOfApplicabilityPDFPayload") - case "data": - out.Values[i] = ec._ExportStateOfApplicabilityPDFPayload_data(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 exportTransferImpactAssessmentsPDFPayloadImplementors = []string{"ExportTransferImpactAssessmentsPDFPayload"} - -func (ec *executionContext) _ExportTransferImpactAssessmentsPDFPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportTransferImpactAssessmentsPDFPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportTransferImpactAssessmentsPDFPayloadImplementors) - - 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("ExportTransferImpactAssessmentsPDFPayload") - case "data": - out.Values[i] = ec._ExportTransferImpactAssessmentsPDFPayload_data(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 fileImplementors = []string{"File"} - -func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj *types.File) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileImplementors) - - 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("File") - case "id": - out.Values[i] = ec._File_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "mimeType": - out.Values[i] = ec._File_mimeType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fileName": - out.Values[i] = ec._File_fileName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "size": - out.Values[i] = ec._File_size(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - 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._File_downloadUrl(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._File_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._File_updatedAt(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 frameworkImplementors = []string{"Framework", "Node"} - -func (ec *executionContext) _Framework(ctx context.Context, sel ast.SelectionSet, obj *types.Framework) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, frameworkImplementors) - - 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("Framework") - case "id": - out.Values[i] = ec._Framework_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Framework_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Framework_description(ctx, field, obj) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Framework_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Framework_controls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "lightLogoURL": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Framework_lightLogoURL(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 "darkLogoURL": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Framework_darkLogoURL(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 "createdAt": - out.Values[i] = ec._Framework_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Framework_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Framework_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 frameworkConnectionImplementors = []string{"FrameworkConnection"} - -func (ec *executionContext) _FrameworkConnection(ctx context.Context, sel ast.SelectionSet, obj *types.FrameworkConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, frameworkConnectionImplementors) - - 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("FrameworkConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._FrameworkConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._FrameworkConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._FrameworkConnection_pageInfo(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 frameworkEdgeImplementors = []string{"FrameworkEdge"} - -func (ec *executionContext) _FrameworkEdge(ctx context.Context, sel ast.SelectionSet, obj *types.FrameworkEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, frameworkEdgeImplementors) - - 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("FrameworkEdge") - case "cursor": - out.Values[i] = ec._FrameworkEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._FrameworkEdge_node(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 generateDocumentChangelogPayloadImplementors = []string{"GenerateDocumentChangelogPayload"} - -func (ec *executionContext) _GenerateDocumentChangelogPayload(ctx context.Context, sel ast.SelectionSet, obj *types.GenerateDocumentChangelogPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, generateDocumentChangelogPayloadImplementors) - - 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("GenerateDocumentChangelogPayload") - case "changelog": - out.Values[i] = ec._GenerateDocumentChangelogPayload_changelog(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 getTrustCenterFilePayloadImplementors = []string{"GetTrustCenterFilePayload"} - -func (ec *executionContext) _GetTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, obj *types.GetTrustCenterFilePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, getTrustCenterFilePayloadImplementors) - - 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("GetTrustCenterFilePayload") - case "trustCenterFile": - out.Values[i] = ec._GetTrustCenterFilePayload_trustCenterFile(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 importFrameworkPayloadImplementors = []string{"ImportFrameworkPayload"} - -func (ec *executionContext) _ImportFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ImportFrameworkPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, importFrameworkPayloadImplementors) - - 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("ImportFrameworkPayload") - case "frameworkEdge": - out.Values[i] = ec._ImportFrameworkPayload_frameworkEdge(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 importMeasurePayloadImplementors = []string{"ImportMeasurePayload"} - -func (ec *executionContext) _ImportMeasurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.ImportMeasurePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, importMeasurePayloadImplementors) - - 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("ImportMeasurePayload") - case "measureEdges": - out.Values[i] = ec._ImportMeasurePayload_measureEdges(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 mailingListImplementors = []string{"MailingList", "Node"} - -func (ec *executionContext) _MailingList(ctx context.Context, sel ast.SelectionSet, obj *types.MailingList) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListImplementors) - - 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("MailingList") - case "id": - out.Values[i] = ec._MailingList_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "replyTo": - out.Values[i] = ec._MailingList_replyTo(ctx, field, obj) - case "subscribers": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MailingList_subscribers(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "updates": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MailingList_updates(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 mailingListSubscriberImplementors = []string{"MailingListSubscriber", "Node"} - -func (ec *executionContext) _MailingListSubscriber(ctx context.Context, sel ast.SelectionSet, obj *types.MailingListSubscriber) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListSubscriberImplementors) - - 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("MailingListSubscriber") - case "id": - out.Values[i] = ec._MailingListSubscriber_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fullName": - out.Values[i] = ec._MailingListSubscriber_fullName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "email": - out.Values[i] = ec._MailingListSubscriber_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._MailingListSubscriber_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._MailingListSubscriber_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatedAt": - out.Values[i] = ec._MailingListSubscriber_updatedAt(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 mailingListSubscriberConnectionImplementors = []string{"MailingListSubscriberConnection"} - -func (ec *executionContext) _MailingListSubscriberConnection(ctx context.Context, sel ast.SelectionSet, obj *types.MailingListSubscriberConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListSubscriberConnectionImplementors) - - 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("MailingListSubscriberConnection") - case "edges": - out.Values[i] = ec._MailingListSubscriberConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._MailingListSubscriberConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MailingListSubscriberConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 mailingListSubscriberEdgeImplementors = []string{"MailingListSubscriberEdge"} - -func (ec *executionContext) _MailingListSubscriberEdge(ctx context.Context, sel ast.SelectionSet, obj *types.MailingListSubscriberEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListSubscriberEdgeImplementors) - - 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("MailingListSubscriberEdge") - case "cursor": - out.Values[i] = ec._MailingListSubscriberEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._MailingListSubscriberEdge_node(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 mailingListUpdateImplementors = []string{"MailingListUpdate", "Node"} - -func (ec *executionContext) _MailingListUpdate(ctx context.Context, sel ast.SelectionSet, obj *types.MailingListUpdate) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListUpdateImplementors) - - 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("MailingListUpdate") - case "id": - out.Values[i] = ec._MailingListUpdate_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "title": - out.Values[i] = ec._MailingListUpdate_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "body": - out.Values[i] = ec._MailingListUpdate_body(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._MailingListUpdate_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._MailingListUpdate_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatedAt": - out.Values[i] = ec._MailingListUpdate_updatedAt(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 mailingListUpdateConnectionImplementors = []string{"MailingListUpdateConnection"} - -func (ec *executionContext) _MailingListUpdateConnection(ctx context.Context, sel ast.SelectionSet, obj *types.MailingListUpdateConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListUpdateConnectionImplementors) - - 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("MailingListUpdateConnection") - case "edges": - out.Values[i] = ec._MailingListUpdateConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._MailingListUpdateConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MailingListUpdateConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 mailingListUpdateEdgeImplementors = []string{"MailingListUpdateEdge"} - -func (ec *executionContext) _MailingListUpdateEdge(ctx context.Context, sel ast.SelectionSet, obj *types.MailingListUpdateEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListUpdateEdgeImplementors) - - 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("MailingListUpdateEdge") - case "cursor": - out.Values[i] = ec._MailingListUpdateEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._MailingListUpdateEdge_node(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 measureImplementors = []string{"Measure", "Node"} - -func (ec *executionContext) _Measure(ctx context.Context, sel ast.SelectionSet, obj *types.Measure) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, measureImplementors) - - 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("Measure") - case "id": - out.Values[i] = ec._Measure_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "category": - out.Values[i] = ec._Measure_category(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Measure_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Measure_description(ctx, field, obj) - case "state": - out.Values[i] = ec._Measure_state(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "evidences": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Measure_evidences(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Measure_tasks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risks": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Measure_risks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Measure_controls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Measure_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Measure_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Measure_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 measureConnectionImplementors = []string{"MeasureConnection"} - -func (ec *executionContext) _MeasureConnection(ctx context.Context, sel ast.SelectionSet, obj *types.MeasureConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, measureConnectionImplementors) - - 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("MeasureConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MeasureConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._MeasureConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._MeasureConnection_pageInfo(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 measureEdgeImplementors = []string{"MeasureEdge"} - -func (ec *executionContext) _MeasureEdge(ctx context.Context, sel ast.SelectionSet, obj *types.MeasureEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, measureEdgeImplementors) - - 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("MeasureEdge") - case "cursor": - out.Values[i] = ec._MeasureEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._MeasureEdge_node(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 meetingImplementors = []string{"Meeting", "Node"} - -func (ec *executionContext) _Meeting(ctx context.Context, sel ast.SelectionSet, obj *types.Meeting) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, meetingImplementors) - - 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("Meeting") - case "id": - out.Values[i] = ec._Meeting_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Meeting_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "date": - out.Values[i] = ec._Meeting_date(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "minutes": - out.Values[i] = ec._Meeting_minutes(ctx, field, obj) - case "attendees": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Meeting_attendees(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Meeting_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Meeting_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Meeting_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Meeting_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 meetingConnectionImplementors = []string{"MeetingConnection"} - -func (ec *executionContext) _MeetingConnection(ctx context.Context, sel ast.SelectionSet, obj *types.MeetingConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, meetingConnectionImplementors) - - 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("MeetingConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._MeetingConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._MeetingConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._MeetingConnection_pageInfo(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 meetingEdgeImplementors = []string{"MeetingEdge"} - -func (ec *executionContext) _MeetingEdge(ctx context.Context, sel ast.SelectionSet, obj *types.MeetingEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, meetingEdgeImplementors) - - 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("MeetingEdge") - case "cursor": - out.Values[i] = ec._MeetingEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._MeetingEdge_node(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 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 "updateOrganizationContext": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOrganizationContext(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateTrustCenter": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTrustCenter(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "uploadTrustCenterNDA": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_uploadTrustCenterNDA(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteTrustCenterNDA": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteTrustCenterNDA(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateTrustCenterBrand": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTrustCenterBrand(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateTrustCenterAccess": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTrustCenterAccess(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteTrustCenterAccess": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteTrustCenterAccess(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createMailingListUpdate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createMailingListUpdate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateMailingListUpdate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateMailingListUpdate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "sendMailingListUpdate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_sendMailingListUpdate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteMailingListUpdate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteMailingListUpdate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateMailingList": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateMailingList(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createMailingListSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createMailingListSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteMailingListSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteMailingListSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createTrustCenterReference": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createTrustCenterReference(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateTrustCenterReference": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTrustCenterReference(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteTrustCenterReference": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteTrustCenterReference(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createComplianceFramework": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createComplianceFramework(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateComplianceFramework": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateComplianceFramework(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteComplianceFramework": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteComplianceFramework(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createComplianceExternalURL": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createComplianceExternalURL(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateComplianceExternalURL": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateComplianceExternalURL(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteComplianceExternalURL": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteComplianceExternalURL(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createTrustCenterFile": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createTrustCenterFile(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateTrustCenterFile": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTrustCenterFile(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "getTrustCenterFile": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_getTrustCenterFile(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteTrustCenterFile": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteTrustCenterFile(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createVendor": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createVendor(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateVendor": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateVendor(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteVendor": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteVendor(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createVendorContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createVendorContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateVendorContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateVendorContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteVendorContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteVendorContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createVendorService": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createVendorService(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateVendorService": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateVendorService(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteVendorService": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteVendorService(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createFramework": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createFramework(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateFramework": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateFramework(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "importFramework": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_importFramework(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteFramework": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteFramework(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportFramework": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_exportFramework(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createControl": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createControl(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateControl": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateControl(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteControl": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteControl(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createMeasure": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createMeasure(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateMeasure": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateMeasure(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "importMeasure": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_importMeasure(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteMeasure": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteMeasure(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createControlMeasureMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createControlMeasureMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createControlDocumentMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createControlDocumentMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteControlMeasureMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteControlMeasureMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteControlDocumentMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteControlDocumentMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createApplicabilityStatement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createApplicabilityStatement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateApplicabilityStatement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateApplicabilityStatement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteApplicabilityStatement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteApplicabilityStatement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createControlAuditMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createControlAuditMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteControlAuditMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteControlAuditMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createControlObligationMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createControlObligationMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteControlObligationMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteControlObligationMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createControlSnapshotMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createControlSnapshotMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteControlSnapshotMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteControlSnapshotMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createTask": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createTask(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateTask": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTask(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteTask": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteTask(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createRisk": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createRisk(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateRisk": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateRisk(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteRisk": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteRisk(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createRiskMeasureMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createRiskMeasureMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteRiskMeasureMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteRiskMeasureMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createRiskDocumentMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createRiskDocumentMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteRiskDocumentMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteRiskDocumentMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createRiskObligationMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createRiskObligationMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteRiskObligationMapping": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteRiskObligationMapping(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEvidence": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEvidence(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "uploadMeasureEvidence": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_uploadMeasureEvidence(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "uploadVendorComplianceReport": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_uploadVendorComplianceReport(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteVendorComplianceReport": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteVendorComplianceReport(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "uploadVendorBusinessAssociateAgreement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_uploadVendorBusinessAssociateAgreement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateVendorBusinessAssociateAgreement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateVendorBusinessAssociateAgreement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteVendorBusinessAssociateAgreement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteVendorBusinessAssociateAgreement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "uploadVendorDataPrivacyAgreement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_uploadVendorDataPrivacyAgreement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateVendorDataPrivacyAgreement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateVendorDataPrivacyAgreement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteVendorDataPrivacyAgreement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteVendorDataPrivacyAgreement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createDocument": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createDocument(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateDocument": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateDocument(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteDocument": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteDocument(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createMeeting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createMeeting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateMeeting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateMeeting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteMeeting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteMeeting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createWebhookSubscription": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createWebhookSubscription(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateWebhookSubscription": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateWebhookSubscription(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteWebhookSubscription": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteWebhookSubscription(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createStateOfApplicability": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createStateOfApplicability(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateStateOfApplicability": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateStateOfApplicability(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteStateOfApplicability": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteStateOfApplicability(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportStateOfApplicabilityPDF": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_exportStateOfApplicabilityPDF(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "publishDocumentVersion": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_publishDocumentVersion(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "bulkPublishDocumentVersions": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_bulkPublishDocumentVersions(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "bulkDeleteDocuments": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_bulkDeleteDocuments(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "bulkExportDocuments": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_bulkExportDocuments(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "generateDocumentChangelog": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_generateDocumentChangelog(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createDraftDocumentVersion": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createDraftDocumentVersion(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteDraftDocumentVersion": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteDraftDocumentVersion(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateDocumentVersion": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateDocumentVersion(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "requestSignature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_requestSignature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "bulkRequestSignatures": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_bulkRequestSignatures(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "sendSigningNotifications": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_sendSigningNotifications(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "cancelSignatureRequest": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_cancelSignatureRequest(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "signDocument": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_signDocument(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportDocumentVersionPDF": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_exportDocumentVersionPDF(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportSignableVersionDocumentPDF": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_exportSignableVersionDocumentPDF(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportProcessingActivitiesPDF": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_exportProcessingActivitiesPDF(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportDataProtectionImpactAssessmentsPDF": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_exportDataProtectionImpactAssessmentsPDF(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportTransferImpactAssessmentsPDF": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_exportTransferImpactAssessmentsPDF(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createVendorRiskAssessment": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createVendorRiskAssessment(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "assessVendor": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_assessVendor(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createAsset": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createAsset(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateAsset": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateAsset(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteAsset": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteAsset(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createDatum": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createDatum(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateDatum": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateDatum(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteDatum": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteDatum(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createAudit": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createAudit(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateAudit": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateAudit(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteAudit": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteAudit(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "uploadAuditReport": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_uploadAuditReport(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteAuditReport": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteAuditReport(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createNonconformity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createNonconformity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateNonconformity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateNonconformity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteNonconformity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteNonconformity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createObligation": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createObligation(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateObligation": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateObligation(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteObligation": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteObligation(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createContinualImprovement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createContinualImprovement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateContinualImprovement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateContinualImprovement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteContinualImprovement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteContinualImprovement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createRightsRequest": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createRightsRequest(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateRightsRequest": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateRightsRequest(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteRightsRequest": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteRightsRequest(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createProcessingActivity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createProcessingActivity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateProcessingActivity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateProcessingActivity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteProcessingActivity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteProcessingActivity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createDataProtectionImpactAssessment": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createDataProtectionImpactAssessment(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateDataProtectionImpactAssessment": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateDataProtectionImpactAssessment(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteDataProtectionImpactAssessment": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteDataProtectionImpactAssessment(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createTransferImpactAssessment": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createTransferImpactAssessment(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateTransferImpactAssessment": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTransferImpactAssessment(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteTransferImpactAssessment": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteTransferImpactAssessment(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createSnapshot": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createSnapshot(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteSnapshot": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteSnapshot(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createCustomDomain": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createCustomDomain(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteCustomDomain": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteCustomDomain(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 nonconformityImplementors = []string{"Nonconformity", "Node"} - -func (ec *executionContext) _Nonconformity(ctx context.Context, sel ast.SelectionSet, obj *types.Nonconformity) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, nonconformityImplementors) - - 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("Nonconformity") - case "id": - out.Values[i] = ec._Nonconformity_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "snapshotId": - out.Values[i] = ec._Nonconformity_snapshotId(ctx, field, obj) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Nonconformity_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "referenceId": - out.Values[i] = ec._Nonconformity_referenceId(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Nonconformity_description(ctx, field, obj) - case "audit": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Nonconformity_audit(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 "dateIdentified": - out.Values[i] = ec._Nonconformity_dateIdentified(ctx, field, obj) - case "rootCause": - out.Values[i] = ec._Nonconformity_rootCause(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "correctiveAction": - out.Values[i] = ec._Nonconformity_correctiveAction(ctx, field, obj) - case "owner": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Nonconformity_owner(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dueDate": - out.Values[i] = ec._Nonconformity_dueDate(ctx, field, obj) - case "status": - out.Values[i] = ec._Nonconformity_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "effectivenessCheck": - out.Values[i] = ec._Nonconformity_effectivenessCheck(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._Nonconformity_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Nonconformity_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Nonconformity_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 nonconformityConnectionImplementors = []string{"NonconformityConnection"} - -func (ec *executionContext) _NonconformityConnection(ctx context.Context, sel ast.SelectionSet, obj *types.NonconformityConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, nonconformityConnectionImplementors) - - 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("NonconformityConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._NonconformityConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._NonconformityConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._NonconformityConnection_pageInfo(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 nonconformityEdgeImplementors = []string{"NonconformityEdge"} - -func (ec *executionContext) _NonconformityEdge(ctx context.Context, sel ast.SelectionSet, obj *types.NonconformityEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, nonconformityEdgeImplementors) - - 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("NonconformityEdge") - case "cursor": - out.Values[i] = ec._NonconformityEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._NonconformityEdge_node(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 obligationImplementors = []string{"Obligation", "Node"} - -func (ec *executionContext) _Obligation(ctx context.Context, sel ast.SelectionSet, obj *types.Obligation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, obligationImplementors) - - 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("Obligation") - case "id": - out.Values[i] = ec._Obligation_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "snapshotId": - out.Values[i] = ec._Obligation_snapshotId(ctx, field, obj) - case "sourceId": - out.Values[i] = ec._Obligation_sourceId(ctx, field, obj) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Obligation_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "area": - out.Values[i] = ec._Obligation_area(ctx, field, obj) - case "source": - out.Values[i] = ec._Obligation_source(ctx, field, obj) - case "requirement": - out.Values[i] = ec._Obligation_requirement(ctx, field, obj) - case "actionsToBeImplemented": - out.Values[i] = ec._Obligation_actionsToBeImplemented(ctx, field, obj) - case "regulator": - out.Values[i] = ec._Obligation_regulator(ctx, field, obj) - case "owner": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Obligation_owner(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "lastReviewDate": - out.Values[i] = ec._Obligation_lastReviewDate(ctx, field, obj) - case "dueDate": - out.Values[i] = ec._Obligation_dueDate(ctx, field, obj) - case "status": - out.Values[i] = ec._Obligation_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "type": - out.Values[i] = ec._Obligation_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Obligation_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Obligation_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Obligation_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 obligationConnectionImplementors = []string{"ObligationConnection"} - -func (ec *executionContext) _ObligationConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ObligationConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, obligationConnectionImplementors) - - 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("ObligationConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ObligationConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._ObligationConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._ObligationConnection_pageInfo(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 obligationEdgeImplementors = []string{"ObligationEdge"} - -func (ec *executionContext) _ObligationEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ObligationEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, obligationEdgeImplementors) - - 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("ObligationEdge") - case "cursor": - out.Values[i] = ec._ObligationEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ObligationEdge_node(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 organizationImplementors = []string{"Organization", "Node"} - -func (ec *executionContext) _Organization(ctx context.Context, sel ast.SelectionSet, obj *types.Organization) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationImplementors) - - 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("Organization") - case "id": - out.Values[i] = ec._Organization_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Organization_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "logoUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_logoUrl(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 "horizontalLogoUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_horizontalLogoUrl(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 "description": - out.Values[i] = ec._Organization_description(ctx, field, obj) - case "websiteUrl": - out.Values[i] = ec._Organization_websiteUrl(ctx, field, obj) - case "email": - out.Values[i] = ec._Organization_email(ctx, field, obj) - case "headquarterAddress": - out.Values[i] = ec._Organization_headquarterAddress(ctx, field, obj) - case "context": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_context(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 "profiles": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_profiles(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "slackConnections": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_slackConnections(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "frameworks": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_frameworks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "controls": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_controls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "vendors": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_vendors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the 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._Organization_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 "meetings": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_meetings(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "statesOfApplicability": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_statesOfApplicability(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "measures": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_measures(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risks": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_risks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tasks": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_tasks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "assets": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_assets(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "data": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_data(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "audits": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_audits(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "nonconformities": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_nonconformities(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "obligations": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_obligations(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "continualImprovements": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_continualImprovements(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "rightsRequests": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_rightsRequests(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "processingActivities": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_processingActivities(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataProtectionImpactAssessments": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_dataProtectionImpactAssessments(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "transferImpactAssessments": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_transferImpactAssessments(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "snapshots": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_snapshots(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenterFiles": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_trustCenterFiles(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenter": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_trustCenter(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 "customDomain": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_customDomain(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 "webhookSubscriptions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_webhookSubscriptions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Organization_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Organization_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 organizationContextImplementors = []string{"OrganizationContext"} - -func (ec *executionContext) _OrganizationContext(ctx context.Context, sel ast.SelectionSet, obj *types.OrganizationContext) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationContextImplementors) - - 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("OrganizationContext") - case "organizationId": - out.Values[i] = ec._OrganizationContext_organizationId(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "summary": - out.Values[i] = ec._OrganizationContext_summary(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 pageInfoImplementors = []string{"PageInfo"} - -func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *types.PageInfo) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors) - - 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("PageInfo") - case "hasNextPage": - out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "hasPreviousPage": - out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "startCursor": - out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) - case "endCursor": - out.Values[i] = ec._PageInfo_endCursor(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 processingActivityImplementors = []string{"ProcessingActivity", "Node"} - -func (ec *executionContext) _ProcessingActivity(ctx context.Context, sel ast.SelectionSet, obj *types.ProcessingActivity) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, processingActivityImplementors) - - 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("ProcessingActivity") - case "id": - out.Values[i] = ec._ProcessingActivity_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "snapshotId": - out.Values[i] = ec._ProcessingActivity_snapshotId(ctx, field, obj) - case "sourceId": - out.Values[i] = ec._ProcessingActivity_sourceId(ctx, field, obj) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ProcessingActivity_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the 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._ProcessingActivity_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "purpose": - out.Values[i] = ec._ProcessingActivity_purpose(ctx, field, obj) - case "dataSubjectCategory": - out.Values[i] = ec._ProcessingActivity_dataSubjectCategory(ctx, field, obj) - case "personalDataCategory": - out.Values[i] = ec._ProcessingActivity_personalDataCategory(ctx, field, obj) - case "specialOrCriminalData": - out.Values[i] = ec._ProcessingActivity_specialOrCriminalData(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "consentEvidenceLink": - out.Values[i] = ec._ProcessingActivity_consentEvidenceLink(ctx, field, obj) - case "lawfulBasis": - out.Values[i] = ec._ProcessingActivity_lawfulBasis(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "recipients": - out.Values[i] = ec._ProcessingActivity_recipients(ctx, field, obj) - case "location": - out.Values[i] = ec._ProcessingActivity_location(ctx, field, obj) - case "internationalTransfers": - out.Values[i] = ec._ProcessingActivity_internationalTransfers(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "transferSafeguards": - out.Values[i] = ec._ProcessingActivity_transferSafeguards(ctx, field, obj) - case "retentionPeriod": - out.Values[i] = ec._ProcessingActivity_retentionPeriod(ctx, field, obj) - case "securityMeasures": - out.Values[i] = ec._ProcessingActivity_securityMeasures(ctx, field, obj) - case "dataProtectionImpactAssessmentNeeded": - out.Values[i] = ec._ProcessingActivity_dataProtectionImpactAssessmentNeeded(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "transferImpactAssessmentNeeded": - out.Values[i] = ec._ProcessingActivity_transferImpactAssessmentNeeded(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "lastReviewDate": - out.Values[i] = ec._ProcessingActivity_lastReviewDate(ctx, field, obj) - case "nextReviewDate": - out.Values[i] = ec._ProcessingActivity_nextReviewDate(ctx, field, obj) - case "role": - out.Values[i] = ec._ProcessingActivity_role(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dataProtectionOfficer": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ProcessingActivity_dataProtectionOfficer(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 "vendors": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ProcessingActivity_vendors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataProtectionImpactAssessment": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ProcessingActivity_dataProtectionImpactAssessment(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 "transferImpactAssessment": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ProcessingActivity_transferImpactAssessment(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 "createdAt": - out.Values[i] = ec._ProcessingActivity_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._ProcessingActivity_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ProcessingActivity_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 processingActivityConnectionImplementors = []string{"ProcessingActivityConnection"} - -func (ec *executionContext) _ProcessingActivityConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ProcessingActivityConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, processingActivityConnectionImplementors) - - 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("ProcessingActivityConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ProcessingActivityConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._ProcessingActivityConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._ProcessingActivityConnection_pageInfo(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 processingActivityEdgeImplementors = []string{"ProcessingActivityEdge"} - -func (ec *executionContext) _ProcessingActivityEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ProcessingActivityEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, processingActivityEdgeImplementors) - - 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("ProcessingActivityEdge") - case "cursor": - out.Values[i] = ec._ProcessingActivityEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ProcessingActivityEdge_node(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 profileImplementors = []string{"Profile", "Node"} - -func (ec *executionContext) _Profile(ctx context.Context, sel ast.SelectionSet, obj *types.Profile) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, profileImplementors) - - 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("Profile") - case "id": - out.Values[i] = ec._Profile_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fullName": - out.Values[i] = ec._Profile_fullName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "emailAddress": - out.Values[i] = ec._Profile_emailAddress(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "state": - out.Values[i] = ec._Profile_state(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "additionalEmailAddresses": - out.Values[i] = ec._Profile_additionalEmailAddresses(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "kind": - out.Values[i] = ec._Profile_kind(ctx, field, obj) - case "position": - out.Values[i] = ec._Profile_position(ctx, field, obj) - case "contractStartDate": - out.Values[i] = ec._Profile_contractStartDate(ctx, field, obj) - case "contractEndDate": - out.Values[i] = ec._Profile_contractEndDate(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._Profile_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Profile_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Profile_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 profileConnectionImplementors = []string{"ProfileConnection"} - -func (ec *executionContext) _ProfileConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ProfileConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, profileConnectionImplementors) - - 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("ProfileConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ProfileConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._ProfileConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._ProfileConnection_pageInfo(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 profileEdgeImplementors = []string{"ProfileEdge"} - -func (ec *executionContext) _ProfileEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ProfileEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, profileEdgeImplementors) - - 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("ProfileEdge") - case "cursor": - out.Values[i] = ec._ProfileEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ProfileEdge_node(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 publishDocumentVersionPayloadImplementors = []string{"PublishDocumentVersionPayload"} - -func (ec *executionContext) _PublishDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.PublishDocumentVersionPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, publishDocumentVersionPayloadImplementors) - - 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("PublishDocumentVersionPayload") - case "documentVersion": - out.Values[i] = ec._PublishDocumentVersionPayload_documentVersion(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "document": - out.Values[i] = ec._PublishDocumentVersionPayload_document(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 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 "node": - field := field - - innerFunc := func(ctx 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_node(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 "viewer": - field := field - - innerFunc := func(ctx 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_viewer(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 reportImplementors = []string{"Report", "Node"} - -func (ec *executionContext) _Report(ctx context.Context, sel ast.SelectionSet, obj *types.Report) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, reportImplementors) - - 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("Report") - case "id": - out.Values[i] = ec._Report_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "objectKey": - out.Values[i] = ec._Report_objectKey(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "mimeType": - out.Values[i] = ec._Report_mimeType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "filename": - out.Values[i] = ec._Report_filename(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "size": - out.Values[i] = ec._Report_size(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "downloadUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Report_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 "createdAt": - out.Values[i] = ec._Report_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Report_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "audit": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Report_audit(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 "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Report_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 requestSignaturePayloadImplementors = []string{"RequestSignaturePayload"} - -func (ec *executionContext) _RequestSignaturePayload(ctx context.Context, sel ast.SelectionSet, obj *types.RequestSignaturePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, requestSignaturePayloadImplementors) - - 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("RequestSignaturePayload") - case "documentVersionSignatureEdge": - out.Values[i] = ec._RequestSignaturePayload_documentVersionSignatureEdge(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 rightsRequestImplementors = []string{"RightsRequest", "Node"} - -func (ec *executionContext) _RightsRequest(ctx context.Context, sel ast.SelectionSet, obj *types.RightsRequest) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, rightsRequestImplementors) - - 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("RightsRequest") - case "id": - out.Values[i] = ec._RightsRequest_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._RightsRequest_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "requestType": - out.Values[i] = ec._RightsRequest_requestType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "requestState": - out.Values[i] = ec._RightsRequest_requestState(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dataSubject": - out.Values[i] = ec._RightsRequest_dataSubject(ctx, field, obj) - case "contact": - out.Values[i] = ec._RightsRequest_contact(ctx, field, obj) - case "details": - out.Values[i] = ec._RightsRequest_details(ctx, field, obj) - case "deadline": - out.Values[i] = ec._RightsRequest_deadline(ctx, field, obj) - case "actionTaken": - out.Values[i] = ec._RightsRequest_actionTaken(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._RightsRequest_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._RightsRequest_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._RightsRequest_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 rightsRequestConnectionImplementors = []string{"RightsRequestConnection"} - -func (ec *executionContext) _RightsRequestConnection(ctx context.Context, sel ast.SelectionSet, obj *types.RightsRequestConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, rightsRequestConnectionImplementors) - - 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("RightsRequestConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._RightsRequestConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._RightsRequestConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._RightsRequestConnection_pageInfo(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 rightsRequestEdgeImplementors = []string{"RightsRequestEdge"} - -func (ec *executionContext) _RightsRequestEdge(ctx context.Context, sel ast.SelectionSet, obj *types.RightsRequestEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, rightsRequestEdgeImplementors) - - 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("RightsRequestEdge") - case "cursor": - out.Values[i] = ec._RightsRequestEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._RightsRequestEdge_node(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 riskImplementors = []string{"Risk", "Node"} - -func (ec *executionContext) _Risk(ctx context.Context, sel ast.SelectionSet, obj *types.Risk) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskImplementors) - - 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("Risk") - case "id": - out.Values[i] = ec._Risk_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "snapshotId": - out.Values[i] = ec._Risk_snapshotId(ctx, field, obj) - case "name": - out.Values[i] = ec._Risk_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Risk_description(ctx, field, obj) - case "category": - out.Values[i] = ec._Risk_category(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "treatment": - out.Values[i] = ec._Risk_treatment(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "inherentLikelihood": - out.Values[i] = ec._Risk_inherentLikelihood(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "inherentImpact": - out.Values[i] = ec._Risk_inherentImpact(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "inherentRiskScore": - out.Values[i] = ec._Risk_inherentRiskScore(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "residualLikelihood": - out.Values[i] = ec._Risk_residualLikelihood(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "residualImpact": - out.Values[i] = ec._Risk_residualImpact(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "residualRiskScore": - out.Values[i] = ec._Risk_residualRiskScore(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "note": - out.Values[i] = ec._Risk_note(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "owner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Risk_owner(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 "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Risk_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "measures": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Risk_measures(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the 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._Risk_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 "controls": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Risk_controls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "obligations": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Risk_obligations(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Risk_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Risk_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Risk_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 riskConnectionImplementors = []string{"RiskConnection"} - -func (ec *executionContext) _RiskConnection(ctx context.Context, sel ast.SelectionSet, obj *types.RiskConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskConnectionImplementors) - - 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("RiskConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._RiskConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._RiskConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._RiskConnection_pageInfo(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 riskEdgeImplementors = []string{"RiskEdge"} - -func (ec *executionContext) _RiskEdge(ctx context.Context, sel ast.SelectionSet, obj *types.RiskEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskEdgeImplementors) - - 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("RiskEdge") - case "cursor": - out.Values[i] = ec._RiskEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._RiskEdge_node(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 sendMailingListUpdatePayloadImplementors = []string{"SendMailingListUpdatePayload"} - -func (ec *executionContext) _SendMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *types.SendMailingListUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sendMailingListUpdatePayloadImplementors) - - 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("SendMailingListUpdatePayload") - case "mailingListUpdate": - out.Values[i] = ec._SendMailingListUpdatePayload_mailingListUpdate(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 sendSigningNotificationsPayloadImplementors = []string{"SendSigningNotificationsPayload"} - -func (ec *executionContext) _SendSigningNotificationsPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SendSigningNotificationsPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sendSigningNotificationsPayloadImplementors) - - 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("SendSigningNotificationsPayload") - case "success": - out.Values[i] = ec._SendSigningNotificationsPayload_success(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 signDocumentPayloadImplementors = []string{"SignDocumentPayload"} - -func (ec *executionContext) _SignDocumentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SignDocumentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, signDocumentPayloadImplementors) - - 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("SignDocumentPayload") - case "documentVersionSignature": - out.Values[i] = ec._SignDocumentPayload_documentVersionSignature(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 signableDocumentImplementors = []string{"SignableDocument"} - -func (ec *executionContext) _SignableDocument(ctx context.Context, sel ast.SelectionSet, obj *types.SignableDocument) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, signableDocumentImplementors) - - 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("SignableDocument") - case "id": - out.Values[i] = ec._SignableDocument_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "title": - out.Values[i] = ec._SignableDocument_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._SignableDocument_description(ctx, field, obj) - case "documentType": - out.Values[i] = ec._SignableDocument_documentType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "classification": - out.Values[i] = ec._SignableDocument_classification(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "signed": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SignableDocument_signed(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "versions": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SignableDocument_versions(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._SignableDocument_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._SignableDocument_updatedAt(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 signableDocumentConnectionImplementors = []string{"SignableDocumentConnection"} - -func (ec *executionContext) _SignableDocumentConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SignableDocumentConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, signableDocumentConnectionImplementors) - - 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("SignableDocumentConnection") - case "edges": - out.Values[i] = ec._SignableDocumentConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._SignableDocumentConnection_pageInfo(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 signableDocumentEdgeImplementors = []string{"SignableDocumentEdge"} - -func (ec *executionContext) _SignableDocumentEdge(ctx context.Context, sel ast.SelectionSet, obj *types.SignableDocumentEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, signableDocumentEdgeImplementors) - - 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("SignableDocumentEdge") - case "cursor": - out.Values[i] = ec._SignableDocumentEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._SignableDocumentEdge_node(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 slackConnectionImplementors = []string{"SlackConnection"} - -func (ec *executionContext) _SlackConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SlackConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, slackConnectionImplementors) - - 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("SlackConnection") - case "id": - out.Values[i] = ec._SlackConnection_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "channel": - out.Values[i] = ec._SlackConnection_channel(ctx, field, obj) - case "channelId": - out.Values[i] = ec._SlackConnection_channelId(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._SlackConnection_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatedAt": - out.Values[i] = ec._SlackConnection_updatedAt(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 slackConnectionConnectionImplementors = []string{"SlackConnectionConnection"} - -func (ec *executionContext) _SlackConnectionConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SlackConnectionConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, slackConnectionConnectionImplementors) - - 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("SlackConnectionConnection") - case "edges": - out.Values[i] = ec._SlackConnectionConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._SlackConnectionConnection_pageInfo(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 slackConnectionEdgeImplementors = []string{"SlackConnectionEdge"} - -func (ec *executionContext) _SlackConnectionEdge(ctx context.Context, sel ast.SelectionSet, obj *types.SlackConnectionEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, slackConnectionEdgeImplementors) - - 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("SlackConnectionEdge") - case "cursor": - out.Values[i] = ec._SlackConnectionEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._SlackConnectionEdge_node(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 snapshotImplementors = []string{"Snapshot", "Node"} - -func (ec *executionContext) _Snapshot(ctx context.Context, sel ast.SelectionSet, obj *types.Snapshot) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, snapshotImplementors) - - 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("Snapshot") - case "id": - out.Values[i] = ec._Snapshot_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Snapshot_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the 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._Snapshot_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Snapshot_description(ctx, field, obj) - case "type": - out.Values[i] = ec._Snapshot_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "controls": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Snapshot_controls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Snapshot_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Snapshot_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 snapshotConnectionImplementors = []string{"SnapshotConnection"} - -func (ec *executionContext) _SnapshotConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SnapshotConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, snapshotConnectionImplementors) - - 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("SnapshotConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._SnapshotConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._SnapshotConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._SnapshotConnection_pageInfo(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 snapshotEdgeImplementors = []string{"SnapshotEdge"} - -func (ec *executionContext) _SnapshotEdge(ctx context.Context, sel ast.SelectionSet, obj *types.SnapshotEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, snapshotEdgeImplementors) - - 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("SnapshotEdge") - case "cursor": - out.Values[i] = ec._SnapshotEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._SnapshotEdge_node(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 stateOfApplicabilityImplementors = []string{"StateOfApplicability", "Node"} - -func (ec *executionContext) _StateOfApplicability(ctx context.Context, sel ast.SelectionSet, obj *types.StateOfApplicability) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, stateOfApplicabilityImplementors) - - 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("StateOfApplicability") - case "id": - out.Values[i] = ec._StateOfApplicability_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._StateOfApplicability_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "sourceId": - out.Values[i] = ec._StateOfApplicability_sourceId(ctx, field, obj) - case "snapshotId": - out.Values[i] = ec._StateOfApplicability_snapshotId(ctx, field, obj) - case "organization": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._StateOfApplicability_organization(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 "owner": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._StateOfApplicability_owner(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._StateOfApplicability_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._StateOfApplicability_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "applicabilityStatements": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._StateOfApplicability_applicabilityStatements(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._StateOfApplicability_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 stateOfApplicabilityConnectionImplementors = []string{"StateOfApplicabilityConnection"} - -func (ec *executionContext) _StateOfApplicabilityConnection(ctx context.Context, sel ast.SelectionSet, obj *types.StateOfApplicabilityConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, stateOfApplicabilityConnectionImplementors) - - 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("StateOfApplicabilityConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._StateOfApplicabilityConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._StateOfApplicabilityConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._StateOfApplicabilityConnection_pageInfo(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 stateOfApplicabilityEdgeImplementors = []string{"StateOfApplicabilityEdge"} - -func (ec *executionContext) _StateOfApplicabilityEdge(ctx context.Context, sel ast.SelectionSet, obj *types.StateOfApplicabilityEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, stateOfApplicabilityEdgeImplementors) - - 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("StateOfApplicabilityEdge") - case "cursor": - out.Values[i] = ec._StateOfApplicabilityEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._StateOfApplicabilityEdge_node(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 taskImplementors = []string{"Task", "Node"} - -func (ec *executionContext) _Task(ctx context.Context, sel ast.SelectionSet, obj *types.Task) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taskImplementors) - - 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("Task") - case "id": - out.Values[i] = ec._Task_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Task_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Task_description(ctx, field, obj) - case "state": - out.Values[i] = ec._Task_state(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "timeEstimate": - out.Values[i] = ec._Task_timeEstimate(ctx, field, obj) - case "deadline": - out.Values[i] = ec._Task_deadline(ctx, field, obj) - case "assignedTo": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Task_assignedTo(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 "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Task_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "measure": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Task_measure(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 "evidences": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Task_evidences(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "createdAt": - out.Values[i] = ec._Task_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Task_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Task_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 taskConnectionImplementors = []string{"TaskConnection"} - -func (ec *executionContext) _TaskConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TaskConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taskConnectionImplementors) - - 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("TaskConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TaskConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._TaskConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._TaskConnection_pageInfo(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 taskEdgeImplementors = []string{"TaskEdge"} - -func (ec *executionContext) _TaskEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TaskEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taskEdgeImplementors) - - 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("TaskEdge") - case "cursor": - out.Values[i] = ec._TaskEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._TaskEdge_node(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 transferImpactAssessmentImplementors = []string{"TransferImpactAssessment", "Node"} - -func (ec *executionContext) _TransferImpactAssessment(ctx context.Context, sel ast.SelectionSet, obj *types.TransferImpactAssessment) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, transferImpactAssessmentImplementors) - - 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("TransferImpactAssessment") - case "id": - out.Values[i] = ec._TransferImpactAssessment_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "processingActivity": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TransferImpactAssessment_processingActivity(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TransferImpactAssessment_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "dataSubjects": - out.Values[i] = ec._TransferImpactAssessment_dataSubjects(ctx, field, obj) - case "legalMechanism": - out.Values[i] = ec._TransferImpactAssessment_legalMechanism(ctx, field, obj) - case "transfer": - out.Values[i] = ec._TransferImpactAssessment_transfer(ctx, field, obj) - case "localLawRisk": - out.Values[i] = ec._TransferImpactAssessment_localLawRisk(ctx, field, obj) - case "supplementaryMeasures": - out.Values[i] = ec._TransferImpactAssessment_supplementaryMeasures(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._TransferImpactAssessment_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._TransferImpactAssessment_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TransferImpactAssessment_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 transferImpactAssessmentConnectionImplementors = []string{"TransferImpactAssessmentConnection"} - -func (ec *executionContext) _TransferImpactAssessmentConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TransferImpactAssessmentConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, transferImpactAssessmentConnectionImplementors) - - 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("TransferImpactAssessmentConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TransferImpactAssessmentConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._TransferImpactAssessmentConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._TransferImpactAssessmentConnection_pageInfo(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 transferImpactAssessmentEdgeImplementors = []string{"TransferImpactAssessmentEdge"} - -func (ec *executionContext) _TransferImpactAssessmentEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TransferImpactAssessmentEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, transferImpactAssessmentEdgeImplementors) - - 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("TransferImpactAssessmentEdge") - case "cursor": - out.Values[i] = ec._TransferImpactAssessmentEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._TransferImpactAssessmentEdge_node(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 trustCenterImplementors = []string{"TrustCenter", "Node"} - -func (ec *executionContext) _TrustCenter(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenter) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterImplementors) - - 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("TrustCenter") - case "id": - out.Values[i] = ec._TrustCenter_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "active": - out.Values[i] = ec._TrustCenter_active(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "logoFileUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_logoFileUrl(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 "darkLogoFileUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_darkLogoFileUrl(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 "ndaFileName": - out.Values[i] = ec._TrustCenter_ndaFileName(ctx, field, obj) - case "ndaFileUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_ndaFileUrl(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 "createdAt": - out.Values[i] = ec._TrustCenter_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._TrustCenter_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "accesses": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_accesses(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "references": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_references(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "complianceFrameworks": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_complianceFrameworks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "externalUrls": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_externalUrls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "mailingList": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_mailingList(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 "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 trustCenterAccessImplementors = []string{"TrustCenterAccess", "Node"} - -func (ec *executionContext) _TrustCenterAccess(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterAccess) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterAccessImplementors) - - 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("TrustCenterAccess") - case "id": - out.Values[i] = ec._TrustCenterAccess_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "ndaSignature": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterAccess_ndaSignature(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 "createdAt": - out.Values[i] = ec._TrustCenterAccess_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._TrustCenterAccess_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pendingRequestCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterAccess_pendingRequestCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "activeCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterAccess_activeCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organizationId": - out.Values[i] = ec._TrustCenterAccess_organizationId(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "identityID": - out.Values[i] = ec._TrustCenterAccess_identityID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "profile": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterAccess_profile(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "availableDocumentAccesses": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterAccess_availableDocumentAccesses(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterAccess_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 trustCenterAccessConnectionImplementors = []string{"TrustCenterAccessConnection"} - -func (ec *executionContext) _TrustCenterAccessConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterAccessConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterAccessConnectionImplementors) - - 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("TrustCenterAccessConnection") - case "edges": - out.Values[i] = ec._TrustCenterAccessConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._TrustCenterAccessConnection_pageInfo(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 trustCenterAccessEdgeImplementors = []string{"TrustCenterAccessEdge"} - -func (ec *executionContext) _TrustCenterAccessEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterAccessEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterAccessEdgeImplementors) - - 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("TrustCenterAccessEdge") - case "cursor": - out.Values[i] = ec._TrustCenterAccessEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._TrustCenterAccessEdge_node(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 trustCenterConnectionImplementors = []string{"TrustCenterConnection"} - -func (ec *executionContext) _TrustCenterConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterConnectionImplementors) - - 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("TrustCenterConnection") - case "edges": - out.Values[i] = ec._TrustCenterConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._TrustCenterConnection_pageInfo(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 trustCenterDocumentAccessImplementors = []string{"TrustCenterDocumentAccess"} - -func (ec *executionContext) _TrustCenterDocumentAccess(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterDocumentAccess) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterDocumentAccessImplementors) - - 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("TrustCenterDocumentAccess") - case "id": - out.Values[i] = ec._TrustCenterDocumentAccess_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "status": - out.Values[i] = ec._TrustCenterDocumentAccess_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "document": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterDocumentAccess_document(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 "report": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterDocumentAccess_report(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 "trustCenterFile": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterDocumentAccess_trustCenterFile(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 trustCenterDocumentAccessConnectionImplementors = []string{"TrustCenterDocumentAccessConnection"} - -func (ec *executionContext) _TrustCenterDocumentAccessConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterDocumentAccessConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterDocumentAccessConnectionImplementors) - - 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("TrustCenterDocumentAccessConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterDocumentAccessConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._TrustCenterDocumentAccessConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._TrustCenterDocumentAccessConnection_pageInfo(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 trustCenterDocumentAccessEdgeImplementors = []string{"TrustCenterDocumentAccessEdge"} - -func (ec *executionContext) _TrustCenterDocumentAccessEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterDocumentAccessEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterDocumentAccessEdgeImplementors) - - 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("TrustCenterDocumentAccessEdge") - case "cursor": - out.Values[i] = ec._TrustCenterDocumentAccessEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._TrustCenterDocumentAccessEdge_node(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 trustCenterEdgeImplementors = []string{"TrustCenterEdge"} - -func (ec *executionContext) _TrustCenterEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterEdgeImplementors) - - 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("TrustCenterEdge") - case "cursor": - out.Values[i] = ec._TrustCenterEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._TrustCenterEdge_node(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 trustCenterFileImplementors = []string{"TrustCenterFile", "Node"} - -func (ec *executionContext) _TrustCenterFile(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterFile) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterFileImplementors) - - 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("TrustCenterFile") - case "id": - out.Values[i] = ec._TrustCenterFile_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._TrustCenterFile_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "category": - out.Values[i] = ec._TrustCenterFile_category(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fileUrl": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterFile_fileUrl(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenterVisibility": - out.Values[i] = ec._TrustCenterFile_trustCenterVisibility(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._TrustCenterFile_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._TrustCenterFile_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterFile_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterFile_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 trustCenterFileConnectionImplementors = []string{"TrustCenterFileConnection"} - -func (ec *executionContext) _TrustCenterFileConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterFileConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterFileConnectionImplementors) - - 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("TrustCenterFileConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterFileConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._TrustCenterFileConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._TrustCenterFileConnection_pageInfo(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 trustCenterFileEdgeImplementors = []string{"TrustCenterFileEdge"} - -func (ec *executionContext) _TrustCenterFileEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterFileEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterFileEdgeImplementors) - - 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("TrustCenterFileEdge") - case "cursor": - out.Values[i] = ec._TrustCenterFileEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._TrustCenterFileEdge_node(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 trustCenterReferenceImplementors = []string{"TrustCenterReference", "Node"} - -func (ec *executionContext) _TrustCenterReference(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterReference) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterReferenceImplementors) - - 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("TrustCenterReference") - case "id": - out.Values[i] = ec._TrustCenterReference_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._TrustCenterReference_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._TrustCenterReference_description(ctx, field, obj) - case "websiteUrl": - out.Values[i] = ec._TrustCenterReference_websiteUrl(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "logoUrl": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterReference_logoUrl(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "rank": - out.Values[i] = ec._TrustCenterReference_rank(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._TrustCenterReference_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._TrustCenterReference_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterReference_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 trustCenterReferenceConnectionImplementors = []string{"TrustCenterReferenceConnection"} - -func (ec *executionContext) _TrustCenterReferenceConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterReferenceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterReferenceConnectionImplementors) - - 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("TrustCenterReferenceConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterReferenceConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._TrustCenterReferenceConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._TrustCenterReferenceConnection_pageInfo(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 trustCenterReferenceEdgeImplementors = []string{"TrustCenterReferenceEdge"} - -func (ec *executionContext) _TrustCenterReferenceEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterReferenceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterReferenceEdgeImplementors) - - 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("TrustCenterReferenceEdge") - case "cursor": - out.Values[i] = ec._TrustCenterReferenceEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._TrustCenterReferenceEdge_node(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 updateApplicabilityStatementPayloadImplementors = []string{"UpdateApplicabilityStatementPayload"} - -func (ec *executionContext) _UpdateApplicabilityStatementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateApplicabilityStatementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateApplicabilityStatementPayloadImplementors) - - 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("UpdateApplicabilityStatementPayload") - case "applicabilityStatement": - out.Values[i] = ec._UpdateApplicabilityStatementPayload_applicabilityStatement(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 updateAssetPayloadImplementors = []string{"UpdateAssetPayload"} - -func (ec *executionContext) _UpdateAssetPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateAssetPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateAssetPayloadImplementors) - - 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("UpdateAssetPayload") - case "asset": - out.Values[i] = ec._UpdateAssetPayload_asset(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 updateAuditPayloadImplementors = []string{"UpdateAuditPayload"} - -func (ec *executionContext) _UpdateAuditPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateAuditPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateAuditPayloadImplementors) - - 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("UpdateAuditPayload") - case "audit": - out.Values[i] = ec._UpdateAuditPayload_audit(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 updateComplianceExternalURLPayloadImplementors = []string{"UpdateComplianceExternalURLPayload"} - -func (ec *executionContext) _UpdateComplianceExternalURLPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateComplianceExternalURLPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateComplianceExternalURLPayloadImplementors) - - 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("UpdateComplianceExternalURLPayload") - case "complianceExternalUrl": - out.Values[i] = ec._UpdateComplianceExternalURLPayload_complianceExternalUrl(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 updateComplianceFrameworkPayloadImplementors = []string{"UpdateComplianceFrameworkPayload"} - -func (ec *executionContext) _UpdateComplianceFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateComplianceFrameworkPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateComplianceFrameworkPayloadImplementors) - - 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("UpdateComplianceFrameworkPayload") - case "complianceFramework": - out.Values[i] = ec._UpdateComplianceFrameworkPayload_complianceFramework(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 updateContinualImprovementPayloadImplementors = []string{"UpdateContinualImprovementPayload"} - -func (ec *executionContext) _UpdateContinualImprovementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateContinualImprovementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateContinualImprovementPayloadImplementors) - - 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("UpdateContinualImprovementPayload") - case "continualImprovement": - out.Values[i] = ec._UpdateContinualImprovementPayload_continualImprovement(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 updateControlPayloadImplementors = []string{"UpdateControlPayload"} - -func (ec *executionContext) _UpdateControlPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateControlPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateControlPayloadImplementors) - - 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("UpdateControlPayload") - case "control": - out.Values[i] = ec._UpdateControlPayload_control(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 updateDataProtectionImpactAssessmentPayloadImplementors = []string{"UpdateDataProtectionImpactAssessmentPayload"} - -func (ec *executionContext) _UpdateDataProtectionImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateDataProtectionImpactAssessmentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateDataProtectionImpactAssessmentPayloadImplementors) - - 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("UpdateDataProtectionImpactAssessmentPayload") - case "dataProtectionImpactAssessment": - out.Values[i] = ec._UpdateDataProtectionImpactAssessmentPayload_dataProtectionImpactAssessment(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 updateDatumPayloadImplementors = []string{"UpdateDatumPayload"} - -func (ec *executionContext) _UpdateDatumPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateDatumPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateDatumPayloadImplementors) - - 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("UpdateDatumPayload") - case "datum": - out.Values[i] = ec._UpdateDatumPayload_datum(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 updateDocumentPayloadImplementors = []string{"UpdateDocumentPayload"} - -func (ec *executionContext) _UpdateDocumentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateDocumentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateDocumentPayloadImplementors) - - 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("UpdateDocumentPayload") - case "document": - out.Values[i] = ec._UpdateDocumentPayload_document(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 updateDocumentVersionPayloadImplementors = []string{"UpdateDocumentVersionPayload"} - -func (ec *executionContext) _UpdateDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateDocumentVersionPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateDocumentVersionPayloadImplementors) - - 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("UpdateDocumentVersionPayload") - case "documentVersion": - out.Values[i] = ec._UpdateDocumentVersionPayload_documentVersion(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 updateFrameworkPayloadImplementors = []string{"UpdateFrameworkPayload"} - -func (ec *executionContext) _UpdateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateFrameworkPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateFrameworkPayloadImplementors) - - 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("UpdateFrameworkPayload") - case "framework": - out.Values[i] = ec._UpdateFrameworkPayload_framework(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 updateMailingListPayloadImplementors = []string{"UpdateMailingListPayload"} - -func (ec *executionContext) _UpdateMailingListPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateMailingListPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateMailingListPayloadImplementors) - - 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("UpdateMailingListPayload") - case "mailingList": - out.Values[i] = ec._UpdateMailingListPayload_mailingList(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 updateMailingListUpdatePayloadImplementors = []string{"UpdateMailingListUpdatePayload"} - -func (ec *executionContext) _UpdateMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateMailingListUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateMailingListUpdatePayloadImplementors) - - 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("UpdateMailingListUpdatePayload") - case "mailingListUpdate": - out.Values[i] = ec._UpdateMailingListUpdatePayload_mailingListUpdate(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 updateMeasurePayloadImplementors = []string{"UpdateMeasurePayload"} - -func (ec *executionContext) _UpdateMeasurePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateMeasurePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateMeasurePayloadImplementors) - - 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("UpdateMeasurePayload") - case "measure": - out.Values[i] = ec._UpdateMeasurePayload_measure(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 updateMeetingPayloadImplementors = []string{"UpdateMeetingPayload"} - -func (ec *executionContext) _UpdateMeetingPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateMeetingPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateMeetingPayloadImplementors) - - 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("UpdateMeetingPayload") - case "meeting": - out.Values[i] = ec._UpdateMeetingPayload_meeting(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 updateNonconformityPayloadImplementors = []string{"UpdateNonconformityPayload"} - -func (ec *executionContext) _UpdateNonconformityPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateNonconformityPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateNonconformityPayloadImplementors) - - 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("UpdateNonconformityPayload") - case "nonconformity": - out.Values[i] = ec._UpdateNonconformityPayload_nonconformity(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 updateObligationPayloadImplementors = []string{"UpdateObligationPayload"} - -func (ec *executionContext) _UpdateObligationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateObligationPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateObligationPayloadImplementors) - - 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("UpdateObligationPayload") - case "obligation": - out.Values[i] = ec._UpdateObligationPayload_obligation(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 updateOrganizationContextPayloadImplementors = []string{"UpdateOrganizationContextPayload"} - -func (ec *executionContext) _UpdateOrganizationContextPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateOrganizationContextPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateOrganizationContextPayloadImplementors) - - 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("UpdateOrganizationContextPayload") - case "context": - out.Values[i] = ec._UpdateOrganizationContextPayload_context(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 updateProcessingActivityPayloadImplementors = []string{"UpdateProcessingActivityPayload"} - -func (ec *executionContext) _UpdateProcessingActivityPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateProcessingActivityPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateProcessingActivityPayloadImplementors) - - 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("UpdateProcessingActivityPayload") - case "processingActivity": - out.Values[i] = ec._UpdateProcessingActivityPayload_processingActivity(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 updateRightsRequestPayloadImplementors = []string{"UpdateRightsRequestPayload"} - -func (ec *executionContext) _UpdateRightsRequestPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateRightsRequestPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateRightsRequestPayloadImplementors) - - 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("UpdateRightsRequestPayload") - case "rightsRequest": - out.Values[i] = ec._UpdateRightsRequestPayload_rightsRequest(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 updateRiskPayloadImplementors = []string{"UpdateRiskPayload"} - -func (ec *executionContext) _UpdateRiskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateRiskPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateRiskPayloadImplementors) - - 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("UpdateRiskPayload") - case "risk": - out.Values[i] = ec._UpdateRiskPayload_risk(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 updateStateOfApplicabilityPayloadImplementors = []string{"UpdateStateOfApplicabilityPayload"} - -func (ec *executionContext) _UpdateStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateStateOfApplicabilityPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateStateOfApplicabilityPayloadImplementors) - - 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("UpdateStateOfApplicabilityPayload") - case "stateOfApplicability": - out.Values[i] = ec._UpdateStateOfApplicabilityPayload_stateOfApplicability(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 updateTaskPayloadImplementors = []string{"UpdateTaskPayload"} - -func (ec *executionContext) _UpdateTaskPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateTaskPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateTaskPayloadImplementors) - - 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("UpdateTaskPayload") - case "task": - out.Values[i] = ec._UpdateTaskPayload_task(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 updateTransferImpactAssessmentPayloadImplementors = []string{"UpdateTransferImpactAssessmentPayload"} - -func (ec *executionContext) _UpdateTransferImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateTransferImpactAssessmentPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateTransferImpactAssessmentPayloadImplementors) - - 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("UpdateTransferImpactAssessmentPayload") - case "transferImpactAssessment": - out.Values[i] = ec._UpdateTransferImpactAssessmentPayload_transferImpactAssessment(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 updateTrustCenterAccessPayloadImplementors = []string{"UpdateTrustCenterAccessPayload"} - -func (ec *executionContext) _UpdateTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateTrustCenterAccessPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateTrustCenterAccessPayloadImplementors) - - 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("UpdateTrustCenterAccessPayload") - case "trustCenterAccess": - out.Values[i] = ec._UpdateTrustCenterAccessPayload_trustCenterAccess(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 updateTrustCenterBrandPayloadImplementors = []string{"UpdateTrustCenterBrandPayload"} - -func (ec *executionContext) _UpdateTrustCenterBrandPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateTrustCenterBrandPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateTrustCenterBrandPayloadImplementors) - - 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("UpdateTrustCenterBrandPayload") - case "trustCenter": - out.Values[i] = ec._UpdateTrustCenterBrandPayload_trustCenter(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 updateTrustCenterFilePayloadImplementors = []string{"UpdateTrustCenterFilePayload"} - -func (ec *executionContext) _UpdateTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateTrustCenterFilePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateTrustCenterFilePayloadImplementors) - - 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("UpdateTrustCenterFilePayload") - case "trustCenterFile": - out.Values[i] = ec._UpdateTrustCenterFilePayload_trustCenterFile(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 updateTrustCenterPayloadImplementors = []string{"UpdateTrustCenterPayload"} - -func (ec *executionContext) _UpdateTrustCenterPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateTrustCenterPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateTrustCenterPayloadImplementors) - - 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("UpdateTrustCenterPayload") - case "trustCenter": - out.Values[i] = ec._UpdateTrustCenterPayload_trustCenter(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 updateTrustCenterReferencePayloadImplementors = []string{"UpdateTrustCenterReferencePayload"} - -func (ec *executionContext) _UpdateTrustCenterReferencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateTrustCenterReferencePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateTrustCenterReferencePayloadImplementors) - - 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("UpdateTrustCenterReferencePayload") - case "trustCenterReference": - out.Values[i] = ec._UpdateTrustCenterReferencePayload_trustCenterReference(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 updateVendorBusinessAssociateAgreementPayloadImplementors = []string{"UpdateVendorBusinessAssociateAgreementPayload"} - -func (ec *executionContext) _UpdateVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateVendorBusinessAssociateAgreementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateVendorBusinessAssociateAgreementPayloadImplementors) - - 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("UpdateVendorBusinessAssociateAgreementPayload") - case "vendorBusinessAssociateAgreement": - out.Values[i] = ec._UpdateVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(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 updateVendorContactPayloadImplementors = []string{"UpdateVendorContactPayload"} - -func (ec *executionContext) _UpdateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateVendorContactPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateVendorContactPayloadImplementors) - - 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("UpdateVendorContactPayload") - case "vendorContact": - out.Values[i] = ec._UpdateVendorContactPayload_vendorContact(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 updateVendorDataPrivacyAgreementPayloadImplementors = []string{"UpdateVendorDataPrivacyAgreementPayload"} - -func (ec *executionContext) _UpdateVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateVendorDataPrivacyAgreementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateVendorDataPrivacyAgreementPayloadImplementors) - - 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("UpdateVendorDataPrivacyAgreementPayload") - case "vendorDataPrivacyAgreement": - out.Values[i] = ec._UpdateVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(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 updateVendorPayloadImplementors = []string{"UpdateVendorPayload"} - -func (ec *executionContext) _UpdateVendorPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateVendorPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateVendorPayloadImplementors) - - 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("UpdateVendorPayload") - case "vendor": - out.Values[i] = ec._UpdateVendorPayload_vendor(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 updateVendorServicePayloadImplementors = []string{"UpdateVendorServicePayload"} - -func (ec *executionContext) _UpdateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateVendorServicePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateVendorServicePayloadImplementors) - - 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("UpdateVendorServicePayload") - case "vendorService": - out.Values[i] = ec._UpdateVendorServicePayload_vendorService(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 updateWebhookSubscriptionPayloadImplementors = []string{"UpdateWebhookSubscriptionPayload"} - -func (ec *executionContext) _UpdateWebhookSubscriptionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateWebhookSubscriptionPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateWebhookSubscriptionPayloadImplementors) - - 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("UpdateWebhookSubscriptionPayload") - case "webhookSubscription": - out.Values[i] = ec._UpdateWebhookSubscriptionPayload_webhookSubscription(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 uploadAuditReportPayloadImplementors = []string{"UploadAuditReportPayload"} - -func (ec *executionContext) _UploadAuditReportPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadAuditReportPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, uploadAuditReportPayloadImplementors) - - 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("UploadAuditReportPayload") - case "audit": - out.Values[i] = ec._UploadAuditReportPayload_audit(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 uploadMeasureEvidencePayloadImplementors = []string{"UploadMeasureEvidencePayload"} - -func (ec *executionContext) _UploadMeasureEvidencePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadMeasureEvidencePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, uploadMeasureEvidencePayloadImplementors) - - 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("UploadMeasureEvidencePayload") - case "evidenceEdge": - out.Values[i] = ec._UploadMeasureEvidencePayload_evidenceEdge(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 uploadTrustCenterNDAPayloadImplementors = []string{"UploadTrustCenterNDAPayload"} - -func (ec *executionContext) _UploadTrustCenterNDAPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadTrustCenterNDAPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, uploadTrustCenterNDAPayloadImplementors) - - 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("UploadTrustCenterNDAPayload") - case "trustCenter": - out.Values[i] = ec._UploadTrustCenterNDAPayload_trustCenter(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 uploadVendorBusinessAssociateAgreementPayloadImplementors = []string{"UploadVendorBusinessAssociateAgreementPayload"} - -func (ec *executionContext) _UploadVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadVendorBusinessAssociateAgreementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, uploadVendorBusinessAssociateAgreementPayloadImplementors) - - 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("UploadVendorBusinessAssociateAgreementPayload") - case "vendorBusinessAssociateAgreement": - out.Values[i] = ec._UploadVendorBusinessAssociateAgreementPayload_vendorBusinessAssociateAgreement(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 uploadVendorComplianceReportPayloadImplementors = []string{"UploadVendorComplianceReportPayload"} - -func (ec *executionContext) _UploadVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadVendorComplianceReportPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, uploadVendorComplianceReportPayloadImplementors) - - 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("UploadVendorComplianceReportPayload") - case "vendorComplianceReportEdge": - out.Values[i] = ec._UploadVendorComplianceReportPayload_vendorComplianceReportEdge(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 uploadVendorDataPrivacyAgreementPayloadImplementors = []string{"UploadVendorDataPrivacyAgreementPayload"} - -func (ec *executionContext) _UploadVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UploadVendorDataPrivacyAgreementPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, uploadVendorDataPrivacyAgreementPayloadImplementors) - - 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("UploadVendorDataPrivacyAgreementPayload") - case "vendorDataPrivacyAgreement": - out.Values[i] = ec._UploadVendorDataPrivacyAgreementPayload_vendorDataPrivacyAgreement(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 vendorImplementors = []string{"Vendor", "Node"} - -func (ec *executionContext) _Vendor(ctx context.Context, sel ast.SelectionSet, obj *types.Vendor) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorImplementors) - - 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("Vendor") - case "id": - out.Values[i] = ec._Vendor_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "snapshotId": - out.Values[i] = ec._Vendor_snapshotId(ctx, field, obj) - case "name": - out.Values[i] = ec._Vendor_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "category": - out.Values[i] = ec._Vendor_category(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Vendor_description(ctx, field, obj) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Vendor_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "complianceReports": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Vendor_complianceReports(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "businessAssociateAgreement": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Vendor_businessAssociateAgreement(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 "dataPrivacyAgreement": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Vendor_dataPrivacyAgreement(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 "contacts": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Vendor_contacts(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "services": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Vendor_services(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "riskAssessments": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Vendor_riskAssessments(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "businessOwner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Vendor_businessOwner(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 "securityOwner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Vendor_securityOwner(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 "statusPageUrl": - out.Values[i] = ec._Vendor_statusPageUrl(ctx, field, obj) - case "termsOfServiceUrl": - out.Values[i] = ec._Vendor_termsOfServiceUrl(ctx, field, obj) - case "privacyPolicyUrl": - out.Values[i] = ec._Vendor_privacyPolicyUrl(ctx, field, obj) - case "serviceLevelAgreementUrl": - out.Values[i] = ec._Vendor_serviceLevelAgreementUrl(ctx, field, obj) - case "dataProcessingAgreementUrl": - out.Values[i] = ec._Vendor_dataProcessingAgreementUrl(ctx, field, obj) - case "businessAssociateAgreementUrl": - out.Values[i] = ec._Vendor_businessAssociateAgreementUrl(ctx, field, obj) - case "subprocessorsListUrl": - out.Values[i] = ec._Vendor_subprocessorsListUrl(ctx, field, obj) - case "certifications": - out.Values[i] = ec._Vendor_certifications(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "countries": - out.Values[i] = ec._Vendor_countries(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "securityPageUrl": - out.Values[i] = ec._Vendor_securityPageUrl(ctx, field, obj) - case "trustPageUrl": - out.Values[i] = ec._Vendor_trustPageUrl(ctx, field, obj) - case "headquarterAddress": - out.Values[i] = ec._Vendor_headquarterAddress(ctx, field, obj) - case "legalName": - out.Values[i] = ec._Vendor_legalName(ctx, field, obj) - case "websiteUrl": - out.Values[i] = ec._Vendor_websiteUrl(ctx, field, obj) - case "showOnTrustCenter": - out.Values[i] = ec._Vendor_showOnTrustCenter(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Vendor_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._Vendor_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Vendor_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 vendorBusinessAssociateAgreementImplementors = []string{"VendorBusinessAssociateAgreement", "Node"} - -func (ec *executionContext) _VendorBusinessAssociateAgreement(ctx context.Context, sel ast.SelectionSet, obj *types.VendorBusinessAssociateAgreement) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorBusinessAssociateAgreementImplementors) - - 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("VendorBusinessAssociateAgreement") - case "id": - out.Values[i] = ec._VendorBusinessAssociateAgreement_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "vendor": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorBusinessAssociateAgreement_vendor(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "validFrom": - out.Values[i] = ec._VendorBusinessAssociateAgreement_validFrom(ctx, field, obj) - case "validUntil": - out.Values[i] = ec._VendorBusinessAssociateAgreement_validUntil(ctx, field, obj) - case "fileName": - out.Values[i] = ec._VendorBusinessAssociateAgreement_fileName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fileUrl": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorBusinessAssociateAgreement_fileUrl(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "fileSize": - out.Values[i] = ec._VendorBusinessAssociateAgreement_fileSize(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._VendorBusinessAssociateAgreement_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._VendorBusinessAssociateAgreement_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorBusinessAssociateAgreement_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 vendorComplianceReportImplementors = []string{"VendorComplianceReport", "Node"} - -func (ec *executionContext) _VendorComplianceReport(ctx context.Context, sel ast.SelectionSet, obj *types.VendorComplianceReport) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorComplianceReportImplementors) - - 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("VendorComplianceReport") - case "id": - out.Values[i] = ec._VendorComplianceReport_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "vendor": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorComplianceReport_vendor(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "reportDate": - out.Values[i] = ec._VendorComplianceReport_reportDate(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "validUntil": - out.Values[i] = ec._VendorComplianceReport_validUntil(ctx, field, obj) - case "reportName": - out.Values[i] = ec._VendorComplianceReport_reportName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "file": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorComplianceReport_file(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 "createdAt": - out.Values[i] = ec._VendorComplianceReport_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._VendorComplianceReport_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorComplianceReport_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 vendorComplianceReportConnectionImplementors = []string{"VendorComplianceReportConnection"} - -func (ec *executionContext) _VendorComplianceReportConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorComplianceReportConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorComplianceReportConnectionImplementors) - - 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("VendorComplianceReportConnection") - case "edges": - out.Values[i] = ec._VendorComplianceReportConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._VendorComplianceReportConnection_pageInfo(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 vendorComplianceReportEdgeImplementors = []string{"VendorComplianceReportEdge"} - -func (ec *executionContext) _VendorComplianceReportEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorComplianceReportEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorComplianceReportEdgeImplementors) - - 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("VendorComplianceReportEdge") - case "cursor": - out.Values[i] = ec._VendorComplianceReportEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._VendorComplianceReportEdge_node(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 vendorConnectionImplementors = []string{"VendorConnection"} - -func (ec *executionContext) _VendorConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorConnectionImplementors) - - 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("VendorConnection") - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "edges": - out.Values[i] = ec._VendorConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._VendorConnection_pageInfo(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 vendorContactImplementors = []string{"VendorContact", "Node"} - -func (ec *executionContext) _VendorContact(ctx context.Context, sel ast.SelectionSet, obj *types.VendorContact) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorContactImplementors) - - 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("VendorContact") - case "id": - out.Values[i] = ec._VendorContact_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "vendor": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorContact_vendor(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "fullName": - out.Values[i] = ec._VendorContact_fullName(ctx, field, obj) - case "email": - out.Values[i] = ec._VendorContact_email(ctx, field, obj) - case "phone": - out.Values[i] = ec._VendorContact_phone(ctx, field, obj) - case "role": - out.Values[i] = ec._VendorContact_role(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._VendorContact_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._VendorContact_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorContact_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 vendorContactConnectionImplementors = []string{"VendorContactConnection"} - -func (ec *executionContext) _VendorContactConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorContactConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorContactConnectionImplementors) - - 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("VendorContactConnection") - case "edges": - out.Values[i] = ec._VendorContactConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._VendorContactConnection_pageInfo(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 vendorContactEdgeImplementors = []string{"VendorContactEdge"} - -func (ec *executionContext) _VendorContactEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorContactEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorContactEdgeImplementors) - - 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("VendorContactEdge") - case "cursor": - out.Values[i] = ec._VendorContactEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._VendorContactEdge_node(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 vendorDataPrivacyAgreementImplementors = []string{"VendorDataPrivacyAgreement", "Node"} - -func (ec *executionContext) _VendorDataPrivacyAgreement(ctx context.Context, sel ast.SelectionSet, obj *types.VendorDataPrivacyAgreement) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorDataPrivacyAgreementImplementors) - - 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("VendorDataPrivacyAgreement") - case "id": - out.Values[i] = ec._VendorDataPrivacyAgreement_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "vendor": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorDataPrivacyAgreement_vendor(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "validFrom": - out.Values[i] = ec._VendorDataPrivacyAgreement_validFrom(ctx, field, obj) - case "validUntil": - out.Values[i] = ec._VendorDataPrivacyAgreement_validUntil(ctx, field, obj) - case "fileName": - out.Values[i] = ec._VendorDataPrivacyAgreement_fileName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fileUrl": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorDataPrivacyAgreement_fileUrl(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "fileSize": - out.Values[i] = ec._VendorDataPrivacyAgreement_fileSize(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._VendorDataPrivacyAgreement_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._VendorDataPrivacyAgreement_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorDataPrivacyAgreement_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 vendorEdgeImplementors = []string{"VendorEdge"} - -func (ec *executionContext) _VendorEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorEdgeImplementors) - - 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("VendorEdge") - case "cursor": - out.Values[i] = ec._VendorEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._VendorEdge_node(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 vendorRiskAssessmentImplementors = []string{"VendorRiskAssessment", "Node"} - -func (ec *executionContext) _VendorRiskAssessment(ctx context.Context, sel ast.SelectionSet, obj *types.VendorRiskAssessment) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorRiskAssessmentImplementors) - - 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("VendorRiskAssessment") - case "id": - out.Values[i] = ec._VendorRiskAssessment_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "vendor": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorRiskAssessment_vendor(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "expiresAt": - out.Values[i] = ec._VendorRiskAssessment_expiresAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "dataSensitivity": - out.Values[i] = ec._VendorRiskAssessment_dataSensitivity(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "businessImpact": - out.Values[i] = ec._VendorRiskAssessment_businessImpact(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "notes": - out.Values[i] = ec._VendorRiskAssessment_notes(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._VendorRiskAssessment_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._VendorRiskAssessment_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorRiskAssessment_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 vendorRiskAssessmentConnectionImplementors = []string{"VendorRiskAssessmentConnection"} - -func (ec *executionContext) _VendorRiskAssessmentConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorRiskAssessmentConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorRiskAssessmentConnectionImplementors) - - 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("VendorRiskAssessmentConnection") - case "edges": - out.Values[i] = ec._VendorRiskAssessmentConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._VendorRiskAssessmentConnection_pageInfo(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 vendorRiskAssessmentEdgeImplementors = []string{"VendorRiskAssessmentEdge"} - -func (ec *executionContext) _VendorRiskAssessmentEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorRiskAssessmentEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorRiskAssessmentEdgeImplementors) - - 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("VendorRiskAssessmentEdge") - case "cursor": - out.Values[i] = ec._VendorRiskAssessmentEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._VendorRiskAssessmentEdge_node(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 vendorServiceImplementors = []string{"VendorService", "Node"} - -func (ec *executionContext) _VendorService(ctx context.Context, sel ast.SelectionSet, obj *types.VendorService) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorServiceImplementors) - - 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("VendorService") - case "id": - out.Values[i] = ec._VendorService_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "vendor": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorService_vendor(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the 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._VendorService_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._VendorService_description(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._VendorService_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._VendorService_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorService_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 vendorServiceConnectionImplementors = []string{"VendorServiceConnection"} - -func (ec *executionContext) _VendorServiceConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorServiceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorServiceConnectionImplementors) - - 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("VendorServiceConnection") - case "edges": - out.Values[i] = ec._VendorServiceConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._VendorServiceConnection_pageInfo(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 vendorServiceEdgeImplementors = []string{"VendorServiceEdge"} - -func (ec *executionContext) _VendorServiceEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorServiceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorServiceEdgeImplementors) - - 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("VendorServiceEdge") - case "cursor": - out.Values[i] = ec._VendorServiceEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._VendorServiceEdge_node(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 viewerImplementors = []string{"Viewer"} - -func (ec *executionContext) _Viewer(ctx context.Context, sel ast.SelectionSet, obj *types.Viewer) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, viewerImplementors) - - 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("Viewer") - case "id": - out.Values[i] = ec._Viewer_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "signableDocuments": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Viewer_signableDocuments(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "signableDocument": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Viewer_signableDocument(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 webhookEventImplementors = []string{"WebhookEvent", "Node"} - -func (ec *executionContext) _WebhookEvent(ctx context.Context, sel ast.SelectionSet, obj *types.WebhookEvent) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookEventImplementors) - - 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("WebhookEvent") - case "id": - out.Values[i] = ec._WebhookEvent_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "webhookSubscriptionId": - out.Values[i] = ec._WebhookEvent_webhookSubscriptionId(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._WebhookEvent_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "response": - out.Values[i] = ec._WebhookEvent_response(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._WebhookEvent_createdAt(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 webhookEventConnectionImplementors = []string{"WebhookEventConnection"} - -func (ec *executionContext) _WebhookEventConnection(ctx context.Context, sel ast.SelectionSet, obj *types.WebhookEventConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookEventConnectionImplementors) - - 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("WebhookEventConnection") - case "edges": - out.Values[i] = ec._WebhookEventConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._WebhookEventConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._WebhookEventConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 webhookEventEdgeImplementors = []string{"WebhookEventEdge"} - -func (ec *executionContext) _WebhookEventEdge(ctx context.Context, sel ast.SelectionSet, obj *types.WebhookEventEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookEventEdgeImplementors) - - 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("WebhookEventEdge") - case "cursor": - out.Values[i] = ec._WebhookEventEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._WebhookEventEdge_node(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 webhookSubscriptionImplementors = []string{"WebhookSubscription", "Node"} - -func (ec *executionContext) _WebhookSubscription(ctx context.Context, sel ast.SelectionSet, obj *types.WebhookSubscription) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookSubscriptionImplementors) - - 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("WebhookSubscription") - case "id": - out.Values[i] = ec._WebhookSubscription_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organization": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._WebhookSubscription_organization(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 "endpointUrl": - out.Values[i] = ec._WebhookSubscription_endpointUrl(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "signingSecret": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._WebhookSubscription_signingSecret(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "selectedEvents": - out.Values[i] = ec._WebhookSubscription_selectedEvents(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._WebhookSubscription_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "updatedAt": - out.Values[i] = ec._WebhookSubscription_updatedAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "events": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._WebhookSubscription_events(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "permission": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._WebhookSubscription_permission(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 webhookSubscriptionConnectionImplementors = []string{"WebhookSubscriptionConnection"} - -func (ec *executionContext) _WebhookSubscriptionConnection(ctx context.Context, sel ast.SelectionSet, obj *types.WebhookSubscriptionConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookSubscriptionConnectionImplementors) - - 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("WebhookSubscriptionConnection") - case "edges": - out.Values[i] = ec._WebhookSubscriptionConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._WebhookSubscriptionConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._WebhookSubscriptionConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 webhookSubscriptionEdgeImplementors = []string{"WebhookSubscriptionEdge"} - -func (ec *executionContext) _WebhookSubscriptionEdge(ctx context.Context, sel ast.SelectionSet, obj *types.WebhookSubscriptionEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookSubscriptionEdgeImplementors) - - 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("WebhookSubscriptionEdge") - case "cursor": - out.Values[i] = ec._WebhookSubscriptionEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._WebhookSubscriptionEdge_node(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 __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 "isRepeatable": - out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - 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++ - } - 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) - case "isDeprecated": - out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___InputValue_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 __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 "specifiedByURL": - out.Values[i] = ec.___Type_specifiedByURL(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 "isOneOf": - out.Values[i] = ec.___Type_isOneOf(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) marshalNApplicabilityStatement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatement(ctx context.Context, sel ast.SelectionSet, v *types.ApplicabilityStatement) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ApplicabilityStatement(ctx, sel, v) -} - -func (ec *executionContext) marshalNApplicabilityStatementConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatementConnection(ctx context.Context, sel ast.SelectionSet, v types.ApplicabilityStatementConnection) graphql.Marshaler { - return ec._ApplicabilityStatementConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNApplicabilityStatementConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatementConnection(ctx context.Context, sel ast.SelectionSet, v *types.ApplicabilityStatementConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ApplicabilityStatementConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNApplicabilityStatementEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatementEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ApplicabilityStatementEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNApplicabilityStatementEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatementEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNApplicabilityStatementEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatementEdge(ctx context.Context, sel ast.SelectionSet, v *types.ApplicabilityStatementEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ApplicabilityStatementEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNApplicabilityStatementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐApplicabilityStatementOrderField(ctx context.Context, v any) (coredata.ApplicabilityStatementOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNApplicabilityStatementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐApplicabilityStatementOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNApplicabilityStatementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐApplicabilityStatementOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ApplicabilityStatementOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNApplicabilityStatementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐApplicabilityStatementOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNApplicabilityStatementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐApplicabilityStatementOrderField = map[string]coredata.ApplicabilityStatementOrderField{ - "CREATED_AT": coredata.ApplicabilityStatementOrderFieldCreatedAt, - "CONTROL_SECTION_TITLE": coredata.ApplicabilityStatementOrderFieldControlSectionTitle, - } - marshalNApplicabilityStatementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐApplicabilityStatementOrderField = map[coredata.ApplicabilityStatementOrderField]string{ - coredata.ApplicabilityStatementOrderFieldCreatedAt: "CREATED_AT", - coredata.ApplicabilityStatementOrderFieldControlSectionTitle: "CONTROL_SECTION_TITLE", - } -) - -func (ec *executionContext) unmarshalNAssessVendorInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssessVendorInput(ctx context.Context, v any) (types.AssessVendorInput, error) { - res, err := ec.unmarshalInputAssessVendorInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAssessVendorPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssessVendorPayload(ctx context.Context, sel ast.SelectionSet, v types.AssessVendorPayload) graphql.Marshaler { - return ec._AssessVendorPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAssessVendorPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssessVendorPayload(ctx context.Context, sel ast.SelectionSet, v *types.AssessVendorPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AssessVendorPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNAsset2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAsset(ctx context.Context, sel ast.SelectionSet, v *types.Asset) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Asset(ctx, sel, v) -} - -func (ec *executionContext) marshalNAssetConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetConnection(ctx context.Context, sel ast.SelectionSet, v types.AssetConnection) graphql.Marshaler { - return ec._AssetConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAssetConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetConnection(ctx context.Context, sel ast.SelectionSet, v *types.AssetConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AssetConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNAssetEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.AssetEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNAssetEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNAssetEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetEdge(ctx context.Context, sel ast.SelectionSet, v *types.AssetEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AssetEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNAssetOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetOrderField(ctx context.Context, v any) (coredata.AssetOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNAssetOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAssetOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.AssetOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNAssetOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNAssetOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetOrderField = map[string]coredata.AssetOrderField{ - "CREATED_AT": coredata.AssetOrderFieldCreatedAt, - "AMOUNT": coredata.AssetOrderFieldAmount, - } - marshalNAssetOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetOrderField = map[coredata.AssetOrderField]string{ - coredata.AssetOrderFieldCreatedAt: "CREATED_AT", - coredata.AssetOrderFieldAmount: "AMOUNT", - } -) - -func (ec *executionContext) unmarshalNAssetType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType(ctx context.Context, v any) (coredata.AssetType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNAssetType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAssetType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType(ctx context.Context, sel ast.SelectionSet, v coredata.AssetType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNAssetType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNAssetType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType = map[string]coredata.AssetType{ - "PHYSICAL": coredata.AssetTypePhysical, - "VIRTUAL": coredata.AssetTypeVirtual, - } - marshalNAssetType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType = map[coredata.AssetType]string{ - coredata.AssetTypePhysical: "PHYSICAL", - coredata.AssetTypeVirtual: "VIRTUAL", - } -) - -func (ec *executionContext) marshalNAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit(ctx context.Context, sel ast.SelectionSet, v *types.Audit) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Audit(ctx, sel, v) -} - -func (ec *executionContext) marshalNAuditConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditConnection(ctx context.Context, sel ast.SelectionSet, v types.AuditConnection) graphql.Marshaler { - return ec._AuditConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAuditConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditConnection(ctx context.Context, sel ast.SelectionSet, v *types.AuditConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AuditConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNAuditEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.AuditEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNAuditEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNAuditEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditEdge(ctx context.Context, sel ast.SelectionSet, v *types.AuditEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AuditEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNAuditOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditOrderField(ctx context.Context, v any) (coredata.AuditOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNAuditOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAuditOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.AuditOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNAuditOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNAuditOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditOrderField = map[string]coredata.AuditOrderField{ - "CREATED_AT": coredata.AuditOrderFieldCreatedAt, - "VALID_FROM": coredata.AuditOrderFieldValidFrom, - "VALID_UNTIL": coredata.AuditOrderFieldValidUntil, - "STATE": coredata.AuditOrderFieldState, - } - marshalNAuditOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditOrderField = map[coredata.AuditOrderField]string{ - coredata.AuditOrderFieldCreatedAt: "CREATED_AT", - coredata.AuditOrderFieldValidFrom: "VALID_FROM", - coredata.AuditOrderFieldValidUntil: "VALID_UNTIL", - coredata.AuditOrderFieldState: "STATE", - } -) - -func (ec *executionContext) unmarshalNAuditState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState(ctx context.Context, v any) (coredata.AuditState, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNAuditState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAuditState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState(ctx context.Context, sel ast.SelectionSet, v coredata.AuditState) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNAuditState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNAuditState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState = map[string]coredata.AuditState{ - "NOT_STARTED": coredata.AuditStateNotStarted, - "IN_PROGRESS": coredata.AuditStateInProgress, - "COMPLETED": coredata.AuditStateCompleted, - "REJECTED": coredata.AuditStateRejected, - "OUTDATED": coredata.AuditStateOutdated, - } - marshalNAuditState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState = map[coredata.AuditState]string{ - coredata.AuditStateNotStarted: "NOT_STARTED", - coredata.AuditStateInProgress: "IN_PROGRESS", - coredata.AuditStateCompleted: "COMPLETED", - coredata.AuditStateRejected: "REJECTED", - coredata.AuditStateOutdated: "OUTDATED", - } -) - -func (ec *executionContext) unmarshalNBigInt2int64(ctx context.Context, v any) (int64, error) { - res, err := bigint.UnmarshalBigIntScalar(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBigInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { - _ = sel - res := bigint.MarshalBigIntScalar(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalBoolean(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNBulkDeleteDocumentsInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkDeleteDocumentsInput(ctx context.Context, v any) (types.BulkDeleteDocumentsInput, error) { - res, err := ec.unmarshalInputBulkDeleteDocumentsInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBulkDeleteDocumentsPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkDeleteDocumentsPayload(ctx context.Context, sel ast.SelectionSet, v types.BulkDeleteDocumentsPayload) graphql.Marshaler { - return ec._BulkDeleteDocumentsPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNBulkDeleteDocumentsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkDeleteDocumentsPayload(ctx context.Context, sel ast.SelectionSet, v *types.BulkDeleteDocumentsPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._BulkDeleteDocumentsPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNBulkExportDocumentsInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkExportDocumentsInput(ctx context.Context, v any) (types.BulkExportDocumentsInput, error) { - res, err := ec.unmarshalInputBulkExportDocumentsInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBulkExportDocumentsPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkExportDocumentsPayload(ctx context.Context, sel ast.SelectionSet, v types.BulkExportDocumentsPayload) graphql.Marshaler { - return ec._BulkExportDocumentsPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNBulkExportDocumentsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkExportDocumentsPayload(ctx context.Context, sel ast.SelectionSet, v *types.BulkExportDocumentsPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._BulkExportDocumentsPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNBulkPublishDocumentVersionsInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkPublishDocumentVersionsInput(ctx context.Context, v any) (types.BulkPublishDocumentVersionsInput, error) { - res, err := ec.unmarshalInputBulkPublishDocumentVersionsInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBulkPublishDocumentVersionsPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkPublishDocumentVersionsPayload(ctx context.Context, sel ast.SelectionSet, v types.BulkPublishDocumentVersionsPayload) graphql.Marshaler { - return ec._BulkPublishDocumentVersionsPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNBulkPublishDocumentVersionsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkPublishDocumentVersionsPayload(ctx context.Context, sel ast.SelectionSet, v *types.BulkPublishDocumentVersionsPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._BulkPublishDocumentVersionsPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNBulkRequestSignaturesInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkRequestSignaturesInput(ctx context.Context, v any) (types.BulkRequestSignaturesInput, error) { - res, err := ec.unmarshalInputBulkRequestSignaturesInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBulkRequestSignaturesPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkRequestSignaturesPayload(ctx context.Context, sel ast.SelectionSet, v types.BulkRequestSignaturesPayload) graphql.Marshaler { - return ec._BulkRequestSignaturesPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNBulkRequestSignaturesPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐBulkRequestSignaturesPayload(ctx context.Context, sel ast.SelectionSet, v *types.BulkRequestSignaturesPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._BulkRequestSignaturesPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNBusinessImpact2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐBusinessImpact(ctx context.Context, v any) (coredata.BusinessImpact, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNBusinessImpact2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐBusinessImpact[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBusinessImpact2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐBusinessImpact(ctx context.Context, sel ast.SelectionSet, v coredata.BusinessImpact) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNBusinessImpact2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐBusinessImpact[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNBusinessImpact2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐBusinessImpact = map[string]coredata.BusinessImpact{ - "LOW": coredata.BusinessImpactLow, - "MEDIUM": coredata.BusinessImpactMedium, - "HIGH": coredata.BusinessImpactHigh, - "CRITICAL": coredata.BusinessImpactCritical, - } - marshalNBusinessImpact2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐBusinessImpact = map[coredata.BusinessImpact]string{ - coredata.BusinessImpactLow: "LOW", - coredata.BusinessImpactMedium: "MEDIUM", - coredata.BusinessImpactHigh: "HIGH", - coredata.BusinessImpactCritical: "CRITICAL", - } -) - -func (ec *executionContext) unmarshalNCancelSignatureRequestInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCancelSignatureRequestInput(ctx context.Context, v any) (types.CancelSignatureRequestInput, error) { - res, err := ec.unmarshalInputCancelSignatureRequestInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCancelSignatureRequestPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCancelSignatureRequestPayload(ctx context.Context, sel ast.SelectionSet, v types.CancelSignatureRequestPayload) graphql.Marshaler { - return ec._CancelSignatureRequestPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCancelSignatureRequestPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCancelSignatureRequestPayload(ctx context.Context, sel ast.SelectionSet, v *types.CancelSignatureRequestPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CancelSignatureRequestPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNComplianceExternalURL2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURL(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceExternalURL) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceExternalURL(ctx, sel, v) -} - -func (ec *executionContext) marshalNComplianceExternalURLConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURLConnection(ctx context.Context, sel ast.SelectionSet, v types.ComplianceExternalURLConnection) graphql.Marshaler { - return ec._ComplianceExternalURLConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNComplianceExternalURLConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURLConnection(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceExternalURLConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceExternalURLConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNComplianceExternalURLEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURLEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ComplianceExternalURLEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNComplianceExternalURLEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURLEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNComplianceExternalURLEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceExternalURLEdge(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceExternalURLEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceExternalURLEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNComplianceExternalURLOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceExternalURLOrderField(ctx context.Context, v any) (coredata.ComplianceExternalURLOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNComplianceExternalURLOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceExternalURLOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNComplianceExternalURLOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceExternalURLOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ComplianceExternalURLOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNComplianceExternalURLOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceExternalURLOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNComplianceExternalURLOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceExternalURLOrderField = map[string]coredata.ComplianceExternalURLOrderField{ - "CREATED_AT": coredata.ComplianceExternalURLOrderFieldCreatedAt, - "RANK": coredata.ComplianceExternalURLOrderFieldRank, - } - marshalNComplianceExternalURLOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceExternalURLOrderField = map[coredata.ComplianceExternalURLOrderField]string{ - coredata.ComplianceExternalURLOrderFieldCreatedAt: "CREATED_AT", - coredata.ComplianceExternalURLOrderFieldRank: "RANK", - } -) - -func (ec *executionContext) marshalNComplianceFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFramework(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceFramework) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceFramework(ctx, sel, v) -} - -func (ec *executionContext) marshalNComplianceFrameworkConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFrameworkConnection(ctx context.Context, sel ast.SelectionSet, v types.ComplianceFrameworkConnection) graphql.Marshaler { - return ec._ComplianceFrameworkConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNComplianceFrameworkConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFrameworkConnection(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceFrameworkConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceFrameworkConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNComplianceFrameworkEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFrameworkEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ComplianceFrameworkEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNComplianceFrameworkEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFrameworkEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNComplianceFrameworkEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐComplianceFrameworkEdge(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceFrameworkEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceFrameworkEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNComplianceFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkOrderField(ctx context.Context, v any) (coredata.ComplianceFrameworkOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNComplianceFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNComplianceFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ComplianceFrameworkOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNComplianceFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNComplianceFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkOrderField = map[string]coredata.ComplianceFrameworkOrderField{ - "CREATED_AT": coredata.ComplianceFrameworkOrderFieldCreatedAt, - "RANK": coredata.ComplianceFrameworkOrderFieldRank, - } - marshalNComplianceFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkOrderField = map[coredata.ComplianceFrameworkOrderField]string{ - coredata.ComplianceFrameworkOrderFieldCreatedAt: "CREATED_AT", - coredata.ComplianceFrameworkOrderFieldRank: "RANK", - } -) - -func (ec *executionContext) unmarshalNComplianceFrameworkVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkVisibility(ctx context.Context, v any) (coredata.ComplianceFrameworkVisibility, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNComplianceFrameworkVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkVisibility[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNComplianceFrameworkVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkVisibility(ctx context.Context, sel ast.SelectionSet, v coredata.ComplianceFrameworkVisibility) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNComplianceFrameworkVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkVisibility[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNComplianceFrameworkVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkVisibility = map[string]coredata.ComplianceFrameworkVisibility{ - "NONE": coredata.ComplianceFrameworkVisibilityNone, - "PUBLIC": coredata.ComplianceFrameworkVisibilityPublic, - } - marshalNComplianceFrameworkVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐComplianceFrameworkVisibility = map[coredata.ComplianceFrameworkVisibility]string{ - coredata.ComplianceFrameworkVisibilityNone: "NONE", - coredata.ComplianceFrameworkVisibilityPublic: "PUBLIC", - } -) - -func (ec *executionContext) marshalNContinualImprovement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovement(ctx context.Context, sel ast.SelectionSet, v *types.ContinualImprovement) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ContinualImprovement(ctx, sel, v) -} - -func (ec *executionContext) marshalNContinualImprovementConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementConnection(ctx context.Context, sel ast.SelectionSet, v types.ContinualImprovementConnection) graphql.Marshaler { - return ec._ContinualImprovementConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNContinualImprovementConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementConnection(ctx context.Context, sel ast.SelectionSet, v *types.ContinualImprovementConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ContinualImprovementConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNContinualImprovementEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ContinualImprovementEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNContinualImprovementEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNContinualImprovementEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementEdge(ctx context.Context, sel ast.SelectionSet, v *types.ContinualImprovementEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ContinualImprovementEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNContinualImprovementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementOrderField(ctx context.Context, v any) (coredata.ContinualImprovementOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNContinualImprovementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNContinualImprovementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ContinualImprovementOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNContinualImprovementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNContinualImprovementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementOrderField = map[string]coredata.ContinualImprovementOrderField{ - "CREATED_AT": coredata.ContinualImprovementOrderFieldCreatedAt, - "REFERENCE_ID": coredata.ContinualImprovementOrderFieldReferenceId, - "TARGET_DATE": coredata.ContinualImprovementOrderFieldTargetDate, - "STATUS": coredata.ContinualImprovementOrderFieldStatus, - "PRIORITY": coredata.ContinualImprovementOrderFieldPriority, - } - marshalNContinualImprovementOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementOrderField = map[coredata.ContinualImprovementOrderField]string{ - coredata.ContinualImprovementOrderFieldCreatedAt: "CREATED_AT", - coredata.ContinualImprovementOrderFieldReferenceId: "REFERENCE_ID", - coredata.ContinualImprovementOrderFieldTargetDate: "TARGET_DATE", - coredata.ContinualImprovementOrderFieldStatus: "STATUS", - coredata.ContinualImprovementOrderFieldPriority: "PRIORITY", - } -) - -func (ec *executionContext) unmarshalNContinualImprovementPriority2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority(ctx context.Context, v any) (coredata.ContinualImprovementPriority, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNContinualImprovementPriority2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNContinualImprovementPriority2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority(ctx context.Context, sel ast.SelectionSet, v coredata.ContinualImprovementPriority) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNContinualImprovementPriority2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNContinualImprovementPriority2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority = map[string]coredata.ContinualImprovementPriority{ - "LOW": coredata.ContinualImprovementPriorityLow, - "MEDIUM": coredata.ContinualImprovementPriorityMedium, - "HIGH": coredata.ContinualImprovementPriorityHigh, - } - marshalNContinualImprovementPriority2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority = map[coredata.ContinualImprovementPriority]string{ - coredata.ContinualImprovementPriorityLow: "LOW", - coredata.ContinualImprovementPriorityMedium: "MEDIUM", - coredata.ContinualImprovementPriorityHigh: "HIGH", - } -) - -func (ec *executionContext) unmarshalNContinualImprovementStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus(ctx context.Context, v any) (coredata.ContinualImprovementStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNContinualImprovementStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNContinualImprovementStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus(ctx context.Context, sel ast.SelectionSet, v coredata.ContinualImprovementStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNContinualImprovementStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNContinualImprovementStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus = map[string]coredata.ContinualImprovementStatus{ - "OPEN": coredata.ContinualImprovementStatusOpen, - "IN_PROGRESS": coredata.ContinualImprovementStatusInProgress, - "CLOSED": coredata.ContinualImprovementStatusClosed, - } - marshalNContinualImprovementStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus = map[coredata.ContinualImprovementStatus]string{ - coredata.ContinualImprovementStatusOpen: "OPEN", - coredata.ContinualImprovementStatusInProgress: "IN_PROGRESS", - coredata.ContinualImprovementStatusClosed: "CLOSED", - } -) - -func (ec *executionContext) marshalNControl2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControl(ctx context.Context, sel ast.SelectionSet, v types.Control) graphql.Marshaler { - return ec._Control(ctx, sel, &v) -} - -func (ec *executionContext) marshalNControl2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControl(ctx context.Context, sel ast.SelectionSet, v *types.Control) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Control(ctx, sel, v) -} - -func (ec *executionContext) marshalNControlConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection(ctx context.Context, sel ast.SelectionSet, v types.ControlConnection) graphql.Marshaler { - return ec._ControlConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNControlConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlConnection(ctx context.Context, sel ast.SelectionSet, v *types.ControlConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ControlConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNControlEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ControlEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNControlEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNControlEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlEdge(ctx context.Context, sel ast.SelectionSet, v *types.ControlEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ControlEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNControlOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐControlOrderField(ctx context.Context, v any) (coredata.ControlOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNControlOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐControlOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNControlOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐControlOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ControlOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNControlOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐControlOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNControlOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐControlOrderField = map[string]coredata.ControlOrderField{ - "CREATED_AT": coredata.ControlOrderFieldCreatedAt, - "SECTION_TITLE": coredata.ControlOrderFieldSectionTitle, - } - marshalNControlOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐControlOrderField = map[coredata.ControlOrderField]string{ - coredata.ControlOrderFieldCreatedAt: "CREATED_AT", - coredata.ControlOrderFieldSectionTitle: "SECTION_TITLE", - } -) - -func (ec *executionContext) unmarshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode(ctx context.Context, v any) (coredata.CountryCode, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode(ctx context.Context, sel ast.SelectionSet, v coredata.CountryCode) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode = map[string]coredata.CountryCode{ - "AD": coredata.CountryCodeAD, - "AE": coredata.CountryCodeAE, - "AF": coredata.CountryCodeAF, - "AG": coredata.CountryCodeAG, - "AI": coredata.CountryCodeAI, - "AL": coredata.CountryCodeAL, - "AM": coredata.CountryCodeAM, - "AO": coredata.CountryCodeAO, - "AQ": coredata.CountryCodeAQ, - "AR": coredata.CountryCodeAR, - "AS": coredata.CountryCodeAS, - "AT": coredata.CountryCodeAT, - "AU": coredata.CountryCodeAU, - "AW": coredata.CountryCodeAW, - "AX": coredata.CountryCodeAX, - "AZ": coredata.CountryCodeAZ, - "BA": coredata.CountryCodeBA, - "BB": coredata.CountryCodeBB, - "BD": coredata.CountryCodeBD, - "BE": coredata.CountryCodeBE, - "BF": coredata.CountryCodeBF, - "BG": coredata.CountryCodeBG, - "BH": coredata.CountryCodeBH, - "BI": coredata.CountryCodeBI, - "BJ": coredata.CountryCodeBJ, - "BL": coredata.CountryCodeBL, - "BM": coredata.CountryCodeBM, - "BN": coredata.CountryCodeBN, - "BO": coredata.CountryCodeBO, - "BQ": coredata.CountryCodeBQ, - "BR": coredata.CountryCodeBR, - "BS": coredata.CountryCodeBS, - "BT": coredata.CountryCodeBT, - "BV": coredata.CountryCodeBV, - "BW": coredata.CountryCodeBW, - "BY": coredata.CountryCodeBY, - "BZ": coredata.CountryCodeBZ, - "CA": coredata.CountryCodeCA, - "CC": coredata.CountryCodeCC, - "CD": coredata.CountryCodeCD, - "CF": coredata.CountryCodeCF, - "CG": coredata.CountryCodeCG, - "CH": coredata.CountryCodeCH, - "CI": coredata.CountryCodeCI, - "CK": coredata.CountryCodeCK, - "CL": coredata.CountryCodeCL, - "CM": coredata.CountryCodeCM, - "CN": coredata.CountryCodeCN, - "CO": coredata.CountryCodeCO, - "CR": coredata.CountryCodeCR, - "CU": coredata.CountryCodeCU, - "CV": coredata.CountryCodeCV, - "CW": coredata.CountryCodeCW, - "CX": coredata.CountryCodeCX, - "CY": coredata.CountryCodeCY, - "CZ": coredata.CountryCodeCZ, - "DE": coredata.CountryCodeDE, - "DJ": coredata.CountryCodeDJ, - "DK": coredata.CountryCodeDK, - "DM": coredata.CountryCodeDM, - "DO": coredata.CountryCodeDO, - "DZ": coredata.CountryCodeDZ, - "EC": coredata.CountryCodeEC, - "EE": coredata.CountryCodeEE, - "EG": coredata.CountryCodeEG, - "EH": coredata.CountryCodeEH, - "ER": coredata.CountryCodeER, - "ES": coredata.CountryCodeES, - "ET": coredata.CountryCodeET, - "EU": coredata.CountryCodeEU, - "FI": coredata.CountryCodeFI, - "FJ": coredata.CountryCodeFJ, - "FK": coredata.CountryCodeFK, - "FM": coredata.CountryCodeFM, - "FO": coredata.CountryCodeFO, - "FR": coredata.CountryCodeFR, - "GA": coredata.CountryCodeGA, - "GB": coredata.CountryCodeGB, - "GD": coredata.CountryCodeGD, - "GE": coredata.CountryCodeGE, - "GF": coredata.CountryCodeGF, - "GG": coredata.CountryCodeGG, - "GH": coredata.CountryCodeGH, - "GI": coredata.CountryCodeGI, - "GL": coredata.CountryCodeGL, - "GM": coredata.CountryCodeGM, - "GN": coredata.CountryCodeGN, - "GP": coredata.CountryCodeGP, - "GQ": coredata.CountryCodeGQ, - "GR": coredata.CountryCodeGR, - "GT": coredata.CountryCodeGT, - "GU": coredata.CountryCodeGU, - "GW": coredata.CountryCodeGW, - "GY": coredata.CountryCodeGY, - "HK": coredata.CountryCodeHK, - "HM": coredata.CountryCodeHM, - "HN": coredata.CountryCodeHN, - "HR": coredata.CountryCodeHR, - "HT": coredata.CountryCodeHT, - "HU": coredata.CountryCodeHU, - "ID": coredata.CountryCodeID, - "IE": coredata.CountryCodeIE, - "IL": coredata.CountryCodeIL, - "IM": coredata.CountryCodeIM, - "IN": coredata.CountryCodeIN, - "IO": coredata.CountryCodeIO, - "IQ": coredata.CountryCodeIQ, - "IR": coredata.CountryCodeIR, - "IS": coredata.CountryCodeIS, - "IT": coredata.CountryCodeIT, - "JE": coredata.CountryCodeJE, - "JM": coredata.CountryCodeJM, - "JO": coredata.CountryCodeJO, - "JP": coredata.CountryCodeJP, - "KE": coredata.CountryCodeKE, - "KG": coredata.CountryCodeKG, - "KH": coredata.CountryCodeKH, - "KI": coredata.CountryCodeKI, - "KM": coredata.CountryCodeKM, - "KN": coredata.CountryCodeKN, - "KP": coredata.CountryCodeKP, - "KR": coredata.CountryCodeKR, - "KW": coredata.CountryCodeKW, - "KY": coredata.CountryCodeKY, - "KZ": coredata.CountryCodeKZ, - "LA": coredata.CountryCodeLA, - "LB": coredata.CountryCodeLB, - "LC": coredata.CountryCodeLC, - "LI": coredata.CountryCodeLI, - "LK": coredata.CountryCodeLK, - "LR": coredata.CountryCodeLR, - "LS": coredata.CountryCodeLS, - "LT": coredata.CountryCodeLT, - "LU": coredata.CountryCodeLU, - "LV": coredata.CountryCodeLV, - "LY": coredata.CountryCodeLY, - "MA": coredata.CountryCodeMA, - "MC": coredata.CountryCodeMC, - "MD": coredata.CountryCodeMD, - "ME": coredata.CountryCodeME, - "MF": coredata.CountryCodeMF, - "MG": coredata.CountryCodeMG, - "MH": coredata.CountryCodeMH, - "MK": coredata.CountryCodeMK, - "ML": coredata.CountryCodeML, - "MM": coredata.CountryCodeMM, - "MN": coredata.CountryCodeMN, - "MO": coredata.CountryCodeMO, - "MP": coredata.CountryCodeMP, - "MQ": coredata.CountryCodeMQ, - "MR": coredata.CountryCodeMR, - "MS": coredata.CountryCodeMS, - "MT": coredata.CountryCodeMT, - "MU": coredata.CountryCodeMU, - "MV": coredata.CountryCodeMV, - "MW": coredata.CountryCodeMW, - "MX": coredata.CountryCodeMX, - "MY": coredata.CountryCodeMY, - "MZ": coredata.CountryCodeMZ, - "NA": coredata.CountryCodeNA, - "NC": coredata.CountryCodeNC, - "NE": coredata.CountryCodeNE, - "NF": coredata.CountryCodeNF, - "NG": coredata.CountryCodeNG, - "NI": coredata.CountryCodeNI, - "NL": coredata.CountryCodeNL, - "NO": coredata.CountryCodeNO, - "NP": coredata.CountryCodeNP, - "NR": coredata.CountryCodeNR, - "NU": coredata.CountryCodeNU, - "NZ": coredata.CountryCodeNZ, - "OM": coredata.CountryCodeOM, - "PA": coredata.CountryCodePA, - "PE": coredata.CountryCodePE, - "PF": coredata.CountryCodePF, - "PG": coredata.CountryCodePG, - "PH": coredata.CountryCodePH, - "PK": coredata.CountryCodePK, - "PL": coredata.CountryCodePL, - "PM": coredata.CountryCodePM, - "PN": coredata.CountryCodePN, - "PR": coredata.CountryCodePR, - "PS": coredata.CountryCodePS, - "PT": coredata.CountryCodePT, - "PW": coredata.CountryCodePW, - "PY": coredata.CountryCodePY, - "QA": coredata.CountryCodeQA, - "RE": coredata.CountryCodeRE, - "RO": coredata.CountryCodeRO, - "RS": coredata.CountryCodeRS, - "RU": coredata.CountryCodeRU, - "RW": coredata.CountryCodeRW, - "SA": coredata.CountryCodeSA, - "SB": coredata.CountryCodeSB, - "SC": coredata.CountryCodeSC, - "SD": coredata.CountryCodeSD, - "SE": coredata.CountryCodeSE, - "SG": coredata.CountryCodeSG, - "SH": coredata.CountryCodeSH, - "SI": coredata.CountryCodeSI, - "SJ": coredata.CountryCodeSJ, - "SK": coredata.CountryCodeSK, - "SL": coredata.CountryCodeSL, - "SM": coredata.CountryCodeSM, - "SN": coredata.CountryCodeSN, - "SO": coredata.CountryCodeSO, - "SR": coredata.CountryCodeSR, - "SS": coredata.CountryCodeSS, - "ST": coredata.CountryCodeST, - "SV": coredata.CountryCodeSV, - "SX": coredata.CountryCodeSX, - "SY": coredata.CountryCodeSY, - "SZ": coredata.CountryCodeSZ, - "TC": coredata.CountryCodeTC, - "TD": coredata.CountryCodeTD, - "TF": coredata.CountryCodeTF, - "TG": coredata.CountryCodeTG, - "TH": coredata.CountryCodeTH, - "TJ": coredata.CountryCodeTJ, - "TK": coredata.CountryCodeTK, - "TL": coredata.CountryCodeTL, - "TM": coredata.CountryCodeTM, - "TN": coredata.CountryCodeTN, - "TO": coredata.CountryCodeTO, - "TR": coredata.CountryCodeTR, - "TT": coredata.CountryCodeTT, - "TV": coredata.CountryCodeTV, - "TW": coredata.CountryCodeTW, - "TZ": coredata.CountryCodeTZ, - "UA": coredata.CountryCodeUA, - "UG": coredata.CountryCodeUG, - "UM": coredata.CountryCodeUM, - "US": coredata.CountryCodeUS, - "UY": coredata.CountryCodeUY, - "UZ": coredata.CountryCodeUZ, - "VA": coredata.CountryCodeVA, - "VC": coredata.CountryCodeVC, - "VE": coredata.CountryCodeVE, - "VG": coredata.CountryCodeVG, - "VI": coredata.CountryCodeVI, - "VN": coredata.CountryCodeVN, - "VU": coredata.CountryCodeVU, - "WF": coredata.CountryCodeWF, - "WS": coredata.CountryCodeWS, - "YE": coredata.CountryCodeYE, - "YT": coredata.CountryCodeYT, - "ZA": coredata.CountryCodeZA, - "ZM": coredata.CountryCodeZM, - "ZW": coredata.CountryCodeZW, - } - marshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode = map[coredata.CountryCode]string{ - coredata.CountryCodeAD: "AD", - coredata.CountryCodeAE: "AE", - coredata.CountryCodeAF: "AF", - coredata.CountryCodeAG: "AG", - coredata.CountryCodeAI: "AI", - coredata.CountryCodeAL: "AL", - coredata.CountryCodeAM: "AM", - coredata.CountryCodeAO: "AO", - coredata.CountryCodeAQ: "AQ", - coredata.CountryCodeAR: "AR", - coredata.CountryCodeAS: "AS", - coredata.CountryCodeAT: "AT", - coredata.CountryCodeAU: "AU", - coredata.CountryCodeAW: "AW", - coredata.CountryCodeAX: "AX", - coredata.CountryCodeAZ: "AZ", - coredata.CountryCodeBA: "BA", - coredata.CountryCodeBB: "BB", - coredata.CountryCodeBD: "BD", - coredata.CountryCodeBE: "BE", - coredata.CountryCodeBF: "BF", - coredata.CountryCodeBG: "BG", - coredata.CountryCodeBH: "BH", - coredata.CountryCodeBI: "BI", - coredata.CountryCodeBJ: "BJ", - coredata.CountryCodeBL: "BL", - coredata.CountryCodeBM: "BM", - coredata.CountryCodeBN: "BN", - coredata.CountryCodeBO: "BO", - coredata.CountryCodeBQ: "BQ", - coredata.CountryCodeBR: "BR", - coredata.CountryCodeBS: "BS", - coredata.CountryCodeBT: "BT", - coredata.CountryCodeBV: "BV", - coredata.CountryCodeBW: "BW", - coredata.CountryCodeBY: "BY", - coredata.CountryCodeBZ: "BZ", - coredata.CountryCodeCA: "CA", - coredata.CountryCodeCC: "CC", - coredata.CountryCodeCD: "CD", - coredata.CountryCodeCF: "CF", - coredata.CountryCodeCG: "CG", - coredata.CountryCodeCH: "CH", - coredata.CountryCodeCI: "CI", - coredata.CountryCodeCK: "CK", - coredata.CountryCodeCL: "CL", - coredata.CountryCodeCM: "CM", - coredata.CountryCodeCN: "CN", - coredata.CountryCodeCO: "CO", - coredata.CountryCodeCR: "CR", - coredata.CountryCodeCU: "CU", - coredata.CountryCodeCV: "CV", - coredata.CountryCodeCW: "CW", - coredata.CountryCodeCX: "CX", - coredata.CountryCodeCY: "CY", - coredata.CountryCodeCZ: "CZ", - coredata.CountryCodeDE: "DE", - coredata.CountryCodeDJ: "DJ", - coredata.CountryCodeDK: "DK", - coredata.CountryCodeDM: "DM", - coredata.CountryCodeDO: "DO", - coredata.CountryCodeDZ: "DZ", - coredata.CountryCodeEC: "EC", - coredata.CountryCodeEE: "EE", - coredata.CountryCodeEG: "EG", - coredata.CountryCodeEH: "EH", - coredata.CountryCodeER: "ER", - coredata.CountryCodeES: "ES", - coredata.CountryCodeET: "ET", - coredata.CountryCodeEU: "EU", - coredata.CountryCodeFI: "FI", - coredata.CountryCodeFJ: "FJ", - coredata.CountryCodeFK: "FK", - coredata.CountryCodeFM: "FM", - coredata.CountryCodeFO: "FO", - coredata.CountryCodeFR: "FR", - coredata.CountryCodeGA: "GA", - coredata.CountryCodeGB: "GB", - coredata.CountryCodeGD: "GD", - coredata.CountryCodeGE: "GE", - coredata.CountryCodeGF: "GF", - coredata.CountryCodeGG: "GG", - coredata.CountryCodeGH: "GH", - coredata.CountryCodeGI: "GI", - coredata.CountryCodeGL: "GL", - coredata.CountryCodeGM: "GM", - coredata.CountryCodeGN: "GN", - coredata.CountryCodeGP: "GP", - coredata.CountryCodeGQ: "GQ", - coredata.CountryCodeGR: "GR", - coredata.CountryCodeGT: "GT", - coredata.CountryCodeGU: "GU", - coredata.CountryCodeGW: "GW", - coredata.CountryCodeGY: "GY", - coredata.CountryCodeHK: "HK", - coredata.CountryCodeHM: "HM", - coredata.CountryCodeHN: "HN", - coredata.CountryCodeHR: "HR", - coredata.CountryCodeHT: "HT", - coredata.CountryCodeHU: "HU", - coredata.CountryCodeID: "ID", - coredata.CountryCodeIE: "IE", - coredata.CountryCodeIL: "IL", - coredata.CountryCodeIM: "IM", - coredata.CountryCodeIN: "IN", - coredata.CountryCodeIO: "IO", - coredata.CountryCodeIQ: "IQ", - coredata.CountryCodeIR: "IR", - coredata.CountryCodeIS: "IS", - coredata.CountryCodeIT: "IT", - coredata.CountryCodeJE: "JE", - coredata.CountryCodeJM: "JM", - coredata.CountryCodeJO: "JO", - coredata.CountryCodeJP: "JP", - coredata.CountryCodeKE: "KE", - coredata.CountryCodeKG: "KG", - coredata.CountryCodeKH: "KH", - coredata.CountryCodeKI: "KI", - coredata.CountryCodeKM: "KM", - coredata.CountryCodeKN: "KN", - coredata.CountryCodeKP: "KP", - coredata.CountryCodeKR: "KR", - coredata.CountryCodeKW: "KW", - coredata.CountryCodeKY: "KY", - coredata.CountryCodeKZ: "KZ", - coredata.CountryCodeLA: "LA", - coredata.CountryCodeLB: "LB", - coredata.CountryCodeLC: "LC", - coredata.CountryCodeLI: "LI", - coredata.CountryCodeLK: "LK", - coredata.CountryCodeLR: "LR", - coredata.CountryCodeLS: "LS", - coredata.CountryCodeLT: "LT", - coredata.CountryCodeLU: "LU", - coredata.CountryCodeLV: "LV", - coredata.CountryCodeLY: "LY", - coredata.CountryCodeMA: "MA", - coredata.CountryCodeMC: "MC", - coredata.CountryCodeMD: "MD", - coredata.CountryCodeME: "ME", - coredata.CountryCodeMF: "MF", - coredata.CountryCodeMG: "MG", - coredata.CountryCodeMH: "MH", - coredata.CountryCodeMK: "MK", - coredata.CountryCodeML: "ML", - coredata.CountryCodeMM: "MM", - coredata.CountryCodeMN: "MN", - coredata.CountryCodeMO: "MO", - coredata.CountryCodeMP: "MP", - coredata.CountryCodeMQ: "MQ", - coredata.CountryCodeMR: "MR", - coredata.CountryCodeMS: "MS", - coredata.CountryCodeMT: "MT", - coredata.CountryCodeMU: "MU", - coredata.CountryCodeMV: "MV", - coredata.CountryCodeMW: "MW", - coredata.CountryCodeMX: "MX", - coredata.CountryCodeMY: "MY", - coredata.CountryCodeMZ: "MZ", - coredata.CountryCodeNA: "NA", - coredata.CountryCodeNC: "NC", - coredata.CountryCodeNE: "NE", - coredata.CountryCodeNF: "NF", - coredata.CountryCodeNG: "NG", - coredata.CountryCodeNI: "NI", - coredata.CountryCodeNL: "NL", - coredata.CountryCodeNO: "NO", - coredata.CountryCodeNP: "NP", - coredata.CountryCodeNR: "NR", - coredata.CountryCodeNU: "NU", - coredata.CountryCodeNZ: "NZ", - coredata.CountryCodeOM: "OM", - coredata.CountryCodePA: "PA", - coredata.CountryCodePE: "PE", - coredata.CountryCodePF: "PF", - coredata.CountryCodePG: "PG", - coredata.CountryCodePH: "PH", - coredata.CountryCodePK: "PK", - coredata.CountryCodePL: "PL", - coredata.CountryCodePM: "PM", - coredata.CountryCodePN: "PN", - coredata.CountryCodePR: "PR", - coredata.CountryCodePS: "PS", - coredata.CountryCodePT: "PT", - coredata.CountryCodePW: "PW", - coredata.CountryCodePY: "PY", - coredata.CountryCodeQA: "QA", - coredata.CountryCodeRE: "RE", - coredata.CountryCodeRO: "RO", - coredata.CountryCodeRS: "RS", - coredata.CountryCodeRU: "RU", - coredata.CountryCodeRW: "RW", - coredata.CountryCodeSA: "SA", - coredata.CountryCodeSB: "SB", - coredata.CountryCodeSC: "SC", - coredata.CountryCodeSD: "SD", - coredata.CountryCodeSE: "SE", - coredata.CountryCodeSG: "SG", - coredata.CountryCodeSH: "SH", - coredata.CountryCodeSI: "SI", - coredata.CountryCodeSJ: "SJ", - coredata.CountryCodeSK: "SK", - coredata.CountryCodeSL: "SL", - coredata.CountryCodeSM: "SM", - coredata.CountryCodeSN: "SN", - coredata.CountryCodeSO: "SO", - coredata.CountryCodeSR: "SR", - coredata.CountryCodeSS: "SS", - coredata.CountryCodeST: "ST", - coredata.CountryCodeSV: "SV", - coredata.CountryCodeSX: "SX", - coredata.CountryCodeSY: "SY", - coredata.CountryCodeSZ: "SZ", - coredata.CountryCodeTC: "TC", - coredata.CountryCodeTD: "TD", - coredata.CountryCodeTF: "TF", - coredata.CountryCodeTG: "TG", - coredata.CountryCodeTH: "TH", - coredata.CountryCodeTJ: "TJ", - coredata.CountryCodeTK: "TK", - coredata.CountryCodeTL: "TL", - coredata.CountryCodeTM: "TM", - coredata.CountryCodeTN: "TN", - coredata.CountryCodeTO: "TO", - coredata.CountryCodeTR: "TR", - coredata.CountryCodeTT: "TT", - coredata.CountryCodeTV: "TV", - coredata.CountryCodeTW: "TW", - coredata.CountryCodeTZ: "TZ", - coredata.CountryCodeUA: "UA", - coredata.CountryCodeUG: "UG", - coredata.CountryCodeUM: "UM", - coredata.CountryCodeUS: "US", - coredata.CountryCodeUY: "UY", - coredata.CountryCodeUZ: "UZ", - coredata.CountryCodeVA: "VA", - coredata.CountryCodeVC: "VC", - coredata.CountryCodeVE: "VE", - coredata.CountryCodeVG: "VG", - coredata.CountryCodeVI: "VI", - coredata.CountryCodeVN: "VN", - coredata.CountryCodeVU: "VU", - coredata.CountryCodeWF: "WF", - coredata.CountryCodeWS: "WS", - coredata.CountryCodeYE: "YE", - coredata.CountryCodeYT: "YT", - coredata.CountryCodeZA: "ZA", - coredata.CountryCodeZM: "ZM", - coredata.CountryCodeZW: "ZW", - } -) - -func (ec *executionContext) unmarshalNCountryCode2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCodeᚄ(ctx context.Context, v any) ([]coredata.CountryCode, error) { - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]coredata.CountryCode, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNCountryCode2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCodeᚄ(ctx context.Context, sel ast.SelectionSet, v []coredata.CountryCode) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNCreateApplicabilityStatementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateApplicabilityStatementInput(ctx context.Context, v any) (types.CreateApplicabilityStatementInput, error) { - res, err := ec.unmarshalInputCreateApplicabilityStatementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateApplicabilityStatementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateApplicabilityStatementPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateApplicabilityStatementPayload) graphql.Marshaler { - return ec._CreateApplicabilityStatementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateApplicabilityStatementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateApplicabilityStatementPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateApplicabilityStatementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateApplicabilityStatementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateAssetInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAssetInput(ctx context.Context, v any) (types.CreateAssetInput, error) { - res, err := ec.unmarshalInputCreateAssetInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateAssetPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAssetPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateAssetPayload) graphql.Marshaler { - return ec._CreateAssetPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateAssetPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAssetPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateAssetPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateAssetPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateAuditInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAuditInput(ctx context.Context, v any) (types.CreateAuditInput, error) { - res, err := ec.unmarshalInputCreateAuditInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateAuditPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAuditPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateAuditPayload) graphql.Marshaler { - return ec._CreateAuditPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateAuditPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateAuditPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateAuditPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateAuditPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateComplianceExternalURLInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceExternalURLInput(ctx context.Context, v any) (types.CreateComplianceExternalURLInput, error) { - res, err := ec.unmarshalInputCreateComplianceExternalURLInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateComplianceExternalURLPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceExternalURLPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateComplianceExternalURLPayload) graphql.Marshaler { - return ec._CreateComplianceExternalURLPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateComplianceExternalURLPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceExternalURLPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateComplianceExternalURLPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateComplianceExternalURLPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateComplianceFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceFrameworkInput(ctx context.Context, v any) (types.CreateComplianceFrameworkInput, error) { - res, err := ec.unmarshalInputCreateComplianceFrameworkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateComplianceFrameworkPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateComplianceFrameworkPayload) graphql.Marshaler { - return ec._CreateComplianceFrameworkPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateComplianceFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateComplianceFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateComplianceFrameworkPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateComplianceFrameworkPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateContinualImprovementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateContinualImprovementInput(ctx context.Context, v any) (types.CreateContinualImprovementInput, error) { - res, err := ec.unmarshalInputCreateContinualImprovementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateContinualImprovementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateContinualImprovementPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateContinualImprovementPayload) graphql.Marshaler { - return ec._CreateContinualImprovementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateContinualImprovementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateContinualImprovementPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateContinualImprovementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateContinualImprovementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateControlAuditMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlAuditMappingInput(ctx context.Context, v any) (types.CreateControlAuditMappingInput, error) { - res, err := ec.unmarshalInputCreateControlAuditMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateControlAuditMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlAuditMappingPayload) graphql.Marshaler { - return ec._CreateControlAuditMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateControlAuditMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlAuditMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateControlAuditMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateControlDocumentMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlDocumentMappingInput(ctx context.Context, v any) (types.CreateControlDocumentMappingInput, error) { - res, err := ec.unmarshalInputCreateControlDocumentMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateControlDocumentMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlDocumentMappingPayload) graphql.Marshaler { - return ec._CreateControlDocumentMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateControlDocumentMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlDocumentMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateControlDocumentMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateControlInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlInput(ctx context.Context, v any) (types.CreateControlInput, error) { - res, err := ec.unmarshalInputCreateControlInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNCreateControlMeasureMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMeasureMappingInput(ctx context.Context, v any) (types.CreateControlMeasureMappingInput, error) { - res, err := ec.unmarshalInputCreateControlMeasureMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateControlMeasureMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlMeasureMappingPayload) graphql.Marshaler { - return ec._CreateControlMeasureMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateControlMeasureMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlMeasureMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateControlMeasureMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateControlObligationMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlObligationMappingInput(ctx context.Context, v any) (types.CreateControlObligationMappingInput, error) { - res, err := ec.unmarshalInputCreateControlObligationMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateControlObligationMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlObligationMappingPayload) graphql.Marshaler { - return ec._CreateControlObligationMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateControlObligationMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlObligationMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateControlObligationMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNCreateControlPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlPayload) graphql.Marshaler { - return ec._CreateControlPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateControlPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateControlPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateControlSnapshotMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlSnapshotMappingInput(ctx context.Context, v any) (types.CreateControlSnapshotMappingInput, error) { - res, err := ec.unmarshalInputCreateControlSnapshotMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateControlSnapshotMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateControlSnapshotMappingPayload) graphql.Marshaler { - return ec._CreateControlSnapshotMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateControlSnapshotMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateControlSnapshotMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateControlSnapshotMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateCustomDomainInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateCustomDomainInput(ctx context.Context, v any) (types.CreateCustomDomainInput, error) { - res, err := ec.unmarshalInputCreateCustomDomainInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateCustomDomainPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateCustomDomainPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateCustomDomainPayload) graphql.Marshaler { - return ec._CreateCustomDomainPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateCustomDomainPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateCustomDomainPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateCustomDomainPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateCustomDomainPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateDataProtectionImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDataProtectionImpactAssessmentInput(ctx context.Context, v any) (types.CreateDataProtectionImpactAssessmentInput, error) { - res, err := ec.unmarshalInputCreateDataProtectionImpactAssessmentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateDataProtectionImpactAssessmentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDataProtectionImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateDataProtectionImpactAssessmentPayload) graphql.Marshaler { - return ec._CreateDataProtectionImpactAssessmentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateDataProtectionImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDataProtectionImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateDataProtectionImpactAssessmentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateDataProtectionImpactAssessmentPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateDatumInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDatumInput(ctx context.Context, v any) (types.CreateDatumInput, error) { - res, err := ec.unmarshalInputCreateDatumInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateDatumPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDatumPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateDatumPayload) graphql.Marshaler { - return ec._CreateDatumPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateDatumPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDatumPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateDatumPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateDatumPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateDocumentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDocumentInput(ctx context.Context, v any) (types.CreateDocumentInput, error) { - res, err := ec.unmarshalInputCreateDocumentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateDocumentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDocumentPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateDocumentPayload) graphql.Marshaler { - return ec._CreateDocumentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateDocumentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDocumentPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateDocumentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateDocumentPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateDraftDocumentVersionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDraftDocumentVersionInput(ctx context.Context, v any) (types.CreateDraftDocumentVersionInput, error) { - res, err := ec.unmarshalInputCreateDraftDocumentVersionInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateDraftDocumentVersionPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateDraftDocumentVersionPayload) graphql.Marshaler { - return ec._CreateDraftDocumentVersionPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateDraftDocumentVersionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateDraftDocumentVersionPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateDraftDocumentVersionPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateFrameworkInput(ctx context.Context, v any) (types.CreateFrameworkInput, error) { - res, err := ec.unmarshalInputCreateFrameworkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateFrameworkPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateFrameworkPayload) graphql.Marshaler { - return ec._CreateFrameworkPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateFrameworkPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateFrameworkPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateMailingListSubscriberInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMailingListSubscriberInput(ctx context.Context, v any) (types.CreateMailingListSubscriberInput, error) { - res, err := ec.unmarshalInputCreateMailingListSubscriberInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateMailingListSubscriberPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMailingListSubscriberPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateMailingListSubscriberPayload) graphql.Marshaler { - return ec._CreateMailingListSubscriberPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateMailingListSubscriberPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMailingListSubscriberPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateMailingListSubscriberPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateMailingListSubscriberPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateMailingListUpdateInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMailingListUpdateInput(ctx context.Context, v any) (types.CreateMailingListUpdateInput, error) { - res, err := ec.unmarshalInputCreateMailingListUpdateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateMailingListUpdatePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, v types.CreateMailingListUpdatePayload) graphql.Marshaler { - return ec._CreateMailingListUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateMailingListUpdatePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateMailingListUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateMailingListUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateMeasureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeasureInput(ctx context.Context, v any) (types.CreateMeasureInput, error) { - res, err := ec.unmarshalInputCreateMeasureInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateMeasurePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeasurePayload(ctx context.Context, sel ast.SelectionSet, v types.CreateMeasurePayload) graphql.Marshaler { - return ec._CreateMeasurePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateMeasurePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeasurePayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateMeasurePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateMeasurePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateMeetingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeetingInput(ctx context.Context, v any) (types.CreateMeetingInput, error) { - res, err := ec.unmarshalInputCreateMeetingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateMeetingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeetingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateMeetingPayload) graphql.Marshaler { - return ec._CreateMeetingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateMeetingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateMeetingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateMeetingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateMeetingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateNonconformityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateNonconformityInput(ctx context.Context, v any) (types.CreateNonconformityInput, error) { - res, err := ec.unmarshalInputCreateNonconformityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateNonconformityPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateNonconformityPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateNonconformityPayload) graphql.Marshaler { - return ec._CreateNonconformityPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateNonconformityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateNonconformityPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateNonconformityPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateNonconformityPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateObligationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateObligationInput(ctx context.Context, v any) (types.CreateObligationInput, error) { - res, err := ec.unmarshalInputCreateObligationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateObligationPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateObligationPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateObligationPayload) graphql.Marshaler { - return ec._CreateObligationPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateObligationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateObligationPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateObligationPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateObligationPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateProcessingActivityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateProcessingActivityInput(ctx context.Context, v any) (types.CreateProcessingActivityInput, error) { - res, err := ec.unmarshalInputCreateProcessingActivityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateProcessingActivityPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateProcessingActivityPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateProcessingActivityPayload) graphql.Marshaler { - return ec._CreateProcessingActivityPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateProcessingActivityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateProcessingActivityPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateProcessingActivityPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateProcessingActivityPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateRightsRequestInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRightsRequestInput(ctx context.Context, v any) (types.CreateRightsRequestInput, error) { - res, err := ec.unmarshalInputCreateRightsRequestInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateRightsRequestPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRightsRequestPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateRightsRequestPayload) graphql.Marshaler { - return ec._CreateRightsRequestPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateRightsRequestPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRightsRequestPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateRightsRequestPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateRightsRequestPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateRiskDocumentMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskDocumentMappingInput(ctx context.Context, v any) (types.CreateRiskDocumentMappingInput, error) { - res, err := ec.unmarshalInputCreateRiskDocumentMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateRiskDocumentMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateRiskDocumentMappingPayload) graphql.Marshaler { - return ec._CreateRiskDocumentMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateRiskDocumentMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateRiskDocumentMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateRiskDocumentMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateRiskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskInput(ctx context.Context, v any) (types.CreateRiskInput, error) { - res, err := ec.unmarshalInputCreateRiskInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNCreateRiskMeasureMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMeasureMappingInput(ctx context.Context, v any) (types.CreateRiskMeasureMappingInput, error) { - res, err := ec.unmarshalInputCreateRiskMeasureMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateRiskMeasureMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateRiskMeasureMappingPayload) graphql.Marshaler { - return ec._CreateRiskMeasureMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateRiskMeasureMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateRiskMeasureMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateRiskMeasureMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateRiskObligationMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskObligationMappingInput(ctx context.Context, v any) (types.CreateRiskObligationMappingInput, error) { - res, err := ec.unmarshalInputCreateRiskObligationMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateRiskObligationMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateRiskObligationMappingPayload) graphql.Marshaler { - return ec._CreateRiskObligationMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateRiskObligationMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateRiskObligationMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateRiskObligationMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNCreateRiskPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateRiskPayload) graphql.Marshaler { - return ec._CreateRiskPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateRiskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateRiskPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateRiskPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateRiskPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateSnapshotInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateSnapshotInput(ctx context.Context, v any) (types.CreateSnapshotInput, error) { - res, err := ec.unmarshalInputCreateSnapshotInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateSnapshotPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateSnapshotPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateSnapshotPayload) graphql.Marshaler { - return ec._CreateSnapshotPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateSnapshotPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateSnapshotPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateSnapshotPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateSnapshotPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateStateOfApplicabilityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateStateOfApplicabilityInput(ctx context.Context, v any) (types.CreateStateOfApplicabilityInput, error) { - res, err := ec.unmarshalInputCreateStateOfApplicabilityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateStateOfApplicabilityPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateStateOfApplicabilityPayload) graphql.Marshaler { - return ec._CreateStateOfApplicabilityPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateStateOfApplicabilityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateStateOfApplicabilityPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateStateOfApplicabilityPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateTaskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTaskInput(ctx context.Context, v any) (types.CreateTaskInput, error) { - res, err := ec.unmarshalInputCreateTaskInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateTaskPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTaskPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateTaskPayload) graphql.Marshaler { - return ec._CreateTaskPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateTaskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTaskPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateTaskPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateTaskPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateTransferImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTransferImpactAssessmentInput(ctx context.Context, v any) (types.CreateTransferImpactAssessmentInput, error) { - res, err := ec.unmarshalInputCreateTransferImpactAssessmentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateTransferImpactAssessmentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTransferImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateTransferImpactAssessmentPayload) graphql.Marshaler { - return ec._CreateTransferImpactAssessmentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateTransferImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTransferImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateTransferImpactAssessmentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateTransferImpactAssessmentPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateTrustCenterFileInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterFileInput(ctx context.Context, v any) (types.CreateTrustCenterFileInput, error) { - res, err := ec.unmarshalInputCreateTrustCenterFileInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateTrustCenterFilePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, v types.CreateTrustCenterFilePayload) graphql.Marshaler { - return ec._CreateTrustCenterFilePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateTrustCenterFilePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateTrustCenterFilePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateTrustCenterFilePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateTrustCenterReferenceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterReferenceInput(ctx context.Context, v any) (types.CreateTrustCenterReferenceInput, error) { - res, err := ec.unmarshalInputCreateTrustCenterReferenceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateTrustCenterReferencePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterReferencePayload(ctx context.Context, sel ast.SelectionSet, v types.CreateTrustCenterReferencePayload) graphql.Marshaler { - return ec._CreateTrustCenterReferencePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateTrustCenterReferencePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateTrustCenterReferencePayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateTrustCenterReferencePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateTrustCenterReferencePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateVendorContactInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorContactInput(ctx context.Context, v any) (types.CreateVendorContactInput, error) { - res, err := ec.unmarshalInputCreateVendorContactInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateVendorContactPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateVendorContactPayload) graphql.Marshaler { - return ec._CreateVendorContactPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateVendorContactPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateVendorContactPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateVendorContactPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateVendorInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorInput(ctx context.Context, v any) (types.CreateVendorInput, error) { - res, err := ec.unmarshalInputCreateVendorInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateVendorPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateVendorPayload) graphql.Marshaler { - return ec._CreateVendorPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateVendorPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateVendorPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateVendorPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateVendorRiskAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorRiskAssessmentInput(ctx context.Context, v any) (types.CreateVendorRiskAssessmentInput, error) { - res, err := ec.unmarshalInputCreateVendorRiskAssessmentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateVendorRiskAssessmentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorRiskAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateVendorRiskAssessmentPayload) graphql.Marshaler { - return ec._CreateVendorRiskAssessmentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateVendorRiskAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorRiskAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateVendorRiskAssessmentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateVendorRiskAssessmentPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateVendorServiceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorServiceInput(ctx context.Context, v any) (types.CreateVendorServiceInput, error) { - res, err := ec.unmarshalInputCreateVendorServiceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateVendorServicePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v types.CreateVendorServicePayload) graphql.Marshaler { - return ec._CreateVendorServicePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateVendorServicePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateVendorServicePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateVendorServicePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCreateWebhookSubscriptionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateWebhookSubscriptionInput(ctx context.Context, v any) (types.CreateWebhookSubscriptionInput, error) { - res, err := ec.unmarshalInputCreateWebhookSubscriptionInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCreateWebhookSubscriptionPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateWebhookSubscriptionPayload(ctx context.Context, sel ast.SelectionSet, v types.CreateWebhookSubscriptionPayload) graphql.Marshaler { - return ec._CreateWebhookSubscriptionPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNCreateWebhookSubscriptionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCreateWebhookSubscriptionPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateWebhookSubscriptionPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CreateWebhookSubscriptionPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (page.CursorKey, error) { - res, err := cursor.UnmarshalCursorKeyScalar(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, sel ast.SelectionSet, v page.CursorKey) graphql.Marshaler { - _ = sel - res := cursor.MarshalCursorKeyScalar(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNCustomDomain2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCustomDomain(ctx context.Context, sel ast.SelectionSet, v *types.CustomDomain) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._CustomDomain(ctx, sel, v) -} - -func (ec *executionContext) marshalNDNSRecordInstruction2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDNSRecordInstructionᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DNSRecordInstruction) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNDNSRecordInstruction2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDNSRecordInstruction(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNDNSRecordInstruction2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDNSRecordInstruction(ctx context.Context, sel ast.SelectionSet, v *types.DNSRecordInstruction) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DNSRecordInstruction(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDataClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx context.Context, v any) (coredata.DataClassification, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDataClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDataClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx context.Context, sel ast.SelectionSet, v coredata.DataClassification) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDataClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDataClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification = map[string]coredata.DataClassification{ - "PUBLIC": coredata.DataClassificationPublic, - "INTERNAL": coredata.DataClassificationInternal, - "CONFIDENTIAL": coredata.DataClassificationConfidential, - "SECRET": coredata.DataClassificationSecret, - } - marshalNDataClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification = map[coredata.DataClassification]string{ - coredata.DataClassificationPublic: "PUBLIC", - coredata.DataClassificationInternal: "INTERNAL", - coredata.DataClassificationConfidential: "CONFIDENTIAL", - coredata.DataClassificationSecret: "SECRET", - } -) - -func (ec *executionContext) marshalNDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessment(ctx context.Context, sel ast.SelectionSet, v *types.DataProtectionImpactAssessment) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DataProtectionImpactAssessment(ctx, sel, v) -} - -func (ec *executionContext) marshalNDataProtectionImpactAssessmentConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentConnection(ctx context.Context, sel ast.SelectionSet, v types.DataProtectionImpactAssessmentConnection) graphql.Marshaler { - return ec._DataProtectionImpactAssessmentConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDataProtectionImpactAssessmentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentConnection(ctx context.Context, sel ast.SelectionSet, v *types.DataProtectionImpactAssessmentConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DataProtectionImpactAssessmentConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNDataProtectionImpactAssessmentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DataProtectionImpactAssessmentEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNDataProtectionImpactAssessmentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNDataProtectionImpactAssessmentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentEdge(ctx context.Context, sel ast.SelectionSet, v *types.DataProtectionImpactAssessmentEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DataProtectionImpactAssessmentEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDataProtectionImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentOrderField(ctx context.Context, v any) (coredata.DataProtectionImpactAssessmentOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDataProtectionImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDataProtectionImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.DataProtectionImpactAssessmentOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDataProtectionImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDataProtectionImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentOrderField = map[string]coredata.DataProtectionImpactAssessmentOrderField{ - "CREATED_AT": coredata.DataProtectionImpactAssessmentOrderFieldCreatedAt, - } - marshalNDataProtectionImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentOrderField = map[coredata.DataProtectionImpactAssessmentOrderField]string{ - coredata.DataProtectionImpactAssessmentOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) unmarshalNDataSensitivity2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataSensitivity(ctx context.Context, v any) (coredata.DataSensitivity, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDataSensitivity2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataSensitivity[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDataSensitivity2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataSensitivity(ctx context.Context, sel ast.SelectionSet, v coredata.DataSensitivity) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDataSensitivity2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataSensitivity[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDataSensitivity2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataSensitivity = map[string]coredata.DataSensitivity{ - "NONE": coredata.DataSensitivityNone, - "LOW": coredata.DataSensitivityLow, - "MEDIUM": coredata.DataSensitivityMedium, - "HIGH": coredata.DataSensitivityHigh, - "CRITICAL": coredata.DataSensitivityCritical, - } - marshalNDataSensitivity2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataSensitivity = map[coredata.DataSensitivity]string{ - coredata.DataSensitivityNone: "NONE", - coredata.DataSensitivityLow: "LOW", - coredata.DataSensitivityMedium: "MEDIUM", - coredata.DataSensitivityHigh: "HIGH", - coredata.DataSensitivityCritical: "CRITICAL", - } -) - -func (ec *executionContext) unmarshalNDatetime2timeᚐTime(ctx context.Context, v any) (time.Time, error) { - res, err := graphql.UnmarshalTime(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDatetime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { - _ = sel - res := graphql.MarshalTime(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNDatum2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatum(ctx context.Context, sel ast.SelectionSet, v *types.Datum) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Datum(ctx, sel, v) -} - -func (ec *executionContext) marshalNDatumConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumConnection(ctx context.Context, sel ast.SelectionSet, v types.DatumConnection) graphql.Marshaler { - return ec._DatumConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDatumConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumConnection(ctx context.Context, sel ast.SelectionSet, v *types.DatumConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DatumConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNDatumEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DatumEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNDatumEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNDatumEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumEdge(ctx context.Context, sel ast.SelectionSet, v *types.DatumEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DatumEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDatumOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDatumOrderField(ctx context.Context, v any) (coredata.DatumOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDatumOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDatumOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDatumOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDatumOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.DatumOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDatumOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDatumOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDatumOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDatumOrderField = map[string]coredata.DatumOrderField{ - "CREATED_AT": coredata.DatumOrderFieldCreatedAt, - "NAME": coredata.DatumOrderFieldName, - "DATA_CLASSIFICATION": coredata.DatumOrderFieldDataClassification, - } - marshalNDatumOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDatumOrderField = map[coredata.DatumOrderField]string{ - coredata.DatumOrderFieldCreatedAt: "CREATED_AT", - coredata.DatumOrderFieldName: "NAME", - coredata.DatumOrderFieldDataClassification: "DATA_CLASSIFICATION", - } -) - -func (ec *executionContext) unmarshalNDeleteApplicabilityStatementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteApplicabilityStatementInput(ctx context.Context, v any) (types.DeleteApplicabilityStatementInput, error) { - res, err := ec.unmarshalInputDeleteApplicabilityStatementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteApplicabilityStatementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteApplicabilityStatementPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteApplicabilityStatementPayload) graphql.Marshaler { - return ec._DeleteApplicabilityStatementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteApplicabilityStatementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteApplicabilityStatementPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteApplicabilityStatementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteApplicabilityStatementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteAssetInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAssetInput(ctx context.Context, v any) (types.DeleteAssetInput, error) { - res, err := ec.unmarshalInputDeleteAssetInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteAssetPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAssetPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteAssetPayload) graphql.Marshaler { - return ec._DeleteAssetPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteAssetPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAssetPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteAssetPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteAssetPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteAuditInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditInput(ctx context.Context, v any) (types.DeleteAuditInput, error) { - res, err := ec.unmarshalInputDeleteAuditInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteAuditPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteAuditPayload) graphql.Marshaler { - return ec._DeleteAuditPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteAuditPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteAuditPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteAuditPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteAuditReportInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditReportInput(ctx context.Context, v any) (types.DeleteAuditReportInput, error) { - res, err := ec.unmarshalInputDeleteAuditReportInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteAuditReportPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditReportPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteAuditReportPayload) graphql.Marshaler { - return ec._DeleteAuditReportPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteAuditReportPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteAuditReportPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteAuditReportPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteAuditReportPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteComplianceExternalURLInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceExternalURLInput(ctx context.Context, v any) (types.DeleteComplianceExternalURLInput, error) { - res, err := ec.unmarshalInputDeleteComplianceExternalURLInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteComplianceExternalURLPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceExternalURLPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteComplianceExternalURLPayload) graphql.Marshaler { - return ec._DeleteComplianceExternalURLPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteComplianceExternalURLPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceExternalURLPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteComplianceExternalURLPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteComplianceExternalURLPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteComplianceFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceFrameworkInput(ctx context.Context, v any) (types.DeleteComplianceFrameworkInput, error) { - res, err := ec.unmarshalInputDeleteComplianceFrameworkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteComplianceFrameworkPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteComplianceFrameworkPayload) graphql.Marshaler { - return ec._DeleteComplianceFrameworkPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteComplianceFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteComplianceFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteComplianceFrameworkPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteComplianceFrameworkPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteContinualImprovementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteContinualImprovementInput(ctx context.Context, v any) (types.DeleteContinualImprovementInput, error) { - res, err := ec.unmarshalInputDeleteContinualImprovementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteContinualImprovementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteContinualImprovementPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteContinualImprovementPayload) graphql.Marshaler { - return ec._DeleteContinualImprovementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteContinualImprovementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteContinualImprovementPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteContinualImprovementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteContinualImprovementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteControlAuditMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlAuditMappingInput(ctx context.Context, v any) (types.DeleteControlAuditMappingInput, error) { - res, err := ec.unmarshalInputDeleteControlAuditMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteControlAuditMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlAuditMappingPayload) graphql.Marshaler { - return ec._DeleteControlAuditMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteControlAuditMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlAuditMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlAuditMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteControlAuditMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteControlDocumentMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlDocumentMappingInput(ctx context.Context, v any) (types.DeleteControlDocumentMappingInput, error) { - res, err := ec.unmarshalInputDeleteControlDocumentMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteControlDocumentMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlDocumentMappingPayload) graphql.Marshaler { - return ec._DeleteControlDocumentMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteControlDocumentMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlDocumentMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteControlDocumentMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteControlInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlInput(ctx context.Context, v any) (types.DeleteControlInput, error) { - res, err := ec.unmarshalInputDeleteControlInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNDeleteControlMeasureMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMeasureMappingInput(ctx context.Context, v any) (types.DeleteControlMeasureMappingInput, error) { - res, err := ec.unmarshalInputDeleteControlMeasureMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteControlMeasureMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlMeasureMappingPayload) graphql.Marshaler { - return ec._DeleteControlMeasureMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteControlMeasureMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlMeasureMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteControlMeasureMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteControlObligationMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlObligationMappingInput(ctx context.Context, v any) (types.DeleteControlObligationMappingInput, error) { - res, err := ec.unmarshalInputDeleteControlObligationMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteControlObligationMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlObligationMappingPayload) graphql.Marshaler { - return ec._DeleteControlObligationMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteControlObligationMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlObligationMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteControlObligationMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNDeleteControlPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlPayload) graphql.Marshaler { - return ec._DeleteControlPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteControlPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteControlPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteControlSnapshotMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlSnapshotMappingInput(ctx context.Context, v any) (types.DeleteControlSnapshotMappingInput, error) { - res, err := ec.unmarshalInputDeleteControlSnapshotMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteControlSnapshotMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteControlSnapshotMappingPayload) graphql.Marshaler { - return ec._DeleteControlSnapshotMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteControlSnapshotMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteControlSnapshotMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteControlSnapshotMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteControlSnapshotMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteCustomDomainInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteCustomDomainInput(ctx context.Context, v any) (types.DeleteCustomDomainInput, error) { - res, err := ec.unmarshalInputDeleteCustomDomainInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteCustomDomainPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteCustomDomainPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteCustomDomainPayload) graphql.Marshaler { - return ec._DeleteCustomDomainPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteCustomDomainPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteCustomDomainPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteCustomDomainPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteCustomDomainPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteDataProtectionImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDataProtectionImpactAssessmentInput(ctx context.Context, v any) (types.DeleteDataProtectionImpactAssessmentInput, error) { - res, err := ec.unmarshalInputDeleteDataProtectionImpactAssessmentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteDataProtectionImpactAssessmentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDataProtectionImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteDataProtectionImpactAssessmentPayload) graphql.Marshaler { - return ec._DeleteDataProtectionImpactAssessmentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteDataProtectionImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDataProtectionImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteDataProtectionImpactAssessmentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteDataProtectionImpactAssessmentPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteDatumInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDatumInput(ctx context.Context, v any) (types.DeleteDatumInput, error) { - res, err := ec.unmarshalInputDeleteDatumInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteDatumPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDatumPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteDatumPayload) graphql.Marshaler { - return ec._DeleteDatumPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteDatumPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDatumPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteDatumPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteDatumPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteDocumentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDocumentInput(ctx context.Context, v any) (types.DeleteDocumentInput, error) { - res, err := ec.unmarshalInputDeleteDocumentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteDocumentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDocumentPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteDocumentPayload) graphql.Marshaler { - return ec._DeleteDocumentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteDocumentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDocumentPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteDocumentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteDocumentPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteDraftDocumentVersionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDraftDocumentVersionInput(ctx context.Context, v any) (types.DeleteDraftDocumentVersionInput, error) { - res, err := ec.unmarshalInputDeleteDraftDocumentVersionInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteDraftDocumentVersionPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteDraftDocumentVersionPayload) graphql.Marshaler { - return ec._DeleteDraftDocumentVersionPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteDraftDocumentVersionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteDraftDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteDraftDocumentVersionPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteDraftDocumentVersionPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteEvidenceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteEvidenceInput(ctx context.Context, v any) (types.DeleteEvidenceInput, error) { - res, err := ec.unmarshalInputDeleteEvidenceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteEvidencePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteEvidencePayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteEvidencePayload) graphql.Marshaler { - return ec._DeleteEvidencePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteEvidencePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteEvidencePayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteEvidencePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteEvidencePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteFrameworkInput(ctx context.Context, v any) (types.DeleteFrameworkInput, error) { - res, err := ec.unmarshalInputDeleteFrameworkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteFrameworkPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteFrameworkPayload) graphql.Marshaler { - return ec._DeleteFrameworkPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteFrameworkPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteFrameworkPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteMailingListSubscriberInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMailingListSubscriberInput(ctx context.Context, v any) (types.DeleteMailingListSubscriberInput, error) { - res, err := ec.unmarshalInputDeleteMailingListSubscriberInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteMailingListSubscriberPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMailingListSubscriberPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteMailingListSubscriberPayload) graphql.Marshaler { - return ec._DeleteMailingListSubscriberPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteMailingListSubscriberPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMailingListSubscriberPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteMailingListSubscriberPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteMailingListSubscriberPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteMailingListUpdateInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMailingListUpdateInput(ctx context.Context, v any) (types.DeleteMailingListUpdateInput, error) { - res, err := ec.unmarshalInputDeleteMailingListUpdateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteMailingListUpdatePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteMailingListUpdatePayload) graphql.Marshaler { - return ec._DeleteMailingListUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteMailingListUpdatePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteMailingListUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteMailingListUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteMeasureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeasureInput(ctx context.Context, v any) (types.DeleteMeasureInput, error) { - res, err := ec.unmarshalInputDeleteMeasureInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteMeasurePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeasurePayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteMeasurePayload) graphql.Marshaler { - return ec._DeleteMeasurePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteMeasurePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeasurePayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteMeasurePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteMeasurePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteMeetingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeetingInput(ctx context.Context, v any) (types.DeleteMeetingInput, error) { - res, err := ec.unmarshalInputDeleteMeetingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteMeetingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeetingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteMeetingPayload) graphql.Marshaler { - return ec._DeleteMeetingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteMeetingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteMeetingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteMeetingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteMeetingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteNonconformityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteNonconformityInput(ctx context.Context, v any) (types.DeleteNonconformityInput, error) { - res, err := ec.unmarshalInputDeleteNonconformityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteNonconformityPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteNonconformityPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteNonconformityPayload) graphql.Marshaler { - return ec._DeleteNonconformityPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteNonconformityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteNonconformityPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteNonconformityPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteNonconformityPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteObligationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteObligationInput(ctx context.Context, v any) (types.DeleteObligationInput, error) { - res, err := ec.unmarshalInputDeleteObligationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteObligationPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteObligationPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteObligationPayload) graphql.Marshaler { - return ec._DeleteObligationPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteObligationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteObligationPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteObligationPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteObligationPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteProcessingActivityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteProcessingActivityInput(ctx context.Context, v any) (types.DeleteProcessingActivityInput, error) { - res, err := ec.unmarshalInputDeleteProcessingActivityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteProcessingActivityPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteProcessingActivityPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteProcessingActivityPayload) graphql.Marshaler { - return ec._DeleteProcessingActivityPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteProcessingActivityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteProcessingActivityPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteProcessingActivityPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteProcessingActivityPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteRightsRequestInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRightsRequestInput(ctx context.Context, v any) (types.DeleteRightsRequestInput, error) { - res, err := ec.unmarshalInputDeleteRightsRequestInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteRightsRequestPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRightsRequestPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteRightsRequestPayload) graphql.Marshaler { - return ec._DeleteRightsRequestPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteRightsRequestPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRightsRequestPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteRightsRequestPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteRightsRequestPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteRiskDocumentMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskDocumentMappingInput(ctx context.Context, v any) (types.DeleteRiskDocumentMappingInput, error) { - res, err := ec.unmarshalInputDeleteRiskDocumentMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteRiskDocumentMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteRiskDocumentMappingPayload) graphql.Marshaler { - return ec._DeleteRiskDocumentMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteRiskDocumentMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskDocumentMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteRiskDocumentMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteRiskDocumentMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteRiskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskInput(ctx context.Context, v any) (types.DeleteRiskInput, error) { - res, err := ec.unmarshalInputDeleteRiskInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNDeleteRiskMeasureMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMeasureMappingInput(ctx context.Context, v any) (types.DeleteRiskMeasureMappingInput, error) { - res, err := ec.unmarshalInputDeleteRiskMeasureMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteRiskMeasureMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteRiskMeasureMappingPayload) graphql.Marshaler { - return ec._DeleteRiskMeasureMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteRiskMeasureMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskMeasureMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteRiskMeasureMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteRiskMeasureMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteRiskObligationMappingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskObligationMappingInput(ctx context.Context, v any) (types.DeleteRiskObligationMappingInput, error) { - res, err := ec.unmarshalInputDeleteRiskObligationMappingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteRiskObligationMappingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteRiskObligationMappingPayload) graphql.Marshaler { - return ec._DeleteRiskObligationMappingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteRiskObligationMappingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskObligationMappingPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteRiskObligationMappingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteRiskObligationMappingPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNDeleteRiskPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteRiskPayload) graphql.Marshaler { - return ec._DeleteRiskPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteRiskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteRiskPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteRiskPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteRiskPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteSnapshotInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteSnapshotInput(ctx context.Context, v any) (types.DeleteSnapshotInput, error) { - res, err := ec.unmarshalInputDeleteSnapshotInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteSnapshotPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteSnapshotPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteSnapshotPayload) graphql.Marshaler { - return ec._DeleteSnapshotPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteSnapshotPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteSnapshotPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteSnapshotPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteSnapshotPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteStateOfApplicabilityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteStateOfApplicabilityInput(ctx context.Context, v any) (types.DeleteStateOfApplicabilityInput, error) { - res, err := ec.unmarshalInputDeleteStateOfApplicabilityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteStateOfApplicabilityPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteStateOfApplicabilityPayload) graphql.Marshaler { - return ec._DeleteStateOfApplicabilityPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteStateOfApplicabilityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteStateOfApplicabilityPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteStateOfApplicabilityPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteTaskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTaskInput(ctx context.Context, v any) (types.DeleteTaskInput, error) { - res, err := ec.unmarshalInputDeleteTaskInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteTaskPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTaskPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteTaskPayload) graphql.Marshaler { - return ec._DeleteTaskPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteTaskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTaskPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteTaskPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteTaskPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteTransferImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTransferImpactAssessmentInput(ctx context.Context, v any) (types.DeleteTransferImpactAssessmentInput, error) { - res, err := ec.unmarshalInputDeleteTransferImpactAssessmentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteTransferImpactAssessmentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTransferImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteTransferImpactAssessmentPayload) graphql.Marshaler { - return ec._DeleteTransferImpactAssessmentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteTransferImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTransferImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteTransferImpactAssessmentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteTransferImpactAssessmentPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteTrustCenterAccessInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterAccessInput(ctx context.Context, v any) (types.DeleteTrustCenterAccessInput, error) { - res, err := ec.unmarshalInputDeleteTrustCenterAccessInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteTrustCenterAccessPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteTrustCenterAccessPayload) graphql.Marshaler { - return ec._DeleteTrustCenterAccessPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteTrustCenterAccessPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteTrustCenterAccessPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteTrustCenterAccessPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteTrustCenterFileInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterFileInput(ctx context.Context, v any) (types.DeleteTrustCenterFileInput, error) { - res, err := ec.unmarshalInputDeleteTrustCenterFileInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteTrustCenterFilePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteTrustCenterFilePayload) graphql.Marshaler { - return ec._DeleteTrustCenterFilePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteTrustCenterFilePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteTrustCenterFilePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteTrustCenterFilePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteTrustCenterNDAInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterNDAInput(ctx context.Context, v any) (types.DeleteTrustCenterNDAInput, error) { - res, err := ec.unmarshalInputDeleteTrustCenterNDAInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteTrustCenterNDAPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterNDAPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteTrustCenterNDAPayload) graphql.Marshaler { - return ec._DeleteTrustCenterNDAPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteTrustCenterNDAPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterNDAPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteTrustCenterNDAPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteTrustCenterNDAPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteTrustCenterReferenceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterReferenceInput(ctx context.Context, v any) (types.DeleteTrustCenterReferenceInput, error) { - res, err := ec.unmarshalInputDeleteTrustCenterReferenceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteTrustCenterReferencePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterReferencePayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteTrustCenterReferencePayload) graphql.Marshaler { - return ec._DeleteTrustCenterReferencePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteTrustCenterReferencePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteTrustCenterReferencePayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteTrustCenterReferencePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteTrustCenterReferencePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteVendorBusinessAssociateAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorBusinessAssociateAgreementInput(ctx context.Context, v any) (types.DeleteVendorBusinessAssociateAgreementInput, error) { - res, err := ec.unmarshalInputDeleteVendorBusinessAssociateAgreementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteVendorBusinessAssociateAgreementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorBusinessAssociateAgreementPayload) graphql.Marshaler { - return ec._DeleteVendorBusinessAssociateAgreementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteVendorBusinessAssociateAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorBusinessAssociateAgreementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteVendorBusinessAssociateAgreementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteVendorComplianceReportInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorComplianceReportInput(ctx context.Context, v any) (types.DeleteVendorComplianceReportInput, error) { - res, err := ec.unmarshalInputDeleteVendorComplianceReportInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteVendorComplianceReportPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorComplianceReportPayload) graphql.Marshaler { - return ec._DeleteVendorComplianceReportPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteVendorComplianceReportPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorComplianceReportPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteVendorComplianceReportPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteVendorContactInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorContactInput(ctx context.Context, v any) (types.DeleteVendorContactInput, error) { - res, err := ec.unmarshalInputDeleteVendorContactInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteVendorContactPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorContactPayload) graphql.Marshaler { - return ec._DeleteVendorContactPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteVendorContactPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorContactPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteVendorContactPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteVendorDataPrivacyAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorDataPrivacyAgreementInput(ctx context.Context, v any) (types.DeleteVendorDataPrivacyAgreementInput, error) { - res, err := ec.unmarshalInputDeleteVendorDataPrivacyAgreementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteVendorDataPrivacyAgreementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorDataPrivacyAgreementPayload) graphql.Marshaler { - return ec._DeleteVendorDataPrivacyAgreementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteVendorDataPrivacyAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorDataPrivacyAgreementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteVendorDataPrivacyAgreementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteVendorInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorInput(ctx context.Context, v any) (types.DeleteVendorInput, error) { - res, err := ec.unmarshalInputDeleteVendorInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteVendorPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorPayload) graphql.Marshaler { - return ec._DeleteVendorPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteVendorPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteVendorPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteVendorServiceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorServiceInput(ctx context.Context, v any) (types.DeleteVendorServiceInput, error) { - res, err := ec.unmarshalInputDeleteVendorServiceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteVendorServicePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteVendorServicePayload) graphql.Marshaler { - return ec._DeleteVendorServicePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteVendorServicePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteVendorServicePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteVendorServicePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDeleteWebhookSubscriptionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteWebhookSubscriptionInput(ctx context.Context, v any) (types.DeleteWebhookSubscriptionInput, error) { - res, err := ec.unmarshalInputDeleteWebhookSubscriptionInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDeleteWebhookSubscriptionPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteWebhookSubscriptionPayload(ctx context.Context, sel ast.SelectionSet, v types.DeleteWebhookSubscriptionPayload) graphql.Marshaler { - return ec._DeleteWebhookSubscriptionPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDeleteWebhookSubscriptionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDeleteWebhookSubscriptionPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteWebhookSubscriptionPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DeleteWebhookSubscriptionPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNDocument2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument(ctx context.Context, sel ast.SelectionSet, v types.Document) graphql.Marshaler { - return ec._Document(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument(ctx context.Context, sel ast.SelectionSet, v *types.Document) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Document(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDocumentClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification(ctx context.Context, v any) (coredata.DocumentClassification, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDocumentClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDocumentClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentClassification) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDocumentClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDocumentClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification = map[string]coredata.DocumentClassification{ - "PUBLIC": coredata.DocumentClassificationPublic, - "INTERNAL": coredata.DocumentClassificationInternal, - "CONFIDENTIAL": coredata.DocumentClassificationConfidential, - "SECRET": coredata.DocumentClassificationSecret, - } - marshalNDocumentClassification2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification = map[coredata.DocumentClassification]string{ - coredata.DocumentClassificationPublic: "PUBLIC", - coredata.DocumentClassificationInternal: "INTERNAL", - coredata.DocumentClassificationConfidential: "CONFIDENTIAL", - coredata.DocumentClassificationSecret: "SECRET", - } -) - -func (ec *executionContext) marshalNDocumentConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentConnection(ctx context.Context, sel ast.SelectionSet, v types.DocumentConnection) graphql.Marshaler { - return ec._DocumentConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocumentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentConnection(ctx context.Context, sel ast.SelectionSet, v *types.DocumentConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNDocumentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DocumentEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNDocumentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNDocumentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentEdge(ctx context.Context, sel ast.SelectionSet, v *types.DocumentEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDocumentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentOrderField(ctx context.Context, v any) (coredata.DocumentOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDocumentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDocumentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDocumentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDocumentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentOrderField = map[string]coredata.DocumentOrderField{ - "TITLE": coredata.DocumentOrderFieldTitle, - "CREATED_AT": coredata.DocumentOrderFieldCreatedAt, - "DOCUMENT_TYPE": coredata.DocumentOrderFieldDocumentType, - } - marshalNDocumentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentOrderField = map[coredata.DocumentOrderField]string{ - coredata.DocumentOrderFieldTitle: "TITLE", - coredata.DocumentOrderFieldCreatedAt: "CREATED_AT", - coredata.DocumentOrderFieldDocumentType: "DOCUMENT_TYPE", - } -) - -func (ec *executionContext) unmarshalNDocumentStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx context.Context, v any) (coredata.DocumentStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDocumentStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDocumentStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDocumentStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDocumentStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus = map[string]coredata.DocumentStatus{ - "DRAFT": coredata.DocumentStatusDraft, - "PUBLISHED": coredata.DocumentStatusPublished, - } - marshalNDocumentStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus = map[coredata.DocumentStatus]string{ - coredata.DocumentStatusDraft: "DRAFT", - coredata.DocumentStatusPublished: "PUBLISHED", - } -) - -func (ec *executionContext) unmarshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx context.Context, v any) (coredata.DocumentType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType = map[string]coredata.DocumentType{ - "OTHER": coredata.DocumentTypeOther, - "ISMS": coredata.DocumentTypeISMS, - "POLICY": coredata.DocumentTypePolicy, - "PROCEDURE": coredata.DocumentTypeProcedure, - } - marshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType = map[coredata.DocumentType]string{ - coredata.DocumentTypeOther: "OTHER", - coredata.DocumentTypeISMS: "ISMS", - coredata.DocumentTypePolicy: "POLICY", - coredata.DocumentTypeProcedure: "PROCEDURE", - } -) - -func (ec *executionContext) marshalNDocumentVersion2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion(ctx context.Context, sel ast.SelectionSet, v types.DocumentVersion) graphql.Marshaler { - return ec._DocumentVersion(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocumentVersion2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersion(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersion) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentVersion(ctx, sel, v) -} - -func (ec *executionContext) marshalNDocumentVersionConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionConnection(ctx context.Context, sel ast.SelectionSet, v types.DocumentVersionConnection) graphql.Marshaler { - return ec._DocumentVersionConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocumentVersionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionConnection(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersionConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentVersionConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNDocumentVersionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DocumentVersionEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNDocumentVersionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNDocumentVersionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionEdge(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersionEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentVersionEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDocumentVersionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField(ctx context.Context, v any) (coredata.DocumentVersionOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDocumentVersionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDocumentVersionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentVersionOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDocumentVersionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDocumentVersionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField = map[string]coredata.DocumentVersionOrderField{ - "CREATED_AT": coredata.DocumentVersionOrderFieldCreatedAt, - } - marshalNDocumentVersionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionOrderField = map[coredata.DocumentVersionOrderField]string{ - coredata.DocumentVersionOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) marshalNDocumentVersionSignature2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignature(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersionSignature) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentVersionSignature(ctx, sel, v) -} - -func (ec *executionContext) marshalNDocumentVersionSignatureConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureConnection(ctx context.Context, sel ast.SelectionSet, v types.DocumentVersionSignatureConnection) graphql.Marshaler { - return ec._DocumentVersionSignatureConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocumentVersionSignatureConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureConnection(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersionSignatureConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentVersionSignatureConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNDocumentVersionSignatureEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DocumentVersionSignatureEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNDocumentVersionSignatureEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNDocumentVersionSignatureEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureEdge(ctx context.Context, sel ast.SelectionSet, v *types.DocumentVersionSignatureEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentVersionSignatureEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDocumentVersionSignatureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField(ctx context.Context, v any) (coredata.DocumentVersionSignatureOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDocumentVersionSignatureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDocumentVersionSignatureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentVersionSignatureOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDocumentVersionSignatureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDocumentVersionSignatureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField = map[string]coredata.DocumentVersionSignatureOrderField{ - "CREATED_AT": coredata.DocumentVersionSignatureOrderFieldCreatedAt, - "SIGNED_AT": coredata.DocumentVersionSignatureOrderFieldSignedAt, - } - marshalNDocumentVersionSignatureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureOrderField = map[coredata.DocumentVersionSignatureOrderField]string{ - coredata.DocumentVersionSignatureOrderFieldCreatedAt: "CREATED_AT", - coredata.DocumentVersionSignatureOrderFieldSignedAt: "SIGNED_AT", - } -) - -func (ec *executionContext) unmarshalNDocumentVersionSignatureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState(ctx context.Context, v any) (coredata.DocumentVersionSignatureState, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDocumentVersionSignatureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDocumentVersionSignatureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentVersionSignatureState) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDocumentVersionSignatureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDocumentVersionSignatureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState = map[string]coredata.DocumentVersionSignatureState{ - "REQUESTED": coredata.DocumentVersionSignatureStateRequested, - "SIGNED": coredata.DocumentVersionSignatureStateSigned, - } - marshalNDocumentVersionSignatureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState = map[coredata.DocumentVersionSignatureState]string{ - coredata.DocumentVersionSignatureStateRequested: "REQUESTED", - coredata.DocumentVersionSignatureStateSigned: "SIGNED", - } -) - -func (ec *executionContext) unmarshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType(ctx context.Context, v any) (coredata.ElectronicSignatureDocumentType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType(ctx context.Context, sel ast.SelectionSet, v coredata.ElectronicSignatureDocumentType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType = map[string]coredata.ElectronicSignatureDocumentType{ - "NDA": coredata.ElectronicSignatureDocumentTypeNDA, - "DPA": coredata.ElectronicSignatureDocumentTypeDPA, - "MSA": coredata.ElectronicSignatureDocumentTypeMSA, - "SOW": coredata.ElectronicSignatureDocumentTypeSOW, - "SLA": coredata.ElectronicSignatureDocumentTypeSLA, - "TOS": coredata.ElectronicSignatureDocumentTypeTOS, - "PRIVACY_POLICY": coredata.ElectronicSignatureDocumentTypePrivacyPolicy, - "OTHER": coredata.ElectronicSignatureDocumentTypeOther, - } - marshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType = map[coredata.ElectronicSignatureDocumentType]string{ - coredata.ElectronicSignatureDocumentTypeNDA: "NDA", - coredata.ElectronicSignatureDocumentTypeDPA: "DPA", - coredata.ElectronicSignatureDocumentTypeMSA: "MSA", - coredata.ElectronicSignatureDocumentTypeSOW: "SOW", - coredata.ElectronicSignatureDocumentTypeSLA: "SLA", - coredata.ElectronicSignatureDocumentTypeTOS: "TOS", - coredata.ElectronicSignatureDocumentTypePrivacyPolicy: "PRIVACY_POLICY", - coredata.ElectronicSignatureDocumentTypeOther: "OTHER", - } -) - -func (ec *executionContext) marshalNElectronicSignatureEvent2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐElectronicSignatureEventᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ElectronicSignatureEvent) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNElectronicSignatureEvent2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐElectronicSignatureEvent(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNElectronicSignatureEvent2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐElectronicSignatureEvent(ctx context.Context, sel ast.SelectionSet, v *types.ElectronicSignatureEvent) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ElectronicSignatureEvent(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNElectronicSignatureEventSource2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventSource(ctx context.Context, v any) (coredata.ElectronicSignatureEventSource, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNElectronicSignatureEventSource2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventSource[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNElectronicSignatureEventSource2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventSource(ctx context.Context, sel ast.SelectionSet, v coredata.ElectronicSignatureEventSource) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNElectronicSignatureEventSource2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventSource[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNElectronicSignatureEventSource2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventSource = map[string]coredata.ElectronicSignatureEventSource{ - "CLIENT": coredata.ElectronicSignatureEventSourceClient, - "SERVER": coredata.ElectronicSignatureEventSourceServer, - } - marshalNElectronicSignatureEventSource2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventSource = map[coredata.ElectronicSignatureEventSource]string{ - coredata.ElectronicSignatureEventSourceClient: "CLIENT", - coredata.ElectronicSignatureEventSourceServer: "SERVER", - } -) - -func (ec *executionContext) unmarshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType(ctx context.Context, v any) (coredata.ElectronicSignatureEventType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType(ctx context.Context, sel ast.SelectionSet, v coredata.ElectronicSignatureEventType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType = map[string]coredata.ElectronicSignatureEventType{ - "DOCUMENT_VIEWED": coredata.ElectronicSignatureEventTypeDocumentViewed, - "CONSENT_GIVEN": coredata.ElectronicSignatureEventTypeConsentGiven, - "FULL_NAME_TYPED": coredata.ElectronicSignatureEventTypeFullNameTyped, - "SIGNATURE_ACCEPTED": coredata.ElectronicSignatureEventTypeSignatureAccepted, - "SIGNATURE_COMPLETED": coredata.ElectronicSignatureEventTypeSignatureCompleted, - "SEAL_COMPUTED": coredata.ElectronicSignatureEventTypeSealComputed, - "TIMESTAMP_REQUESTED": coredata.ElectronicSignatureEventTypeTimestampRequested, - "CERTIFICATE_GENERATED": coredata.ElectronicSignatureEventTypeCertificateGenerated, - "PROCESSING_ERROR": coredata.ElectronicSignatureEventTypeProcessingError, - } - marshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType = map[coredata.ElectronicSignatureEventType]string{ - coredata.ElectronicSignatureEventTypeDocumentViewed: "DOCUMENT_VIEWED", - coredata.ElectronicSignatureEventTypeConsentGiven: "CONSENT_GIVEN", - coredata.ElectronicSignatureEventTypeFullNameTyped: "FULL_NAME_TYPED", - coredata.ElectronicSignatureEventTypeSignatureAccepted: "SIGNATURE_ACCEPTED", - coredata.ElectronicSignatureEventTypeSignatureCompleted: "SIGNATURE_COMPLETED", - coredata.ElectronicSignatureEventTypeSealComputed: "SEAL_COMPUTED", - coredata.ElectronicSignatureEventTypeTimestampRequested: "TIMESTAMP_REQUESTED", - coredata.ElectronicSignatureEventTypeCertificateGenerated: "CERTIFICATE_GENERATED", - coredata.ElectronicSignatureEventTypeProcessingError: "PROCESSING_ERROR", - } -) - -func (ec *executionContext) unmarshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus(ctx context.Context, v any) (coredata.ElectronicSignatureStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus(ctx context.Context, sel ast.SelectionSet, v coredata.ElectronicSignatureStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus = map[string]coredata.ElectronicSignatureStatus{ - "PENDING": coredata.ElectronicSignatureStatusPending, - "ACCEPTED": coredata.ElectronicSignatureStatusAccepted, - "PROCESSING": coredata.ElectronicSignatureStatusProcessing, - "COMPLETED": coredata.ElectronicSignatureStatusCompleted, - "FAILED": coredata.ElectronicSignatureStatusFailed, - } - marshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus = map[coredata.ElectronicSignatureStatus]string{ - coredata.ElectronicSignatureStatusPending: "PENDING", - coredata.ElectronicSignatureStatusAccepted: "ACCEPTED", - coredata.ElectronicSignatureStatusProcessing: "PROCESSING", - coredata.ElectronicSignatureStatusCompleted: "COMPLETED", - coredata.ElectronicSignatureStatusFailed: "FAILED", - } -) - -func (ec *executionContext) unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx context.Context, v any) (mail.Addr, error) { - res, err := mail1.UnmarshalAddrScalar(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx context.Context, sel ast.SelectionSet, v mail.Addr) graphql.Marshaler { - _ = sel - res := mail1.MarshalAddrScalar(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx context.Context, v any) ([]mail.Addr, error) { - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]mail.Addr, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx context.Context, sel ast.SelectionSet, v []mail.Addr) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNEvidence2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidence(ctx context.Context, sel ast.SelectionSet, v *types.Evidence) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Evidence(ctx, sel, v) -} - -func (ec *executionContext) marshalNEvidenceConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceConnection(ctx context.Context, sel ast.SelectionSet, v types.EvidenceConnection) graphql.Marshaler { - return ec._EvidenceConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEvidenceConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceConnection(ctx context.Context, sel ast.SelectionSet, v *types.EvidenceConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EvidenceConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNEvidenceEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.EvidenceEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNEvidenceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNEvidenceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceEdge(ctx context.Context, sel ast.SelectionSet, v *types.EvidenceEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EvidenceEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNEvidenceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceOrderField(ctx context.Context, v any) (coredata.EvidenceOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := coredata.EvidenceOrderField(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNEvidenceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.EvidenceOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNEvidenceState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceState(ctx context.Context, v any) (coredata.EvidenceState, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNEvidenceState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceState[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNEvidenceState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceState(ctx context.Context, sel ast.SelectionSet, v coredata.EvidenceState) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNEvidenceState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceState[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNEvidenceState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceState = map[string]coredata.EvidenceState{ - "FULFILLED": coredata.EvidenceStateFulfilled, - "REQUESTED": coredata.EvidenceStateRequested, - } - marshalNEvidenceState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceState = map[coredata.EvidenceState]string{ - coredata.EvidenceStateFulfilled: "FULFILLED", - coredata.EvidenceStateRequested: "REQUESTED", - } -) - -func (ec *executionContext) unmarshalNEvidenceType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceType(ctx context.Context, v any) (coredata.EvidenceType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNEvidenceType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNEvidenceType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceType(ctx context.Context, sel ast.SelectionSet, v coredata.EvidenceType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNEvidenceType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNEvidenceType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceType = map[string]coredata.EvidenceType{ - "FILE": coredata.EvidenceTypeFile, - "LINK": coredata.EvidenceTypeLink, - } - marshalNEvidenceType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐEvidenceType = map[coredata.EvidenceType]string{ - coredata.EvidenceTypeFile: "FILE", - coredata.EvidenceTypeLink: "LINK", - } -) - -func (ec *executionContext) unmarshalNExportDataProtectionImpactAssessmentsPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDataProtectionImpactAssessmentsPDFInput(ctx context.Context, v any) (types.ExportDataProtectionImpactAssessmentsPDFInput, error) { - res, err := ec.unmarshalInputExportDataProtectionImpactAssessmentsPDFInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExportDataProtectionImpactAssessmentsPDFPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDataProtectionImpactAssessmentsPDFPayload(ctx context.Context, sel ast.SelectionSet, v types.ExportDataProtectionImpactAssessmentsPDFPayload) graphql.Marshaler { - return ec._ExportDataProtectionImpactAssessmentsPDFPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExportDataProtectionImpactAssessmentsPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDataProtectionImpactAssessmentsPDFPayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportDataProtectionImpactAssessmentsPDFPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExportDataProtectionImpactAssessmentsPDFPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNExportDocumentVersionPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDocumentVersionPDFInput(ctx context.Context, v any) (types.ExportDocumentVersionPDFInput, error) { - res, err := ec.unmarshalInputExportDocumentVersionPDFInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExportDocumentVersionPDFPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDocumentVersionPDFPayload(ctx context.Context, sel ast.SelectionSet, v types.ExportDocumentVersionPDFPayload) graphql.Marshaler { - return ec._ExportDocumentVersionPDFPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExportDocumentVersionPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportDocumentVersionPDFPayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportDocumentVersionPDFPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExportDocumentVersionPDFPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNExportFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportFrameworkInput(ctx context.Context, v any) (types.ExportFrameworkInput, error) { - res, err := ec.unmarshalInputExportFrameworkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExportFrameworkPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.ExportFrameworkPayload) graphql.Marshaler { - return ec._ExportFrameworkPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExportFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportFrameworkPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExportFrameworkPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNExportProcessingActivitiesPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportProcessingActivitiesPDFInput(ctx context.Context, v any) (types.ExportProcessingActivitiesPDFInput, error) { - res, err := ec.unmarshalInputExportProcessingActivitiesPDFInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExportProcessingActivitiesPDFPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportProcessingActivitiesPDFPayload(ctx context.Context, sel ast.SelectionSet, v types.ExportProcessingActivitiesPDFPayload) graphql.Marshaler { - return ec._ExportProcessingActivitiesPDFPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExportProcessingActivitiesPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportProcessingActivitiesPDFPayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportProcessingActivitiesPDFPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExportProcessingActivitiesPDFPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNExportSignableDocumentVersionPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportSignableDocumentVersionPDFInput(ctx context.Context, v any) (types.ExportSignableDocumentVersionPDFInput, error) { - res, err := ec.unmarshalInputExportSignableDocumentVersionPDFInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExportSignableDocumentVersionPDFPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportSignableDocumentVersionPDFPayload(ctx context.Context, sel ast.SelectionSet, v types.ExportSignableDocumentVersionPDFPayload) graphql.Marshaler { - return ec._ExportSignableDocumentVersionPDFPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExportSignableDocumentVersionPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportSignableDocumentVersionPDFPayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportSignableDocumentVersionPDFPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExportSignableDocumentVersionPDFPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNExportStateOfApplicabilityPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportStateOfApplicabilityPDFInput(ctx context.Context, v any) (types.ExportStateOfApplicabilityPDFInput, error) { - res, err := ec.unmarshalInputExportStateOfApplicabilityPDFInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExportStateOfApplicabilityPDFPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportStateOfApplicabilityPDFPayload(ctx context.Context, sel ast.SelectionSet, v types.ExportStateOfApplicabilityPDFPayload) graphql.Marshaler { - return ec._ExportStateOfApplicabilityPDFPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExportStateOfApplicabilityPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportStateOfApplicabilityPDFPayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportStateOfApplicabilityPDFPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExportStateOfApplicabilityPDFPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNExportTransferImpactAssessmentsPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportTransferImpactAssessmentsPDFInput(ctx context.Context, v any) (types.ExportTransferImpactAssessmentsPDFInput, error) { - res, err := ec.unmarshalInputExportTransferImpactAssessmentsPDFInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExportTransferImpactAssessmentsPDFPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportTransferImpactAssessmentsPDFPayload(ctx context.Context, sel ast.SelectionSet, v types.ExportTransferImpactAssessmentsPDFPayload) graphql.Marshaler { - return ec._ExportTransferImpactAssessmentsPDFPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExportTransferImpactAssessmentsPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐExportTransferImpactAssessmentsPDFPayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportTransferImpactAssessmentsPDFPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExportTransferImpactAssessmentsPDFPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNFramework2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework(ctx context.Context, sel ast.SelectionSet, v types.Framework) graphql.Marshaler { - return ec._Framework(ctx, sel, &v) -} - -func (ec *executionContext) marshalNFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFramework(ctx context.Context, sel ast.SelectionSet, v *types.Framework) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Framework(ctx, sel, v) -} - -func (ec *executionContext) marshalNFrameworkConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkConnection(ctx context.Context, sel ast.SelectionSet, v types.FrameworkConnection) graphql.Marshaler { - return ec._FrameworkConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNFrameworkConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkConnection(ctx context.Context, sel ast.SelectionSet, v *types.FrameworkConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._FrameworkConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNFrameworkEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.FrameworkEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNFrameworkEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNFrameworkEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkEdge(ctx context.Context, sel ast.SelectionSet, v *types.FrameworkEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._FrameworkEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField(ctx context.Context, v any) (coredata.FrameworkOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.FrameworkOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField = map[string]coredata.FrameworkOrderField{ - "CREATED_AT": coredata.FrameworkOrderFieldCreatedAt, - } - marshalNFrameworkOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐFrameworkOrderField = map[coredata.FrameworkOrderField]string{ - coredata.FrameworkOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) unmarshalNGenerateDocumentChangelogInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateDocumentChangelogInput(ctx context.Context, v any) (types.GenerateDocumentChangelogInput, error) { - res, err := ec.unmarshalInputGenerateDocumentChangelogInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNGenerateDocumentChangelogPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateDocumentChangelogPayload(ctx context.Context, sel ast.SelectionSet, v types.GenerateDocumentChangelogPayload) graphql.Marshaler { - return ec._GenerateDocumentChangelogPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGenerateDocumentChangelogPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGenerateDocumentChangelogPayload(ctx context.Context, sel ast.SelectionSet, v *types.GenerateDocumentChangelogPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GenerateDocumentChangelogPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNGetTrustCenterFileInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGetTrustCenterFileInput(ctx context.Context, v any) (types.GetTrustCenterFileInput, error) { - res, err := ec.unmarshalInputGetTrustCenterFileInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNGetTrustCenterFilePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGetTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, v types.GetTrustCenterFilePayload) graphql.Marshaler { - return ec._GetTrustCenterFilePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGetTrustCenterFilePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐGetTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, v *types.GetTrustCenterFilePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GetTrustCenterFilePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (gid.GID, error) { - res, err := gid1.UnmarshalGIDScalar(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, sel ast.SelectionSet, v gid.GID) graphql.Marshaler { - _ = sel - res := gid1.MarshalGIDScalar(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx context.Context, v any) ([]gid.GID, error) { - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]gid.GID, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx context.Context, sel ast.SelectionSet, v []gid.GID) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNImportFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportFrameworkInput(ctx context.Context, v any) (types.ImportFrameworkInput, error) { - res, err := ec.unmarshalInputImportFrameworkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNImportFrameworkPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.ImportFrameworkPayload) graphql.Marshaler { - return ec._ImportFrameworkPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNImportFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.ImportFrameworkPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ImportFrameworkPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNImportMeasureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMeasureInput(ctx context.Context, v any) (types.ImportMeasureInput, error) { - res, err := ec.unmarshalInputImportMeasureInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNImportMeasurePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMeasurePayload(ctx context.Context, sel ast.SelectionSet, v types.ImportMeasurePayload) graphql.Marshaler { - return ec._ImportMeasurePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNImportMeasurePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐImportMeasurePayload(ctx context.Context, sel ast.SelectionSet, v *types.ImportMeasurePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ImportMeasurePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalInt(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNMailingList2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingList(ctx context.Context, sel ast.SelectionSet, v *types.MailingList) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingList(ctx, sel, v) -} - -func (ec *executionContext) marshalNMailingListSubscriber2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListSubscriber(ctx context.Context, sel ast.SelectionSet, v *types.MailingListSubscriber) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingListSubscriber(ctx, sel, v) -} - -func (ec *executionContext) marshalNMailingListSubscriberConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListSubscriberConnection(ctx context.Context, sel ast.SelectionSet, v types.MailingListSubscriberConnection) graphql.Marshaler { - return ec._MailingListSubscriberConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMailingListSubscriberConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListSubscriberConnection(ctx context.Context, sel ast.SelectionSet, v *types.MailingListSubscriberConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingListSubscriberConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNMailingListSubscriberEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListSubscriberEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.MailingListSubscriberEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNMailingListSubscriberEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListSubscriberEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMailingListSubscriberEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListSubscriberEdge(ctx context.Context, sel ast.SelectionSet, v *types.MailingListSubscriberEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingListSubscriberEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus(ctx context.Context, v any) (coredata.MailingListSubscriberStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus(ctx context.Context, sel ast.SelectionSet, v coredata.MailingListSubscriberStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus = map[string]coredata.MailingListSubscriberStatus{ - "PENDING": coredata.MailingListSubscriberStatusPending, - "CONFIRMED": coredata.MailingListSubscriberStatusConfirmed, - } - marshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus = map[coredata.MailingListSubscriberStatus]string{ - coredata.MailingListSubscriberStatusPending: "PENDING", - coredata.MailingListSubscriberStatusConfirmed: "CONFIRMED", - } -) - -func (ec *executionContext) marshalNMailingListUpdate2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdate(ctx context.Context, sel ast.SelectionSet, v *types.MailingListUpdate) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingListUpdate(ctx, sel, v) -} - -func (ec *executionContext) marshalNMailingListUpdateConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdateConnection(ctx context.Context, sel ast.SelectionSet, v types.MailingListUpdateConnection) graphql.Marshaler { - return ec._MailingListUpdateConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMailingListUpdateConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdateConnection(ctx context.Context, sel ast.SelectionSet, v *types.MailingListUpdateConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingListUpdateConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNMailingListUpdateEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdateEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.MailingListUpdateEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNMailingListUpdateEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdateEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMailingListUpdateEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingListUpdateEdge(ctx context.Context, sel ast.SelectionSet, v *types.MailingListUpdateEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingListUpdateEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMailingListUpdateStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListUpdateStatus(ctx context.Context, v any) (coredata.MailingListUpdateStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNMailingListUpdateStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListUpdateStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMailingListUpdateStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListUpdateStatus(ctx context.Context, sel ast.SelectionSet, v coredata.MailingListUpdateStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNMailingListUpdateStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListUpdateStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNMailingListUpdateStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListUpdateStatus = map[string]coredata.MailingListUpdateStatus{ - "DRAFT": coredata.MailingListUpdateStatusDraft, - "ENQUEUED": coredata.MailingListUpdateStatusEnqueued, - "PROCESSING": coredata.MailingListUpdateStatusProcessing, - "SENT": coredata.MailingListUpdateStatusSent, - } - marshalNMailingListUpdateStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListUpdateStatus = map[coredata.MailingListUpdateStatus]string{ - coredata.MailingListUpdateStatusDraft: "DRAFT", - coredata.MailingListUpdateStatusEnqueued: "ENQUEUED", - coredata.MailingListUpdateStatusProcessing: "PROCESSING", - coredata.MailingListUpdateStatusSent: "SENT", - } -) - -func (ec *executionContext) marshalNMeasure2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure(ctx context.Context, sel ast.SelectionSet, v types.Measure) graphql.Marshaler { - return ec._Measure(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMeasure2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure(ctx context.Context, sel ast.SelectionSet, v *types.Measure) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Measure(ctx, sel, v) -} - -func (ec *executionContext) marshalNMeasureConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureConnection(ctx context.Context, sel ast.SelectionSet, v types.MeasureConnection) graphql.Marshaler { - return ec._MeasureConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMeasureConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureConnection(ctx context.Context, sel ast.SelectionSet, v *types.MeasureConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MeasureConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNMeasureEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.MeasureEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNMeasureEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMeasureEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureEdge(ctx context.Context, sel ast.SelectionSet, v *types.MeasureEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MeasureEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMeasureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureOrderField(ctx context.Context, v any) (coredata.MeasureOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNMeasureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMeasureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.MeasureOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNMeasureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNMeasureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureOrderField = map[string]coredata.MeasureOrderField{ - "CREATED_AT": coredata.MeasureOrderFieldCreatedAt, - "NAME": coredata.MeasureOrderFieldName, - } - marshalNMeasureOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureOrderField = map[coredata.MeasureOrderField]string{ - coredata.MeasureOrderFieldCreatedAt: "CREATED_AT", - coredata.MeasureOrderFieldName: "NAME", - } -) - -func (ec *executionContext) unmarshalNMeasureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx context.Context, v any) (coredata.MeasureState, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNMeasureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMeasureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx context.Context, sel ast.SelectionSet, v coredata.MeasureState) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNMeasureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNMeasureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState = map[string]coredata.MeasureState{ - "NOT_STARTED": coredata.MeasureStateNotStarted, - "IN_PROGRESS": coredata.MeasureStateInProgress, - "NOT_APPLICABLE": coredata.MeasureStateNotApplicable, - "IMPLEMENTED": coredata.MeasureStateImplemented, - } - marshalNMeasureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState = map[coredata.MeasureState]string{ - coredata.MeasureStateNotStarted: "NOT_STARTED", - coredata.MeasureStateInProgress: "IN_PROGRESS", - coredata.MeasureStateNotApplicable: "NOT_APPLICABLE", - coredata.MeasureStateImplemented: "IMPLEMENTED", - } -) - -func (ec *executionContext) marshalNMeeting2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeeting(ctx context.Context, sel ast.SelectionSet, v *types.Meeting) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Meeting(ctx, sel, v) -} - -func (ec *executionContext) marshalNMeetingConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeetingConnection(ctx context.Context, sel ast.SelectionSet, v types.MeetingConnection) graphql.Marshaler { - return ec._MeetingConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMeetingConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeetingConnection(ctx context.Context, sel ast.SelectionSet, v *types.MeetingConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MeetingConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNMeetingEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeetingEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.MeetingEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNMeetingEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeetingEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMeetingEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeetingEdge(ctx context.Context, sel ast.SelectionSet, v *types.MeetingEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MeetingEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMeetingOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeetingOrderField(ctx context.Context, v any) (coredata.MeetingOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNMeetingOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeetingOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMeetingOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeetingOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.MeetingOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNMeetingOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeetingOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNMeetingOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeetingOrderField = map[string]coredata.MeetingOrderField{ - "DATE": coredata.MeetingOrderFieldDate, - "NAME": coredata.MeetingOrderFieldName, - "CREATED_AT": coredata.MeetingOrderFieldCreatedAt, - } - marshalNMeetingOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeetingOrderField = map[coredata.MeetingOrderField]string{ - coredata.MeetingOrderFieldDate: "DATE", - coredata.MeetingOrderFieldName: "NAME", - coredata.MeetingOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) marshalNNode2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNode(ctx context.Context, sel ast.SelectionSet, v types.Node) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Node(ctx, sel, v) -} - -func (ec *executionContext) marshalNNonconformity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformity(ctx context.Context, sel ast.SelectionSet, v *types.Nonconformity) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Nonconformity(ctx, sel, v) -} - -func (ec *executionContext) marshalNNonconformityConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityConnection(ctx context.Context, sel ast.SelectionSet, v types.NonconformityConnection) graphql.Marshaler { - return ec._NonconformityConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNNonconformityConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityConnection(ctx context.Context, sel ast.SelectionSet, v *types.NonconformityConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._NonconformityConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNNonconformityEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.NonconformityEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNNonconformityEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNNonconformityEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityEdge(ctx context.Context, sel ast.SelectionSet, v *types.NonconformityEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._NonconformityEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNNonconformityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityOrderField(ctx context.Context, v any) (coredata.NonconformityOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNNonconformityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNNonconformityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.NonconformityOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNNonconformityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNNonconformityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityOrderField = map[string]coredata.NonconformityOrderField{ - "CREATED_AT": coredata.NonconformityOrderFieldCreatedAt, - "REFERENCE_ID": coredata.NonconformityOrderFieldReferenceId, - "DATE_IDENTIFIED": coredata.NonconformityOrderFieldDateIdentified, - "DUE_DATE": coredata.NonconformityOrderFieldDueDate, - "STATUS": coredata.NonconformityOrderFieldStatus, - } - marshalNNonconformityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityOrderField = map[coredata.NonconformityOrderField]string{ - coredata.NonconformityOrderFieldCreatedAt: "CREATED_AT", - coredata.NonconformityOrderFieldReferenceId: "REFERENCE_ID", - coredata.NonconformityOrderFieldDateIdentified: "DATE_IDENTIFIED", - coredata.NonconformityOrderFieldDueDate: "DUE_DATE", - coredata.NonconformityOrderFieldStatus: "STATUS", - } -) - -func (ec *executionContext) unmarshalNNonconformityStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus(ctx context.Context, v any) (coredata.NonconformityStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNNonconformityStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNNonconformityStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus(ctx context.Context, sel ast.SelectionSet, v coredata.NonconformityStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNNonconformityStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNNonconformityStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus = map[string]coredata.NonconformityStatus{ - "OPEN": coredata.NonconformityStatusOpen, - "IN_PROGRESS": coredata.NonconformityStatusInProgress, - "CLOSED": coredata.NonconformityStatusClosed, - } - marshalNNonconformityStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus = map[coredata.NonconformityStatus]string{ - coredata.NonconformityStatusOpen: "OPEN", - coredata.NonconformityStatusInProgress: "IN_PROGRESS", - coredata.NonconformityStatusClosed: "CLOSED", - } -) - -func (ec *executionContext) marshalNObligation2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligation(ctx context.Context, sel ast.SelectionSet, v *types.Obligation) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Obligation(ctx, sel, v) -} - -func (ec *executionContext) marshalNObligationConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationConnection(ctx context.Context, sel ast.SelectionSet, v types.ObligationConnection) graphql.Marshaler { - return ec._ObligationConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNObligationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationConnection(ctx context.Context, sel ast.SelectionSet, v *types.ObligationConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ObligationConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNObligationEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ObligationEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNObligationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNObligationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationEdge(ctx context.Context, sel ast.SelectionSet, v *types.ObligationEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ObligationEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNObligationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationOrderField(ctx context.Context, v any) (coredata.ObligationOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNObligationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNObligationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ObligationOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNObligationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNObligationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationOrderField = map[string]coredata.ObligationOrderField{ - "CREATED_AT": coredata.ObligationOrderFieldCreatedAt, - "LAST_REVIEW_DATE": coredata.ObligationOrderFieldLastReviewDate, - "DUE_DATE": coredata.ObligationOrderFieldDueDate, - "STATUS": coredata.ObligationOrderFieldStatus, - } - marshalNObligationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationOrderField = map[coredata.ObligationOrderField]string{ - coredata.ObligationOrderFieldCreatedAt: "CREATED_AT", - coredata.ObligationOrderFieldLastReviewDate: "LAST_REVIEW_DATE", - coredata.ObligationOrderFieldDueDate: "DUE_DATE", - coredata.ObligationOrderFieldStatus: "STATUS", - } -) - -func (ec *executionContext) unmarshalNObligationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus(ctx context.Context, v any) (coredata.ObligationStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNObligationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNObligationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus(ctx context.Context, sel ast.SelectionSet, v coredata.ObligationStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNObligationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNObligationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus = map[string]coredata.ObligationStatus{ - "NON_COMPLIANT": coredata.ObligationStatusNonCompliant, - "PARTIALLY_COMPLIANT": coredata.ObligationStatusPartiallyCompliant, - "COMPLIANT": coredata.ObligationStatusCompliant, - } - marshalNObligationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus = map[coredata.ObligationStatus]string{ - coredata.ObligationStatusNonCompliant: "NON_COMPLIANT", - coredata.ObligationStatusPartiallyCompliant: "PARTIALLY_COMPLIANT", - coredata.ObligationStatusCompliant: "COMPLIANT", - } -) - -func (ec *executionContext) unmarshalNObligationType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType(ctx context.Context, v any) (coredata.ObligationType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNObligationType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNObligationType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType(ctx context.Context, sel ast.SelectionSet, v coredata.ObligationType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNObligationType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNObligationType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType = map[string]coredata.ObligationType{ - "LEGAL": coredata.ObligationTypeLegal, - "CONTRACTUAL": coredata.ObligationTypeContractual, - } - marshalNObligationType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType = map[coredata.ObligationType]string{ - coredata.ObligationTypeLegal: "LEGAL", - coredata.ObligationTypeContractual: "CONTRACTUAL", - } -) - -func (ec *executionContext) unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx context.Context, v any) (page.OrderDirection, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx context.Context, sel ast.SelectionSet, v page.OrderDirection) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection = map[string]page.OrderDirection{ - "ASC": page.OrderDirectionAsc, - "DESC": page.OrderDirectionDesc, - } - marshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection = map[page.OrderDirection]string{ - page.OrderDirectionAsc: "ASC", - page.OrderDirectionDesc: "DESC", - } -) - -func (ec *executionContext) marshalNOrganization2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v types.Organization) graphql.Marshaler { - return ec._Organization(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *types.Organization) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Organization(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationContext2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationContext(ctx context.Context, sel ast.SelectionSet, v *types.OrganizationContext) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrganizationContext(ctx, sel, v) -} - -func (ec *executionContext) marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v types.PageInfo) graphql.Marshaler { - return ec._PageInfo(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v *types.PageInfo) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PageInfo(ctx, sel, v) -} - -func (ec *executionContext) marshalNProcessingActivity2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivity(ctx context.Context, sel ast.SelectionSet, v types.ProcessingActivity) graphql.Marshaler { - return ec._ProcessingActivity(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProcessingActivity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivity(ctx context.Context, sel ast.SelectionSet, v *types.ProcessingActivity) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProcessingActivity(ctx, sel, v) -} - -func (ec *executionContext) marshalNProcessingActivityConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityConnection(ctx context.Context, sel ast.SelectionSet, v types.ProcessingActivityConnection) graphql.Marshaler { - return ec._ProcessingActivityConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProcessingActivityConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityConnection(ctx context.Context, sel ast.SelectionSet, v *types.ProcessingActivityConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProcessingActivityConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNProcessingActivityDataProtectionImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment(ctx context.Context, v any) (coredata.ProcessingActivityDataProtectionImpactAssessment, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNProcessingActivityDataProtectionImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProcessingActivityDataProtectionImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivityDataProtectionImpactAssessment) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNProcessingActivityDataProtectionImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNProcessingActivityDataProtectionImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment = map[string]coredata.ProcessingActivityDataProtectionImpactAssessment{ - "NEEDED": coredata.ProcessingActivityDataProtectionImpactAssessmentNeeded, - "NOT_NEEDED": coredata.ProcessingActivityDataProtectionImpactAssessmentNotNeeded, - } - marshalNProcessingActivityDataProtectionImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment = map[coredata.ProcessingActivityDataProtectionImpactAssessment]string{ - coredata.ProcessingActivityDataProtectionImpactAssessmentNeeded: "NEEDED", - coredata.ProcessingActivityDataProtectionImpactAssessmentNotNeeded: "NOT_NEEDED", - } -) - -func (ec *executionContext) marshalNProcessingActivityEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ProcessingActivityEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNProcessingActivityEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNProcessingActivityEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityEdge(ctx context.Context, sel ast.SelectionSet, v *types.ProcessingActivityEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProcessingActivityEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNProcessingActivityLawfulBasis2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis(ctx context.Context, v any) (coredata.ProcessingActivityLawfulBasis, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNProcessingActivityLawfulBasis2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProcessingActivityLawfulBasis2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivityLawfulBasis) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNProcessingActivityLawfulBasis2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNProcessingActivityLawfulBasis2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis = map[string]coredata.ProcessingActivityLawfulBasis{ - "LEGITIMATE_INTEREST": coredata.ProcessingActivityLawfulBasisLegitimateInterest, - "CONSENT": coredata.ProcessingActivityLawfulBasisConsent, - "CONTRACTUAL_NECESSITY": coredata.ProcessingActivityLawfulBasisContractualNecessity, - "LEGAL_OBLIGATION": coredata.ProcessingActivityLawfulBasisLegalObligation, - "VITAL_INTERESTS": coredata.ProcessingActivityLawfulBasisVitalInterests, - "PUBLIC_TASK": coredata.ProcessingActivityLawfulBasisPublicTask, - } - marshalNProcessingActivityLawfulBasis2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis = map[coredata.ProcessingActivityLawfulBasis]string{ - coredata.ProcessingActivityLawfulBasisLegitimateInterest: "LEGITIMATE_INTEREST", - coredata.ProcessingActivityLawfulBasisConsent: "CONSENT", - coredata.ProcessingActivityLawfulBasisContractualNecessity: "CONTRACTUAL_NECESSITY", - coredata.ProcessingActivityLawfulBasisLegalObligation: "LEGAL_OBLIGATION", - coredata.ProcessingActivityLawfulBasisVitalInterests: "VITAL_INTERESTS", - coredata.ProcessingActivityLawfulBasisPublicTask: "PUBLIC_TASK", - } -) - -func (ec *executionContext) unmarshalNProcessingActivityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityOrderField(ctx context.Context, v any) (coredata.ProcessingActivityOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNProcessingActivityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProcessingActivityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivityOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNProcessingActivityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNProcessingActivityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityOrderField = map[string]coredata.ProcessingActivityOrderField{ - "CREATED_AT": coredata.ProcessingActivityOrderFieldCreatedAt, - "NAME": coredata.ProcessingActivityOrderFieldName, - } - marshalNProcessingActivityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityOrderField = map[coredata.ProcessingActivityOrderField]string{ - coredata.ProcessingActivityOrderFieldCreatedAt: "CREATED_AT", - coredata.ProcessingActivityOrderFieldName: "NAME", - } -) - -func (ec *executionContext) unmarshalNProcessingActivityRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole(ctx context.Context, v any) (coredata.ProcessingActivityRole, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNProcessingActivityRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProcessingActivityRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivityRole) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNProcessingActivityRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNProcessingActivityRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole = map[string]coredata.ProcessingActivityRole{ - "CONTROLLER": coredata.ProcessingActivityRoleController, - "PROCESSOR": coredata.ProcessingActivityRoleProcessor, - } - marshalNProcessingActivityRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole = map[coredata.ProcessingActivityRole]string{ - coredata.ProcessingActivityRoleController: "CONTROLLER", - coredata.ProcessingActivityRoleProcessor: "PROCESSOR", - } -) - -func (ec *executionContext) unmarshalNProcessingActivitySpecialOrCriminalDatum2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum(ctx context.Context, v any) (coredata.ProcessingActivitySpecialOrCriminalDatum, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNProcessingActivitySpecialOrCriminalDatum2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProcessingActivitySpecialOrCriminalDatum2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivitySpecialOrCriminalDatum) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNProcessingActivitySpecialOrCriminalDatum2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNProcessingActivitySpecialOrCriminalDatum2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum = map[string]coredata.ProcessingActivitySpecialOrCriminalDatum{ - "YES": coredata.ProcessingActivitySpecialOrCriminalDatumYes, - "NO": coredata.ProcessingActivitySpecialOrCriminalDatumNo, - "POSSIBLE": coredata.ProcessingActivitySpecialOrCriminalDatumPossible, - } - marshalNProcessingActivitySpecialOrCriminalDatum2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum = map[coredata.ProcessingActivitySpecialOrCriminalDatum]string{ - coredata.ProcessingActivitySpecialOrCriminalDatumYes: "YES", - coredata.ProcessingActivitySpecialOrCriminalDatumNo: "NO", - coredata.ProcessingActivitySpecialOrCriminalDatumPossible: "POSSIBLE", - } -) - -func (ec *executionContext) unmarshalNProcessingActivityTransferImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment(ctx context.Context, v any) (coredata.ProcessingActivityTransferImpactAssessment, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNProcessingActivityTransferImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProcessingActivityTransferImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment(ctx context.Context, sel ast.SelectionSet, v coredata.ProcessingActivityTransferImpactAssessment) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNProcessingActivityTransferImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNProcessingActivityTransferImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment = map[string]coredata.ProcessingActivityTransferImpactAssessment{ - "NEEDED": coredata.ProcessingActivityTransferImpactAssessmentNeeded, - "NOT_NEEDED": coredata.ProcessingActivityTransferImpactAssessmentNotNeeded, - } - marshalNProcessingActivityTransferImpactAssessment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment = map[coredata.ProcessingActivityTransferImpactAssessment]string{ - coredata.ProcessingActivityTransferImpactAssessmentNeeded: "NEEDED", - coredata.ProcessingActivityTransferImpactAssessmentNotNeeded: "NOT_NEEDED", - } -) - -func (ec *executionContext) marshalNProfile2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile(ctx context.Context, sel ast.SelectionSet, v types.Profile) graphql.Marshaler { - return ec._Profile(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProfile2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.Profile) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile(ctx context.Context, sel ast.SelectionSet, v *types.Profile) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Profile(ctx, sel, v) -} - -func (ec *executionContext) marshalNProfileConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileConnection(ctx context.Context, sel ast.SelectionSet, v types.ProfileConnection) graphql.Marshaler { - return ec._ProfileConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProfileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileConnection(ctx context.Context, sel ast.SelectionSet, v *types.ProfileConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProfileConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNProfileEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ProfileEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNProfileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNProfileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileEdge(ctx context.Context, sel ast.SelectionSet, v *types.ProfileEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProfileEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField(ctx context.Context, v any) (coredata.MembershipProfileOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.MembershipProfileOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField = map[string]coredata.MembershipProfileOrderField{ - "FULL_NAME": coredata.MembershipProfileOrderFieldFullName, - "CREATED_AT": coredata.MembershipProfileOrderFieldCreatedAt, - "KIND": coredata.MembershipProfileOrderFieldKind, - } - marshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField = map[coredata.MembershipProfileOrderField]string{ - coredata.MembershipProfileOrderFieldFullName: "FULL_NAME", - coredata.MembershipProfileOrderFieldCreatedAt: "CREATED_AT", - coredata.MembershipProfileOrderFieldKind: "KIND", - } -) - -func (ec *executionContext) unmarshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx context.Context, v any) (coredata.ProfileState, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx context.Context, sel ast.SelectionSet, v coredata.ProfileState) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState = map[string]coredata.ProfileState{ - "ACTIVE": coredata.ProfileStateActive, - "INACTIVE": coredata.ProfileStateInactive, - } - marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState = map[coredata.ProfileState]string{ - coredata.ProfileStateActive: "ACTIVE", - coredata.ProfileStateInactive: "INACTIVE", - } -) - -func (ec *executionContext) unmarshalNPublishDocumentVersionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPublishDocumentVersionInput(ctx context.Context, v any) (types.PublishDocumentVersionInput, error) { - res, err := ec.unmarshalInputPublishDocumentVersionInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNPublishDocumentVersionPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPublishDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v types.PublishDocumentVersionPayload) graphql.Marshaler { - return ec._PublishDocumentVersionPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPublishDocumentVersionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐPublishDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v *types.PublishDocumentVersionPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PublishDocumentVersionPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNRequestSignatureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestSignatureInput(ctx context.Context, v any) (types.RequestSignatureInput, error) { - res, err := ec.unmarshalInputRequestSignatureInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRequestSignaturePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestSignaturePayload(ctx context.Context, sel ast.SelectionSet, v types.RequestSignaturePayload) graphql.Marshaler { - return ec._RequestSignaturePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRequestSignaturePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRequestSignaturePayload(ctx context.Context, sel ast.SelectionSet, v *types.RequestSignaturePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RequestSignaturePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNRightsRequest2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequest(ctx context.Context, sel ast.SelectionSet, v *types.RightsRequest) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RightsRequest(ctx, sel, v) -} - -func (ec *executionContext) marshalNRightsRequestConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequestConnection(ctx context.Context, sel ast.SelectionSet, v types.RightsRequestConnection) graphql.Marshaler { - return ec._RightsRequestConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRightsRequestConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequestConnection(ctx context.Context, sel ast.SelectionSet, v *types.RightsRequestConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RightsRequestConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNRightsRequestEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequestEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.RightsRequestEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNRightsRequestEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequestEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNRightsRequestEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequestEdge(ctx context.Context, sel ast.SelectionSet, v *types.RightsRequestEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RightsRequestEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNRightsRequestOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestOrderField(ctx context.Context, v any) (coredata.RightsRequestOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNRightsRequestOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRightsRequestOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.RightsRequestOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNRightsRequestOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNRightsRequestOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestOrderField = map[string]coredata.RightsRequestOrderField{ - "CREATED_AT": coredata.RightsRequestOrderFieldCreatedAt, - "DEADLINE": coredata.RightsRequestOrderFieldDeadline, - "STATE": coredata.RightsRequestOrderFieldState, - "TYPE": coredata.RightsRequestOrderFieldType, - } - marshalNRightsRequestOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestOrderField = map[coredata.RightsRequestOrderField]string{ - coredata.RightsRequestOrderFieldCreatedAt: "CREATED_AT", - coredata.RightsRequestOrderFieldDeadline: "DEADLINE", - coredata.RightsRequestOrderFieldState: "STATE", - coredata.RightsRequestOrderFieldType: "TYPE", - } -) - -func (ec *executionContext) unmarshalNRightsRequestState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState(ctx context.Context, v any) (coredata.RightsRequestState, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNRightsRequestState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRightsRequestState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState(ctx context.Context, sel ast.SelectionSet, v coredata.RightsRequestState) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNRightsRequestState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNRightsRequestState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState = map[string]coredata.RightsRequestState{ - "TODO": coredata.RightsRequestStateTodo, - "IN_PROGRESS": coredata.RightsRequestStateInProgress, - "DONE": coredata.RightsRequestStateDone, - } - marshalNRightsRequestState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState = map[coredata.RightsRequestState]string{ - coredata.RightsRequestStateTodo: "TODO", - coredata.RightsRequestStateInProgress: "IN_PROGRESS", - coredata.RightsRequestStateDone: "DONE", - } -) - -func (ec *executionContext) unmarshalNRightsRequestType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType(ctx context.Context, v any) (coredata.RightsRequestType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNRightsRequestType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRightsRequestType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType(ctx context.Context, sel ast.SelectionSet, v coredata.RightsRequestType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNRightsRequestType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNRightsRequestType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType = map[string]coredata.RightsRequestType{ - "ACCESS": coredata.RightsRequestTypeAccess, - "DELETION": coredata.RightsRequestTypeDeletion, - "PORTABILITY": coredata.RightsRequestTypePortability, - } - marshalNRightsRequestType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType = map[coredata.RightsRequestType]string{ - coredata.RightsRequestTypeAccess: "ACCESS", - coredata.RightsRequestTypeDeletion: "DELETION", - coredata.RightsRequestTypePortability: "PORTABILITY", - } -) - -func (ec *executionContext) marshalNRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRisk(ctx context.Context, sel ast.SelectionSet, v *types.Risk) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Risk(ctx, sel, v) -} - -func (ec *executionContext) marshalNRiskConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskConnection(ctx context.Context, sel ast.SelectionSet, v types.RiskConnection) graphql.Marshaler { - return ec._RiskConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRiskConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskConnection(ctx context.Context, sel ast.SelectionSet, v *types.RiskConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RiskConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNRiskEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.RiskEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNRiskEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNRiskEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskEdge(ctx context.Context, sel ast.SelectionSet, v *types.RiskEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RiskEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNRiskOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskOrderField(ctx context.Context, v any) (coredata.RiskOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNRiskOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRiskOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.RiskOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNRiskOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNRiskOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskOrderField = map[string]coredata.RiskOrderField{ - "CREATED_AT": coredata.RiskOrderFieldCreatedAt, - "UPDATED_AT": coredata.RiskOrderFieldUpdatedAt, - "NAME": coredata.RiskOrderFieldName, - "CATEGORY": coredata.RiskOrderFieldCategory, - "TREATMENT": coredata.RiskOrderFieldTreatment, - "INHERENT_RISK_SCORE": coredata.RiskOrderFieldInherentRiskScore, - "RESIDUAL_RISK_SCORE": coredata.RiskOrderFieldResidualRiskScore, - "OWNER_FULL_NAME": coredata.RiskOrderFieldOwnerFullName, - } - marshalNRiskOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskOrderField = map[coredata.RiskOrderField]string{ - coredata.RiskOrderFieldCreatedAt: "CREATED_AT", - coredata.RiskOrderFieldUpdatedAt: "UPDATED_AT", - coredata.RiskOrderFieldName: "NAME", - coredata.RiskOrderFieldCategory: "CATEGORY", - coredata.RiskOrderFieldTreatment: "TREATMENT", - coredata.RiskOrderFieldInherentRiskScore: "INHERENT_RISK_SCORE", - coredata.RiskOrderFieldResidualRiskScore: "RESIDUAL_RISK_SCORE", - coredata.RiskOrderFieldOwnerFullName: "OWNER_FULL_NAME", - } -) - -func (ec *executionContext) unmarshalNRiskTreatment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx context.Context, v any) (coredata.RiskTreatment, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNRiskTreatment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRiskTreatment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx context.Context, sel ast.SelectionSet, v coredata.RiskTreatment) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNRiskTreatment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNRiskTreatment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment = map[string]coredata.RiskTreatment{ - "MITIGATED": coredata.RiskTreatmentMitigated, - "ACCEPTED": coredata.RiskTreatmentAccepted, - "AVOIDED": coredata.RiskTreatmentAvoided, - "TRANSFERRED": coredata.RiskTreatmentTransferred, - } - marshalNRiskTreatment2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment = map[coredata.RiskTreatment]string{ - coredata.RiskTreatmentMitigated: "MITIGATED", - coredata.RiskTreatmentAccepted: "ACCEPTED", - coredata.RiskTreatmentAvoided: "AVOIDED", - coredata.RiskTreatmentTransferred: "TRANSFERRED", - } -) - -func (ec *executionContext) unmarshalNSSLStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCustomDomainSSLStatus(ctx context.Context, v any) (coredata.CustomDomainSSLStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNSSLStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCustomDomainSSLStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSSLStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCustomDomainSSLStatus(ctx context.Context, sel ast.SelectionSet, v coredata.CustomDomainSSLStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNSSLStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCustomDomainSSLStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNSSLStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCustomDomainSSLStatus = map[string]coredata.CustomDomainSSLStatus{ - "PENDING": coredata.CustomDomainSSLStatusPending, - "PROVISIONING": coredata.CustomDomainSSLStatusProvisioning, - "ACTIVE": coredata.CustomDomainSSLStatusActive, - "RENEWING": coredata.CustomDomainSSLStatusRenewing, - "EXPIRED": coredata.CustomDomainSSLStatusExpired, - "FAILED": coredata.CustomDomainSSLStatusFailed, - } - marshalNSSLStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCustomDomainSSLStatus = map[coredata.CustomDomainSSLStatus]string{ - coredata.CustomDomainSSLStatusPending: "PENDING", - coredata.CustomDomainSSLStatusProvisioning: "PROVISIONING", - coredata.CustomDomainSSLStatusActive: "ACTIVE", - coredata.CustomDomainSSLStatusRenewing: "RENEWING", - coredata.CustomDomainSSLStatusExpired: "EXPIRED", - coredata.CustomDomainSSLStatusFailed: "FAILED", - } -) - -func (ec *executionContext) unmarshalNSendMailingListUpdateInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendMailingListUpdateInput(ctx context.Context, v any) (types.SendMailingListUpdateInput, error) { - res, err := ec.unmarshalInputSendMailingListUpdateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSendMailingListUpdatePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, v types.SendMailingListUpdatePayload) graphql.Marshaler { - return ec._SendMailingListUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSendMailingListUpdatePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *types.SendMailingListUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SendMailingListUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSendSigningNotificationsInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendSigningNotificationsInput(ctx context.Context, v any) (types.SendSigningNotificationsInput, error) { - res, err := ec.unmarshalInputSendSigningNotificationsInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSendSigningNotificationsPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendSigningNotificationsPayload(ctx context.Context, sel ast.SelectionSet, v types.SendSigningNotificationsPayload) graphql.Marshaler { - return ec._SendSigningNotificationsPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSendSigningNotificationsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSendSigningNotificationsPayload(ctx context.Context, sel ast.SelectionSet, v *types.SendSigningNotificationsPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SendSigningNotificationsPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSignDocumentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignDocumentInput(ctx context.Context, v any) (types.SignDocumentInput, error) { - res, err := ec.unmarshalInputSignDocumentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSignDocumentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignDocumentPayload(ctx context.Context, sel ast.SelectionSet, v types.SignDocumentPayload) graphql.Marshaler { - return ec._SignDocumentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSignDocumentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignDocumentPayload(ctx context.Context, sel ast.SelectionSet, v *types.SignDocumentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SignDocumentPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNSignableDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocument(ctx context.Context, sel ast.SelectionSet, v *types.SignableDocument) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SignableDocument(ctx, sel, v) -} - -func (ec *executionContext) marshalNSignableDocumentConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocumentConnection(ctx context.Context, sel ast.SelectionSet, v types.SignableDocumentConnection) graphql.Marshaler { - return ec._SignableDocumentConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSignableDocumentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocumentConnection(ctx context.Context, sel ast.SelectionSet, v *types.SignableDocumentConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SignableDocumentConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNSignableDocumentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocumentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.SignableDocumentEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNSignableDocumentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocumentEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNSignableDocumentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocumentEdge(ctx context.Context, sel ast.SelectionSet, v *types.SignableDocumentEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SignableDocumentEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalNSlackConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSlackConnection(ctx context.Context, sel ast.SelectionSet, v *types.SlackConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SlackConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNSlackConnectionConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSlackConnectionConnection(ctx context.Context, sel ast.SelectionSet, v types.SlackConnectionConnection) graphql.Marshaler { - return ec._SlackConnectionConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSlackConnectionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSlackConnectionConnection(ctx context.Context, sel ast.SelectionSet, v *types.SlackConnectionConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SlackConnectionConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNSlackConnectionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSlackConnectionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.SlackConnectionEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNSlackConnectionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSlackConnectionEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNSlackConnectionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSlackConnectionEdge(ctx context.Context, sel ast.SelectionSet, v *types.SlackConnectionEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SlackConnectionEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalNSnapshot2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshot(ctx context.Context, sel ast.SelectionSet, v *types.Snapshot) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Snapshot(ctx, sel, v) -} - -func (ec *executionContext) marshalNSnapshotConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotConnection(ctx context.Context, sel ast.SelectionSet, v types.SnapshotConnection) graphql.Marshaler { - return ec._SnapshotConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSnapshotConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotConnection(ctx context.Context, sel ast.SelectionSet, v *types.SnapshotConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SnapshotConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNSnapshotEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.SnapshotEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNSnapshotEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNSnapshotEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotEdge(ctx context.Context, sel ast.SelectionSet, v *types.SnapshotEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SnapshotEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSnapshotOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField(ctx context.Context, v any) (coredata.SnapshotOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNSnapshotOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSnapshotOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.SnapshotOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNSnapshotOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNSnapshotOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField = map[string]coredata.SnapshotOrderField{ - "CREATED_AT": coredata.SnapshotOrderFieldCreatedAt, - "NAME": coredata.SnapshotOrderFieldName, - "TYPE": coredata.SnapshotOrderFieldType, - } - marshalNSnapshotOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotOrderField = map[coredata.SnapshotOrderField]string{ - coredata.SnapshotOrderFieldCreatedAt: "CREATED_AT", - coredata.SnapshotOrderFieldName: "NAME", - coredata.SnapshotOrderFieldType: "TYPE", - } -) - -func (ec *executionContext) unmarshalNSnapshotsType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotsType(ctx context.Context, v any) (coredata.SnapshotsType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNSnapshotsType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotsType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSnapshotsType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotsType(ctx context.Context, sel ast.SelectionSet, v coredata.SnapshotsType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNSnapshotsType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotsType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNSnapshotsType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotsType = map[string]coredata.SnapshotsType{ - "RISKS": coredata.SnapshotsTypeRisks, - "VENDORS": coredata.SnapshotsTypeVendors, - "ASSETS": coredata.SnapshotsTypeAssets, - "DATA": coredata.SnapshotsTypeData, - "NONCONFORMITIES": coredata.SnapshotsTypeNonconformities, - "OBLIGATIONS": coredata.SnapshotsTypeObligations, - "CONTINUAL_IMPROVEMENTS": coredata.SnapshotsTypeContinualImprovements, - "PROCESSING_ACTIVITIES": coredata.SnapshotsTypeProcessingActivities, - "STATES_OF_APPLICABILITY": coredata.SnapshotsTypeStatesOfApplicability, - } - marshalNSnapshotsType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSnapshotsType = map[coredata.SnapshotsType]string{ - coredata.SnapshotsTypeRisks: "RISKS", - coredata.SnapshotsTypeVendors: "VENDORS", - coredata.SnapshotsTypeAssets: "ASSETS", - coredata.SnapshotsTypeData: "DATA", - coredata.SnapshotsTypeNonconformities: "NONCONFORMITIES", - coredata.SnapshotsTypeObligations: "OBLIGATIONS", - coredata.SnapshotsTypeContinualImprovements: "CONTINUAL_IMPROVEMENTS", - coredata.SnapshotsTypeProcessingActivities: "PROCESSING_ACTIVITIES", - coredata.SnapshotsTypeStatesOfApplicability: "STATES_OF_APPLICABILITY", - } -) - -func (ec *executionContext) marshalNStateOfApplicability2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicability(ctx context.Context, sel ast.SelectionSet, v types.StateOfApplicability) graphql.Marshaler { - return ec._StateOfApplicability(ctx, sel, &v) -} - -func (ec *executionContext) marshalNStateOfApplicability2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicability(ctx context.Context, sel ast.SelectionSet, v *types.StateOfApplicability) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._StateOfApplicability(ctx, sel, v) -} - -func (ec *executionContext) marshalNStateOfApplicabilityConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityConnection(ctx context.Context, sel ast.SelectionSet, v types.StateOfApplicabilityConnection) graphql.Marshaler { - return ec._StateOfApplicabilityConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNStateOfApplicabilityConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityConnection(ctx context.Context, sel ast.SelectionSet, v *types.StateOfApplicabilityConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._StateOfApplicabilityConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNStateOfApplicabilityEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.StateOfApplicabilityEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNStateOfApplicabilityEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNStateOfApplicabilityEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityEdge(ctx context.Context, sel ast.SelectionSet, v *types.StateOfApplicabilityEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._StateOfApplicabilityEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNStateOfApplicabilityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐStateOfApplicabilityOrderField(ctx context.Context, v any) (coredata.StateOfApplicabilityOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNStateOfApplicabilityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐStateOfApplicabilityOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNStateOfApplicabilityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐStateOfApplicabilityOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.StateOfApplicabilityOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNStateOfApplicabilityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐStateOfApplicabilityOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNStateOfApplicabilityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐStateOfApplicabilityOrderField = map[string]coredata.StateOfApplicabilityOrderField{ - "NAME": coredata.StateOfApplicabilityOrderFieldName, - "CREATED_AT": coredata.StateOfApplicabilityOrderFieldCreatedAt, - } - marshalNStateOfApplicabilityOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐStateOfApplicabilityOrderField = map[coredata.StateOfApplicabilityOrderField]string{ - coredata.StateOfApplicabilityOrderFieldName: "NAME", - coredata.StateOfApplicabilityOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { - var vSlice []any - 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) marshalNTask2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask(ctx context.Context, sel ast.SelectionSet, v *types.Task) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Task(ctx, sel, v) -} - -func (ec *executionContext) marshalNTaskConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskConnection(ctx context.Context, sel ast.SelectionSet, v types.TaskConnection) graphql.Marshaler { - return ec._TaskConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTaskConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskConnection(ctx context.Context, sel ast.SelectionSet, v *types.TaskConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TaskConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNTaskEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TaskEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNTaskEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTaskEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskEdge(ctx context.Context, sel ast.SelectionSet, v *types.TaskEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TaskEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTaskOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskOrderField(ctx context.Context, v any) (coredata.TaskOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := coredata.TaskOrderField(tmp) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTaskOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.TaskOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(string(v)) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNTaskState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState(ctx context.Context, v any) (coredata.TaskState, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNTaskState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTaskState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState(ctx context.Context, sel ast.SelectionSet, v coredata.TaskState) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNTaskState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNTaskState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState = map[string]coredata.TaskState{ - "TODO": coredata.TaskStateTodo, - "DONE": coredata.TaskStateDone, - } - marshalNTaskState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState = map[coredata.TaskState]string{ - coredata.TaskStateTodo: "TODO", - coredata.TaskStateDone: "DONE", - } -) - -func (ec *executionContext) marshalNTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessment(ctx context.Context, sel ast.SelectionSet, v *types.TransferImpactAssessment) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TransferImpactAssessment(ctx, sel, v) -} - -func (ec *executionContext) marshalNTransferImpactAssessmentConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentConnection(ctx context.Context, sel ast.SelectionSet, v types.TransferImpactAssessmentConnection) graphql.Marshaler { - return ec._TransferImpactAssessmentConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTransferImpactAssessmentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentConnection(ctx context.Context, sel ast.SelectionSet, v *types.TransferImpactAssessmentConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TransferImpactAssessmentConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNTransferImpactAssessmentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TransferImpactAssessmentEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNTransferImpactAssessmentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTransferImpactAssessmentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentEdge(ctx context.Context, sel ast.SelectionSet, v *types.TransferImpactAssessmentEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TransferImpactAssessmentEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTransferImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTransferImpactAssessmentOrderField(ctx context.Context, v any) (coredata.TransferImpactAssessmentOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNTransferImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTransferImpactAssessmentOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTransferImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTransferImpactAssessmentOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.TransferImpactAssessmentOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNTransferImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTransferImpactAssessmentOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNTransferImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTransferImpactAssessmentOrderField = map[string]coredata.TransferImpactAssessmentOrderField{ - "CREATED_AT": coredata.TransferImpactAssessmentOrderFieldCreatedAt, - } - marshalNTransferImpactAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTransferImpactAssessmentOrderField = map[coredata.TransferImpactAssessmentOrderField]string{ - coredata.TransferImpactAssessmentOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) marshalNTrustCenter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenter) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenter(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccess(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterAccess) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterAccess(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterAccessConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessConnection(ctx context.Context, sel ast.SelectionSet, v types.TrustCenterAccessConnection) graphql.Marshaler { - return ec._TrustCenterAccessConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTrustCenterAccessConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessConnection(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterAccessConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterAccessConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterAccessEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TrustCenterAccessEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNTrustCenterAccessEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTrustCenterAccessEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterAccessEdge(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterAccessEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterAccessEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTrustCenterAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField(ctx context.Context, v any) (coredata.TrustCenterAccessOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNTrustCenterAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTrustCenterAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.TrustCenterAccessOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNTrustCenterAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNTrustCenterAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField = map[string]coredata.TrustCenterAccessOrderField{ - "CREATED_AT": coredata.TrustCenterAccessOrderFieldCreatedAt, - } - marshalNTrustCenterAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessOrderField = map[coredata.TrustCenterAccessOrderField]string{ - coredata.TrustCenterAccessOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) marshalNTrustCenterDocumentAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccess(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterDocumentAccess) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterDocumentAccess(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterDocumentAccessConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessConnection(ctx context.Context, sel ast.SelectionSet, v types.TrustCenterDocumentAccessConnection) graphql.Marshaler { - return ec._TrustCenterDocumentAccessConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTrustCenterDocumentAccessConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessConnection(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterDocumentAccessConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterDocumentAccessConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterDocumentAccessEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TrustCenterDocumentAccessEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNTrustCenterDocumentAccessEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTrustCenterDocumentAccessEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessEdge(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterDocumentAccessEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterDocumentAccessEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTrustCenterDocumentAccessInput2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessInput(ctx context.Context, v any) (*types.TrustCenterDocumentAccessInput, error) { - res, err := ec.unmarshalInputTrustCenterDocumentAccessInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNTrustCenterDocumentAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessOrderField(ctx context.Context, v any) (coredata.TrustCenterDocumentAccessOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNTrustCenterDocumentAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTrustCenterDocumentAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.TrustCenterDocumentAccessOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNTrustCenterDocumentAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNTrustCenterDocumentAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessOrderField = map[string]coredata.TrustCenterDocumentAccessOrderField{ - "CREATED_AT": coredata.TrustCenterDocumentAccessOrderFieldCreatedAt, - } - marshalNTrustCenterDocumentAccessOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessOrderField = map[coredata.TrustCenterDocumentAccessOrderField]string{ - coredata.TrustCenterDocumentAccessOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) unmarshalNTrustCenterDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus(ctx context.Context, v any) (coredata.TrustCenterDocumentAccessStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNTrustCenterDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTrustCenterDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus(ctx context.Context, sel ast.SelectionSet, v coredata.TrustCenterDocumentAccessStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNTrustCenterDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNTrustCenterDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus = map[string]coredata.TrustCenterDocumentAccessStatus{ - "REQUESTED": coredata.TrustCenterDocumentAccessStatusRequested, - "GRANTED": coredata.TrustCenterDocumentAccessStatusGranted, - "REJECTED": coredata.TrustCenterDocumentAccessStatusRejected, - "REVOKED": coredata.TrustCenterDocumentAccessStatusRevoked, - } - marshalNTrustCenterDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus = map[coredata.TrustCenterDocumentAccessStatus]string{ - coredata.TrustCenterDocumentAccessStatusRequested: "REQUESTED", - coredata.TrustCenterDocumentAccessStatusGranted: "GRANTED", - coredata.TrustCenterDocumentAccessStatusRejected: "REJECTED", - coredata.TrustCenterDocumentAccessStatusRevoked: "REVOKED", - } -) - -func (ec *executionContext) marshalNTrustCenterEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TrustCenterEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNTrustCenterEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTrustCenterEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterEdge(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFile(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterFile) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterFile(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterFileConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFileConnection(ctx context.Context, sel ast.SelectionSet, v types.TrustCenterFileConnection) graphql.Marshaler { - return ec._TrustCenterFileConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTrustCenterFileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFileConnection(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterFileConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterFileConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterFileEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFileEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TrustCenterFileEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNTrustCenterFileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFileEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTrustCenterFileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFileEdge(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterFileEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterFileEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTrustCenterFileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterFileOrderField(ctx context.Context, v any) (coredata.TrustCenterFileOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNTrustCenterFileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterFileOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTrustCenterFileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterFileOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.TrustCenterFileOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNTrustCenterFileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterFileOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNTrustCenterFileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterFileOrderField = map[string]coredata.TrustCenterFileOrderField{ - "NAME": coredata.TrustCenterFileOrderFieldName, - "CREATED_AT": coredata.TrustCenterFileOrderFieldCreatedAt, - "UPDATED_AT": coredata.TrustCenterFileOrderFieldUpdatedAt, - } - marshalNTrustCenterFileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterFileOrderField = map[coredata.TrustCenterFileOrderField]string{ - coredata.TrustCenterFileOrderFieldName: "NAME", - coredata.TrustCenterFileOrderFieldCreatedAt: "CREATED_AT", - coredata.TrustCenterFileOrderFieldUpdatedAt: "UPDATED_AT", - } -) - -func (ec *executionContext) marshalNTrustCenterReference2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReference(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterReference) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterReference(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterReferenceConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReferenceConnection(ctx context.Context, sel ast.SelectionSet, v types.TrustCenterReferenceConnection) graphql.Marshaler { - return ec._TrustCenterReferenceConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTrustCenterReferenceConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReferenceConnection(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterReferenceConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterReferenceConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterReferenceEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReferenceEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TrustCenterReferenceEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNTrustCenterReferenceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReferenceEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTrustCenterReferenceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterReferenceEdge(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterReferenceEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterReferenceEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTrustCenterReferenceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterReferenceOrderField(ctx context.Context, v any) (coredata.TrustCenterReferenceOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNTrustCenterReferenceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterReferenceOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTrustCenterReferenceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterReferenceOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.TrustCenterReferenceOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNTrustCenterReferenceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterReferenceOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNTrustCenterReferenceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterReferenceOrderField = map[string]coredata.TrustCenterReferenceOrderField{ - "RANK": coredata.TrustCenterReferenceOrderFieldRank, - "NAME": coredata.TrustCenterReferenceOrderFieldName, - "CREATED_AT": coredata.TrustCenterReferenceOrderFieldCreatedAt, - "UPDATED_AT": coredata.TrustCenterReferenceOrderFieldUpdatedAt, - } - marshalNTrustCenterReferenceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterReferenceOrderField = map[coredata.TrustCenterReferenceOrderField]string{ - coredata.TrustCenterReferenceOrderFieldRank: "RANK", - coredata.TrustCenterReferenceOrderFieldName: "NAME", - coredata.TrustCenterReferenceOrderFieldCreatedAt: "CREATED_AT", - coredata.TrustCenterReferenceOrderFieldUpdatedAt: "UPDATED_AT", - } -) - -func (ec *executionContext) unmarshalNTrustCenterVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility(ctx context.Context, v any) (coredata.TrustCenterVisibility, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNTrustCenterVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTrustCenterVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility(ctx context.Context, sel ast.SelectionSet, v coredata.TrustCenterVisibility) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNTrustCenterVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNTrustCenterVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility = map[string]coredata.TrustCenterVisibility{ - "NONE": coredata.TrustCenterVisibilityNone, - "PRIVATE": coredata.TrustCenterVisibilityPrivate, - "PUBLIC": coredata.TrustCenterVisibilityPublic, - } - marshalNTrustCenterVisibility2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility = map[coredata.TrustCenterVisibility]string{ - coredata.TrustCenterVisibilityNone: "NONE", - coredata.TrustCenterVisibilityPrivate: "PRIVATE", - coredata.TrustCenterVisibilityPublic: "PUBLIC", - } -) - -func (ec *executionContext) unmarshalNUpdateApplicabilityStatementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateApplicabilityStatementInput(ctx context.Context, v any) (types.UpdateApplicabilityStatementInput, error) { - res, err := ec.unmarshalInputUpdateApplicabilityStatementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateApplicabilityStatementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateApplicabilityStatementPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateApplicabilityStatementPayload) graphql.Marshaler { - return ec._UpdateApplicabilityStatementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateApplicabilityStatementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateApplicabilityStatementPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateApplicabilityStatementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateApplicabilityStatementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateAssetInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAssetInput(ctx context.Context, v any) (types.UpdateAssetInput, error) { - res, err := ec.unmarshalInputUpdateAssetInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateAssetPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAssetPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateAssetPayload) graphql.Marshaler { - return ec._UpdateAssetPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateAssetPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAssetPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateAssetPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateAssetPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateAuditInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAuditInput(ctx context.Context, v any) (types.UpdateAuditInput, error) { - res, err := ec.unmarshalInputUpdateAuditInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateAuditPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAuditPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateAuditPayload) graphql.Marshaler { - return ec._UpdateAuditPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateAuditPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateAuditPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateAuditPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateAuditPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateComplianceExternalURLInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceExternalURLInput(ctx context.Context, v any) (types.UpdateComplianceExternalURLInput, error) { - res, err := ec.unmarshalInputUpdateComplianceExternalURLInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateComplianceExternalURLPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceExternalURLPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateComplianceExternalURLPayload) graphql.Marshaler { - return ec._UpdateComplianceExternalURLPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateComplianceExternalURLPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceExternalURLPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateComplianceExternalURLPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateComplianceExternalURLPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateComplianceFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceFrameworkInput(ctx context.Context, v any) (types.UpdateComplianceFrameworkInput, error) { - res, err := ec.unmarshalInputUpdateComplianceFrameworkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateComplianceFrameworkPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateComplianceFrameworkPayload) graphql.Marshaler { - return ec._UpdateComplianceFrameworkPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateComplianceFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateComplianceFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateComplianceFrameworkPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateComplianceFrameworkPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateContinualImprovementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateContinualImprovementInput(ctx context.Context, v any) (types.UpdateContinualImprovementInput, error) { - res, err := ec.unmarshalInputUpdateContinualImprovementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateContinualImprovementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateContinualImprovementPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateContinualImprovementPayload) graphql.Marshaler { - return ec._UpdateContinualImprovementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateContinualImprovementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateContinualImprovementPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateContinualImprovementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateContinualImprovementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateControlInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateControlInput(ctx context.Context, v any) (types.UpdateControlInput, error) { - res, err := ec.unmarshalInputUpdateControlInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateControlPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateControlPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateControlPayload) graphql.Marshaler { - return ec._UpdateControlPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateControlPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateControlPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateControlPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateControlPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateDataProtectionImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDataProtectionImpactAssessmentInput(ctx context.Context, v any) (types.UpdateDataProtectionImpactAssessmentInput, error) { - res, err := ec.unmarshalInputUpdateDataProtectionImpactAssessmentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateDataProtectionImpactAssessmentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDataProtectionImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateDataProtectionImpactAssessmentPayload) graphql.Marshaler { - return ec._UpdateDataProtectionImpactAssessmentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateDataProtectionImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDataProtectionImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateDataProtectionImpactAssessmentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateDataProtectionImpactAssessmentPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateDatumInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDatumInput(ctx context.Context, v any) (types.UpdateDatumInput, error) { - res, err := ec.unmarshalInputUpdateDatumInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateDatumPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDatumPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateDatumPayload) graphql.Marshaler { - return ec._UpdateDatumPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateDatumPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDatumPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateDatumPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateDatumPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateDocumentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentInput(ctx context.Context, v any) (types.UpdateDocumentInput, error) { - res, err := ec.unmarshalInputUpdateDocumentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateDocumentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateDocumentPayload) graphql.Marshaler { - return ec._UpdateDocumentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateDocumentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateDocumentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateDocumentPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateDocumentVersionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentVersionInput(ctx context.Context, v any) (types.UpdateDocumentVersionInput, error) { - res, err := ec.unmarshalInputUpdateDocumentVersionInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateDocumentVersionPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateDocumentVersionPayload) graphql.Marshaler { - return ec._UpdateDocumentVersionPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateDocumentVersionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateDocumentVersionPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateDocumentVersionPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateDocumentVersionPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateFrameworkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateFrameworkInput(ctx context.Context, v any) (types.UpdateFrameworkInput, error) { - res, err := ec.unmarshalInputUpdateFrameworkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateFrameworkPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateFrameworkPayload) graphql.Marshaler { - return ec._UpdateFrameworkPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateFrameworkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateFrameworkPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateFrameworkPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateFrameworkPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateMailingListInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMailingListInput(ctx context.Context, v any) (types.UpdateMailingListInput, error) { - res, err := ec.unmarshalInputUpdateMailingListInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateMailingListPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMailingListPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateMailingListPayload) graphql.Marshaler { - return ec._UpdateMailingListPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateMailingListPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMailingListPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateMailingListPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateMailingListPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateMailingListUpdateInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMailingListUpdateInput(ctx context.Context, v any) (types.UpdateMailingListUpdateInput, error) { - res, err := ec.unmarshalInputUpdateMailingListUpdateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateMailingListUpdatePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateMailingListUpdatePayload) graphql.Marshaler { - return ec._UpdateMailingListUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateMailingListUpdatePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMailingListUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateMailingListUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateMailingListUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateMeasureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeasureInput(ctx context.Context, v any) (types.UpdateMeasureInput, error) { - res, err := ec.unmarshalInputUpdateMeasureInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateMeasurePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeasurePayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateMeasurePayload) graphql.Marshaler { - return ec._UpdateMeasurePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateMeasurePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeasurePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateMeasurePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateMeasurePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateMeetingInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeetingInput(ctx context.Context, v any) (types.UpdateMeetingInput, error) { - res, err := ec.unmarshalInputUpdateMeetingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateMeetingPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeetingPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateMeetingPayload) graphql.Marshaler { - return ec._UpdateMeetingPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateMeetingPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateMeetingPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateMeetingPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateMeetingPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateNonconformityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateNonconformityInput(ctx context.Context, v any) (types.UpdateNonconformityInput, error) { - res, err := ec.unmarshalInputUpdateNonconformityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateNonconformityPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateNonconformityPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateNonconformityPayload) graphql.Marshaler { - return ec._UpdateNonconformityPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateNonconformityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateNonconformityPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateNonconformityPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateNonconformityPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateObligationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateObligationInput(ctx context.Context, v any) (types.UpdateObligationInput, error) { - res, err := ec.unmarshalInputUpdateObligationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateObligationPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateObligationPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateObligationPayload) graphql.Marshaler { - return ec._UpdateObligationPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateObligationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateObligationPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateObligationPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateObligationPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateOrganizationContextInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateOrganizationContextInput(ctx context.Context, v any) (types.UpdateOrganizationContextInput, error) { - res, err := ec.unmarshalInputUpdateOrganizationContextInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateOrganizationContextPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateOrganizationContextPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateOrganizationContextPayload) graphql.Marshaler { - return ec._UpdateOrganizationContextPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateOrganizationContextPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateOrganizationContextPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateOrganizationContextPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateOrganizationContextPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateProcessingActivityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateProcessingActivityInput(ctx context.Context, v any) (types.UpdateProcessingActivityInput, error) { - res, err := ec.unmarshalInputUpdateProcessingActivityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateProcessingActivityPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateProcessingActivityPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateProcessingActivityPayload) graphql.Marshaler { - return ec._UpdateProcessingActivityPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateProcessingActivityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateProcessingActivityPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateProcessingActivityPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateProcessingActivityPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateRightsRequestInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRightsRequestInput(ctx context.Context, v any) (types.UpdateRightsRequestInput, error) { - res, err := ec.unmarshalInputUpdateRightsRequestInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateRightsRequestPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRightsRequestPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateRightsRequestPayload) graphql.Marshaler { - return ec._UpdateRightsRequestPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateRightsRequestPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRightsRequestPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateRightsRequestPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateRightsRequestPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateRiskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRiskInput(ctx context.Context, v any) (types.UpdateRiskInput, error) { - res, err := ec.unmarshalInputUpdateRiskInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateRiskPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRiskPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateRiskPayload) graphql.Marshaler { - return ec._UpdateRiskPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateRiskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateRiskPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateRiskPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateRiskPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateStateOfApplicabilityInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateStateOfApplicabilityInput(ctx context.Context, v any) (types.UpdateStateOfApplicabilityInput, error) { - res, err := ec.unmarshalInputUpdateStateOfApplicabilityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateStateOfApplicabilityPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateStateOfApplicabilityPayload) graphql.Marshaler { - return ec._UpdateStateOfApplicabilityPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateStateOfApplicabilityPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateStateOfApplicabilityPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateStateOfApplicabilityPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateStateOfApplicabilityPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateTaskInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTaskInput(ctx context.Context, v any) (types.UpdateTaskInput, error) { - res, err := ec.unmarshalInputUpdateTaskInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateTaskPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTaskPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateTaskPayload) graphql.Marshaler { - return ec._UpdateTaskPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateTaskPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTaskPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateTaskPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateTaskPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateTransferImpactAssessmentInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTransferImpactAssessmentInput(ctx context.Context, v any) (types.UpdateTransferImpactAssessmentInput, error) { - res, err := ec.unmarshalInputUpdateTransferImpactAssessmentInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateTransferImpactAssessmentPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTransferImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateTransferImpactAssessmentPayload) graphql.Marshaler { - return ec._UpdateTransferImpactAssessmentPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateTransferImpactAssessmentPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTransferImpactAssessmentPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateTransferImpactAssessmentPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateTransferImpactAssessmentPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateTrustCenterAccessInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterAccessInput(ctx context.Context, v any) (types.UpdateTrustCenterAccessInput, error) { - res, err := ec.unmarshalInputUpdateTrustCenterAccessInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateTrustCenterAccessPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateTrustCenterAccessPayload) graphql.Marshaler { - return ec._UpdateTrustCenterAccessPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateTrustCenterAccessPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterAccessPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateTrustCenterAccessPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateTrustCenterAccessPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateTrustCenterBrandInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterBrandInput(ctx context.Context, v any) (types.UpdateTrustCenterBrandInput, error) { - res, err := ec.unmarshalInputUpdateTrustCenterBrandInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateTrustCenterBrandPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterBrandPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateTrustCenterBrandPayload) graphql.Marshaler { - return ec._UpdateTrustCenterBrandPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateTrustCenterBrandPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterBrandPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateTrustCenterBrandPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateTrustCenterBrandPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateTrustCenterFileInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterFileInput(ctx context.Context, v any) (types.UpdateTrustCenterFileInput, error) { - res, err := ec.unmarshalInputUpdateTrustCenterFileInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateTrustCenterFilePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateTrustCenterFilePayload) graphql.Marshaler { - return ec._UpdateTrustCenterFilePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateTrustCenterFilePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateTrustCenterFilePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateTrustCenterFilePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateTrustCenterInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterInput(ctx context.Context, v any) (types.UpdateTrustCenterInput, error) { - res, err := ec.unmarshalInputUpdateTrustCenterInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateTrustCenterPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateTrustCenterPayload) graphql.Marshaler { - return ec._UpdateTrustCenterPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateTrustCenterPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateTrustCenterPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateTrustCenterPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateTrustCenterReferenceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterReferenceInput(ctx context.Context, v any) (types.UpdateTrustCenterReferenceInput, error) { - res, err := ec.unmarshalInputUpdateTrustCenterReferenceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateTrustCenterReferencePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterReferencePayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateTrustCenterReferencePayload) graphql.Marshaler { - return ec._UpdateTrustCenterReferencePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateTrustCenterReferencePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateTrustCenterReferencePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateTrustCenterReferencePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateTrustCenterReferencePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateVendorBusinessAssociateAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorBusinessAssociateAgreementInput(ctx context.Context, v any) (types.UpdateVendorBusinessAssociateAgreementInput, error) { - res, err := ec.unmarshalInputUpdateVendorBusinessAssociateAgreementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateVendorBusinessAssociateAgreementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateVendorBusinessAssociateAgreementPayload) graphql.Marshaler { - return ec._UpdateVendorBusinessAssociateAgreementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateVendorBusinessAssociateAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateVendorBusinessAssociateAgreementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateVendorBusinessAssociateAgreementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateVendorContactInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorContactInput(ctx context.Context, v any) (types.UpdateVendorContactInput, error) { - res, err := ec.unmarshalInputUpdateVendorContactInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateVendorContactPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateVendorContactPayload) graphql.Marshaler { - return ec._UpdateVendorContactPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateVendorContactPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorContactPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateVendorContactPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateVendorContactPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateVendorDataPrivacyAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorDataPrivacyAgreementInput(ctx context.Context, v any) (types.UpdateVendorDataPrivacyAgreementInput, error) { - res, err := ec.unmarshalInputUpdateVendorDataPrivacyAgreementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateVendorDataPrivacyAgreementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateVendorDataPrivacyAgreementPayload) graphql.Marshaler { - return ec._UpdateVendorDataPrivacyAgreementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateVendorDataPrivacyAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateVendorDataPrivacyAgreementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateVendorDataPrivacyAgreementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateVendorInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorInput(ctx context.Context, v any) (types.UpdateVendorInput, error) { - res, err := ec.unmarshalInputUpdateVendorInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateVendorPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateVendorPayload) graphql.Marshaler { - return ec._UpdateVendorPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateVendorPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateVendorPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateVendorPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateVendorServiceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorServiceInput(ctx context.Context, v any) (types.UpdateVendorServiceInput, error) { - res, err := ec.unmarshalInputUpdateVendorServiceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateVendorServicePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateVendorServicePayload) graphql.Marshaler { - return ec._UpdateVendorServicePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateVendorServicePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateVendorServicePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateVendorServicePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateVendorServicePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateWebhookSubscriptionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateWebhookSubscriptionInput(ctx context.Context, v any) (types.UpdateWebhookSubscriptionInput, error) { - res, err := ec.unmarshalInputUpdateWebhookSubscriptionInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpdateWebhookSubscriptionPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateWebhookSubscriptionPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateWebhookSubscriptionPayload) graphql.Marshaler { - return ec._UpdateWebhookSubscriptionPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUpdateWebhookSubscriptionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUpdateWebhookSubscriptionPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateWebhookSubscriptionPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UpdateWebhookSubscriptionPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalUpload(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNUploadAuditReportInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadAuditReportInput(ctx context.Context, v any) (types.UploadAuditReportInput, error) { - res, err := ec.unmarshalInputUploadAuditReportInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUploadAuditReportPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadAuditReportPayload(ctx context.Context, sel ast.SelectionSet, v types.UploadAuditReportPayload) graphql.Marshaler { - return ec._UploadAuditReportPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUploadAuditReportPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadAuditReportPayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadAuditReportPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UploadAuditReportPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUploadMeasureEvidenceInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadMeasureEvidenceInput(ctx context.Context, v any) (types.UploadMeasureEvidenceInput, error) { - res, err := ec.unmarshalInputUploadMeasureEvidenceInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUploadMeasureEvidencePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadMeasureEvidencePayload(ctx context.Context, sel ast.SelectionSet, v types.UploadMeasureEvidencePayload) graphql.Marshaler { - return ec._UploadMeasureEvidencePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUploadMeasureEvidencePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadMeasureEvidencePayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadMeasureEvidencePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UploadMeasureEvidencePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUploadTrustCenterNDAInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadTrustCenterNDAInput(ctx context.Context, v any) (types.UploadTrustCenterNDAInput, error) { - res, err := ec.unmarshalInputUploadTrustCenterNDAInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUploadTrustCenterNDAPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadTrustCenterNDAPayload(ctx context.Context, sel ast.SelectionSet, v types.UploadTrustCenterNDAPayload) graphql.Marshaler { - return ec._UploadTrustCenterNDAPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUploadTrustCenterNDAPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadTrustCenterNDAPayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadTrustCenterNDAPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UploadTrustCenterNDAPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUploadVendorBusinessAssociateAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorBusinessAssociateAgreementInput(ctx context.Context, v any) (types.UploadVendorBusinessAssociateAgreementInput, error) { - res, err := ec.unmarshalInputUploadVendorBusinessAssociateAgreementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUploadVendorBusinessAssociateAgreementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.UploadVendorBusinessAssociateAgreementPayload) graphql.Marshaler { - return ec._UploadVendorBusinessAssociateAgreementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUploadVendorBusinessAssociateAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorBusinessAssociateAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadVendorBusinessAssociateAgreementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UploadVendorBusinessAssociateAgreementPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUploadVendorComplianceReportInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorComplianceReportInput(ctx context.Context, v any) (types.UploadVendorComplianceReportInput, error) { - res, err := ec.unmarshalInputUploadVendorComplianceReportInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUploadVendorComplianceReportPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, v types.UploadVendorComplianceReportPayload) graphql.Marshaler { - return ec._UploadVendorComplianceReportPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUploadVendorComplianceReportPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorComplianceReportPayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadVendorComplianceReportPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UploadVendorComplianceReportPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUploadVendorDataPrivacyAgreementInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorDataPrivacyAgreementInput(ctx context.Context, v any) (types.UploadVendorDataPrivacyAgreementInput, error) { - res, err := ec.unmarshalInputUploadVendorDataPrivacyAgreementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUploadVendorDataPrivacyAgreementPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v types.UploadVendorDataPrivacyAgreementPayload) graphql.Marshaler { - return ec._UploadVendorDataPrivacyAgreementPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUploadVendorDataPrivacyAgreementPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐUploadVendorDataPrivacyAgreementPayload(ctx context.Context, sel ast.SelectionSet, v *types.UploadVendorDataPrivacyAgreementPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UploadVendorDataPrivacyAgreementPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendor2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor(ctx context.Context, sel ast.SelectionSet, v types.Vendor) graphql.Marshaler { - return ec._Vendor(ctx, sel, &v) -} - -func (ec *executionContext) marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendor(ctx context.Context, sel ast.SelectionSet, v *types.Vendor) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Vendor(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorBusinessAssociateAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorBusinessAssociateAgreement(ctx context.Context, sel ast.SelectionSet, v *types.VendorBusinessAssociateAgreement) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorBusinessAssociateAgreement(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx context.Context, v any) (coredata.VendorCategory, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx context.Context, sel ast.SelectionSet, v coredata.VendorCategory) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory = map[string]coredata.VendorCategory{ - "ANALYTICS": coredata.VendorCategoryAnalytics, - "CLOUD_MONITORING": coredata.VendorCategoryCloudMonitoring, - "CLOUD_PROVIDER": coredata.VendorCategoryCloudProvider, - "COLLABORATION": coredata.VendorCategoryCollaboration, - "CUSTOMER_SUPPORT": coredata.VendorCategoryCustomerSupport, - "DATA_STORAGE_AND_PROCESSING": coredata.VendorCategoryDataStorageAndProcessing, - "DOCUMENT_MANAGEMENT": coredata.VendorCategoryDocumentManagement, - "EMPLOYEE_MANAGEMENT": coredata.VendorCategoryEmployeeManagement, - "ENGINEERING": coredata.VendorCategoryEngineering, - "FINANCE": coredata.VendorCategoryFinance, - "IDENTITY_PROVIDER": coredata.VendorCategoryIdentityProvider, - "IT": coredata.VendorCategoryIT, - "MARKETING": coredata.VendorCategoryMarketing, - "OFFICE_OPERATIONS": coredata.VendorCategoryOfficeOperations, - "OTHER": coredata.VendorCategoryOther, - "PASSWORD_MANAGEMENT": coredata.VendorCategoryPasswordManagement, - "PRODUCT_AND_DESIGN": coredata.VendorCategoryProductAndDesign, - "PROFESSIONAL_SERVICES": coredata.VendorCategoryProfessionalServices, - "RECRUITING": coredata.VendorCategoryRecruiting, - "SALES": coredata.VendorCategorySales, - "SECURITY": coredata.VendorCategorySecurity, - "VERSION_CONTROL": coredata.VendorCategoryVersionControl, - } - marshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory = map[coredata.VendorCategory]string{ - coredata.VendorCategoryAnalytics: "ANALYTICS", - coredata.VendorCategoryCloudMonitoring: "CLOUD_MONITORING", - coredata.VendorCategoryCloudProvider: "CLOUD_PROVIDER", - coredata.VendorCategoryCollaboration: "COLLABORATION", - coredata.VendorCategoryCustomerSupport: "CUSTOMER_SUPPORT", - coredata.VendorCategoryDataStorageAndProcessing: "DATA_STORAGE_AND_PROCESSING", - coredata.VendorCategoryDocumentManagement: "DOCUMENT_MANAGEMENT", - coredata.VendorCategoryEmployeeManagement: "EMPLOYEE_MANAGEMENT", - coredata.VendorCategoryEngineering: "ENGINEERING", - coredata.VendorCategoryFinance: "FINANCE", - coredata.VendorCategoryIdentityProvider: "IDENTITY_PROVIDER", - coredata.VendorCategoryIT: "IT", - coredata.VendorCategoryMarketing: "MARKETING", - coredata.VendorCategoryOfficeOperations: "OFFICE_OPERATIONS", - coredata.VendorCategoryOther: "OTHER", - coredata.VendorCategoryPasswordManagement: "PASSWORD_MANAGEMENT", - coredata.VendorCategoryProductAndDesign: "PRODUCT_AND_DESIGN", - coredata.VendorCategoryProfessionalServices: "PROFESSIONAL_SERVICES", - coredata.VendorCategoryRecruiting: "RECRUITING", - coredata.VendorCategorySales: "SALES", - coredata.VendorCategorySecurity: "SECURITY", - coredata.VendorCategoryVersionControl: "VERSION_CONTROL", - } -) - -func (ec *executionContext) marshalNVendorComplianceReport2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReport(ctx context.Context, sel ast.SelectionSet, v *types.VendorComplianceReport) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorComplianceReport(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorComplianceReportConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorComplianceReportConnection) graphql.Marshaler { - return ec._VendorComplianceReportConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNVendorComplianceReportConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorComplianceReportConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorComplianceReportConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorComplianceReportEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorComplianceReportEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNVendorComplianceReportEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNVendorComplianceReportEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorComplianceReportEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorComplianceReportEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNVendorComplianceReportOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField(ctx context.Context, v any) (coredata.VendorComplianceReportOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNVendorComplianceReportOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNVendorComplianceReportOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.VendorComplianceReportOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNVendorComplianceReportOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNVendorComplianceReportOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField = map[string]coredata.VendorComplianceReportOrderField{ - "REPORT_DATE": coredata.VendorComplianceReportOrderFieldReportDate, - "CREATED_AT": coredata.VendorComplianceReportOrderFieldCreatedAt, - } - marshalNVendorComplianceReportOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorComplianceReportOrderField = map[coredata.VendorComplianceReportOrderField]string{ - coredata.VendorComplianceReportOrderFieldReportDate: "REPORT_DATE", - coredata.VendorComplianceReportOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) marshalNVendorConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorConnection) graphql.Marshaler { - return ec._VendorConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNVendorConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorContact2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContact(ctx context.Context, sel ast.SelectionSet, v *types.VendorContact) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorContact(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorContactConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorContactConnection) graphql.Marshaler { - return ec._VendorContactConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNVendorContactConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorContactConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorContactConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorContactEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorContactEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNVendorContactEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNVendorContactEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorContactEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorContactEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNVendorContactOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField(ctx context.Context, v any) (coredata.VendorContactOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNVendorContactOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNVendorContactOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.VendorContactOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNVendorContactOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNVendorContactOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField = map[string]coredata.VendorContactOrderField{ - "CREATED_AT": coredata.VendorContactOrderFieldCreatedAt, - "FULL_NAME": coredata.VendorContactOrderFieldFullName, - "EMAIL": coredata.VendorContactOrderFieldEmail, - } - marshalNVendorContactOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorContactOrderField = map[coredata.VendorContactOrderField]string{ - coredata.VendorContactOrderFieldCreatedAt: "CREATED_AT", - coredata.VendorContactOrderFieldFullName: "FULL_NAME", - coredata.VendorContactOrderFieldEmail: "EMAIL", - } -) - -func (ec *executionContext) marshalNVendorDataPrivacyAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorDataPrivacyAgreement(ctx context.Context, sel ast.SelectionSet, v *types.VendorDataPrivacyAgreement) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorDataPrivacyAgreement(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNVendorEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNVendorEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNVendorOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorOrderField(ctx context.Context, v any) (coredata.VendorOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNVendorOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNVendorOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.VendorOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNVendorOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNVendorOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorOrderField = map[string]coredata.VendorOrderField{ - "NAME": coredata.VendorOrderFieldName, - "CREATED_AT": coredata.VendorOrderFieldCreatedAt, - "UPDATED_AT": coredata.VendorOrderFieldUpdatedAt, - } - marshalNVendorOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorOrderField = map[coredata.VendorOrderField]string{ - coredata.VendorOrderFieldName: "NAME", - coredata.VendorOrderFieldCreatedAt: "CREATED_AT", - coredata.VendorOrderFieldUpdatedAt: "UPDATED_AT", - } -) - -func (ec *executionContext) marshalNVendorRiskAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessment(ctx context.Context, sel ast.SelectionSet, v *types.VendorRiskAssessment) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorRiskAssessment(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorRiskAssessmentConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorRiskAssessmentConnection) graphql.Marshaler { - return ec._VendorRiskAssessmentConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNVendorRiskAssessmentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorRiskAssessmentConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorRiskAssessmentConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorRiskAssessmentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorRiskAssessmentEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNVendorRiskAssessmentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNVendorRiskAssessmentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorRiskAssessmentEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorRiskAssessmentEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNVendorRiskAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField(ctx context.Context, v any) (coredata.VendorRiskAssessmentOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNVendorRiskAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNVendorRiskAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.VendorRiskAssessmentOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNVendorRiskAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNVendorRiskAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField = map[string]coredata.VendorRiskAssessmentOrderField{ - "CREATED_AT": coredata.VendorRiskAssessmentOrderFieldCreatedAt, - "EXPIRES_AT": coredata.VendorRiskAssessmentOrderFieldExpiresAt, - } - marshalNVendorRiskAssessmentOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorRiskAssessmentOrderField = map[coredata.VendorRiskAssessmentOrderField]string{ - coredata.VendorRiskAssessmentOrderFieldCreatedAt: "CREATED_AT", - coredata.VendorRiskAssessmentOrderFieldExpiresAt: "EXPIRES_AT", - } -) - -func (ec *executionContext) marshalNVendorService2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorService(ctx context.Context, sel ast.SelectionSet, v *types.VendorService) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorService(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorServiceConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorServiceConnection) graphql.Marshaler { - return ec._VendorServiceConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNVendorServiceConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorServiceConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorServiceConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorServiceEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorServiceEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNVendorServiceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNVendorServiceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorServiceEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorServiceEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNVendorServiceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField(ctx context.Context, v any) (coredata.VendorServiceOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNVendorServiceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNVendorServiceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.VendorServiceOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNVendorServiceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNVendorServiceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField = map[string]coredata.VendorServiceOrderField{ - "CREATED_AT": coredata.VendorServiceOrderFieldCreatedAt, - "NAME": coredata.VendorServiceOrderFieldName, - } - marshalNVendorServiceOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorServiceOrderField = map[coredata.VendorServiceOrderField]string{ - coredata.VendorServiceOrderFieldCreatedAt: "CREATED_AT", - coredata.VendorServiceOrderFieldName: "NAME", - } -) - -func (ec *executionContext) marshalNViewer2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐViewer(ctx context.Context, sel ast.SelectionSet, v types.Viewer) graphql.Marshaler { - return ec._Viewer(ctx, sel, &v) -} - -func (ec *executionContext) marshalNViewer2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐViewer(ctx context.Context, sel ast.SelectionSet, v *types.Viewer) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Viewer(ctx, sel, v) -} - -func (ec *executionContext) marshalNWebhookEvent2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEvent(ctx context.Context, sel ast.SelectionSet, v *types.WebhookEvent) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._WebhookEvent(ctx, sel, v) -} - -func (ec *executionContext) marshalNWebhookEventConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEventConnection(ctx context.Context, sel ast.SelectionSet, v types.WebhookEventConnection) graphql.Marshaler { - return ec._WebhookEventConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNWebhookEventConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEventConnection(ctx context.Context, sel ast.SelectionSet, v *types.WebhookEventConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._WebhookEventConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNWebhookEventEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEventEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.WebhookEventEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNWebhookEventEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEventEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNWebhookEventEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEventEdge(ctx context.Context, sel ast.SelectionSet, v *types.WebhookEventEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._WebhookEventEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNWebhookEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventOrderField(ctx context.Context, v any) (coredata.WebhookEventOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNWebhookEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNWebhookEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.WebhookEventOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNWebhookEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNWebhookEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventOrderField = map[string]coredata.WebhookEventOrderField{ - "CREATED_AT": coredata.WebhookEventOrderFieldCreatedAt, - } - marshalNWebhookEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventOrderField = map[coredata.WebhookEventOrderField]string{ - coredata.WebhookEventOrderFieldCreatedAt: "CREATED_AT", - } -) - -func (ec *executionContext) unmarshalNWebhookEventStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventStatus(ctx context.Context, v any) (coredata.WebhookEventStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNWebhookEventStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNWebhookEventStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventStatus(ctx context.Context, sel ast.SelectionSet, v coredata.WebhookEventStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNWebhookEventStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNWebhookEventStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventStatus = map[string]coredata.WebhookEventStatus{ - "PENDING": coredata.WebhookEventStatusPending, - "SUCCEEDED": coredata.WebhookEventStatusSucceeded, - "FAILED": coredata.WebhookEventStatusFailed, - } - marshalNWebhookEventStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventStatus = map[coredata.WebhookEventStatus]string{ - coredata.WebhookEventStatusPending: "PENDING", - coredata.WebhookEventStatusSucceeded: "SUCCEEDED", - coredata.WebhookEventStatusFailed: "FAILED", - } -) - -func (ec *executionContext) unmarshalNWebhookEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventType(ctx context.Context, v any) (coredata.WebhookEventType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNWebhookEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNWebhookEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventType(ctx context.Context, sel ast.SelectionSet, v coredata.WebhookEventType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNWebhookEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNWebhookEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventType = map[string]coredata.WebhookEventType{ - "MEETING_CREATED": coredata.WebhookEventTypeMeetingCreated, - "MEETING_UPDATED": coredata.WebhookEventTypeMeetingUpdated, - "MEETING_DELETED": coredata.WebhookEventTypeMeetingDeleted, - "VENDOR_CREATED": coredata.WebhookEventTypeVendorCreated, - "VENDOR_UPDATED": coredata.WebhookEventTypeVendorUpdated, - "VENDOR_DELETED": coredata.WebhookEventTypeVendorDeleted, - "USER_CREATED": coredata.WebhookEventTypeUserCreated, - "USER_UPDATED": coredata.WebhookEventTypeUserUpdated, - "USER_DELETED": coredata.WebhookEventTypeUserDeleted, - "OBLIGATION_CREATED": coredata.WebhookEventTypeObligationCreated, - "OBLIGATION_UPDATED": coredata.WebhookEventTypeObligationUpdated, - "OBLIGATION_DELETED": coredata.WebhookEventTypeObligationDeleted, - } - marshalNWebhookEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventType = map[coredata.WebhookEventType]string{ - coredata.WebhookEventTypeMeetingCreated: "MEETING_CREATED", - coredata.WebhookEventTypeMeetingUpdated: "MEETING_UPDATED", - coredata.WebhookEventTypeMeetingDeleted: "MEETING_DELETED", - coredata.WebhookEventTypeVendorCreated: "VENDOR_CREATED", - coredata.WebhookEventTypeVendorUpdated: "VENDOR_UPDATED", - coredata.WebhookEventTypeVendorDeleted: "VENDOR_DELETED", - coredata.WebhookEventTypeUserCreated: "USER_CREATED", - coredata.WebhookEventTypeUserUpdated: "USER_UPDATED", - coredata.WebhookEventTypeUserDeleted: "USER_DELETED", - coredata.WebhookEventTypeObligationCreated: "OBLIGATION_CREATED", - coredata.WebhookEventTypeObligationUpdated: "OBLIGATION_UPDATED", - coredata.WebhookEventTypeObligationDeleted: "OBLIGATION_DELETED", - } -) - -func (ec *executionContext) unmarshalNWebhookEventType2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventTypeᚄ(ctx context.Context, v any) ([]coredata.WebhookEventType, error) { - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]coredata.WebhookEventType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNWebhookEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNWebhookEventType2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []coredata.WebhookEventType) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNWebhookEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventType(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNWebhookSubscription2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscription(ctx context.Context, sel ast.SelectionSet, v *types.WebhookSubscription) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._WebhookSubscription(ctx, sel, v) -} - -func (ec *executionContext) marshalNWebhookSubscriptionConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscriptionConnection(ctx context.Context, sel ast.SelectionSet, v types.WebhookSubscriptionConnection) graphql.Marshaler { - return ec._WebhookSubscriptionConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNWebhookSubscriptionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscriptionConnection(ctx context.Context, sel ast.SelectionSet, v *types.WebhookSubscriptionConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._WebhookSubscriptionConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNWebhookSubscriptionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscriptionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.WebhookSubscriptionEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNWebhookSubscriptionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscriptionEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNWebhookSubscriptionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscriptionEdge(ctx context.Context, sel ast.SelectionSet, v *types.WebhookSubscriptionEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._WebhookSubscriptionEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNWebhookSubscriptionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookSubscriptionOrderField(ctx context.Context, v any) (coredata.WebhookSubscriptionOrderField, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNWebhookSubscriptionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookSubscriptionOrderField[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNWebhookSubscriptionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookSubscriptionOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.WebhookSubscriptionOrderField) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNWebhookSubscriptionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookSubscriptionOrderField[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNWebhookSubscriptionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookSubscriptionOrderField = map[string]coredata.WebhookSubscriptionOrderField{ - "CREATED_AT": coredata.WebhookSubscriptionOrderFieldCreatedAt, - } - marshalNWebhookSubscriptionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookSubscriptionOrderField = map[coredata.WebhookSubscriptionOrderField]string{ - coredata.WebhookSubscriptionOrderFieldCreatedAt: "CREATED_AT", - } -) - -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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { - var vSlice []any - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - }) - - 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)) { - graphql.AddErrorf(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 any) (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 { - _ = sel - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalOApplicabilityStatementOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐApplicabilityStatementOrderBy(ctx context.Context, v any) (*types.ApplicabilityStatementOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputApplicabilityStatementOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOAssetFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetFilter(ctx context.Context, v any) (*types.AssetFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputAssetFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOAssetOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAssetOrderBy(ctx context.Context, v any) (*types.AssetOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputAssetOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOAssetType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType(ctx context.Context, v any) (*coredata.AssetType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOAssetType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOAssetType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType(ctx context.Context, sel ast.SelectionSet, v *coredata.AssetType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOAssetType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType[*v]) - return res -} - -var ( - unmarshalOAssetType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType = map[string]coredata.AssetType{ - "PHYSICAL": coredata.AssetTypePhysical, - "VIRTUAL": coredata.AssetTypeVirtual, - } - marshalOAssetType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAssetType = map[coredata.AssetType]string{ - coredata.AssetTypePhysical: "PHYSICAL", - coredata.AssetTypeVirtual: "VIRTUAL", - } -) - -func (ec *executionContext) marshalOAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAudit(ctx context.Context, sel ast.SelectionSet, v *types.Audit) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Audit(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOAuditOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐAuditOrderBy(ctx context.Context, v any) (*types.AuditOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputAuditOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOAuditState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState(ctx context.Context, v any) (*coredata.AuditState, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOAuditState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOAuditState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState(ctx context.Context, sel ast.SelectionSet, v *coredata.AuditState) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOAuditState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState[*v]) - return res -} - -var ( - unmarshalOAuditState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState = map[string]coredata.AuditState{ - "NOT_STARTED": coredata.AuditStateNotStarted, - "IN_PROGRESS": coredata.AuditStateInProgress, - "COMPLETED": coredata.AuditStateCompleted, - "REJECTED": coredata.AuditStateRejected, - "OUTDATED": coredata.AuditStateOutdated, - } - marshalOAuditState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐAuditState = map[coredata.AuditState]string{ - coredata.AuditStateNotStarted: "NOT_STARTED", - coredata.AuditStateInProgress: "IN_PROGRESS", - coredata.AuditStateCompleted: "COMPLETED", - coredata.AuditStateRejected: "REJECTED", - coredata.AuditStateOutdated: "OUTDATED", - } -) - -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (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 { - _ = sel - _ = ctx - res := graphql.MarshalBoolean(v) - return res -} - -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*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 - } - _ = sel - _ = ctx - res := graphql.MarshalBoolean(*v) - return res -} - -func (ec *executionContext) unmarshalOComplianceExternalURLOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy(ctx context.Context, v any) (*types.OrderBy[coredata.ComplianceExternalURLOrderField], error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputComplianceExternalURLOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOComplianceFrameworkOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy(ctx context.Context, v any) (*types.OrderBy[coredata.ComplianceFrameworkOrderField], error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputComplianceFrameworkOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOContinualImprovementFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementFilter(ctx context.Context, v any) (*types.ContinualImprovementFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputContinualImprovementFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOContinualImprovementOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐContinualImprovementOrderBy(ctx context.Context, v any) (*types.ContinualImprovementOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputContinualImprovementOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOContinualImprovementPriority2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority(ctx context.Context, v any) (*coredata.ContinualImprovementPriority, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOContinualImprovementPriority2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOContinualImprovementPriority2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority(ctx context.Context, sel ast.SelectionSet, v *coredata.ContinualImprovementPriority) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOContinualImprovementPriority2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority[*v]) - return res -} - -var ( - unmarshalOContinualImprovementPriority2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority = map[string]coredata.ContinualImprovementPriority{ - "LOW": coredata.ContinualImprovementPriorityLow, - "MEDIUM": coredata.ContinualImprovementPriorityMedium, - "HIGH": coredata.ContinualImprovementPriorityHigh, - } - marshalOContinualImprovementPriority2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementPriority = map[coredata.ContinualImprovementPriority]string{ - coredata.ContinualImprovementPriorityLow: "LOW", - coredata.ContinualImprovementPriorityMedium: "MEDIUM", - coredata.ContinualImprovementPriorityHigh: "HIGH", - } -) - -func (ec *executionContext) unmarshalOContinualImprovementStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus(ctx context.Context, v any) (*coredata.ContinualImprovementStatus, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOContinualImprovementStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOContinualImprovementStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus(ctx context.Context, sel ast.SelectionSet, v *coredata.ContinualImprovementStatus) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOContinualImprovementStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus[*v]) - return res -} - -var ( - unmarshalOContinualImprovementStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus = map[string]coredata.ContinualImprovementStatus{ - "OPEN": coredata.ContinualImprovementStatusOpen, - "IN_PROGRESS": coredata.ContinualImprovementStatusInProgress, - "CLOSED": coredata.ContinualImprovementStatusClosed, - } - marshalOContinualImprovementStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐContinualImprovementStatus = map[coredata.ContinualImprovementStatus]string{ - coredata.ContinualImprovementStatusOpen: "OPEN", - coredata.ContinualImprovementStatusInProgress: "IN_PROGRESS", - coredata.ContinualImprovementStatusClosed: "CLOSED", - } -) - -func (ec *executionContext) unmarshalOControlFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlFilter(ctx context.Context, v any) (*types.ControlFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputControlFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOControlOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐControlOrderBy(ctx context.Context, v any) (*types.ControlOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputControlOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOCountryCode2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCodeᚄ(ctx context.Context, v any) ([]coredata.CountryCode, error) { - if v == nil { - return nil, nil - } - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]coredata.CountryCode, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOCountryCode2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCodeᚄ(ctx context.Context, sel ast.SelectionSet, v []coredata.CountryCode) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (*page.CursorKey, error) { - if v == nil { - return nil, nil - } - res, err := cursor.UnmarshalCursorKeyScalar(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, sel ast.SelectionSet, v *page.CursorKey) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := cursor.MarshalCursorKeyScalar(*v) - return res -} - -func (ec *executionContext) marshalOCustomDomain2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐCustomDomain(ctx context.Context, sel ast.SelectionSet, v *types.CustomDomain) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._CustomDomain(ctx, sel, v) -} - -func (ec *executionContext) unmarshalODataClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx context.Context, v any) (*coredata.DataClassification, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalODataClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODataClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification(ctx context.Context, sel ast.SelectionSet, v *coredata.DataClassification) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalODataClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification[*v]) - return res -} - -var ( - unmarshalODataClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification = map[string]coredata.DataClassification{ - "PUBLIC": coredata.DataClassificationPublic, - "INTERNAL": coredata.DataClassificationInternal, - "CONFIDENTIAL": coredata.DataClassificationConfidential, - "SECRET": coredata.DataClassificationSecret, - } - marshalODataClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataClassification = map[coredata.DataClassification]string{ - coredata.DataClassificationPublic: "PUBLIC", - coredata.DataClassificationInternal: "INTERNAL", - coredata.DataClassificationConfidential: "CONFIDENTIAL", - coredata.DataClassificationSecret: "SECRET", - } -) - -func (ec *executionContext) marshalODataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessment(ctx context.Context, sel ast.SelectionSet, v *types.DataProtectionImpactAssessment) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DataProtectionImpactAssessment(ctx, sel, v) -} - -func (ec *executionContext) unmarshalODataProtectionImpactAssessmentFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentFilter(ctx context.Context, v any) (*types.DataProtectionImpactAssessmentFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputDataProtectionImpactAssessmentFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalODataProtectionImpactAssessmentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDataProtectionImpactAssessmentOrderBy(ctx context.Context, v any) (*types.DataProtectionImpactAssessmentOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputDataProtectionImpactAssessmentOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalODataProtectionImpactAssessmentResidualRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentResidualRisk(ctx context.Context, v any) (*coredata.DataProtectionImpactAssessmentResidualRisk, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalODataProtectionImpactAssessmentResidualRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentResidualRisk[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODataProtectionImpactAssessmentResidualRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentResidualRisk(ctx context.Context, sel ast.SelectionSet, v *coredata.DataProtectionImpactAssessmentResidualRisk) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalODataProtectionImpactAssessmentResidualRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentResidualRisk[*v]) - return res -} - -var ( - unmarshalODataProtectionImpactAssessmentResidualRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentResidualRisk = map[string]coredata.DataProtectionImpactAssessmentResidualRisk{ - "LOW": coredata.DataProtectionImpactAssessmentResidualRiskLow, - "MEDIUM": coredata.DataProtectionImpactAssessmentResidualRiskMedium, - "HIGH": coredata.DataProtectionImpactAssessmentResidualRiskHigh, - } - marshalODataProtectionImpactAssessmentResidualRisk2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDataProtectionImpactAssessmentResidualRisk = map[coredata.DataProtectionImpactAssessmentResidualRisk]string{ - coredata.DataProtectionImpactAssessmentResidualRiskLow: "LOW", - coredata.DataProtectionImpactAssessmentResidualRiskMedium: "MEDIUM", - coredata.DataProtectionImpactAssessmentResidualRiskHigh: "HIGH", - } -) - -func (ec *executionContext) unmarshalODatetime2ᚖtimeᚐTime(ctx context.Context, v any) (*time.Time, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalTime(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODatetime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalTime(*v) - return res -} - -func (ec *executionContext) unmarshalODatumFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumFilter(ctx context.Context, v any) (*types.DatumFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputDatumFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalODatumOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDatumOrderBy(ctx context.Context, v any) (*types.DatumOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputDatumOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocument(ctx context.Context, sel ast.SelectionSet, v *types.Document) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Document(ctx, sel, v) -} - -func (ec *executionContext) unmarshalODocumentClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification(ctx context.Context, v any) (*coredata.DocumentClassification, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalODocumentClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODocumentClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification(ctx context.Context, sel ast.SelectionSet, v *coredata.DocumentClassification) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalODocumentClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification[*v]) - return res -} - -var ( - unmarshalODocumentClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification = map[string]coredata.DocumentClassification{ - "PUBLIC": coredata.DocumentClassificationPublic, - "INTERNAL": coredata.DocumentClassificationInternal, - "CONFIDENTIAL": coredata.DocumentClassificationConfidential, - "SECRET": coredata.DocumentClassificationSecret, - } - marshalODocumentClassification2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentClassification = map[coredata.DocumentClassification]string{ - coredata.DocumentClassificationPublic: "PUBLIC", - coredata.DocumentClassificationInternal: "INTERNAL", - coredata.DocumentClassificationConfidential: "CONFIDENTIAL", - coredata.DocumentClassificationSecret: "SECRET", - } -) - -func (ec *executionContext) unmarshalODocumentFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentFilter(ctx context.Context, v any) (*types.DocumentFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputDocumentFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalODocumentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentOrderBy(ctx context.Context, v any) (*types.DocumentOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputDocumentOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalODocumentStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx context.Context, v any) (*coredata.DocumentStatus, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalODocumentStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODocumentStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus(ctx context.Context, sel ast.SelectionSet, v *coredata.DocumentStatus) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalODocumentStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus[*v]) - return res -} - -var ( - unmarshalODocumentStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus = map[string]coredata.DocumentStatus{ - "DRAFT": coredata.DocumentStatusDraft, - "PUBLISHED": coredata.DocumentStatusPublished, - } - marshalODocumentStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentStatus = map[coredata.DocumentStatus]string{ - coredata.DocumentStatusDraft: "DRAFT", - coredata.DocumentStatusPublished: "PUBLISHED", - } -) - -func (ec *executionContext) unmarshalODocumentType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx context.Context, v any) (*coredata.DocumentType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalODocumentType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODocumentType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v *coredata.DocumentType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalODocumentType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType[*v]) - return res -} - -var ( - unmarshalODocumentType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType = map[string]coredata.DocumentType{ - "OTHER": coredata.DocumentTypeOther, - "ISMS": coredata.DocumentTypeISMS, - "POLICY": coredata.DocumentTypePolicy, - "PROCEDURE": coredata.DocumentTypeProcedure, - } - marshalODocumentType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType = map[coredata.DocumentType]string{ - coredata.DocumentTypeOther: "OTHER", - coredata.DocumentTypeISMS: "ISMS", - coredata.DocumentTypePolicy: "POLICY", - coredata.DocumentTypeProcedure: "PROCEDURE", - } -) - -func (ec *executionContext) unmarshalODocumentVersionFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionFilter(ctx context.Context, v any) (*types.DocumentVersionFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputDocumentVersionFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalODocumentVersionOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionOrderBy(ctx context.Context, v any) (*types.DocumentVersionOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputDocumentVersionOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalODocumentVersionSignatureFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureFilter(ctx context.Context, v any) (*types.DocumentVersionSignatureFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputDocumentVersionSignatureFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalODocumentVersionSignatureOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐDocumentVersionSignatureOrder(ctx context.Context, v any) (*types.DocumentVersionSignatureOrder, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputDocumentVersionSignatureOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalODocumentVersionSignatureState2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureStateᚄ(ctx context.Context, v any) ([]coredata.DocumentVersionSignatureState, error) { - if v == nil { - return nil, nil - } - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]coredata.DocumentVersionSignatureState, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDocumentVersionSignatureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalODocumentVersionSignatureState2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureStateᚄ(ctx context.Context, sel ast.SelectionSet, v []coredata.DocumentVersionSignatureState) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNDocumentVersionSignatureState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentVersionSignatureState(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalODuration2ᚖtimeᚐDuration(ctx context.Context, v any) (*time.Duration, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalDuration(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODuration2ᚖtimeᚐDuration(ctx context.Context, sel ast.SelectionSet, v *time.Duration) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalDuration(*v) - return res -} - -func (ec *executionContext) marshalOElectronicSignature2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐElectronicSignature(ctx context.Context, sel ast.SelectionSet, v *types.ElectronicSignature) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ElectronicSignature(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOEmailAddr2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx context.Context, v any) (*mail.Addr, error) { - if v == nil { - return nil, nil - } - res, err := mail1.UnmarshalAddrScalar(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOEmailAddr2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx context.Context, sel ast.SelectionSet, v *mail.Addr) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := mail1.MarshalAddrScalar(*v) - return res -} - -func (ec *executionContext) unmarshalOEvidenceOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐEvidenceOrderBy(ctx context.Context, v any) (*types.EvidenceOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputEvidenceOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFile(ctx context.Context, sel ast.SelectionSet, v *types.File) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._File(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOFrameworkOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐFrameworkOrderBy(ctx context.Context, v any) (*types.FrameworkOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputFrameworkOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx context.Context, v any) ([]gid.GID, error) { - if v == nil { - return nil, nil - } - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]gid.GID, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOID2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGIDᚄ(ctx context.Context, sel ast.SelectionSet, v []gid.GID) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (*gid.GID, error) { - if v == nil { - return nil, nil - } - res, err := gid1.UnmarshalGIDScalar(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, sel ast.SelectionSet, v *gid.GID) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := gid1.MarshalGIDScalar(*v) - return res -} - -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*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 - } - _ = sel - _ = ctx - res := graphql.MarshalInt(*v) - return res -} - -func (ec *executionContext) marshalOMailingList2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMailingList(ctx context.Context, sel ast.SelectionSet, v *types.MailingList) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._MailingList(ctx, sel, v) -} - -func (ec *executionContext) marshalOMeasure2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasure(ctx context.Context, sel ast.SelectionSet, v *types.Measure) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Measure(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOMeasureFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureFilter(ctx context.Context, v any) (*types.MeasureFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputMeasureFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOMeasureOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeasureOrderBy(ctx context.Context, v any) (*types.MeasureOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputMeasureOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOMeasureState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx context.Context, v any) (*coredata.MeasureState, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOMeasureState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOMeasureState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState(ctx context.Context, sel ast.SelectionSet, v *coredata.MeasureState) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOMeasureState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState[*v]) - return res -} - -var ( - unmarshalOMeasureState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState = map[string]coredata.MeasureState{ - "NOT_STARTED": coredata.MeasureStateNotStarted, - "IN_PROGRESS": coredata.MeasureStateInProgress, - "NOT_APPLICABLE": coredata.MeasureStateNotApplicable, - "IMPLEMENTED": coredata.MeasureStateImplemented, - } - marshalOMeasureState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMeasureState = map[coredata.MeasureState]string{ - coredata.MeasureStateNotStarted: "NOT_STARTED", - coredata.MeasureStateInProgress: "IN_PROGRESS", - coredata.MeasureStateNotApplicable: "NOT_APPLICABLE", - coredata.MeasureStateImplemented: "IMPLEMENTED", - } -) - -func (ec *executionContext) unmarshalOMeetingOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐMeetingOrderBy(ctx context.Context, v any) (*types.MeetingOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputMeetingOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalONonconformityFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityFilter(ctx context.Context, v any) (*types.NonconformityFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputNonconformityFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalONonconformityOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐNonconformityOrderBy(ctx context.Context, v any) (*types.NonconformityOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputNonconformityOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalONonconformityStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus(ctx context.Context, v any) (*coredata.NonconformityStatus, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalONonconformityStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalONonconformityStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus(ctx context.Context, sel ast.SelectionSet, v *coredata.NonconformityStatus) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalONonconformityStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus[*v]) - return res -} - -var ( - unmarshalONonconformityStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus = map[string]coredata.NonconformityStatus{ - "OPEN": coredata.NonconformityStatusOpen, - "IN_PROGRESS": coredata.NonconformityStatusInProgress, - "CLOSED": coredata.NonconformityStatusClosed, - } - marshalONonconformityStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐNonconformityStatus = map[coredata.NonconformityStatus]string{ - coredata.NonconformityStatusOpen: "OPEN", - coredata.NonconformityStatusInProgress: "IN_PROGRESS", - coredata.NonconformityStatusClosed: "CLOSED", - } -) - -func (ec *executionContext) unmarshalOObligationFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationFilter(ctx context.Context, v any) (*types.ObligationFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputObligationFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOObligationOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐObligationOrderBy(ctx context.Context, v any) (*types.ObligationOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputObligationOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOObligationStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus(ctx context.Context, v any) (*coredata.ObligationStatus, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOObligationStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOObligationStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus(ctx context.Context, sel ast.SelectionSet, v *coredata.ObligationStatus) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOObligationStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus[*v]) - return res -} - -var ( - unmarshalOObligationStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus = map[string]coredata.ObligationStatus{ - "NON_COMPLIANT": coredata.ObligationStatusNonCompliant, - "PARTIALLY_COMPLIANT": coredata.ObligationStatusPartiallyCompliant, - "COMPLIANT": coredata.ObligationStatusCompliant, - } - marshalOObligationStatus2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationStatus = map[coredata.ObligationStatus]string{ - coredata.ObligationStatusNonCompliant: "NON_COMPLIANT", - coredata.ObligationStatusPartiallyCompliant: "PARTIALLY_COMPLIANT", - coredata.ObligationStatusCompliant: "COMPLIANT", - } -) - -func (ec *executionContext) unmarshalOObligationType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType(ctx context.Context, v any) (*coredata.ObligationType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOObligationType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOObligationType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType(ctx context.Context, sel ast.SelectionSet, v *coredata.ObligationType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOObligationType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType[*v]) - return res -} - -var ( - unmarshalOObligationType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType = map[string]coredata.ObligationType{ - "LEGAL": coredata.ObligationTypeLegal, - "CONTRACTUAL": coredata.ObligationTypeContractual, - } - marshalOObligationType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐObligationType = map[coredata.ObligationType]string{ - coredata.ObligationTypeLegal: "LEGAL", - coredata.ObligationTypeContractual: "CONTRACTUAL", - } -) - -func (ec *executionContext) marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *types.Organization) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Organization(ctx, sel, v) -} - -func (ec *executionContext) marshalOOrganizationContext2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrganizationContext(ctx context.Context, sel ast.SelectionSet, v *types.OrganizationContext) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._OrganizationContext(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOProcessingActivityDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment(ctx context.Context, v any) (*coredata.ProcessingActivityDataProtectionImpactAssessment, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOProcessingActivityDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOProcessingActivityDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivityDataProtectionImpactAssessment) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOProcessingActivityDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment[*v]) - return res -} - -var ( - unmarshalOProcessingActivityDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment = map[string]coredata.ProcessingActivityDataProtectionImpactAssessment{ - "NEEDED": coredata.ProcessingActivityDataProtectionImpactAssessmentNeeded, - "NOT_NEEDED": coredata.ProcessingActivityDataProtectionImpactAssessmentNotNeeded, - } - marshalOProcessingActivityDataProtectionImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityDataProtectionImpactAssessment = map[coredata.ProcessingActivityDataProtectionImpactAssessment]string{ - coredata.ProcessingActivityDataProtectionImpactAssessmentNeeded: "NEEDED", - coredata.ProcessingActivityDataProtectionImpactAssessmentNotNeeded: "NOT_NEEDED", - } -) - -func (ec *executionContext) unmarshalOProcessingActivityFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityFilter(ctx context.Context, v any) (*types.ProcessingActivityFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputProcessingActivityFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOProcessingActivityLawfulBasis2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis(ctx context.Context, v any) (*coredata.ProcessingActivityLawfulBasis, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOProcessingActivityLawfulBasis2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOProcessingActivityLawfulBasis2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivityLawfulBasis) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOProcessingActivityLawfulBasis2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis[*v]) - return res -} - -var ( - unmarshalOProcessingActivityLawfulBasis2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis = map[string]coredata.ProcessingActivityLawfulBasis{ - "LEGITIMATE_INTEREST": coredata.ProcessingActivityLawfulBasisLegitimateInterest, - "CONSENT": coredata.ProcessingActivityLawfulBasisConsent, - "CONTRACTUAL_NECESSITY": coredata.ProcessingActivityLawfulBasisContractualNecessity, - "LEGAL_OBLIGATION": coredata.ProcessingActivityLawfulBasisLegalObligation, - "VITAL_INTERESTS": coredata.ProcessingActivityLawfulBasisVitalInterests, - "PUBLIC_TASK": coredata.ProcessingActivityLawfulBasisPublicTask, - } - marshalOProcessingActivityLawfulBasis2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityLawfulBasis = map[coredata.ProcessingActivityLawfulBasis]string{ - coredata.ProcessingActivityLawfulBasisLegitimateInterest: "LEGITIMATE_INTEREST", - coredata.ProcessingActivityLawfulBasisConsent: "CONSENT", - coredata.ProcessingActivityLawfulBasisContractualNecessity: "CONTRACTUAL_NECESSITY", - coredata.ProcessingActivityLawfulBasisLegalObligation: "LEGAL_OBLIGATION", - coredata.ProcessingActivityLawfulBasisVitalInterests: "VITAL_INTERESTS", - coredata.ProcessingActivityLawfulBasisPublicTask: "PUBLIC_TASK", - } -) - -func (ec *executionContext) unmarshalOProcessingActivityOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProcessingActivityOrderBy(ctx context.Context, v any) (*types.ProcessingActivityOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputProcessingActivityOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOProcessingActivityRole2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole(ctx context.Context, v any) (*coredata.ProcessingActivityRole, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOProcessingActivityRole2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOProcessingActivityRole2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivityRole) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOProcessingActivityRole2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole[*v]) - return res -} - -var ( - unmarshalOProcessingActivityRole2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole = map[string]coredata.ProcessingActivityRole{ - "CONTROLLER": coredata.ProcessingActivityRoleController, - "PROCESSOR": coredata.ProcessingActivityRoleProcessor, - } - marshalOProcessingActivityRole2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityRole = map[coredata.ProcessingActivityRole]string{ - coredata.ProcessingActivityRoleController: "CONTROLLER", - coredata.ProcessingActivityRoleProcessor: "PROCESSOR", - } -) - -func (ec *executionContext) unmarshalOProcessingActivitySpecialOrCriminalDatum2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum(ctx context.Context, v any) (*coredata.ProcessingActivitySpecialOrCriminalDatum, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOProcessingActivitySpecialOrCriminalDatum2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOProcessingActivitySpecialOrCriminalDatum2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivitySpecialOrCriminalDatum) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOProcessingActivitySpecialOrCriminalDatum2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum[*v]) - return res -} - -var ( - unmarshalOProcessingActivitySpecialOrCriminalDatum2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum = map[string]coredata.ProcessingActivitySpecialOrCriminalDatum{ - "YES": coredata.ProcessingActivitySpecialOrCriminalDatumYes, - "NO": coredata.ProcessingActivitySpecialOrCriminalDatumNo, - "POSSIBLE": coredata.ProcessingActivitySpecialOrCriminalDatumPossible, - } - marshalOProcessingActivitySpecialOrCriminalDatum2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivitySpecialOrCriminalDatum = map[coredata.ProcessingActivitySpecialOrCriminalDatum]string{ - coredata.ProcessingActivitySpecialOrCriminalDatumYes: "YES", - coredata.ProcessingActivitySpecialOrCriminalDatumNo: "NO", - coredata.ProcessingActivitySpecialOrCriminalDatumPossible: "POSSIBLE", - } -) - -func (ec *executionContext) unmarshalOProcessingActivityTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment(ctx context.Context, v any) (*coredata.ProcessingActivityTransferImpactAssessment, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOProcessingActivityTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOProcessingActivityTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivityTransferImpactAssessment) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOProcessingActivityTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment[*v]) - return res -} - -var ( - unmarshalOProcessingActivityTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment = map[string]coredata.ProcessingActivityTransferImpactAssessment{ - "NEEDED": coredata.ProcessingActivityTransferImpactAssessmentNeeded, - "NOT_NEEDED": coredata.ProcessingActivityTransferImpactAssessmentNotNeeded, - } - marshalOProcessingActivityTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferImpactAssessment = map[coredata.ProcessingActivityTransferImpactAssessment]string{ - coredata.ProcessingActivityTransferImpactAssessmentNeeded: "NEEDED", - coredata.ProcessingActivityTransferImpactAssessmentNotNeeded: "NOT_NEEDED", - } -) - -func (ec *executionContext) unmarshalOProcessingActivityTransferSafeguard2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferSafeguard(ctx context.Context, v any) (*coredata.ProcessingActivityTransferSafeguard, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOProcessingActivityTransferSafeguard2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferSafeguard[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOProcessingActivityTransferSafeguard2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferSafeguard(ctx context.Context, sel ast.SelectionSet, v *coredata.ProcessingActivityTransferSafeguard) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOProcessingActivityTransferSafeguard2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferSafeguard[*v]) - return res -} - -var ( - unmarshalOProcessingActivityTransferSafeguard2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferSafeguard = map[string]coredata.ProcessingActivityTransferSafeguard{ - "STANDARD_CONTRACTUAL_CLAUSES": coredata.ProcessingActivityTransferSafeguardStandardContractualClauses, - "BINDING_CORPORATE_RULES": coredata.ProcessingActivityTransferSafeguardBindingCorporateRules, - "ADEQUACY_DECISION": coredata.ProcessingActivityTransferSafeguardAdequacyDecision, - "DEROGATIONS": coredata.ProcessingActivityTransferSafeguardDerogations, - "CODES_OF_CONDUCT": coredata.ProcessingActivityTransferSafeguardCodesOfConduct, - "CERTIFICATION_MECHANISMS": coredata.ProcessingActivityTransferSafeguardCertificationMechanisms, - } - marshalOProcessingActivityTransferSafeguard2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProcessingActivityTransferSafeguard = map[coredata.ProcessingActivityTransferSafeguard]string{ - coredata.ProcessingActivityTransferSafeguardStandardContractualClauses: "STANDARD_CONTRACTUAL_CLAUSES", - coredata.ProcessingActivityTransferSafeguardBindingCorporateRules: "BINDING_CORPORATE_RULES", - coredata.ProcessingActivityTransferSafeguardAdequacyDecision: "ADEQUACY_DECISION", - coredata.ProcessingActivityTransferSafeguardDerogations: "DEROGATIONS", - coredata.ProcessingActivityTransferSafeguardCodesOfConduct: "CODES_OF_CONDUCT", - coredata.ProcessingActivityTransferSafeguardCertificationMechanisms: "CERTIFICATION_MECHANISMS", - } -) - -func (ec *executionContext) marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfile(ctx context.Context, sel ast.SelectionSet, v *types.Profile) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Profile(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOProfileFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileFilter(ctx context.Context, v any) (*types.ProfileFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputProfileFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOProfileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐProfileOrderBy(ctx context.Context, v any) (*types.ProfileOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputProfileOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOReport2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐReport(ctx context.Context, sel ast.SelectionSet, v *types.Report) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Report(ctx, sel, v) -} - -func (ec *executionContext) unmarshalORightsRequestOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRightsRequestOrderBy(ctx context.Context, v any) (*types.RightsRequestOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputRightsRequestOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalORightsRequestState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState(ctx context.Context, v any) (*coredata.RightsRequestState, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalORightsRequestState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalORightsRequestState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState(ctx context.Context, sel ast.SelectionSet, v *coredata.RightsRequestState) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalORightsRequestState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState[*v]) - return res -} - -var ( - unmarshalORightsRequestState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState = map[string]coredata.RightsRequestState{ - "TODO": coredata.RightsRequestStateTodo, - "IN_PROGRESS": coredata.RightsRequestStateInProgress, - "DONE": coredata.RightsRequestStateDone, - } - marshalORightsRequestState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestState = map[coredata.RightsRequestState]string{ - coredata.RightsRequestStateTodo: "TODO", - coredata.RightsRequestStateInProgress: "IN_PROGRESS", - coredata.RightsRequestStateDone: "DONE", - } -) - -func (ec *executionContext) unmarshalORightsRequestType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType(ctx context.Context, v any) (*coredata.RightsRequestType, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalORightsRequestType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalORightsRequestType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType(ctx context.Context, sel ast.SelectionSet, v *coredata.RightsRequestType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalORightsRequestType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType[*v]) - return res -} - -var ( - unmarshalORightsRequestType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType = map[string]coredata.RightsRequestType{ - "ACCESS": coredata.RightsRequestTypeAccess, - "DELETION": coredata.RightsRequestTypeDeletion, - "PORTABILITY": coredata.RightsRequestTypePortability, - } - marshalORightsRequestType2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRightsRequestType = map[coredata.RightsRequestType]string{ - coredata.RightsRequestTypeAccess: "ACCESS", - coredata.RightsRequestTypeDeletion: "DELETION", - coredata.RightsRequestTypePortability: "PORTABILITY", - } -) - -func (ec *executionContext) unmarshalORiskFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskFilter(ctx context.Context, v any) (*types.RiskFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputRiskFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalORiskOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐRiskOrderBy(ctx context.Context, v any) (*types.RiskOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputRiskOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalORiskTreatment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx context.Context, v any) (*coredata.RiskTreatment, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalORiskTreatment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalORiskTreatment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment(ctx context.Context, sel ast.SelectionSet, v *coredata.RiskTreatment) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalORiskTreatment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment[*v]) - return res -} - -var ( - unmarshalORiskTreatment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment = map[string]coredata.RiskTreatment{ - "MITIGATED": coredata.RiskTreatmentMitigated, - "ACCEPTED": coredata.RiskTreatmentAccepted, - "AVOIDED": coredata.RiskTreatmentAvoided, - "TRANSFERRED": coredata.RiskTreatmentTransferred, - } - marshalORiskTreatment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐRiskTreatment = map[coredata.RiskTreatment]string{ - coredata.RiskTreatmentMitigated: "MITIGATED", - coredata.RiskTreatmentAccepted: "ACCEPTED", - coredata.RiskTreatmentAvoided: "AVOIDED", - coredata.RiskTreatmentTransferred: "TRANSFERRED", - } -) - -func (ec *executionContext) marshalOSignableDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSignableDocument(ctx context.Context, sel ast.SelectionSet, v *types.SignableDocument) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SignableDocument(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOSnapshotOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐSnapshotOrderBy(ctx context.Context, v any) (*types.SnapshotOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputSnapshotOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOStateOfApplicabilityFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityFilter(ctx context.Context, v any) (*types.StateOfApplicabilityFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputStateOfApplicabilityFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOStateOfApplicabilityOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐStateOfApplicabilityOrderBy(ctx context.Context, v any) (*types.StateOfApplicabilityOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputStateOfApplicabilityOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { - if v == nil { - return nil, nil - } - var vSlice []any - 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 any) (*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 - } - _ = sel - _ = ctx - res := graphql.MarshalString(*v) - return res -} - -func (ec *executionContext) marshalOTask2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTask(ctx context.Context, sel ast.SelectionSet, v *types.Task) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Task(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOTaskOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTaskOrderBy(ctx context.Context, v any) (*types.TaskOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputTaskOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOTaskState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState(ctx context.Context, v any) (*coredata.TaskState, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOTaskState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTaskState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState(ctx context.Context, sel ast.SelectionSet, v *coredata.TaskState) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOTaskState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState[*v]) - return res -} - -var ( - unmarshalOTaskState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState = map[string]coredata.TaskState{ - "TODO": coredata.TaskStateTodo, - "DONE": coredata.TaskStateDone, - } - marshalOTaskState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTaskState = map[coredata.TaskState]string{ - coredata.TaskStateTodo: "TODO", - coredata.TaskStateDone: "DONE", - } -) - -func (ec *executionContext) marshalOTransferImpactAssessment2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessment(ctx context.Context, sel ast.SelectionSet, v *types.TransferImpactAssessment) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TransferImpactAssessment(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOTransferImpactAssessmentFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentFilter(ctx context.Context, v any) (*types.TransferImpactAssessmentFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputTransferImpactAssessmentFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOTransferImpactAssessmentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTransferImpactAssessmentOrderBy(ctx context.Context, v any) (*types.TransferImpactAssessmentOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputTransferImpactAssessmentOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTrustCenter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenter(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenter) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TrustCenter(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOTrustCenterAccessOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy(ctx context.Context, v any) (*types.OrderBy[coredata.TrustCenterAccessOrderField], error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputTrustCenterAccessOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOTrustCenterAccessState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessState(ctx context.Context, v any) (*coredata.TrustCenterAccessState, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOTrustCenterAccessState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessState[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTrustCenterAccessState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessState(ctx context.Context, sel ast.SelectionSet, v *coredata.TrustCenterAccessState) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOTrustCenterAccessState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessState[*v]) - return res -} - -var ( - unmarshalOTrustCenterAccessState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessState = map[string]coredata.TrustCenterAccessState{ - "ACTIVE": coredata.TrustCenterAccessStateActive, - "INACTIVE": coredata.TrustCenterAccessStateInactive, - } - marshalOTrustCenterAccessState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterAccessState = map[coredata.TrustCenterAccessState]string{ - coredata.TrustCenterAccessStateActive: "ACTIVE", - coredata.TrustCenterAccessStateInactive: "INACTIVE", - } -) - -func (ec *executionContext) unmarshalOTrustCenterDocumentAccessInput2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessInputᚄ(ctx context.Context, v any) ([]*types.TrustCenterDocumentAccessInput, error) { - if v == nil { - return nil, nil - } - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]*types.TrustCenterDocumentAccessInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNTrustCenterDocumentAccessInput2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterDocumentAccessInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalOTrustCenterDocumentAccessOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy(ctx context.Context, v any) (*types.OrderBy[coredata.TrustCenterDocumentAccessOrderField], error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputTrustCenterDocumentAccessOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTrustCenterFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐTrustCenterFile(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterFile) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TrustCenterFile(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOTrustCenterFileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy(ctx context.Context, v any) (*types.OrderBy[coredata.TrustCenterFileOrderField], error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputTrustCenterFileOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOTrustCenterReferenceOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐOrderBy(ctx context.Context, v any) (*types.OrderBy[coredata.TrustCenterReferenceOrderField], error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputTrustCenterReferenceOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility(ctx context.Context, v any) (*coredata.TrustCenterVisibility, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility(ctx context.Context, sel ast.SelectionSet, v *coredata.TrustCenterVisibility) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility[*v]) - return res -} - -var ( - unmarshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility = map[string]coredata.TrustCenterVisibility{ - "NONE": coredata.TrustCenterVisibilityNone, - "PRIVATE": coredata.TrustCenterVisibilityPrivate, - "PUBLIC": coredata.TrustCenterVisibilityPublic, - } - marshalOTrustCenterVisibility2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterVisibility = map[coredata.TrustCenterVisibility]string{ - coredata.TrustCenterVisibilityNone: "NONE", - coredata.TrustCenterVisibilityPrivate: "PRIVATE", - coredata.TrustCenterVisibilityPublic: "PUBLIC", - } -) - -func (ec *executionContext) unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v any) (*graphql.Upload, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalUpload(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v *graphql.Upload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalUpload(*v) - return res -} - -func (ec *executionContext) marshalOVendorBusinessAssociateAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorBusinessAssociateAgreement(ctx context.Context, sel ast.SelectionSet, v *types.VendorBusinessAssociateAgreement) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._VendorBusinessAssociateAgreement(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOVendorCategory2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx context.Context, v any) (*coredata.VendorCategory, error) { - if v == nil { - return nil, nil - } - tmp, err := graphql.UnmarshalString(v) - res := unmarshalOVendorCategory2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory[tmp] - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOVendorCategory2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx context.Context, sel ast.SelectionSet, v *coredata.VendorCategory) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalString(marshalOVendorCategory2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory[*v]) - return res -} - -var ( - unmarshalOVendorCategory2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory = map[string]coredata.VendorCategory{ - "ANALYTICS": coredata.VendorCategoryAnalytics, - "CLOUD_MONITORING": coredata.VendorCategoryCloudMonitoring, - "CLOUD_PROVIDER": coredata.VendorCategoryCloudProvider, - "COLLABORATION": coredata.VendorCategoryCollaboration, - "CUSTOMER_SUPPORT": coredata.VendorCategoryCustomerSupport, - "DATA_STORAGE_AND_PROCESSING": coredata.VendorCategoryDataStorageAndProcessing, - "DOCUMENT_MANAGEMENT": coredata.VendorCategoryDocumentManagement, - "EMPLOYEE_MANAGEMENT": coredata.VendorCategoryEmployeeManagement, - "ENGINEERING": coredata.VendorCategoryEngineering, - "FINANCE": coredata.VendorCategoryFinance, - "IDENTITY_PROVIDER": coredata.VendorCategoryIdentityProvider, - "IT": coredata.VendorCategoryIT, - "MARKETING": coredata.VendorCategoryMarketing, - "OFFICE_OPERATIONS": coredata.VendorCategoryOfficeOperations, - "OTHER": coredata.VendorCategoryOther, - "PASSWORD_MANAGEMENT": coredata.VendorCategoryPasswordManagement, - "PRODUCT_AND_DESIGN": coredata.VendorCategoryProductAndDesign, - "PROFESSIONAL_SERVICES": coredata.VendorCategoryProfessionalServices, - "RECRUITING": coredata.VendorCategoryRecruiting, - "SALES": coredata.VendorCategorySales, - "SECURITY": coredata.VendorCategorySecurity, - "VERSION_CONTROL": coredata.VendorCategoryVersionControl, - } - marshalOVendorCategory2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory = map[coredata.VendorCategory]string{ - coredata.VendorCategoryAnalytics: "ANALYTICS", - coredata.VendorCategoryCloudMonitoring: "CLOUD_MONITORING", - coredata.VendorCategoryCloudProvider: "CLOUD_PROVIDER", - coredata.VendorCategoryCollaboration: "COLLABORATION", - coredata.VendorCategoryCustomerSupport: "CUSTOMER_SUPPORT", - coredata.VendorCategoryDataStorageAndProcessing: "DATA_STORAGE_AND_PROCESSING", - coredata.VendorCategoryDocumentManagement: "DOCUMENT_MANAGEMENT", - coredata.VendorCategoryEmployeeManagement: "EMPLOYEE_MANAGEMENT", - coredata.VendorCategoryEngineering: "ENGINEERING", - coredata.VendorCategoryFinance: "FINANCE", - coredata.VendorCategoryIdentityProvider: "IDENTITY_PROVIDER", - coredata.VendorCategoryIT: "IT", - coredata.VendorCategoryMarketing: "MARKETING", - coredata.VendorCategoryOfficeOperations: "OFFICE_OPERATIONS", - coredata.VendorCategoryOther: "OTHER", - coredata.VendorCategoryPasswordManagement: "PASSWORD_MANAGEMENT", - coredata.VendorCategoryProductAndDesign: "PRODUCT_AND_DESIGN", - coredata.VendorCategoryProfessionalServices: "PROFESSIONAL_SERVICES", - coredata.VendorCategoryRecruiting: "RECRUITING", - coredata.VendorCategorySales: "SALES", - coredata.VendorCategorySecurity: "SECURITY", - coredata.VendorCategoryVersionControl: "VERSION_CONTROL", - } -) - -func (ec *executionContext) unmarshalOVendorComplianceReportOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorComplianceReportOrderBy(ctx context.Context, v any) (*types.VendorComplianceReportOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputVendorComplianceReportOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOVendorContactOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorContactOrderBy(ctx context.Context, v any) (*types.VendorContactOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputVendorContactOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOVendorDataPrivacyAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorDataPrivacyAgreement(ctx context.Context, sel ast.SelectionSet, v *types.VendorDataPrivacyAgreement) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._VendorDataPrivacyAgreement(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOVendorFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorFilter(ctx context.Context, v any) (*types.VendorFilter, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputVendorFilter(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOVendorOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorOrderBy(ctx context.Context, v any) (*types.VendorOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputVendorOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOVendorRiskAssessmentOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorRiskAssessmentOrder(ctx context.Context, v any) (*types.VendorRiskAssessmentOrder, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputVendorRiskAssessmentOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOVendorServiceOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐVendorServiceOrderBy(ctx context.Context, v any) (*types.VendorServiceOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputVendorServiceOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOWebhookEventOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookEventOrderBy(ctx context.Context, v any) (*types.WebhookEventOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputWebhookEventOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOWebhookEventType2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventTypeᚄ(ctx context.Context, v any) ([]coredata.WebhookEventType, error) { - if v == nil { - return nil, nil - } - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]coredata.WebhookEventType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNWebhookEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOWebhookEventType2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []coredata.WebhookEventType) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNWebhookEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐWebhookEventType(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOWebhookSubscriptionOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconsoleᚋv1ᚋtypesᚐWebhookSubscriptionOrderBy(ctx context.Context, v any) (*types.WebhookSubscriptionOrderBy, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputWebhookSubscriptionOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - }) - - 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/server/api/console/v1/types/types.go b/pkg/server/api/console/v1/types/types.go deleted file mode 100644 index 2a543c844..000000000 --- a/pkg/server/api/console/v1/types/types.go +++ /dev/null @@ -1,2830 +0,0 @@ -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package types - -import ( - "time" - - "github.com/99designs/gqlgen/graphql" - "go.probo.inc/probo/pkg/coredata" - "go.probo.inc/probo/pkg/gid" - "go.probo.inc/probo/pkg/mail" - "go.probo.inc/probo/pkg/page" -) - -type Node interface { - IsNode() - GetID() gid.GID -} - -type ApplicabilityStatement struct { - ID gid.GID `json:"id"` - StateOfApplicability *StateOfApplicability `json:"stateOfApplicability"` - Control *Control `json:"control"` - Applicability bool `json:"applicability"` - Justification string `json:"justification"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (ApplicabilityStatement) IsNode() {} -func (this ApplicabilityStatement) GetID() gid.GID { return this.ID } - -type ApplicabilityStatementEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *ApplicabilityStatement `json:"node"` -} - -type ApplicabilityStatementInput struct { - ControlID gid.GID `json:"controlId"` - Applicability bool `json:"applicability"` - Justification *string `json:"justification,omitempty"` -} - -type AssessVendorInput struct { - ID gid.GID `json:"id"` - WebsiteURL string `json:"websiteUrl"` -} - -type AssessVendorPayload struct { - Vendor *Vendor `json:"vendor"` -} - -type Asset struct { - ID gid.GID `json:"id"` - SnapshotID *gid.GID `json:"snapshotId,omitempty"` - Name string `json:"name"` - Amount int `json:"amount"` - Owner *Profile `json:"owner"` - Vendors *VendorConnection `json:"vendors"` - AssetType coredata.AssetType `json:"assetType"` - DataTypesStored string `json:"dataTypesStored"` - Organization *Organization `json:"organization"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Asset) IsNode() {} -func (this Asset) GetID() gid.GID { return this.ID } - -type AssetEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Asset `json:"node"` -} - -type AssetFilter struct { - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type Audit struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Organization *Organization `json:"organization"` - Framework *Framework `json:"framework"` - ValidFrom *time.Time `json:"validFrom,omitempty"` - ValidUntil *time.Time `json:"validUntil,omitempty"` - Report *Report `json:"report,omitempty"` - ReportURL *string `json:"reportUrl,omitempty"` - State coredata.AuditState `json:"state"` - Controls *ControlConnection `json:"controls"` - TrustCenterVisibility coredata.TrustCenterVisibility `json:"trustCenterVisibility"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Audit) IsNode() {} -func (this Audit) GetID() gid.GID { return this.ID } - -type AuditEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Audit `json:"node"` -} - -type BulkDeleteDocumentsInput struct { - DocumentIds []gid.GID `json:"documentIds"` -} - -type BulkDeleteDocumentsPayload struct { - DeletedDocumentIds []gid.GID `json:"deletedDocumentIds"` -} - -type BulkExportDocumentsInput struct { - DocumentIds []gid.GID `json:"documentIds"` - WithWatermark bool `json:"withWatermark"` - WatermarkEmail *mail.Addr `json:"watermarkEmail,omitempty"` - WithSignatures bool `json:"withSignatures"` -} - -type BulkExportDocumentsPayload struct { - ExportJobID gid.GID `json:"exportJobId"` -} - -type BulkPublishDocumentVersionsInput struct { - DocumentIds []gid.GID `json:"documentIds"` - Changelog string `json:"changelog"` -} - -type BulkPublishDocumentVersionsPayload struct { - DocumentVersionEdges []*DocumentVersionEdge `json:"documentVersionEdges"` - DocumentEdges []*DocumentEdge `json:"documentEdges"` -} - -type BulkRequestSignaturesInput struct { - DocumentIds []gid.GID `json:"documentIds"` - SignatoryIds []gid.GID `json:"signatoryIds"` -} - -type BulkRequestSignaturesPayload struct { - DocumentVersionSignatureEdges []*DocumentVersionSignatureEdge `json:"documentVersionSignatureEdges"` -} - -type CancelSignatureRequestInput struct { - DocumentVersionSignatureID gid.GID `json:"documentVersionSignatureId"` -} - -type CancelSignatureRequestPayload struct { - DeletedDocumentVersionSignatureID gid.GID `json:"deletedDocumentVersionSignatureId"` -} - -type ComplianceExternalURL struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - URL string `json:"url"` - Rank int `json:"rank"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (ComplianceExternalURL) IsNode() {} -func (this ComplianceExternalURL) GetID() gid.GID { return this.ID } - -type ComplianceExternalURLEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *ComplianceExternalURL `json:"node"` -} - -type ComplianceFrameworkEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *ComplianceFramework `json:"node"` -} - -type ContinualImprovement struct { - ID gid.GID `json:"id"` - SnapshotID *gid.GID `json:"snapshotId,omitempty"` - SourceID *gid.GID `json:"sourceId,omitempty"` - Organization *Organization `json:"organization"` - ReferenceID string `json:"referenceId"` - Description *string `json:"description,omitempty"` - Source *string `json:"source,omitempty"` - Owner *Profile `json:"owner"` - TargetDate *time.Time `json:"targetDate,omitempty"` - Status coredata.ContinualImprovementStatus `json:"status"` - Priority coredata.ContinualImprovementPriority `json:"priority"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (ContinualImprovement) IsNode() {} -func (this ContinualImprovement) GetID() gid.GID { return this.ID } - -type ContinualImprovementEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *ContinualImprovement `json:"node"` -} - -type ContinualImprovementFilter struct { - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type Control struct { - ID gid.GID `json:"id"` - Organization *Organization `json:"organization,omitempty"` - SectionTitle string `json:"sectionTitle"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - BestPractice bool `json:"bestPractice"` - Regulatory bool `json:"regulatory"` - Contractual bool `json:"contractual"` - RiskAssessment bool `json:"riskAssessment"` - Framework *Framework `json:"framework"` - Measures *MeasureConnection `json:"measures"` - Documents *DocumentConnection `json:"documents"` - Audits *AuditConnection `json:"audits"` - Obligations *ObligationConnection `json:"obligations"` - Snapshots *SnapshotConnection `json:"snapshots"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Control) IsNode() {} -func (this Control) GetID() gid.GID { return this.ID } - -type ControlEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Control `json:"node"` -} - -type ControlFilter struct { - Query *string `json:"query,omitempty"` -} - -type CreateApplicabilityStatementInput struct { - StateOfApplicabilityID gid.GID `json:"stateOfApplicabilityId"` - ControlID gid.GID `json:"controlId"` - Applicability bool `json:"applicability"` - Justification *string `json:"justification,omitempty"` -} - -type CreateApplicabilityStatementPayload struct { - ApplicabilityStatementEdge *ApplicabilityStatementEdge `json:"applicabilityStatementEdge"` -} - -type CreateAssetInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - Amount int `json:"amount"` - OwnerID gid.GID `json:"ownerId"` - AssetType coredata.AssetType `json:"assetType"` - DataTypesStored string `json:"dataTypesStored"` - VendorIds []gid.GID `json:"vendorIds,omitempty"` -} - -type CreateAssetPayload struct { - AssetEdge *AssetEdge `json:"assetEdge"` -} - -type CreateAuditInput struct { - OrganizationID gid.GID `json:"organizationId"` - FrameworkID gid.GID `json:"frameworkId"` - Name *string `json:"name,omitempty"` - ValidFrom *time.Time `json:"validFrom,omitempty"` - ValidUntil *time.Time `json:"validUntil,omitempty"` - State *coredata.AuditState `json:"state,omitempty"` - TrustCenterVisibility *coredata.TrustCenterVisibility `json:"trustCenterVisibility,omitempty"` -} - -type CreateAuditPayload struct { - AuditEdge *AuditEdge `json:"auditEdge"` -} - -type CreateComplianceExternalURLInput struct { - TrustCenterID gid.GID `json:"trustCenterId"` - Name string `json:"name"` - URL string `json:"url"` -} - -type CreateComplianceExternalURLPayload struct { - ComplianceExternalURLEdge *ComplianceExternalURLEdge `json:"complianceExternalUrlEdge"` -} - -type CreateComplianceFrameworkInput struct { - TrustCenterID gid.GID `json:"trustCenterId"` - FrameworkID gid.GID `json:"frameworkId"` -} - -type CreateComplianceFrameworkPayload struct { - ComplianceFrameworkEdge *ComplianceFrameworkEdge `json:"complianceFrameworkEdge"` -} - -type CreateContinualImprovementInput struct { - OrganizationID gid.GID `json:"organizationId"` - ReferenceID string `json:"referenceId"` - Description *string `json:"description,omitempty"` - Source *string `json:"source,omitempty"` - OwnerID gid.GID `json:"ownerId"` - TargetDate *time.Time `json:"targetDate,omitempty"` - Status coredata.ContinualImprovementStatus `json:"status"` - Priority coredata.ContinualImprovementPriority `json:"priority"` -} - -type CreateContinualImprovementPayload struct { - ContinualImprovementEdge *ContinualImprovementEdge `json:"continualImprovementEdge"` -} - -type CreateControlAuditMappingInput struct { - ControlID gid.GID `json:"controlId"` - AuditID gid.GID `json:"auditId"` -} - -type CreateControlAuditMappingPayload struct { - ControlEdge *ControlEdge `json:"controlEdge"` - AuditEdge *AuditEdge `json:"auditEdge"` -} - -type CreateControlDocumentMappingInput struct { - ControlID gid.GID `json:"controlId"` - DocumentID gid.GID `json:"documentId"` -} - -type CreateControlDocumentMappingPayload struct { - ControlEdge *ControlEdge `json:"controlEdge"` - DocumentEdge *DocumentEdge `json:"documentEdge"` -} - -type CreateControlInput struct { - FrameworkID gid.GID `json:"frameworkId"` - SectionTitle string `json:"sectionTitle"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - BestPractice bool `json:"bestPractice"` -} - -type CreateControlMeasureMappingInput struct { - ControlID gid.GID `json:"controlId"` - MeasureID gid.GID `json:"measureId"` -} - -type CreateControlMeasureMappingPayload struct { - ControlEdge *ControlEdge `json:"controlEdge"` - MeasureEdge *MeasureEdge `json:"measureEdge"` -} - -type CreateControlObligationMappingInput struct { - ControlID gid.GID `json:"controlId"` - ObligationID gid.GID `json:"obligationId"` -} - -type CreateControlObligationMappingPayload struct { - ControlEdge *ControlEdge `json:"controlEdge"` - ObligationEdge *ObligationEdge `json:"obligationEdge"` -} - -type CreateControlPayload struct { - ControlEdge *ControlEdge `json:"controlEdge"` -} - -type CreateControlSnapshotMappingInput struct { - ControlID gid.GID `json:"controlId"` - SnapshotID gid.GID `json:"snapshotId"` -} - -type CreateControlSnapshotMappingPayload struct { - ControlEdge *ControlEdge `json:"controlEdge"` - SnapshotEdge *SnapshotEdge `json:"snapshotEdge"` -} - -type CreateCustomDomainInput struct { - OrganizationID gid.GID `json:"organizationId"` - Domain string `json:"domain"` -} - -type CreateCustomDomainPayload struct { - CustomDomain *CustomDomain `json:"customDomain"` -} - -type CreateDataProtectionImpactAssessmentInput struct { - ProcessingActivityID gid.GID `json:"processingActivityId"` - Description *string `json:"description,omitempty"` - NecessityAndProportionality *string `json:"necessityAndProportionality,omitempty"` - PotentialRisk *string `json:"potentialRisk,omitempty"` - Mitigations *string `json:"mitigations,omitempty"` - ResidualRisk *coredata.DataProtectionImpactAssessmentResidualRisk `json:"residualRisk,omitempty"` -} - -type CreateDataProtectionImpactAssessmentPayload struct { - DataProtectionImpactAssessment *DataProtectionImpactAssessment `json:"dataProtectionImpactAssessment"` -} - -type CreateDatumInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - DataClassification coredata.DataClassification `json:"dataClassification"` - OwnerID gid.GID `json:"ownerId"` - VendorIds []gid.GID `json:"vendorIds,omitempty"` -} - -type CreateDatumPayload struct { - DatumEdge *DatumEdge `json:"datumEdge"` -} - -type CreateDocumentInput struct { - OrganizationID gid.GID `json:"organizationId"` - Title string `json:"title"` - Content string `json:"content"` - ApproverIds []gid.GID `json:"approverIds"` - DocumentType coredata.DocumentType `json:"documentType"` - Classification coredata.DocumentClassification `json:"classification"` - TrustCenterVisibility *coredata.TrustCenterVisibility `json:"trustCenterVisibility,omitempty"` -} - -type CreateDocumentPayload struct { - DocumentEdge *DocumentEdge `json:"documentEdge"` - DocumentVersionEdge *DocumentVersionEdge `json:"documentVersionEdge"` -} - -type CreateDraftDocumentVersionInput struct { - DocumentID gid.GID `json:"documentID"` -} - -type CreateDraftDocumentVersionPayload struct { - DocumentVersionEdge *DocumentVersionEdge `json:"documentVersionEdge"` -} - -type CreateFrameworkInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` -} - -type CreateFrameworkPayload struct { - FrameworkEdge *FrameworkEdge `json:"frameworkEdge"` -} - -type CreateMailingListSubscriberInput struct { - MailingListID gid.GID `json:"mailingListId"` - FullName string `json:"fullName"` - Email mail.Addr `json:"email"` -} - -type CreateMailingListSubscriberPayload struct { - MailingListSubscriberEdge *MailingListSubscriberEdge `json:"mailingListSubscriberEdge"` -} - -type CreateMailingListUpdateInput struct { - MailingListID gid.GID `json:"mailingListId"` - Title string `json:"title"` - Body string `json:"body"` -} - -type CreateMailingListUpdatePayload struct { - MailingListUpdate *MailingListUpdate `json:"mailingListUpdate"` -} - -type CreateMeasureInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Category string `json:"category"` -} - -type CreateMeasurePayload struct { - MeasureEdge *MeasureEdge `json:"measureEdge"` -} - -type CreateMeetingInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - Date time.Time `json:"date"` - AttendeeIds []gid.GID `json:"attendeeIds,omitempty"` - Minutes *string `json:"minutes,omitempty"` -} - -type CreateMeetingPayload struct { - MeetingEdge *MeetingEdge `json:"meetingEdge"` -} - -type CreateNonconformityInput struct { - OrganizationID gid.GID `json:"organizationId"` - ReferenceID string `json:"referenceId"` - Description *string `json:"description,omitempty"` - AuditID *gid.GID `json:"auditId,omitempty"` - DateIdentified *time.Time `json:"dateIdentified,omitempty"` - RootCause string `json:"rootCause"` - CorrectiveAction *string `json:"correctiveAction,omitempty"` - OwnerID gid.GID `json:"ownerId"` - DueDate *time.Time `json:"dueDate,omitempty"` - Status coredata.NonconformityStatus `json:"status"` - EffectivenessCheck *string `json:"effectivenessCheck,omitempty"` -} - -type CreateNonconformityPayload struct { - NonconformityEdge *NonconformityEdge `json:"nonconformityEdge"` -} - -type CreateObligationInput struct { - OrganizationID gid.GID `json:"organizationId"` - Area *string `json:"area,omitempty"` - Source *string `json:"source,omitempty"` - Requirement *string `json:"requirement,omitempty"` - ActionsToBeImplemented *string `json:"actionsToBeImplemented,omitempty"` - Regulator *string `json:"regulator,omitempty"` - OwnerID gid.GID `json:"ownerId"` - LastReviewDate *time.Time `json:"lastReviewDate,omitempty"` - DueDate *time.Time `json:"dueDate,omitempty"` - Status coredata.ObligationStatus `json:"status"` - Type coredata.ObligationType `json:"type"` -} - -type CreateObligationPayload struct { - ObligationEdge *ObligationEdge `json:"obligationEdge"` -} - -type CreateProcessingActivityInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - Purpose *string `json:"purpose,omitempty"` - DataSubjectCategory *string `json:"dataSubjectCategory,omitempty"` - PersonalDataCategory *string `json:"personalDataCategory,omitempty"` - SpecialOrCriminalData coredata.ProcessingActivitySpecialOrCriminalDatum `json:"specialOrCriminalData"` - ConsentEvidenceLink *string `json:"consentEvidenceLink,omitempty"` - LawfulBasis coredata.ProcessingActivityLawfulBasis `json:"lawfulBasis"` - Recipients *string `json:"recipients,omitempty"` - Location *string `json:"location,omitempty"` - InternationalTransfers bool `json:"internationalTransfers"` - TransferSafeguards *coredata.ProcessingActivityTransferSafeguard `json:"transferSafeguards,omitempty"` - RetentionPeriod *string `json:"retentionPeriod,omitempty"` - SecurityMeasures *string `json:"securityMeasures,omitempty"` - DataProtectionImpactAssessmentNeeded coredata.ProcessingActivityDataProtectionImpactAssessment `json:"dataProtectionImpactAssessmentNeeded"` - TransferImpactAssessmentNeeded coredata.ProcessingActivityTransferImpactAssessment `json:"transferImpactAssessmentNeeded"` - LastReviewDate *time.Time `json:"lastReviewDate,omitempty"` - NextReviewDate *time.Time `json:"nextReviewDate,omitempty"` - Role coredata.ProcessingActivityRole `json:"role"` - DataProtectionOfficerID *gid.GID `json:"dataProtectionOfficerId,omitempty"` - VendorIds []gid.GID `json:"vendorIds,omitempty"` -} - -type CreateProcessingActivityPayload struct { - ProcessingActivityEdge *ProcessingActivityEdge `json:"processingActivityEdge"` -} - -type CreateRightsRequestInput struct { - OrganizationID gid.GID `json:"organizationId"` - RequestType coredata.RightsRequestType `json:"requestType"` - RequestState coredata.RightsRequestState `json:"requestState"` - DataSubject *string `json:"dataSubject,omitempty"` - Contact *string `json:"contact,omitempty"` - Details *string `json:"details,omitempty"` - Deadline *time.Time `json:"deadline,omitempty"` - ActionTaken *string `json:"actionTaken,omitempty"` -} - -type CreateRightsRequestPayload struct { - RightsRequestEdge *RightsRequestEdge `json:"rightsRequestEdge"` -} - -type CreateRiskDocumentMappingInput struct { - RiskID gid.GID `json:"riskId"` - DocumentID gid.GID `json:"documentId"` -} - -type CreateRiskDocumentMappingPayload struct { - RiskEdge *RiskEdge `json:"riskEdge"` - DocumentEdge *DocumentEdge `json:"documentEdge"` -} - -type CreateRiskInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Category string `json:"category"` - OwnerID *gid.GID `json:"ownerId,omitempty"` - Treatment coredata.RiskTreatment `json:"treatment"` - InherentLikelihood int `json:"inherentLikelihood"` - InherentImpact int `json:"inherentImpact"` - ResidualLikelihood *int `json:"residualLikelihood,omitempty"` - ResidualImpact *int `json:"residualImpact,omitempty"` - Note *string `json:"note,omitempty"` -} - -type CreateRiskMeasureMappingInput struct { - RiskID gid.GID `json:"riskId"` - MeasureID gid.GID `json:"measureId"` -} - -type CreateRiskMeasureMappingPayload struct { - RiskEdge *RiskEdge `json:"riskEdge"` - MeasureEdge *MeasureEdge `json:"measureEdge"` -} - -type CreateRiskObligationMappingInput struct { - RiskID gid.GID `json:"riskId"` - ObligationID gid.GID `json:"obligationId"` -} - -type CreateRiskObligationMappingPayload struct { - RiskEdge *RiskEdge `json:"riskEdge"` - ObligationEdge *ObligationEdge `json:"obligationEdge"` -} - -type CreateRiskPayload struct { - RiskEdge *RiskEdge `json:"riskEdge"` -} - -type CreateSnapshotInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Type coredata.SnapshotsType `json:"type"` -} - -type CreateSnapshotPayload struct { - SnapshotEdge *SnapshotEdge `json:"snapshotEdge"` -} - -type CreateStateOfApplicabilityInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - OwnerID gid.GID `json:"ownerId"` -} - -type CreateStateOfApplicabilityPayload struct { - StateOfApplicabilityEdge *StateOfApplicabilityEdge `json:"stateOfApplicabilityEdge"` -} - -type CreateTaskInput struct { - OrganizationID gid.GID `json:"organizationId"` - MeasureID *gid.GID `json:"measureId,omitempty"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - TimeEstimate *time.Duration `json:"timeEstimate,omitempty"` - AssignedToID *gid.GID `json:"assignedToId,omitempty"` - Deadline *time.Time `json:"deadline,omitempty"` -} - -type CreateTaskPayload struct { - TaskEdge *TaskEdge `json:"taskEdge"` -} - -type CreateTransferImpactAssessmentInput struct { - ProcessingActivityID gid.GID `json:"processingActivityId"` - DataSubjects *string `json:"dataSubjects,omitempty"` - LegalMechanism *string `json:"legalMechanism,omitempty"` - Transfer *string `json:"transfer,omitempty"` - LocalLawRisk *string `json:"localLawRisk,omitempty"` - SupplementaryMeasures *string `json:"supplementaryMeasures,omitempty"` -} - -type CreateTransferImpactAssessmentPayload struct { - TransferImpactAssessment *TransferImpactAssessment `json:"transferImpactAssessment"` -} - -type CreateTrustCenterFileInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - Category string `json:"category"` - File graphql.Upload `json:"file"` - TrustCenterVisibility coredata.TrustCenterVisibility `json:"trustCenterVisibility"` -} - -type CreateTrustCenterFilePayload struct { - TrustCenterFileEdge *TrustCenterFileEdge `json:"trustCenterFileEdge"` -} - -type CreateTrustCenterReferenceInput struct { - TrustCenterID gid.GID `json:"trustCenterId"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - WebsiteURL string `json:"websiteUrl"` - LogoFile graphql.Upload `json:"logoFile"` -} - -type CreateTrustCenterReferencePayload struct { - TrustCenterReferenceEdge *TrustCenterReferenceEdge `json:"trustCenterReferenceEdge"` -} - -type CreateVendorContactInput struct { - VendorID gid.GID `json:"vendorId"` - FullName *string `json:"fullName,omitempty"` - Email *mail.Addr `json:"email,omitempty"` - Phone *string `json:"phone,omitempty"` - Role *string `json:"role,omitempty"` -} - -type CreateVendorContactPayload struct { - VendorContactEdge *VendorContactEdge `json:"vendorContactEdge"` -} - -type CreateVendorInput struct { - OrganizationID gid.GID `json:"organizationId"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - HeadquarterAddress *string `json:"headquarterAddress,omitempty"` - LegalName *string `json:"legalName,omitempty"` - WebsiteURL *string `json:"websiteUrl,omitempty"` - PrivacyPolicyURL *string `json:"privacyPolicyUrl,omitempty"` - Category *coredata.VendorCategory `json:"category,omitempty"` - ServiceLevelAgreementURL *string `json:"serviceLevelAgreementUrl,omitempty"` - DataProcessingAgreementURL *string `json:"dataProcessingAgreementUrl,omitempty"` - BusinessAssociateAgreementURL *string `json:"businessAssociateAgreementUrl,omitempty"` - SubprocessorsListURL *string `json:"subprocessorsListUrl,omitempty"` - Certifications []string `json:"certifications,omitempty"` - Countries []coredata.CountryCode `json:"countries,omitempty"` - SecurityPageURL *string `json:"securityPageUrl,omitempty"` - TrustPageURL *string `json:"trustPageUrl,omitempty"` - StatusPageURL *string `json:"statusPageUrl,omitempty"` - TermsOfServiceURL *string `json:"termsOfServiceUrl,omitempty"` - BusinessOwnerID *gid.GID `json:"businessOwnerId,omitempty"` - SecurityOwnerID *gid.GID `json:"securityOwnerId,omitempty"` -} - -type CreateVendorPayload struct { - VendorEdge *VendorEdge `json:"vendorEdge"` -} - -type CreateVendorRiskAssessmentInput struct { - VendorID gid.GID `json:"vendorId"` - ExpiresAt time.Time `json:"expiresAt"` - DataSensitivity coredata.DataSensitivity `json:"dataSensitivity"` - BusinessImpact coredata.BusinessImpact `json:"businessImpact"` - Notes *string `json:"notes,omitempty"` -} - -type CreateVendorRiskAssessmentPayload struct { - VendorRiskAssessmentEdge *VendorRiskAssessmentEdge `json:"vendorRiskAssessmentEdge"` -} - -type CreateVendorServiceInput struct { - VendorID gid.GID `json:"vendorId"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - URL *string `json:"url,omitempty"` - Type *string `json:"type,omitempty"` -} - -type CreateVendorServicePayload struct { - VendorServiceEdge *VendorServiceEdge `json:"vendorServiceEdge"` -} - -type CreateWebhookSubscriptionInput struct { - OrganizationID gid.GID `json:"organizationId"` - EndpointURL string `json:"endpointUrl"` - SelectedEvents []coredata.WebhookEventType `json:"selectedEvents"` -} - -type CreateWebhookSubscriptionPayload struct { - WebhookSubscriptionEdge *WebhookSubscriptionEdge `json:"webhookSubscriptionEdge"` -} - -type CustomDomain struct { - ID gid.GID `json:"id"` - Organization *Organization `json:"organization"` - Domain string `json:"domain"` - SslStatus coredata.CustomDomainSSLStatus `json:"sslStatus"` - SslExpiresAt *time.Time `json:"sslExpiresAt,omitempty"` - DNSRecords []*DNSRecordInstruction `json:"dnsRecords"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (CustomDomain) IsNode() {} -func (this CustomDomain) GetID() gid.GID { return this.ID } - -type DNSRecordInstruction struct { - Type string `json:"type"` - Name string `json:"name"` - Value string `json:"value"` - TTL int `json:"ttl"` - Purpose string `json:"purpose"` -} - -type DataProtectionImpactAssessment struct { - ID gid.GID `json:"id"` - ProcessingActivity *ProcessingActivity `json:"processingActivity"` - Organization *Organization `json:"organization"` - Description *string `json:"description,omitempty"` - NecessityAndProportionality *string `json:"necessityAndProportionality,omitempty"` - PotentialRisk *string `json:"potentialRisk,omitempty"` - Mitigations *string `json:"mitigations,omitempty"` - ResidualRisk *coredata.DataProtectionImpactAssessmentResidualRisk `json:"residualRisk,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (DataProtectionImpactAssessment) IsNode() {} -func (this DataProtectionImpactAssessment) GetID() gid.GID { return this.ID } - -type DataProtectionImpactAssessmentEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *DataProtectionImpactAssessment `json:"node"` -} - -type DataProtectionImpactAssessmentFilter struct { - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type DatumEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Datum `json:"node"` -} - -type DatumFilter struct { - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type DeleteApplicabilityStatementInput struct { - ApplicabilityStatementID gid.GID `json:"applicabilityStatementId"` -} - -type DeleteApplicabilityStatementPayload struct { - DeletedApplicabilityStatementID gid.GID `json:"deletedApplicabilityStatementId"` -} - -type DeleteAssetInput struct { - AssetID gid.GID `json:"assetId"` -} - -type DeleteAssetPayload struct { - DeletedAssetID gid.GID `json:"deletedAssetId"` -} - -type DeleteAuditInput struct { - AuditID gid.GID `json:"auditId"` -} - -type DeleteAuditPayload struct { - DeletedAuditID gid.GID `json:"deletedAuditId"` -} - -type DeleteAuditReportInput struct { - AuditID gid.GID `json:"auditId"` -} - -type DeleteAuditReportPayload struct { - Audit *Audit `json:"audit"` -} - -type DeleteComplianceExternalURLInput struct { - ID gid.GID `json:"id"` -} - -type DeleteComplianceExternalURLPayload struct { - DeletedComplianceExternalURLID gid.GID `json:"deletedComplianceExternalUrlId"` -} - -type DeleteComplianceFrameworkInput struct { - ID gid.GID `json:"id"` -} - -type DeleteComplianceFrameworkPayload struct { - DeletedComplianceFrameworkID gid.GID `json:"deletedComplianceFrameworkId"` -} - -type DeleteContinualImprovementInput struct { - ContinualImprovementID gid.GID `json:"continualImprovementId"` -} - -type DeleteContinualImprovementPayload struct { - DeletedContinualImprovementID gid.GID `json:"deletedContinualImprovementId"` -} - -type DeleteControlAuditMappingInput struct { - ControlID gid.GID `json:"controlId"` - AuditID gid.GID `json:"auditId"` -} - -type DeleteControlAuditMappingPayload struct { - DeletedControlID gid.GID `json:"deletedControlId"` - DeletedAuditID gid.GID `json:"deletedAuditId"` -} - -type DeleteControlDocumentMappingInput struct { - ControlID gid.GID `json:"controlId"` - DocumentID gid.GID `json:"documentId"` -} - -type DeleteControlDocumentMappingPayload struct { - DeletedControlID gid.GID `json:"deletedControlId"` - DeletedDocumentID gid.GID `json:"deletedDocumentId"` -} - -type DeleteControlInput struct { - ControlID gid.GID `json:"controlId"` -} - -type DeleteControlMeasureMappingInput struct { - ControlID gid.GID `json:"controlId"` - MeasureID gid.GID `json:"measureId"` -} - -type DeleteControlMeasureMappingPayload struct { - DeletedControlID gid.GID `json:"deletedControlId"` - DeletedMeasureID gid.GID `json:"deletedMeasureId"` -} - -type DeleteControlObligationMappingInput struct { - ControlID gid.GID `json:"controlId"` - ObligationID gid.GID `json:"obligationId"` -} - -type DeleteControlObligationMappingPayload struct { - DeletedControlID gid.GID `json:"deletedControlId"` - DeletedObligationID gid.GID `json:"deletedObligationId"` -} - -type DeleteControlPayload struct { - DeletedControlID gid.GID `json:"deletedControlId"` -} - -type DeleteControlSnapshotMappingInput struct { - ControlID gid.GID `json:"controlId"` - SnapshotID gid.GID `json:"snapshotId"` -} - -type DeleteControlSnapshotMappingPayload struct { - DeletedControlID gid.GID `json:"deletedControlId"` - DeletedSnapshotID gid.GID `json:"deletedSnapshotId"` -} - -type DeleteCustomDomainInput struct { - OrganizationID gid.GID `json:"organizationId"` -} - -type DeleteCustomDomainPayload struct { - DeletedCustomDomainID gid.GID `json:"deletedCustomDomainId"` -} - -type DeleteDataProtectionImpactAssessmentInput struct { - DataProtectionImpactAssessmentID gid.GID `json:"dataProtectionImpactAssessmentId"` -} - -type DeleteDataProtectionImpactAssessmentPayload struct { - DeletedDataProtectionImpactAssessmentID gid.GID `json:"deletedDataProtectionImpactAssessmentId"` -} - -type DeleteDatumInput struct { - DatumID gid.GID `json:"datumId"` -} - -type DeleteDatumPayload struct { - DeletedDatumID gid.GID `json:"deletedDatumId"` -} - -type DeleteDocumentInput struct { - DocumentID gid.GID `json:"documentId"` -} - -type DeleteDocumentPayload struct { - DeletedDocumentID gid.GID `json:"deletedDocumentId"` -} - -type DeleteDraftDocumentVersionInput struct { - DocumentVersionID gid.GID `json:"documentVersionId"` -} - -type DeleteDraftDocumentVersionPayload struct { - DeletedDocumentVersionID gid.GID `json:"deletedDocumentVersionId"` -} - -type DeleteEvidenceInput struct { - EvidenceID gid.GID `json:"evidenceId"` -} - -type DeleteEvidencePayload struct { - DeletedEvidenceID gid.GID `json:"deletedEvidenceId"` -} - -type DeleteFrameworkInput struct { - FrameworkID gid.GID `json:"frameworkId"` -} - -type DeleteFrameworkPayload struct { - DeletedFrameworkID gid.GID `json:"deletedFrameworkId"` -} - -type DeleteMailingListSubscriberInput struct { - ID gid.GID `json:"id"` -} - -type DeleteMailingListSubscriberPayload struct { - DeletedMailingListSubscriberID gid.GID `json:"deletedMailingListSubscriberId"` -} - -type DeleteMailingListUpdateInput struct { - ID gid.GID `json:"id"` -} - -type DeleteMailingListUpdatePayload struct { - DeletedMailingListUpdateID gid.GID `json:"deletedMailingListUpdateId"` -} - -type DeleteMeasureInput struct { - MeasureID gid.GID `json:"measureId"` -} - -type DeleteMeasurePayload struct { - DeletedMeasureID gid.GID `json:"deletedMeasureId"` -} - -type DeleteMeetingInput struct { - MeetingID gid.GID `json:"meetingId"` -} - -type DeleteMeetingPayload struct { - DeletedMeetingID gid.GID `json:"deletedMeetingId"` -} - -type DeleteNonconformityInput struct { - NonconformityID gid.GID `json:"nonconformityId"` -} - -type DeleteNonconformityPayload struct { - DeletedNonconformityID gid.GID `json:"deletedNonconformityId"` -} - -type DeleteObligationInput struct { - ObligationID gid.GID `json:"obligationId"` -} - -type DeleteObligationPayload struct { - DeletedObligationID gid.GID `json:"deletedObligationId"` -} - -type DeleteProcessingActivityInput struct { - ProcessingActivityID gid.GID `json:"processingActivityId"` -} - -type DeleteProcessingActivityPayload struct { - DeletedProcessingActivityID gid.GID `json:"deletedProcessingActivityId"` -} - -type DeleteRightsRequestInput struct { - RightsRequestID gid.GID `json:"rightsRequestId"` -} - -type DeleteRightsRequestPayload struct { - DeletedRightsRequestID gid.GID `json:"deletedRightsRequestId"` -} - -type DeleteRiskDocumentMappingInput struct { - RiskID gid.GID `json:"riskId"` - DocumentID gid.GID `json:"documentId"` -} - -type DeleteRiskDocumentMappingPayload struct { - DeletedRiskID gid.GID `json:"deletedRiskId"` - DeletedDocumentID gid.GID `json:"deletedDocumentId"` -} - -type DeleteRiskInput struct { - RiskID gid.GID `json:"riskId"` -} - -type DeleteRiskMeasureMappingInput struct { - RiskID gid.GID `json:"riskId"` - MeasureID gid.GID `json:"measureId"` -} - -type DeleteRiskMeasureMappingPayload struct { - DeletedMeasureID gid.GID `json:"deletedMeasureId"` - DeletedRiskID gid.GID `json:"deletedRiskId"` -} - -type DeleteRiskObligationMappingInput struct { - RiskID gid.GID `json:"riskId"` - ObligationID gid.GID `json:"obligationId"` -} - -type DeleteRiskObligationMappingPayload struct { - DeletedRiskID gid.GID `json:"deletedRiskId"` - DeletedObligationID gid.GID `json:"deletedObligationId"` -} - -type DeleteRiskPayload struct { - DeletedRiskID gid.GID `json:"deletedRiskId"` -} - -type DeleteSnapshotInput struct { - SnapshotID gid.GID `json:"snapshotId"` -} - -type DeleteSnapshotPayload struct { - DeletedSnapshotID gid.GID `json:"deletedSnapshotId"` -} - -type DeleteStateOfApplicabilityInput struct { - StateOfApplicabilityID gid.GID `json:"stateOfApplicabilityId"` -} - -type DeleteStateOfApplicabilityPayload struct { - DeletedStateOfApplicabilityID gid.GID `json:"deletedStateOfApplicabilityId"` -} - -type DeleteTaskInput struct { - TaskID gid.GID `json:"taskId"` -} - -type DeleteTaskPayload struct { - DeletedTaskID gid.GID `json:"deletedTaskId"` -} - -type DeleteTransferImpactAssessmentInput struct { - TransferImpactAssessmentID gid.GID `json:"transferImpactAssessmentId"` -} - -type DeleteTransferImpactAssessmentPayload struct { - DeletedTransferImpactAssessmentID gid.GID `json:"deletedTransferImpactAssessmentId"` -} - -type DeleteTrustCenterAccessInput struct { - ID gid.GID `json:"id"` -} - -type DeleteTrustCenterAccessPayload struct { - DeletedTrustCenterAccessID gid.GID `json:"deletedTrustCenterAccessId"` -} - -type DeleteTrustCenterFileInput struct { - ID gid.GID `json:"id"` -} - -type DeleteTrustCenterFilePayload struct { - DeletedTrustCenterFileID gid.GID `json:"deletedTrustCenterFileId"` -} - -type DeleteTrustCenterNDAInput struct { - TrustCenterID gid.GID `json:"trustCenterId"` -} - -type DeleteTrustCenterNDAPayload struct { - TrustCenter *TrustCenter `json:"trustCenter"` -} - -type DeleteTrustCenterReferenceInput struct { - ID gid.GID `json:"id"` -} - -type DeleteTrustCenterReferencePayload struct { - DeletedTrustCenterReferenceID gid.GID `json:"deletedTrustCenterReferenceId"` -} - -type DeleteVendorBusinessAssociateAgreementInput struct { - VendorID gid.GID `json:"vendorId"` -} - -type DeleteVendorBusinessAssociateAgreementPayload struct { - DeletedVendorID gid.GID `json:"deletedVendorId"` -} - -type DeleteVendorComplianceReportInput struct { - ReportID gid.GID `json:"reportId"` -} - -type DeleteVendorComplianceReportPayload struct { - DeletedVendorComplianceReportID gid.GID `json:"deletedVendorComplianceReportId"` -} - -type DeleteVendorContactInput struct { - VendorContactID gid.GID `json:"vendorContactId"` -} - -type DeleteVendorContactPayload struct { - DeletedVendorContactID gid.GID `json:"deletedVendorContactId"` -} - -type DeleteVendorDataPrivacyAgreementInput struct { - VendorID gid.GID `json:"vendorId"` -} - -type DeleteVendorDataPrivacyAgreementPayload struct { - DeletedVendorID gid.GID `json:"deletedVendorId"` -} - -type DeleteVendorInput struct { - VendorID gid.GID `json:"vendorId"` -} - -type DeleteVendorPayload struct { - DeletedVendorID gid.GID `json:"deletedVendorId"` -} - -type DeleteVendorServiceInput struct { - VendorServiceID gid.GID `json:"vendorServiceId"` -} - -type DeleteVendorServicePayload struct { - DeletedVendorServiceID gid.GID `json:"deletedVendorServiceId"` -} - -type DeleteWebhookSubscriptionInput struct { - WebhookSubscriptionID gid.GID `json:"webhookSubscriptionId"` -} - -type DeleteWebhookSubscriptionPayload struct { - DeletedWebhookSubscriptionID gid.GID `json:"deletedWebhookSubscriptionId"` -} - -type Document struct { - ID gid.GID `json:"id"` - Title string `json:"title"` - Description *string `json:"description,omitempty"` - DocumentType coredata.DocumentType `json:"documentType"` - Classification coredata.DocumentClassification `json:"classification"` - CurrentPublishedVersion *int `json:"currentPublishedVersion,omitempty"` - TrustCenterVisibility coredata.TrustCenterVisibility `json:"trustCenterVisibility"` - Approvers *ProfileConnection `json:"approvers"` - Organization *Organization `json:"organization"` - Versions *DocumentVersionConnection `json:"versions"` - Controls *ControlConnection `json:"controls"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Document) IsNode() {} -func (this Document) GetID() gid.GID { return this.ID } - -type DocumentEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Document `json:"node"` -} - -type DocumentFilter struct { - Query *string `json:"query,omitempty"` -} - -type DocumentVersion struct { - ID gid.GID `json:"id"` - Document *Document `json:"document"` - Status coredata.DocumentStatus `json:"status"` - Version int `json:"version"` - Content string `json:"content"` - Changelog string `json:"changelog"` - Title string `json:"title"` - Classification coredata.DocumentClassification `json:"classification"` - Approvers *ProfileConnection `json:"approvers"` - Signatures *DocumentVersionSignatureConnection `json:"signatures"` - Signed bool `json:"signed"` - PublishedAt *time.Time `json:"publishedAt,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (DocumentVersion) IsNode() {} -func (this DocumentVersion) GetID() gid.GID { return this.ID } - -type DocumentVersionEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *DocumentVersion `json:"node"` -} - -type DocumentVersionFilter struct { - Status *coredata.DocumentStatus `json:"status,omitempty"` -} - -type DocumentVersionSignature struct { - ID gid.GID `json:"id"` - DocumentVersion *DocumentVersion `json:"documentVersion"` - State coredata.DocumentVersionSignatureState `json:"state"` - SignedBy *Profile `json:"signedBy"` - SignedAt *time.Time `json:"signedAt,omitempty"` - RequestedAt time.Time `json:"requestedAt"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (DocumentVersionSignature) IsNode() {} -func (this DocumentVersionSignature) GetID() gid.GID { return this.ID } - -type DocumentVersionSignatureEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *DocumentVersionSignature `json:"node"` -} - -type DocumentVersionSignatureFilter struct { - States []coredata.DocumentVersionSignatureState `json:"states,omitempty"` - ActiveContract *bool `json:"activeContract,omitempty"` -} - -type DocumentVersionSignatureOrder struct { - Field coredata.DocumentVersionSignatureOrderField `json:"field"` - Direction page.OrderDirection `json:"direction"` -} - -type ElectronicSignature struct { - ID gid.GID `json:"id"` - Status coredata.ElectronicSignatureStatus `json:"status"` - DocumentType coredata.ElectronicSignatureDocumentType `json:"documentType"` - ConsentText string `json:"consentText"` - LastError *string `json:"lastError,omitempty"` - SignedAt *time.Time `json:"signedAt,omitempty"` - CertificateFileURL *string `json:"certificateFileUrl,omitempty"` - Events []*ElectronicSignatureEvent `json:"events"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` -} - -func (ElectronicSignature) IsNode() {} -func (this ElectronicSignature) GetID() gid.GID { return this.ID } - -type ElectronicSignatureEvent struct { - ID gid.GID `json:"id"` - EventType coredata.ElectronicSignatureEventType `json:"eventType"` - EventSource coredata.ElectronicSignatureEventSource `json:"eventSource"` - ActorEmail string `json:"actorEmail"` - ActorIPAddress string `json:"actorIpAddress"` - ActorUserAgent string `json:"actorUserAgent"` - OccurredAt time.Time `json:"occurredAt"` - CreatedAt time.Time `json:"createdAt"` -} - -type Evidence struct { - ID gid.GID `json:"id"` - Size int `json:"size"` - State coredata.EvidenceState `json:"state"` - Type coredata.EvidenceType `json:"type"` - File *File `json:"file,omitempty"` - URL *string `json:"url,omitempty"` - Description *string `json:"description,omitempty"` - Task *Task `json:"task,omitempty"` - Measure *Measure `json:"measure"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Evidence) IsNode() {} -func (this Evidence) GetID() gid.GID { return this.ID } - -type EvidenceEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Evidence `json:"node"` -} - -type ExportDataProtectionImpactAssessmentsPDFInput struct { - OrganizationID gid.GID `json:"organizationId"` - Filter *DataProtectionImpactAssessmentFilter `json:"filter,omitempty"` -} - -type ExportDataProtectionImpactAssessmentsPDFPayload struct { - Data string `json:"data"` -} - -type ExportDocumentVersionPDFInput struct { - DocumentVersionID gid.GID `json:"documentVersionId"` - WithWatermark bool `json:"withWatermark"` - WatermarkEmail *mail.Addr `json:"watermarkEmail,omitempty"` - WithSignatures bool `json:"withSignatures"` -} - -type ExportDocumentVersionPDFPayload struct { - Data string `json:"data"` -} - -type ExportFrameworkInput struct { - FrameworkID gid.GID `json:"frameworkId"` -} - -type ExportFrameworkPayload struct { - ExportJobID gid.GID `json:"exportJobId"` -} - -type ExportProcessingActivitiesPDFInput struct { - OrganizationID gid.GID `json:"organizationId"` - Filter *ProcessingActivityFilter `json:"filter,omitempty"` -} - -type ExportProcessingActivitiesPDFPayload struct { - Data string `json:"data"` -} - -type ExportSignableDocumentVersionPDFInput struct { - DocumentVersionID gid.GID `json:"documentVersionId"` -} - -type ExportSignableDocumentVersionPDFPayload struct { - Data string `json:"data"` -} - -type ExportStateOfApplicabilityPDFInput struct { - StateOfApplicabilityID gid.GID `json:"stateOfApplicabilityId"` -} - -type ExportStateOfApplicabilityPDFPayload struct { - Data string `json:"data"` -} - -type ExportTransferImpactAssessmentsPDFInput struct { - OrganizationID gid.GID `json:"organizationId"` - Filter *TransferImpactAssessmentFilter `json:"filter,omitempty"` -} - -type ExportTransferImpactAssessmentsPDFPayload struct { - Data string `json:"data"` -} - -type File struct { - ID gid.GID `json:"id"` - MimeType string `json:"mimeType"` - FileName string `json:"fileName"` - Size int64 `json:"size"` - DownloadURL string `json:"downloadUrl"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` -} - -type Framework struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Organization *Organization `json:"organization"` - Controls *ControlConnection `json:"controls"` - LightLogoURL *string `json:"lightLogoURL,omitempty"` - DarkLogoURL *string `json:"darkLogoURL,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Framework) IsNode() {} -func (this Framework) GetID() gid.GID { return this.ID } - -type FrameworkEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Framework `json:"node"` -} - -type GenerateDocumentChangelogInput struct { - DocumentID gid.GID `json:"documentId"` -} - -type GenerateDocumentChangelogPayload struct { - Changelog string `json:"changelog"` -} - -type GetTrustCenterFileInput struct { - ID gid.GID `json:"id"` -} - -type GetTrustCenterFilePayload struct { - TrustCenterFile *TrustCenterFile `json:"trustCenterFile"` -} - -type ImportFrameworkInput struct { - OrganizationID gid.GID `json:"organizationId"` - File graphql.Upload `json:"file"` -} - -type ImportFrameworkPayload struct { - FrameworkEdge *FrameworkEdge `json:"frameworkEdge"` -} - -type ImportMeasureInput struct { - OrganizationID gid.GID `json:"organizationId"` - File graphql.Upload `json:"file"` -} - -type ImportMeasurePayload struct { - MeasureEdges []*MeasureEdge `json:"measureEdges"` -} - -type MailingList struct { - ID gid.GID `json:"id"` - ReplyTo *mail.Addr `json:"replyTo,omitempty"` - Subscribers *MailingListSubscriberConnection `json:"subscribers"` - Updates *MailingListUpdateConnection `json:"updates"` -} - -func (MailingList) IsNode() {} -func (this MailingList) GetID() gid.GID { return this.ID } - -type MailingListSubscriber struct { - ID gid.GID `json:"id"` - FullName string `json:"fullName"` - Email mail.Addr `json:"email"` - Status coredata.MailingListSubscriberStatus `json:"status"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` -} - -func (MailingListSubscriber) IsNode() {} -func (this MailingListSubscriber) GetID() gid.GID { return this.ID } - -type MailingListSubscriberEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *MailingListSubscriber `json:"node"` -} - -type MailingListUpdate struct { - ID gid.GID `json:"id"` - Title string `json:"title"` - Body string `json:"body"` - Status coredata.MailingListUpdateStatus `json:"status"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` -} - -func (MailingListUpdate) IsNode() {} -func (this MailingListUpdate) GetID() gid.GID { return this.ID } - -type MailingListUpdateEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *MailingListUpdate `json:"node"` -} - -type Measure struct { - ID gid.GID `json:"id"` - Category string `json:"category"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - State coredata.MeasureState `json:"state"` - Evidences *EvidenceConnection `json:"evidences"` - Tasks *TaskConnection `json:"tasks"` - Risks *RiskConnection `json:"risks"` - Controls *ControlConnection `json:"controls"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Measure) IsNode() {} -func (this Measure) GetID() gid.GID { return this.ID } - -type MeasureEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Measure `json:"node"` -} - -type MeasureFilter struct { - Query *string `json:"query,omitempty"` - State *coredata.MeasureState `json:"state,omitempty"` -} - -type Meeting struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - Date time.Time `json:"date"` - Minutes *string `json:"minutes,omitempty"` - Attendees []*Profile `json:"attendees"` - Organization *Organization `json:"organization"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Meeting) IsNode() {} -func (this Meeting) GetID() gid.GID { return this.ID } - -type MeetingEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Meeting `json:"node"` -} - -type Mutation struct { -} - -type Nonconformity struct { - ID gid.GID `json:"id"` - SnapshotID *gid.GID `json:"snapshotId,omitempty"` - Organization *Organization `json:"organization"` - ReferenceID string `json:"referenceId"` - Description *string `json:"description,omitempty"` - Audit *Audit `json:"audit,omitempty"` - DateIdentified *time.Time `json:"dateIdentified,omitempty"` - RootCause string `json:"rootCause"` - CorrectiveAction *string `json:"correctiveAction,omitempty"` - Owner *Profile `json:"owner"` - DueDate *time.Time `json:"dueDate,omitempty"` - Status coredata.NonconformityStatus `json:"status"` - EffectivenessCheck *string `json:"effectivenessCheck,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Nonconformity) IsNode() {} -func (this Nonconformity) GetID() gid.GID { return this.ID } - -type NonconformityEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Nonconformity `json:"node"` -} - -type NonconformityFilter struct { - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type Obligation struct { - ID gid.GID `json:"id"` - SnapshotID *gid.GID `json:"snapshotId,omitempty"` - SourceID *gid.GID `json:"sourceId,omitempty"` - Organization *Organization `json:"organization"` - Area *string `json:"area,omitempty"` - Source *string `json:"source,omitempty"` - Requirement *string `json:"requirement,omitempty"` - ActionsToBeImplemented *string `json:"actionsToBeImplemented,omitempty"` - Regulator *string `json:"regulator,omitempty"` - Owner *Profile `json:"owner"` - LastReviewDate *time.Time `json:"lastReviewDate,omitempty"` - DueDate *time.Time `json:"dueDate,omitempty"` - Status coredata.ObligationStatus `json:"status"` - Type coredata.ObligationType `json:"type"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Obligation) IsNode() {} -func (this Obligation) GetID() gid.GID { return this.ID } - -type ObligationEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Obligation `json:"node"` -} - -type ObligationFilter struct { - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type Organization struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - LogoURL *string `json:"logoUrl,omitempty"` - HorizontalLogoURL *string `json:"horizontalLogoUrl,omitempty"` - Description *string `json:"description,omitempty"` - WebsiteURL *string `json:"websiteUrl,omitempty"` - Email *string `json:"email,omitempty"` - HeadquarterAddress *string `json:"headquarterAddress,omitempty"` - Context *OrganizationContext `json:"context,omitempty"` - Profiles *ProfileConnection `json:"profiles"` - SlackConnections *SlackConnectionConnection `json:"slackConnections"` - Frameworks *FrameworkConnection `json:"frameworks"` - Controls *ControlConnection `json:"controls"` - Vendors *VendorConnection `json:"vendors"` - Documents *DocumentConnection `json:"documents"` - Meetings *MeetingConnection `json:"meetings"` - StatesOfApplicability *StateOfApplicabilityConnection `json:"statesOfApplicability"` - Measures *MeasureConnection `json:"measures"` - Risks *RiskConnection `json:"risks"` - Tasks *TaskConnection `json:"tasks"` - Assets *AssetConnection `json:"assets"` - Data *DatumConnection `json:"data"` - Audits *AuditConnection `json:"audits"` - Nonconformities *NonconformityConnection `json:"nonconformities"` - Obligations *ObligationConnection `json:"obligations"` - ContinualImprovements *ContinualImprovementConnection `json:"continualImprovements"` - RightsRequests *RightsRequestConnection `json:"rightsRequests"` - ProcessingActivities *ProcessingActivityConnection `json:"processingActivities"` - DataProtectionImpactAssessments *DataProtectionImpactAssessmentConnection `json:"dataProtectionImpactAssessments"` - TransferImpactAssessments *TransferImpactAssessmentConnection `json:"transferImpactAssessments"` - Snapshots *SnapshotConnection `json:"snapshots"` - TrustCenterFiles *TrustCenterFileConnection `json:"trustCenterFiles"` - TrustCenter *TrustCenter `json:"trustCenter,omitempty"` - CustomDomain *CustomDomain `json:"customDomain,omitempty"` - WebhookSubscriptions *WebhookSubscriptionConnection `json:"webhookSubscriptions"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Organization) IsNode() {} -func (this Organization) GetID() gid.GID { return this.ID } - -type OrganizationContext struct { - OrganizationID gid.GID `json:"organizationId"` - Summary *string `json:"summary,omitempty"` -} - -type PageInfo struct { - HasNextPage bool `json:"hasNextPage"` - HasPreviousPage bool `json:"hasPreviousPage"` - StartCursor *page.CursorKey `json:"startCursor,omitempty"` - EndCursor *page.CursorKey `json:"endCursor,omitempty"` -} - -type ProcessingActivity struct { - ID gid.GID `json:"id"` - SnapshotID *gid.GID `json:"snapshotId,omitempty"` - SourceID *gid.GID `json:"sourceId,omitempty"` - Organization *Organization `json:"organization"` - Name string `json:"name"` - Purpose *string `json:"purpose,omitempty"` - DataSubjectCategory *string `json:"dataSubjectCategory,omitempty"` - PersonalDataCategory *string `json:"personalDataCategory,omitempty"` - SpecialOrCriminalData coredata.ProcessingActivitySpecialOrCriminalDatum `json:"specialOrCriminalData"` - ConsentEvidenceLink *string `json:"consentEvidenceLink,omitempty"` - LawfulBasis coredata.ProcessingActivityLawfulBasis `json:"lawfulBasis"` - Recipients *string `json:"recipients,omitempty"` - Location *string `json:"location,omitempty"` - InternationalTransfers bool `json:"internationalTransfers"` - TransferSafeguards *coredata.ProcessingActivityTransferSafeguard `json:"transferSafeguards,omitempty"` - RetentionPeriod *string `json:"retentionPeriod,omitempty"` - SecurityMeasures *string `json:"securityMeasures,omitempty"` - DataProtectionImpactAssessmentNeeded coredata.ProcessingActivityDataProtectionImpactAssessment `json:"dataProtectionImpactAssessmentNeeded"` - TransferImpactAssessmentNeeded coredata.ProcessingActivityTransferImpactAssessment `json:"transferImpactAssessmentNeeded"` - LastReviewDate *time.Time `json:"lastReviewDate,omitempty"` - NextReviewDate *time.Time `json:"nextReviewDate,omitempty"` - Role coredata.ProcessingActivityRole `json:"role"` - DataProtectionOfficer *Profile `json:"dataProtectionOfficer,omitempty"` - Vendors *VendorConnection `json:"vendors"` - DataProtectionImpactAssessment *DataProtectionImpactAssessment `json:"dataProtectionImpactAssessment,omitempty"` - TransferImpactAssessment *TransferImpactAssessment `json:"transferImpactAssessment,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (ProcessingActivity) IsNode() {} -func (this ProcessingActivity) GetID() gid.GID { return this.ID } - -type ProcessingActivityEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *ProcessingActivity `json:"node"` -} - -type ProcessingActivityFilter struct { - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type Profile struct { - ID gid.GID `json:"id"` - FullName string `json:"fullName"` - EmailAddress mail.Addr `json:"emailAddress"` - State coredata.ProfileState `json:"state"` - AdditionalEmailAddresses []mail.Addr `json:"additionalEmailAddresses"` - Kind *string `json:"kind,omitempty"` - Position *string `json:"position,omitempty"` - ContractStartDate *time.Time `json:"contractStartDate,omitempty"` - ContractEndDate *time.Time `json:"contractEndDate,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Profile) IsNode() {} -func (this Profile) GetID() gid.GID { return this.ID } - -type ProfileEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Profile `json:"node"` -} - -type ProfileFilter struct { - ExcludeContractEnded *bool `json:"excludeContractEnded,omitempty"` -} - -type PublishDocumentVersionInput struct { - DocumentID gid.GID `json:"documentId"` - Changelog *string `json:"changelog,omitempty"` -} - -type PublishDocumentVersionPayload struct { - DocumentVersion *DocumentVersion `json:"documentVersion"` - Document *Document `json:"document"` -} - -type Query struct { -} - -type Report struct { - ID gid.GID `json:"id"` - ObjectKey string `json:"objectKey"` - MimeType string `json:"mimeType"` - Filename string `json:"filename"` - Size int `json:"size"` - DownloadURL *string `json:"downloadUrl,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Audit *Audit `json:"audit,omitempty"` - Permission bool `json:"permission"` -} - -func (Report) IsNode() {} -func (this Report) GetID() gid.GID { return this.ID } - -type RequestSignatureInput struct { - DocumentVersionID gid.GID `json:"documentVersionId"` - SignatoryID gid.GID `json:"signatoryId"` -} - -type RequestSignaturePayload struct { - DocumentVersionSignatureEdge *DocumentVersionSignatureEdge `json:"documentVersionSignatureEdge"` -} - -type RightsRequest struct { - ID gid.GID `json:"id"` - Organization *Organization `json:"organization"` - RequestType coredata.RightsRequestType `json:"requestType"` - RequestState coredata.RightsRequestState `json:"requestState"` - DataSubject *string `json:"dataSubject,omitempty"` - Contact *string `json:"contact,omitempty"` - Details *string `json:"details,omitempty"` - Deadline *time.Time `json:"deadline,omitempty"` - ActionTaken *string `json:"actionTaken,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (RightsRequest) IsNode() {} -func (this RightsRequest) GetID() gid.GID { return this.ID } - -type RightsRequestEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *RightsRequest `json:"node"` -} - -type Risk struct { - ID gid.GID `json:"id"` - SnapshotID *gid.GID `json:"snapshotId,omitempty"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Category string `json:"category"` - Treatment coredata.RiskTreatment `json:"treatment"` - InherentLikelihood int `json:"inherentLikelihood"` - InherentImpact int `json:"inherentImpact"` - InherentRiskScore int `json:"inherentRiskScore"` - ResidualLikelihood int `json:"residualLikelihood"` - ResidualImpact int `json:"residualImpact"` - ResidualRiskScore int `json:"residualRiskScore"` - Note string `json:"note"` - Owner *Profile `json:"owner,omitempty"` - Organization *Organization `json:"organization"` - Measures *MeasureConnection `json:"measures"` - Documents *DocumentConnection `json:"documents"` - Controls *ControlConnection `json:"controls"` - Obligations *ObligationConnection `json:"obligations"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Risk) IsNode() {} -func (this Risk) GetID() gid.GID { return this.ID } - -type RiskEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Risk `json:"node"` -} - -type RiskFilter struct { - Query *string `json:"query,omitempty"` - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type SendMailingListUpdateInput struct { - ID gid.GID `json:"id"` -} - -type SendMailingListUpdatePayload struct { - MailingListUpdate *MailingListUpdate `json:"mailingListUpdate"` -} - -type SendSigningNotificationsInput struct { - OrganizationID gid.GID `json:"organizationId"` -} - -type SendSigningNotificationsPayload struct { - Success bool `json:"success"` -} - -type SignDocumentInput struct { - DocumentVersionID gid.GID `json:"documentVersionId"` -} - -type SignDocumentPayload struct { - DocumentVersionSignature *DocumentVersionSignature `json:"documentVersionSignature"` -} - -type SlackConnection struct { - ID gid.GID `json:"id"` - Channel *string `json:"channel,omitempty"` - ChannelID *string `json:"channelId,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` -} - -type SlackConnectionConnection struct { - Edges []*SlackConnectionEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type SlackConnectionEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *SlackConnection `json:"node"` -} - -type Snapshot struct { - ID gid.GID `json:"id"` - Organization *Organization `json:"organization"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Type coredata.SnapshotsType `json:"type"` - Controls *ControlConnection `json:"controls"` - CreatedAt time.Time `json:"createdAt"` - Permission bool `json:"permission"` -} - -func (Snapshot) IsNode() {} -func (this Snapshot) GetID() gid.GID { return this.ID } - -type SnapshotEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Snapshot `json:"node"` -} - -type StateOfApplicability struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - SourceID *gid.GID `json:"sourceId,omitempty"` - SnapshotID *gid.GID `json:"snapshotId,omitempty"` - Organization *Organization `json:"organization,omitempty"` - Owner *Profile `json:"owner"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - ApplicabilityStatements *ApplicabilityStatementConnection `json:"applicabilityStatements"` - Permission bool `json:"permission"` -} - -func (StateOfApplicability) IsNode() {} -func (this StateOfApplicability) GetID() gid.GID { return this.ID } - -type StateOfApplicabilityEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *StateOfApplicability `json:"node"` -} - -type StateOfApplicabilityFilter struct { - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type Task struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - State coredata.TaskState `json:"state"` - TimeEstimate *time.Duration `json:"timeEstimate,omitempty"` - Deadline *time.Time `json:"deadline,omitempty"` - AssignedTo *Profile `json:"assignedTo,omitempty"` - Organization *Organization `json:"organization"` - Measure *Measure `json:"measure,omitempty"` - Evidences *EvidenceConnection `json:"evidences"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Task) IsNode() {} -func (this Task) GetID() gid.GID { return this.ID } - -type TaskEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Task `json:"node"` -} - -type TransferImpactAssessment struct { - ID gid.GID `json:"id"` - ProcessingActivity *ProcessingActivity `json:"processingActivity"` - Organization *Organization `json:"organization"` - DataSubjects *string `json:"dataSubjects,omitempty"` - LegalMechanism *string `json:"legalMechanism,omitempty"` - Transfer *string `json:"transfer,omitempty"` - LocalLawRisk *string `json:"localLawRisk,omitempty"` - SupplementaryMeasures *string `json:"supplementaryMeasures,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (TransferImpactAssessment) IsNode() {} -func (this TransferImpactAssessment) GetID() gid.GID { return this.ID } - -type TransferImpactAssessmentEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *TransferImpactAssessment `json:"node"` -} - -type TransferImpactAssessmentFilter struct { - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type TrustCenterAccess struct { - ID gid.GID `json:"id"` - NdaSignature *ElectronicSignature `json:"ndaSignature,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - PendingRequestCount int `json:"pendingRequestCount"` - ActiveCount int `json:"activeCount"` - OrganizationID gid.GID `json:"organizationId"` - IdentityID gid.GID `json:"identityID"` - Profile *Profile `json:"profile"` - AvailableDocumentAccesses *TrustCenterDocumentAccessConnection `json:"availableDocumentAccesses"` - Permission bool `json:"permission"` -} - -func (TrustCenterAccess) IsNode() {} -func (this TrustCenterAccess) GetID() gid.GID { return this.ID } - -type TrustCenterAccessConnection struct { - Edges []*TrustCenterAccessEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type TrustCenterAccessEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *TrustCenterAccess `json:"node"` -} - -type TrustCenterConnection struct { - Edges []*TrustCenterEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type TrustCenterDocumentAccessEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *TrustCenterDocumentAccess `json:"node"` -} - -type TrustCenterDocumentAccessInput struct { - ID gid.GID `json:"id"` - Status coredata.TrustCenterDocumentAccessStatus `json:"status"` -} - -type TrustCenterEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *TrustCenter `json:"node"` -} - -type TrustCenterFile struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - Category string `json:"category"` - FileURL string `json:"fileUrl"` - TrustCenterVisibility coredata.TrustCenterVisibility `json:"trustCenterVisibility"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Organization *Organization `json:"organization"` - Permission bool `json:"permission"` -} - -func (TrustCenterFile) IsNode() {} -func (this TrustCenterFile) GetID() gid.GID { return this.ID } - -type TrustCenterFileEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *TrustCenterFile `json:"node"` -} - -type TrustCenterReference struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - WebsiteURL string `json:"websiteUrl"` - LogoURL string `json:"logoUrl"` - Rank int `json:"rank"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (TrustCenterReference) IsNode() {} -func (this TrustCenterReference) GetID() gid.GID { return this.ID } - -type TrustCenterReferenceEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *TrustCenterReference `json:"node"` -} - -type UpdateApplicabilityStatementInput struct { - ApplicabilityStatementID gid.GID `json:"applicabilityStatementId"` - Applicability bool `json:"applicability"` - Justification *string `json:"justification,omitempty"` -} - -type UpdateApplicabilityStatementPayload struct { - ApplicabilityStatement *ApplicabilityStatement `json:"applicabilityStatement"` -} - -type UpdateAssetInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Amount *int `json:"amount,omitempty"` - OwnerID *gid.GID `json:"ownerId,omitempty"` - AssetType *coredata.AssetType `json:"assetType,omitempty"` - DataTypesStored *string `json:"dataTypesStored,omitempty"` - VendorIds []gid.GID `json:"vendorIds,omitempty"` -} - -type UpdateAssetPayload struct { - Asset *Asset `json:"asset"` -} - -type UpdateAuditInput struct { - ID gid.GID `json:"id"` - Name graphql.Omittable[*string] `json:"name,omitempty"` - ValidFrom *time.Time `json:"validFrom,omitempty"` - ValidUntil *time.Time `json:"validUntil,omitempty"` - State *coredata.AuditState `json:"state,omitempty"` - TrustCenterVisibility *coredata.TrustCenterVisibility `json:"trustCenterVisibility,omitempty"` -} - -type UpdateAuditPayload struct { - Audit *Audit `json:"audit"` -} - -type UpdateComplianceExternalURLInput struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - URL string `json:"url"` - Rank *int `json:"rank,omitempty"` -} - -type UpdateComplianceExternalURLPayload struct { - ComplianceExternalURL *ComplianceExternalURL `json:"complianceExternalUrl"` -} - -type UpdateComplianceFrameworkInput struct { - ID gid.GID `json:"id"` - Rank int `json:"rank"` -} - -type UpdateComplianceFrameworkPayload struct { - ComplianceFramework *ComplianceFramework `json:"complianceFramework"` -} - -type UpdateContinualImprovementInput struct { - ID gid.GID `json:"id"` - ReferenceID *string `json:"referenceId,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - Source graphql.Omittable[*string] `json:"source,omitempty"` - OwnerID *gid.GID `json:"ownerId,omitempty"` - TargetDate graphql.Omittable[*time.Time] `json:"targetDate,omitempty"` - Status *coredata.ContinualImprovementStatus `json:"status,omitempty"` - Priority *coredata.ContinualImprovementPriority `json:"priority,omitempty"` -} - -type UpdateContinualImprovementPayload struct { - ContinualImprovement *ContinualImprovement `json:"continualImprovement"` -} - -type UpdateControlInput struct { - ID gid.GID `json:"id"` - SectionTitle *string `json:"sectionTitle,omitempty"` - Name *string `json:"name,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - BestPractice *bool `json:"bestPractice,omitempty"` -} - -type UpdateControlPayload struct { - Control *Control `json:"control"` -} - -type UpdateDataProtectionImpactAssessmentInput struct { - ID gid.GID `json:"id"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - NecessityAndProportionality graphql.Omittable[*string] `json:"necessityAndProportionality,omitempty"` - PotentialRisk graphql.Omittable[*string] `json:"potentialRisk,omitempty"` - Mitigations graphql.Omittable[*string] `json:"mitigations,omitempty"` - ResidualRisk *coredata.DataProtectionImpactAssessmentResidualRisk `json:"residualRisk,omitempty"` -} - -type UpdateDataProtectionImpactAssessmentPayload struct { - DataProtectionImpactAssessment *DataProtectionImpactAssessment `json:"dataProtectionImpactAssessment"` -} - -type UpdateDatumInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - DataClassification *coredata.DataClassification `json:"dataClassification,omitempty"` - OwnerID *gid.GID `json:"ownerId,omitempty"` - VendorIds []gid.GID `json:"vendorIds,omitempty"` -} - -type UpdateDatumPayload struct { - Datum *Datum `json:"datum"` -} - -type UpdateDocumentInput struct { - ID gid.GID `json:"id"` - Title *string `json:"title,omitempty"` - Content *string `json:"content,omitempty"` - ApproverIds []gid.GID `json:"approverIds,omitempty"` - DocumentType *coredata.DocumentType `json:"documentType,omitempty"` - Classification *coredata.DocumentClassification `json:"classification,omitempty"` - TrustCenterVisibility *coredata.TrustCenterVisibility `json:"trustCenterVisibility,omitempty"` -} - -type UpdateDocumentPayload struct { - Document *Document `json:"document"` -} - -type UpdateDocumentVersionInput struct { - DocumentVersionID gid.GID `json:"documentVersionId"` - Content string `json:"content"` -} - -type UpdateDocumentVersionPayload struct { - DocumentVersion *DocumentVersion `json:"documentVersion"` -} - -type UpdateFrameworkInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` -} - -type UpdateFrameworkPayload struct { - Framework *Framework `json:"framework"` -} - -type UpdateMailingListInput struct { - ID gid.GID `json:"id"` - ReplyTo *mail.Addr `json:"replyTo,omitempty"` -} - -type UpdateMailingListPayload struct { - MailingList *MailingList `json:"mailingList"` -} - -type UpdateMailingListUpdateInput struct { - ID gid.GID `json:"id"` - Title *string `json:"title,omitempty"` - Body *string `json:"body,omitempty"` -} - -type UpdateMailingListUpdatePayload struct { - MailingListUpdate *MailingListUpdate `json:"mailingListUpdate"` -} - -type UpdateMeasureInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - Category *string `json:"category,omitempty"` - State *coredata.MeasureState `json:"state,omitempty"` -} - -type UpdateMeasurePayload struct { - Measure *Measure `json:"measure"` -} - -type UpdateMeetingInput struct { - MeetingID gid.GID `json:"meetingId"` - Name *string `json:"name,omitempty"` - Date *time.Time `json:"date,omitempty"` - AttendeeIds []gid.GID `json:"attendeeIds,omitempty"` - Minutes graphql.Omittable[*string] `json:"minutes,omitempty"` -} - -type UpdateMeetingPayload struct { - Meeting *Meeting `json:"meeting"` -} - -type UpdateNonconformityInput struct { - ID gid.GID `json:"id"` - ReferenceID *string `json:"referenceId,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - DateIdentified graphql.Omittable[*time.Time] `json:"dateIdentified,omitempty"` - RootCause *string `json:"rootCause,omitempty"` - CorrectiveAction graphql.Omittable[*string] `json:"correctiveAction,omitempty"` - OwnerID *gid.GID `json:"ownerId,omitempty"` - AuditID graphql.Omittable[*gid.GID] `json:"auditId,omitempty"` - DueDate graphql.Omittable[*time.Time] `json:"dueDate,omitempty"` - Status *coredata.NonconformityStatus `json:"status,omitempty"` - EffectivenessCheck graphql.Omittable[*string] `json:"effectivenessCheck,omitempty"` -} - -type UpdateNonconformityPayload struct { - Nonconformity *Nonconformity `json:"nonconformity"` -} - -type UpdateObligationInput struct { - ID gid.GID `json:"id"` - Area graphql.Omittable[*string] `json:"area,omitempty"` - Source graphql.Omittable[*string] `json:"source,omitempty"` - Requirement graphql.Omittable[*string] `json:"requirement,omitempty"` - ActionsToBeImplemented graphql.Omittable[*string] `json:"actionsToBeImplemented,omitempty"` - Regulator graphql.Omittable[*string] `json:"regulator,omitempty"` - OwnerID *gid.GID `json:"ownerId,omitempty"` - LastReviewDate graphql.Omittable[*time.Time] `json:"lastReviewDate,omitempty"` - DueDate graphql.Omittable[*time.Time] `json:"dueDate,omitempty"` - Status *coredata.ObligationStatus `json:"status,omitempty"` - Type *coredata.ObligationType `json:"type,omitempty"` -} - -type UpdateObligationPayload struct { - Obligation *Obligation `json:"obligation"` -} - -type UpdateOrganizationContextInput struct { - OrganizationID gid.GID `json:"organizationId"` - Summary graphql.Omittable[*string] `json:"summary,omitempty"` -} - -type UpdateOrganizationContextPayload struct { - Context *OrganizationContext `json:"context"` -} - -type UpdateProcessingActivityInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Purpose graphql.Omittable[*string] `json:"purpose,omitempty"` - DataSubjectCategory graphql.Omittable[*string] `json:"dataSubjectCategory,omitempty"` - PersonalDataCategory graphql.Omittable[*string] `json:"personalDataCategory,omitempty"` - SpecialOrCriminalData *coredata.ProcessingActivitySpecialOrCriminalDatum `json:"specialOrCriminalData,omitempty"` - ConsentEvidenceLink *string `json:"consentEvidenceLink,omitempty"` - LawfulBasis *coredata.ProcessingActivityLawfulBasis `json:"lawfulBasis,omitempty"` - Recipients graphql.Omittable[*string] `json:"recipients,omitempty"` - Location graphql.Omittable[*string] `json:"location,omitempty"` - InternationalTransfers *bool `json:"internationalTransfers,omitempty"` - TransferSafeguards graphql.Omittable[*coredata.ProcessingActivityTransferSafeguard] `json:"transferSafeguards,omitempty"` - RetentionPeriod graphql.Omittable[*string] `json:"retentionPeriod,omitempty"` - SecurityMeasures graphql.Omittable[*string] `json:"securityMeasures,omitempty"` - DataProtectionImpactAssessmentNeeded *coredata.ProcessingActivityDataProtectionImpactAssessment `json:"dataProtectionImpactAssessmentNeeded,omitempty"` - TransferImpactAssessmentNeeded *coredata.ProcessingActivityTransferImpactAssessment `json:"transferImpactAssessmentNeeded,omitempty"` - LastReviewDate graphql.Omittable[*time.Time] `json:"lastReviewDate,omitempty"` - NextReviewDate graphql.Omittable[*time.Time] `json:"nextReviewDate,omitempty"` - Role *coredata.ProcessingActivityRole `json:"role,omitempty"` - DataProtectionOfficerID graphql.Omittable[*gid.GID] `json:"dataProtectionOfficerId,omitempty"` - VendorIds []gid.GID `json:"vendorIds,omitempty"` -} - -type UpdateProcessingActivityPayload struct { - ProcessingActivity *ProcessingActivity `json:"processingActivity"` -} - -type UpdateRightsRequestInput struct { - ID gid.GID `json:"id"` - RequestType *coredata.RightsRequestType `json:"requestType,omitempty"` - RequestState *coredata.RightsRequestState `json:"requestState,omitempty"` - DataSubject graphql.Omittable[*string] `json:"dataSubject,omitempty"` - Contact graphql.Omittable[*string] `json:"contact,omitempty"` - Details graphql.Omittable[*string] `json:"details,omitempty"` - Deadline graphql.Omittable[*time.Time] `json:"deadline,omitempty"` - ActionTaken graphql.Omittable[*string] `json:"actionTaken,omitempty"` -} - -type UpdateRightsRequestPayload struct { - RightsRequest *RightsRequest `json:"rightsRequest"` -} - -type UpdateRiskInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - Category *string `json:"category,omitempty"` - OwnerID graphql.Omittable[*gid.GID] `json:"ownerId,omitempty"` - Treatment *coredata.RiskTreatment `json:"treatment,omitempty"` - InherentLikelihood *int `json:"inherentLikelihood,omitempty"` - InherentImpact *int `json:"inherentImpact,omitempty"` - ResidualLikelihood *int `json:"residualLikelihood,omitempty"` - ResidualImpact *int `json:"residualImpact,omitempty"` - Note *string `json:"note,omitempty"` -} - -type UpdateRiskPayload struct { - Risk *Risk `json:"risk"` -} - -type UpdateStateOfApplicabilityInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - OwnerID *gid.GID `json:"ownerId,omitempty"` -} - -type UpdateStateOfApplicabilityPayload struct { - StateOfApplicability *StateOfApplicability `json:"stateOfApplicability"` -} - -type UpdateTaskInput struct { - TaskID gid.GID `json:"taskId"` - Name *string `json:"name,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - State *coredata.TaskState `json:"state,omitempty"` - TimeEstimate graphql.Omittable[*time.Duration] `json:"timeEstimate,omitempty"` - Deadline graphql.Omittable[*time.Time] `json:"deadline,omitempty"` - AssignedToID graphql.Omittable[*gid.GID] `json:"assignedToId,omitempty"` - MeasureID graphql.Omittable[*gid.GID] `json:"measureId,omitempty"` -} - -type UpdateTaskPayload struct { - Task *Task `json:"task"` -} - -type UpdateTransferImpactAssessmentInput struct { - ID gid.GID `json:"id"` - DataSubjects graphql.Omittable[*string] `json:"dataSubjects,omitempty"` - LegalMechanism graphql.Omittable[*string] `json:"legalMechanism,omitempty"` - Transfer graphql.Omittable[*string] `json:"transfer,omitempty"` - LocalLawRisk graphql.Omittable[*string] `json:"localLawRisk,omitempty"` - SupplementaryMeasures graphql.Omittable[*string] `json:"supplementaryMeasures,omitempty"` -} - -type UpdateTransferImpactAssessmentPayload struct { - TransferImpactAssessment *TransferImpactAssessment `json:"transferImpactAssessment"` -} - -type UpdateTrustCenterAccessInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - State *coredata.TrustCenterAccessState `json:"state,omitempty"` - Documents []*TrustCenterDocumentAccessInput `json:"documents,omitempty"` - Reports []*TrustCenterDocumentAccessInput `json:"reports,omitempty"` - TrustCenterFiles []*TrustCenterDocumentAccessInput `json:"trustCenterFiles,omitempty"` -} - -type UpdateTrustCenterAccessPayload struct { - TrustCenterAccess *TrustCenterAccess `json:"trustCenterAccess"` -} - -type UpdateTrustCenterBrandInput struct { - TrustCenterID gid.GID `json:"trustCenterId"` - LogoFile graphql.Omittable[*graphql.Upload] `json:"logoFile,omitempty"` - DarkLogoFile graphql.Omittable[*graphql.Upload] `json:"darkLogoFile,omitempty"` -} - -type UpdateTrustCenterBrandPayload struct { - TrustCenter *TrustCenter `json:"trustCenter"` -} - -type UpdateTrustCenterFileInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Category *string `json:"category,omitempty"` - TrustCenterVisibility *coredata.TrustCenterVisibility `json:"trustCenterVisibility,omitempty"` -} - -type UpdateTrustCenterFilePayload struct { - TrustCenterFile *TrustCenterFile `json:"trustCenterFile"` -} - -type UpdateTrustCenterInput struct { - TrustCenterID gid.GID `json:"trustCenterId"` - Active *bool `json:"active,omitempty"` -} - -type UpdateTrustCenterPayload struct { - TrustCenter *TrustCenter `json:"trustCenter"` -} - -type UpdateTrustCenterReferenceInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - WebsiteURL *string `json:"websiteUrl,omitempty"` - LogoFile *graphql.Upload `json:"logoFile,omitempty"` - Rank *int `json:"rank,omitempty"` -} - -type UpdateTrustCenterReferencePayload struct { - TrustCenterReference *TrustCenterReference `json:"trustCenterReference"` -} - -type UpdateVendorBusinessAssociateAgreementInput struct { - VendorID gid.GID `json:"vendorId"` - ValidFrom graphql.Omittable[*time.Time] `json:"validFrom,omitempty"` - ValidUntil graphql.Omittable[*time.Time] `json:"validUntil,omitempty"` -} - -type UpdateVendorBusinessAssociateAgreementPayload struct { - VendorBusinessAssociateAgreement *VendorBusinessAssociateAgreement `json:"vendorBusinessAssociateAgreement"` -} - -type UpdateVendorContactInput struct { - ID gid.GID `json:"id"` - FullName graphql.Omittable[*string] `json:"fullName,omitempty"` - Email graphql.Omittable[*mail.Addr] `json:"email,omitempty"` - Phone graphql.Omittable[*string] `json:"phone,omitempty"` - Role graphql.Omittable[*string] `json:"role,omitempty"` -} - -type UpdateVendorContactPayload struct { - VendorContact *VendorContact `json:"vendorContact"` -} - -type UpdateVendorDataPrivacyAgreementInput struct { - VendorID gid.GID `json:"vendorId"` - ValidFrom graphql.Omittable[*time.Time] `json:"validFrom,omitempty"` - ValidUntil graphql.Omittable[*time.Time] `json:"validUntil,omitempty"` -} - -type UpdateVendorDataPrivacyAgreementPayload struct { - VendorDataPrivacyAgreement *VendorDataPrivacyAgreement `json:"vendorDataPrivacyAgreement"` -} - -type UpdateVendorInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - StatusPageURL graphql.Omittable[*string] `json:"statusPageUrl,omitempty"` - TermsOfServiceURL graphql.Omittable[*string] `json:"termsOfServiceUrl,omitempty"` - PrivacyPolicyURL graphql.Omittable[*string] `json:"privacyPolicyUrl,omitempty"` - ServiceLevelAgreementURL graphql.Omittable[*string] `json:"serviceLevelAgreementUrl,omitempty"` - DataProcessingAgreementURL graphql.Omittable[*string] `json:"dataProcessingAgreementUrl,omitempty"` - BusinessAssociateAgreementURL graphql.Omittable[*string] `json:"businessAssociateAgreementUrl,omitempty"` - SubprocessorsListURL graphql.Omittable[*string] `json:"subprocessorsListUrl,omitempty"` - WebsiteURL graphql.Omittable[*string] `json:"websiteUrl,omitempty"` - LegalName graphql.Omittable[*string] `json:"legalName,omitempty"` - HeadquarterAddress graphql.Omittable[*string] `json:"headquarterAddress,omitempty"` - Category *coredata.VendorCategory `json:"category,omitempty"` - Certifications []string `json:"certifications,omitempty"` - Countries []coredata.CountryCode `json:"countries,omitempty"` - SecurityPageURL graphql.Omittable[*string] `json:"securityPageUrl,omitempty"` - TrustPageURL graphql.Omittable[*string] `json:"trustPageUrl,omitempty"` - BusinessOwnerID graphql.Omittable[*gid.GID] `json:"businessOwnerId,omitempty"` - SecurityOwnerID graphql.Omittable[*gid.GID] `json:"securityOwnerId,omitempty"` - ShowOnTrustCenter *bool `json:"showOnTrustCenter,omitempty"` -} - -type UpdateVendorPayload struct { - Vendor *Vendor `json:"vendor"` -} - -type UpdateVendorServiceInput struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Description graphql.Omittable[*string] `json:"description,omitempty"` - URL *string `json:"url,omitempty"` - Type *string `json:"type,omitempty"` -} - -type UpdateVendorServicePayload struct { - VendorService *VendorService `json:"vendorService"` -} - -type UpdateWebhookSubscriptionInput struct { - ID gid.GID `json:"id"` - EndpointURL *string `json:"endpointUrl,omitempty"` - SelectedEvents []coredata.WebhookEventType `json:"selectedEvents,omitempty"` -} - -type UpdateWebhookSubscriptionPayload struct { - WebhookSubscription *WebhookSubscription `json:"webhookSubscription"` -} - -type UploadAuditReportInput struct { - AuditID gid.GID `json:"auditId"` - File graphql.Upload `json:"file"` -} - -type UploadAuditReportPayload struct { - Audit *Audit `json:"audit"` -} - -type UploadMeasureEvidenceInput struct { - MeasureID gid.GID `json:"measureId"` - File graphql.Upload `json:"file"` -} - -type UploadMeasureEvidencePayload struct { - EvidenceEdge *EvidenceEdge `json:"evidenceEdge"` -} - -type UploadTrustCenterNDAInput struct { - TrustCenterID gid.GID `json:"trustCenterId"` - FileName string `json:"fileName"` - File graphql.Upload `json:"file"` -} - -type UploadTrustCenterNDAPayload struct { - TrustCenter *TrustCenter `json:"trustCenter"` -} - -type UploadVendorBusinessAssociateAgreementInput struct { - VendorID gid.GID `json:"vendorId"` - ValidFrom *time.Time `json:"validFrom,omitempty"` - ValidUntil *time.Time `json:"validUntil,omitempty"` - FileName string `json:"fileName"` - File graphql.Upload `json:"file"` -} - -type UploadVendorBusinessAssociateAgreementPayload struct { - VendorBusinessAssociateAgreement *VendorBusinessAssociateAgreement `json:"vendorBusinessAssociateAgreement"` -} - -type UploadVendorComplianceReportInput struct { - VendorID gid.GID `json:"vendorId"` - ReportDate time.Time `json:"reportDate"` - ValidUntil *time.Time `json:"validUntil,omitempty"` - ReportName string `json:"reportName"` - File graphql.Upload `json:"file"` -} - -type UploadVendorComplianceReportPayload struct { - VendorComplianceReportEdge *VendorComplianceReportEdge `json:"vendorComplianceReportEdge"` -} - -type UploadVendorDataPrivacyAgreementInput struct { - VendorID gid.GID `json:"vendorId"` - ValidFrom *time.Time `json:"validFrom,omitempty"` - ValidUntil *time.Time `json:"validUntil,omitempty"` - FileName string `json:"fileName"` - File graphql.Upload `json:"file"` -} - -type UploadVendorDataPrivacyAgreementPayload struct { - VendorDataPrivacyAgreement *VendorDataPrivacyAgreement `json:"vendorDataPrivacyAgreement"` -} - -type Vendor struct { - ID gid.GID `json:"id"` - SnapshotID *gid.GID `json:"snapshotId,omitempty"` - Name string `json:"name"` - Category coredata.VendorCategory `json:"category"` - Description *string `json:"description,omitempty"` - Organization *Organization `json:"organization"` - ComplianceReports *VendorComplianceReportConnection `json:"complianceReports"` - BusinessAssociateAgreement *VendorBusinessAssociateAgreement `json:"businessAssociateAgreement,omitempty"` - DataPrivacyAgreement *VendorDataPrivacyAgreement `json:"dataPrivacyAgreement,omitempty"` - Contacts *VendorContactConnection `json:"contacts"` - Services *VendorServiceConnection `json:"services"` - RiskAssessments *VendorRiskAssessmentConnection `json:"riskAssessments"` - BusinessOwner *Profile `json:"businessOwner,omitempty"` - SecurityOwner *Profile `json:"securityOwner,omitempty"` - StatusPageURL *string `json:"statusPageUrl,omitempty"` - TermsOfServiceURL *string `json:"termsOfServiceUrl,omitempty"` - PrivacyPolicyURL *string `json:"privacyPolicyUrl,omitempty"` - ServiceLevelAgreementURL *string `json:"serviceLevelAgreementUrl,omitempty"` - DataProcessingAgreementURL *string `json:"dataProcessingAgreementUrl,omitempty"` - BusinessAssociateAgreementURL *string `json:"businessAssociateAgreementUrl,omitempty"` - SubprocessorsListURL *string `json:"subprocessorsListUrl,omitempty"` - Certifications []string `json:"certifications"` - Countries []coredata.CountryCode `json:"countries"` - SecurityPageURL *string `json:"securityPageUrl,omitempty"` - TrustPageURL *string `json:"trustPageUrl,omitempty"` - HeadquarterAddress *string `json:"headquarterAddress,omitempty"` - LegalName *string `json:"legalName,omitempty"` - WebsiteURL *string `json:"websiteUrl,omitempty"` - ShowOnTrustCenter bool `json:"showOnTrustCenter"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (Vendor) IsNode() {} -func (this Vendor) GetID() gid.GID { return this.ID } - -type VendorBusinessAssociateAgreement struct { - ID gid.GID `json:"id"` - Vendor *Vendor `json:"vendor"` - ValidFrom *time.Time `json:"validFrom,omitempty"` - ValidUntil *time.Time `json:"validUntil,omitempty"` - FileName string `json:"fileName"` - FileURL string `json:"fileUrl"` - FileSize int64 `json:"fileSize"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (VendorBusinessAssociateAgreement) IsNode() {} -func (this VendorBusinessAssociateAgreement) GetID() gid.GID { return this.ID } - -type VendorComplianceReport struct { - ID gid.GID `json:"id"` - Vendor *Vendor `json:"vendor"` - ReportDate time.Time `json:"reportDate"` - ValidUntil *time.Time `json:"validUntil,omitempty"` - ReportName string `json:"reportName"` - File *File `json:"file,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (VendorComplianceReport) IsNode() {} -func (this VendorComplianceReport) GetID() gid.GID { return this.ID } - -type VendorComplianceReportConnection struct { - Edges []*VendorComplianceReportEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type VendorComplianceReportEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *VendorComplianceReport `json:"node"` -} - -type VendorContact struct { - ID gid.GID `json:"id"` - Vendor *Vendor `json:"vendor"` - FullName *string `json:"fullName,omitempty"` - Email *mail.Addr `json:"email,omitempty"` - Phone *string `json:"phone,omitempty"` - Role *string `json:"role,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (VendorContact) IsNode() {} -func (this VendorContact) GetID() gid.GID { return this.ID } - -type VendorContactConnection struct { - Edges []*VendorContactEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type VendorContactEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *VendorContact `json:"node"` -} - -type VendorDataPrivacyAgreement struct { - ID gid.GID `json:"id"` - Vendor *Vendor `json:"vendor"` - ValidFrom *time.Time `json:"validFrom,omitempty"` - ValidUntil *time.Time `json:"validUntil,omitempty"` - FileName string `json:"fileName"` - FileURL string `json:"fileUrl"` - FileSize int64 `json:"fileSize"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (VendorDataPrivacyAgreement) IsNode() {} -func (this VendorDataPrivacyAgreement) GetID() gid.GID { return this.ID } - -type VendorEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Vendor `json:"node"` -} - -type VendorFilter struct { - SnapshotID *gid.GID `json:"snapshotId,omitempty"` -} - -type VendorRiskAssessment struct { - ID gid.GID `json:"id"` - Vendor *Vendor `json:"vendor"` - ExpiresAt time.Time `json:"expiresAt"` - DataSensitivity coredata.DataSensitivity `json:"dataSensitivity"` - BusinessImpact coredata.BusinessImpact `json:"businessImpact"` - Notes *string `json:"notes,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (VendorRiskAssessment) IsNode() {} -func (this VendorRiskAssessment) GetID() gid.GID { return this.ID } - -type VendorRiskAssessmentConnection struct { - Edges []*VendorRiskAssessmentEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type VendorRiskAssessmentEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *VendorRiskAssessment `json:"node"` -} - -type VendorRiskAssessmentOrder struct { - Field coredata.VendorRiskAssessmentOrderField `json:"field"` - Direction page.OrderDirection `json:"direction"` -} - -type VendorService struct { - ID gid.GID `json:"id"` - Vendor *Vendor `json:"vendor"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Permission bool `json:"permission"` -} - -func (VendorService) IsNode() {} -func (this VendorService) GetID() gid.GID { return this.ID } - -type VendorServiceConnection struct { - Edges []*VendorServiceEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type VendorServiceEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *VendorService `json:"node"` -} - -type Viewer struct { - ID gid.GID `json:"id"` - SignableDocuments *SignableDocumentConnection `json:"signableDocuments"` - SignableDocument *SignableDocument `json:"signableDocument,omitempty"` -} - -type WebhookEvent struct { - ID gid.GID `json:"id"` - WebhookSubscriptionID gid.GID `json:"webhookSubscriptionId"` - Status coredata.WebhookEventStatus `json:"status"` - Response *string `json:"response,omitempty"` - CreatedAt time.Time `json:"createdAt"` -} - -func (WebhookEvent) IsNode() {} -func (this WebhookEvent) GetID() gid.GID { return this.ID } - -type WebhookEventEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *WebhookEvent `json:"node"` -} - -type WebhookSubscription struct { - ID gid.GID `json:"id"` - Organization *Organization `json:"organization,omitempty"` - EndpointURL string `json:"endpointUrl"` - SigningSecret string `json:"signingSecret"` - SelectedEvents []coredata.WebhookEventType `json:"selectedEvents"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` - Events *WebhookEventConnection `json:"events"` - Permission bool `json:"permission"` -} - -func (WebhookSubscription) IsNode() {} -func (this WebhookSubscription) GetID() gid.GID { return this.ID } - -type WebhookSubscriptionEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *WebhookSubscription `json:"node"` -} diff --git a/pkg/server/api/console/v1/v1_resolver.go b/pkg/server/api/console/v1/v1_resolver.go index 9e8e985ca..baf520b25 100644 --- a/pkg/server/api/console/v1/v1_resolver.go +++ b/pkg/server/api/console/v1/v1_resolver.go @@ -26,7 +26,6 @@ import ( "go.probo.inc/probo/pkg/server/api/console/v1/types" "go.probo.inc/probo/pkg/server/gqlutils" "go.probo.inc/probo/pkg/server/gqlutils/types/cursor" - "go.probo.inc/probo/pkg/validator" ) // StateOfApplicability is the resolver for the stateOfApplicability field. @@ -2073,18 +2072,8 @@ func (r *mutationResolver) CreateMailingListUpdate(ctx context.Context, input ty return nil, err } - mlu, err := r.mailman.CreateMailingListUpdate( - ctx, - &mailman.CreateMailingListUpdateRequest{ - MailingListID: input.MailingListID, - Title: input.Title, - Body: input.Body, - }, - ) + mlu, err := r.mailman.CreateMailingListUpdate(ctx, input.MailingListID, input.Title, input.Body) if err != nil { - if validationErrors, ok := errors.AsType[validator.ValidationErrors](err); ok { - return nil, gqlutils.InvalidValidationErrors(ctx, validationErrors) - } r.logger.ErrorCtx(ctx, "cannot create mailing list update", log.Error(err)) return nil, gqlutils.Internal(ctx) } @@ -2100,18 +2089,8 @@ func (r *mutationResolver) UpdateMailingListUpdate(ctx context.Context, input ty return nil, err } - mlu, err := r.mailman.UpdateMailingListUpdate( - ctx, - &mailman.UpdateMailingListUpdateRequest{ - ID: input.ID, - Title: input.Title, - Body: input.Body, - }, - ) + mlu, err := r.mailman.UpdateMailingListUpdate(ctx, input.ID, input.Title, input.Body) if err != nil { - if validationErrors, ok := errors.AsType[validator.ValidationErrors](err); ok { - return nil, gqlutils.InvalidValidationErrors(ctx, validationErrors) - } if errors.Is(err, mailman.ErrMailingListUpdateAlreadySent) { return nil, gqlutils.Conflictf(ctx, "mailing list update can only be edited when in draft") } @@ -2194,16 +2173,11 @@ func (r *mutationResolver) CreateMailingListSubscriber(ctx context.Context, inpu subscriber, err := r.mailman.CreateSubscriber( ctx, - &mailman.CreateSubscriberRequest{ - MailingListID: input.MailingListID, - Email: input.Email, - FullName: input.FullName, - }, + input.MailingListID, + input.Email, + input.FullName, ) if err != nil { - if validationErrors, ok := errors.AsType[validator.ValidationErrors](err); ok { - return nil, gqlutils.InvalidValidationErrors(ctx, validationErrors) - } if errors.Is(err, mailman.ErrSubscriberAlreadyExist) { return nil, gqlutils.Conflictf(ctx, "subscriber already exists in this mailing list") } diff --git a/pkg/server/api/mcp/v1/server/.gitignore b/pkg/server/api/mcp/v1/server/.gitignore new file mode 100644 index 000000000..4103f224a --- /dev/null +++ b/pkg/server/api/mcp/v1/server/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!doc.go diff --git a/pkg/server/api/mcp/v1/server/doc.go b/pkg/server/api/mcp/v1/server/doc.go new file mode 100644 index 000000000..9a17f3b83 --- /dev/null +++ b/pkg/server/api/mcp/v1/server/doc.go @@ -0,0 +1,17 @@ +// Copyright (c) 2025 Probo Inc . +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +// PERFORMANCE OF THIS SOFTWARE. + +// Package server contains the generated MCP server tool registration and +// resolver interface. +package server diff --git a/pkg/server/api/mcp/v1/server/server.go b/pkg/server/api/mcp/v1/server/server.go deleted file mode 100644 index 1927a87ec..000000000 --- a/pkg/server/api/mcp/v1/server/server.go +++ /dev/null @@ -1,1718 +0,0 @@ -// Code generated by mcpgen. DO NOT EDIT. - -package server - -import ( - "context" - "github.com/modelcontextprotocol/go-sdk/mcp" - "go.probo.inc/probo/pkg/server/api/mcp/v1/types" -) - -// ResolverInterface defines the interface that must be implemented by the parent resolver -type ResolverInterface interface { - ListOrganizationsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListOrganizationsInput) (*mcp.CallToolResult, types.ListOrganizationsOutput, error) - ListVendorsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListVendorsInput) (*mcp.CallToolResult, types.ListVendorsOutput, error) - ListUsersTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListUsersInput) (*mcp.CallToolResult, types.ListUsersOutput, error) - GetUserTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetUserInput) (*mcp.CallToolResult, types.GetUserOutput, error) - CreateUserTool(ctx context.Context, req *mcp.CallToolRequest, input *types.CreateUserInput) (*mcp.CallToolResult, types.CreateUserOutput, error) - InviteUserTool(ctx context.Context, req *mcp.CallToolRequest, input *types.InviteUserInput) (*mcp.CallToolResult, types.InviteUserOutput, error) - UpdateUserTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateUserInput) (*mcp.CallToolResult, types.UpdateUserOutput, error) - UpdateMembershipTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateMembershipInput) (*mcp.CallToolResult, types.UpdateMembershipOutput, error) - RemoveUserTool(ctx context.Context, req *mcp.CallToolRequest, input *types.RemoveUserInput) (*mcp.CallToolResult, types.RemoveUserOutput, error) - AddVendorTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddVendorInput) (*mcp.CallToolResult, types.AddVendorOutput, error) - UpdateVendorTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateVendorInput) (*mcp.CallToolResult, types.UpdateVendorOutput, error) - ListVendorRiskAssessmentsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListVendorRiskAssessmentsInput) (*mcp.CallToolResult, types.ListVendorRiskAssessmentsOutput, error) - AddVendorRiskAssessmentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddVendorRiskAssessmentInput) (*mcp.CallToolResult, types.AddVendorRiskAssessmentOutput, error) - DeleteVendorTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteVendorInput) (*mcp.CallToolResult, types.DeleteVendorOutput, error) - ListRisksTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListRisksInput) (*mcp.CallToolResult, types.ListRisksOutput, error) - GetRiskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetRiskInput) (*mcp.CallToolResult, types.GetRiskOutput, error) - AddRiskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddRiskInput) (*mcp.CallToolResult, types.AddRiskOutput, error) - UpdateRiskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateRiskInput) (*mcp.CallToolResult, types.UpdateRiskOutput, error) - DeleteRiskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteRiskInput) (*mcp.CallToolResult, types.DeleteRiskOutput, error) - ListMeasuresTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListMeasuresInput) (*mcp.CallToolResult, types.ListMeasuresOutput, error) - GetMeasureTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetMeasureInput) (*mcp.CallToolResult, types.GetMeasureOutput, error) - AddMeasureTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddMeasureInput) (*mcp.CallToolResult, types.AddMeasureOutput, error) - UpdateMeasureTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateMeasureInput) (*mcp.CallToolResult, types.UpdateMeasureOutput, error) - DeleteMeasureTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteMeasureInput) (*mcp.CallToolResult, types.DeleteMeasureOutput, error) - ListMeasureRisksTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListMeasureRisksInput) (*mcp.CallToolResult, types.ListMeasureRisksOutput, error) - ListMeasureControlsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListMeasureControlsInput) (*mcp.CallToolResult, types.ListMeasureControlsOutput, error) - ListMeasureTasksTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListMeasureTasksInput) (*mcp.CallToolResult, types.ListMeasureTasksOutput, error) - ListMeasureEvidencesTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListMeasureEvidencesInput) (*mcp.CallToolResult, types.ListMeasureEvidencesOutput, error) - LinkMeasureTool(ctx context.Context, req *mcp.CallToolRequest, input *types.LinkMeasureInput) (*mcp.CallToolResult, types.LinkMeasureOutput, error) - UnlinkMeasureTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UnlinkMeasureInput) (*mcp.CallToolResult, types.UnlinkMeasureOutput, error) - ListFrameworksTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListFrameworksInput) (*mcp.CallToolResult, types.ListFrameworksOutput, error) - GetFrameworkTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetFrameworkInput) (*mcp.CallToolResult, types.GetFrameworkOutput, error) - AddFrameworkTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddFrameworkInput) (*mcp.CallToolResult, types.AddFrameworkOutput, error) - UpdateFrameworkTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateFrameworkInput) (*mcp.CallToolResult, types.UpdateFrameworkOutput, error) - ListAssetsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListAssetsInput) (*mcp.CallToolResult, types.ListAssetsOutput, error) - GetAssetTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetAssetInput) (*mcp.CallToolResult, types.GetAssetOutput, error) - AddAssetTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddAssetInput) (*mcp.CallToolResult, types.AddAssetOutput, error) - UpdateAssetTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateAssetInput) (*mcp.CallToolResult, types.UpdateAssetOutput, error) - ListDataTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListDataInput) (*mcp.CallToolResult, types.ListDataOutput, error) - GetDatumTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetDatumInput) (*mcp.CallToolResult, types.GetDatumOutput, error) - AddDatumTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddDatumInput) (*mcp.CallToolResult, types.AddDatumOutput, error) - UpdateDatumTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateDatumInput) (*mcp.CallToolResult, types.UpdateDatumOutput, error) - ListNonconformitiesTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListNonconformitiesInput) (*mcp.CallToolResult, types.ListNonconformitiesOutput, error) - GetNonconformityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetNonconformityInput) (*mcp.CallToolResult, types.GetNonconformityOutput, error) - AddNonconformityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddNonconformityInput) (*mcp.CallToolResult, types.AddNonconformityOutput, error) - UpdateNonconformityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateNonconformityInput) (*mcp.CallToolResult, types.UpdateNonconformityOutput, error) - ListObligationsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListObligationsInput) (*mcp.CallToolResult, types.ListObligationsOutput, error) - GetObligationTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetObligationInput) (*mcp.CallToolResult, types.GetObligationOutput, error) - AddObligationTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddObligationInput) (*mcp.CallToolResult, types.AddObligationOutput, error) - UpdateObligationTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateObligationInput) (*mcp.CallToolResult, types.UpdateObligationOutput, error) - ListProcessingActivitiesTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListProcessingActivitiesInput) (*mcp.CallToolResult, types.ListProcessingActivitiesOutput, error) - GetProcessingActivityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetProcessingActivityInput) (*mcp.CallToolResult, types.GetProcessingActivityOutput, error) - AddProcessingActivityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddProcessingActivityInput) (*mcp.CallToolResult, types.AddProcessingActivityOutput, error) - UpdateProcessingActivityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateProcessingActivityInput) (*mcp.CallToolResult, types.UpdateProcessingActivityOutput, error) - DeleteProcessingActivityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteProcessingActivityInput) (*mcp.CallToolResult, types.DeleteProcessingActivityOutput, error) - ListDataProtectionImpactAssessmentsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListDataProtectionImpactAssessmentsInput) (*mcp.CallToolResult, types.ListDataProtectionImpactAssessmentsOutput, error) - GetDataProtectionImpactAssessmentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetDataProtectionImpactAssessmentInput) (*mcp.CallToolResult, types.GetDataProtectionImpactAssessmentOutput, error) - AddDataProtectionImpactAssessmentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddDataProtectionImpactAssessmentInput) (*mcp.CallToolResult, types.AddDataProtectionImpactAssessmentOutput, error) - UpdateDataProtectionImpactAssessmentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateDataProtectionImpactAssessmentInput) (*mcp.CallToolResult, types.UpdateDataProtectionImpactAssessmentOutput, error) - DeleteDataProtectionImpactAssessmentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteDataProtectionImpactAssessmentInput) (*mcp.CallToolResult, types.DeleteDataProtectionImpactAssessmentOutput, error) - ListTransferImpactAssessmentsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListTransferImpactAssessmentsInput) (*mcp.CallToolResult, types.ListTransferImpactAssessmentsOutput, error) - GetTransferImpactAssessmentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetTransferImpactAssessmentInput) (*mcp.CallToolResult, types.GetTransferImpactAssessmentOutput, error) - AddTransferImpactAssessmentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddTransferImpactAssessmentInput) (*mcp.CallToolResult, types.AddTransferImpactAssessmentOutput, error) - UpdateTransferImpactAssessmentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateTransferImpactAssessmentInput) (*mcp.CallToolResult, types.UpdateTransferImpactAssessmentOutput, error) - DeleteTransferImpactAssessmentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteTransferImpactAssessmentInput) (*mcp.CallToolResult, types.DeleteTransferImpactAssessmentOutput, error) - ListContinualImprovementsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListContinualImprovementsInput) (*mcp.CallToolResult, types.ListContinualImprovementsOutput, error) - GetContinualImprovementTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetContinualImprovementInput) (*mcp.CallToolResult, types.GetContinualImprovementOutput, error) - AddContinualImprovementTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddContinualImprovementInput) (*mcp.CallToolResult, types.AddContinualImprovementOutput, error) - UpdateContinualImprovementTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateContinualImprovementInput) (*mcp.CallToolResult, types.UpdateContinualImprovementOutput, error) - ListAuditsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListAuditsInput) (*mcp.CallToolResult, types.ListAuditsOutput, error) - GetAuditTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetAuditInput) (*mcp.CallToolResult, types.GetAuditOutput, error) - AddAuditTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddAuditInput) (*mcp.CallToolResult, types.AddAuditOutput, error) - UpdateAuditTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateAuditInput) (*mcp.CallToolResult, types.UpdateAuditOutput, error) - ListControlsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListControlsInput) (*mcp.CallToolResult, types.ListControlsOutput, error) - GetControlTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetControlInput) (*mcp.CallToolResult, types.GetControlOutput, error) - AddControlTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddControlInput) (*mcp.CallToolResult, types.AddControlOutput, error) - UpdateControlTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateControlInput) (*mcp.CallToolResult, types.UpdateControlOutput, error) - LinkControlTool(ctx context.Context, req *mcp.CallToolRequest, input *types.LinkControlInput) (*mcp.CallToolResult, types.LinkControlOutput, error) - UnlinkControlTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UnlinkControlInput) (*mcp.CallToolResult, types.UnlinkControlOutput, error) - ListControlObligationsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListControlObligationsInput) (*mcp.CallToolResult, types.ListControlObligationsOutput, error) - ListControlMeasuresTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListControlMeasuresInput) (*mcp.CallToolResult, types.ListControlMeasuresOutput, error) - ListControlDocumentsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListControlDocumentsInput) (*mcp.CallToolResult, types.ListControlDocumentsOutput, error) - ListControlAuditsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListControlAuditsInput) (*mcp.CallToolResult, types.ListControlAuditsOutput, error) - ListControlSnapshotsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListControlSnapshotsInput) (*mcp.CallToolResult, types.ListControlSnapshotsOutput, error) - ListRiskObligationsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListRiskObligationsInput) (*mcp.CallToolResult, types.ListRiskObligationsOutput, error) - LinkRiskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.LinkRiskInput) (*mcp.CallToolResult, types.LinkRiskOutput, error) - UnlinkRiskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UnlinkRiskInput) (*mcp.CallToolResult, types.UnlinkRiskOutput, error) - ListTasksTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListTasksInput) (*mcp.CallToolResult, types.ListTasksOutput, error) - GetTaskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetTaskInput) (*mcp.CallToolResult, types.GetTaskOutput, error) - AddTaskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddTaskInput) (*mcp.CallToolResult, types.AddTaskOutput, error) - UpdateTaskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateTaskInput) (*mcp.CallToolResult, types.UpdateTaskOutput, error) - AssignTaskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AssignTaskInput) (*mcp.CallToolResult, types.AssignTaskOutput, error) - UnassignTaskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UnassignTaskInput) (*mcp.CallToolResult, types.UnassignTaskOutput, error) - DeleteTaskTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteTaskInput) (*mcp.CallToolResult, types.DeleteTaskOutput, error) - ListSnapshotsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListSnapshotsInput) (*mcp.CallToolResult, types.ListSnapshotsOutput, error) - GetSnapshotTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetSnapshotInput) (*mcp.CallToolResult, types.GetSnapshotOutput, error) - TakeSnapshotTool(ctx context.Context, req *mcp.CallToolRequest, input *types.TakeSnapshotInput) (*mcp.CallToolResult, types.TakeSnapshotOutput, error) - ListDocumentsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListDocumentsInput) (*mcp.CallToolResult, types.ListDocumentsOutput, error) - GetDocumentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetDocumentInput) (*mcp.CallToolResult, types.GetDocumentOutput, error) - AddDocumentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddDocumentInput) (*mcp.CallToolResult, types.AddDocumentOutput, error) - UpdateDocumentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateDocumentInput) (*mcp.CallToolResult, types.UpdateDocumentOutput, error) - ListDocumentVersionsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListDocumentVersionsInput) (*mcp.CallToolResult, types.ListDocumentVersionsOutput, error) - GetDocumentVersionTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetDocumentVersionInput) (*mcp.CallToolResult, types.GetDocumentVersionOutput, error) - CreateDraftDocumentVersionTool(ctx context.Context, req *mcp.CallToolRequest, input *types.CreateDraftDocumentVersionInput) (*mcp.CallToolResult, types.CreateDraftDocumentVersionOutput, error) - UpdateDocumentVersionTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateDocumentVersionInput) (*mcp.CallToolResult, types.UpdateDocumentVersionOutput, error) - DeleteDraftDocumentVersionTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteDraftDocumentVersionInput) (*mcp.CallToolResult, types.DeleteDraftDocumentVersionOutput, error) - PublishDocumentVersionTool(ctx context.Context, req *mcp.CallToolRequest, input *types.PublishDocumentVersionInput) (*mcp.CallToolResult, types.PublishDocumentVersionOutput, error) - DeleteDocumentTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteDocumentInput) (*mcp.CallToolResult, types.DeleteDocumentOutput, error) - ListDocumentVersionSignaturesTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListDocumentVersionSignaturesInput) (*mcp.CallToolResult, types.ListDocumentVersionSignaturesOutput, error) - GetDocumentVersionSignatureTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetDocumentVersionSignatureInput) (*mcp.CallToolResult, types.GetDocumentVersionSignatureOutput, error) - RequestDocumentVersionSignatureTool(ctx context.Context, req *mcp.CallToolRequest, input *types.RequestDocumentVersionSignatureInput) (*mcp.CallToolResult, types.RequestDocumentVersionSignatureOutput, error) - CancelSignatureRequestTool(ctx context.Context, req *mcp.CallToolRequest, input *types.CancelSignatureRequestInput) (*mcp.CallToolResult, types.CancelSignatureRequestOutput, error) - ListMeetingsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListMeetingsInput) (*mcp.CallToolResult, types.ListMeetingsOutput, error) - GetMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetMeetingInput) (*mcp.CallToolResult, types.GetMeetingOutput, error) - AddMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddMeetingInput) (*mcp.CallToolResult, types.AddMeetingOutput, error) - UpdateMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateMeetingInput) (*mcp.CallToolResult, types.UpdateMeetingOutput, error) - DeleteMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteMeetingInput) (*mcp.CallToolResult, types.DeleteMeetingOutput, error) - ListMeetingAttendeesTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListMeetingAttendeesInput) (*mcp.CallToolResult, types.ListMeetingAttendeesOutput, error) - ListStatesOfApplicabilityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListStatesOfApplicabilityInput) (*mcp.CallToolResult, types.ListStatesOfApplicabilityOutput, error) - GetStateOfApplicabilityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetStateOfApplicabilityInput) (*mcp.CallToolResult, types.GetStateOfApplicabilityOutput, error) - AddStateOfApplicabilityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddStateOfApplicabilityInput) (*mcp.CallToolResult, types.AddStateOfApplicabilityOutput, error) - UpdateStateOfApplicabilityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateStateOfApplicabilityInput) (*mcp.CallToolResult, types.UpdateStateOfApplicabilityOutput, error) - DeleteStateOfApplicabilityTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteStateOfApplicabilityInput) (*mcp.CallToolResult, types.DeleteStateOfApplicabilityOutput, error) - ExportStateOfApplicabilityPDFTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ExportStateOfApplicabilityPDFInput) (*mcp.CallToolResult, types.ExportStateOfApplicabilityPDFOutput, error) - ListApplicabilityStatementsTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListApplicabilityStatementsInput) (*mcp.CallToolResult, types.ListApplicabilityStatementsOutput, error) - GetApplicabilityStatementTool(ctx context.Context, req *mcp.CallToolRequest, input *types.GetApplicabilityStatementInput) (*mcp.CallToolResult, types.GetApplicabilityStatementOutput, error) - AddApplicabilityStatementTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddApplicabilityStatementInput) (*mcp.CallToolResult, types.AddApplicabilityStatementOutput, error) - UpdateApplicabilityStatementTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateApplicabilityStatementInput) (*mcp.CallToolResult, types.UpdateApplicabilityStatementOutput, error) - DeleteApplicabilityStatementTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteApplicabilityStatementInput) (*mcp.CallToolResult, types.DeleteApplicabilityStatementOutput, error) -} - -// New creates a new MCP server instance with all handlers registered. -// Returns a fully configured *mcp.Server ready to be used with any transport. -func New(resolver ResolverInterface) *mcp.Server { - server := mcp.NewServer( - &mcp.Implementation{ - Name: "Probo MCP Server", - Version: "1.0.0", - }, - nil, - ) - - registerToolHandlers(server, resolver) - - return server -} - -func registerToolHandlers(server *mcp.Server, resolver ResolverInterface) { - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listOrganizations", - Description: "List all organizations the user has access to", - InputSchema: types.ListOrganizationsToolInputSchema, - OutputSchema: types.ListOrganizationsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListOrganizationsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listVendors", - Description: "List all vendors for the organization", - InputSchema: types.ListVendorsToolInputSchema, - OutputSchema: types.ListVendorsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListVendorsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listUsers", - Description: "List all users for the organization", - InputSchema: types.ListUsersToolInputSchema, - OutputSchema: types.ListUsersToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListUsersTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getUser", - Description: "Get a user by ID (profile ID)", - InputSchema: types.GetUserToolInputSchema, - OutputSchema: types.GetUserToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetUserTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "createUser", - Description: "Create a new user in the organization", - InputSchema: types.CreateUserToolInputSchema, - OutputSchema: types.CreateUserToolOutputSchema, - }, - resolver.CreateUserTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "inviteUser", - Description: "Invite a user (profile) to the organization", - InputSchema: types.InviteUserToolInputSchema, - OutputSchema: types.InviteUserToolOutputSchema, - }, - resolver.InviteUserTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateUser", - Description: "Update an existing user (profile)", - InputSchema: types.UpdateUserToolInputSchema, - OutputSchema: types.UpdateUserToolOutputSchema, - }, - resolver.UpdateUserTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateMembership", - Description: "Update a membership role", - InputSchema: types.UpdateMembershipToolInputSchema, - OutputSchema: types.UpdateMembershipToolOutputSchema, - }, - resolver.UpdateMembershipTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "removeUser", - Description: "Remove a user from the organization", - InputSchema: types.RemoveUserToolInputSchema, - OutputSchema: types.RemoveUserToolOutputSchema, - }, - resolver.RemoveUserTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addVendor", - Description: "Add a new vendor to the organization", - InputSchema: types.AddVendorToolInputSchema, - OutputSchema: types.AddVendorToolOutputSchema, - }, - resolver.AddVendorTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateVendor", - Description: "Update an existing vendor", - InputSchema: types.UpdateVendorToolInputSchema, - OutputSchema: types.UpdateVendorToolOutputSchema, - }, - resolver.UpdateVendorTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listVendorRiskAssessments", - Description: "List all risk assessments for a vendor", - InputSchema: types.ListVendorRiskAssessmentsToolInputSchema, - OutputSchema: types.ListVendorRiskAssessmentsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListVendorRiskAssessmentsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addVendorRiskAssessment", - Description: "Add a new risk assessment for a vendor", - InputSchema: types.AddVendorRiskAssessmentToolInputSchema, - OutputSchema: types.AddVendorRiskAssessmentToolOutputSchema, - }, - resolver.AddVendorRiskAssessmentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteVendor", - Description: "Delete a vendor", - InputSchema: types.DeleteVendorToolInputSchema, - OutputSchema: types.DeleteVendorToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - DestructiveHint: boolPtr(true), - }, - }, - resolver.DeleteVendorTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listRisks", - Description: "List all risks for the organization", - InputSchema: types.ListRisksToolInputSchema, - OutputSchema: types.ListRisksToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListRisksTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getRisk", - Description: "Get a risk by ID", - InputSchema: types.GetRiskToolInputSchema, - OutputSchema: types.GetRiskToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetRiskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addRisk", - Description: "Add a new risk to the organization", - InputSchema: types.AddRiskToolInputSchema, - OutputSchema: types.AddRiskToolOutputSchema, - }, - resolver.AddRiskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateRisk", - Description: "Update an existing risk", - InputSchema: types.UpdateRiskToolInputSchema, - OutputSchema: types.UpdateRiskToolOutputSchema, - }, - resolver.UpdateRiskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteRisk", - Description: "Delete a risk", - InputSchema: types.DeleteRiskToolInputSchema, - OutputSchema: types.DeleteRiskToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - DestructiveHint: boolPtr(true), - }, - }, - resolver.DeleteRiskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listMeasures", - Description: "List all measures for the organization", - InputSchema: types.ListMeasuresToolInputSchema, - OutputSchema: types.ListMeasuresToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListMeasuresTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getMeasure", - Description: "Get a measure by ID", - InputSchema: types.GetMeasureToolInputSchema, - OutputSchema: types.GetMeasureToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetMeasureTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addMeasure", - Description: "Add a new measure to the organization", - InputSchema: types.AddMeasureToolInputSchema, - OutputSchema: types.AddMeasureToolOutputSchema, - }, - resolver.AddMeasureTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateMeasure", - Description: "Update an existing measure", - InputSchema: types.UpdateMeasureToolInputSchema, - OutputSchema: types.UpdateMeasureToolOutputSchema, - }, - resolver.UpdateMeasureTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteMeasure", - Description: "Delete a measure", - InputSchema: types.DeleteMeasureToolInputSchema, - OutputSchema: types.DeleteMeasureToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - DestructiveHint: boolPtr(true), - }, - }, - resolver.DeleteMeasureTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listMeasureRisks", - Description: "List risks linked to a measure", - InputSchema: types.ListMeasureRisksToolInputSchema, - OutputSchema: types.ListMeasureRisksToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListMeasureRisksTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listMeasureControls", - Description: "List controls linked to a measure", - InputSchema: types.ListMeasureControlsToolInputSchema, - OutputSchema: types.ListMeasureControlsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListMeasureControlsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listMeasureTasks", - Description: "List tasks linked to a measure", - InputSchema: types.ListMeasureTasksToolInputSchema, - OutputSchema: types.ListMeasureTasksToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListMeasureTasksTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listMeasureEvidences", - Description: "List evidences linked to a measure", - InputSchema: types.ListMeasureEvidencesToolInputSchema, - OutputSchema: types.ListMeasureEvidencesToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListMeasureEvidencesTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "linkMeasure", - Description: "Link a measure to a resource (control or risk). The resource type is determined from the resource_id GID.", - InputSchema: types.LinkMeasureToolInputSchema, - OutputSchema: types.LinkMeasureToolOutputSchema, - }, - resolver.LinkMeasureTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "unlinkMeasure", - Description: "Unlink a measure from a resource (control or risk). The resource type is determined from the resource_id GID.", - InputSchema: types.UnlinkMeasureToolInputSchema, - OutputSchema: types.UnlinkMeasureToolOutputSchema, - }, - resolver.UnlinkMeasureTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listFrameworks", - Description: "List all frameworks for the organization", - InputSchema: types.ListFrameworksToolInputSchema, - OutputSchema: types.ListFrameworksToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListFrameworksTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getFramework", - Description: "Get a framework by ID", - InputSchema: types.GetFrameworkToolInputSchema, - OutputSchema: types.GetFrameworkToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetFrameworkTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addFramework", - Description: "Add a new framework to the organization", - InputSchema: types.AddFrameworkToolInputSchema, - OutputSchema: types.AddFrameworkToolOutputSchema, - }, - resolver.AddFrameworkTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateFramework", - Description: "Update an existing framework", - InputSchema: types.UpdateFrameworkToolInputSchema, - OutputSchema: types.UpdateFrameworkToolOutputSchema, - }, - resolver.UpdateFrameworkTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listAssets", - Description: "List all assets for the organization", - InputSchema: types.ListAssetsToolInputSchema, - OutputSchema: types.ListAssetsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListAssetsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getAsset", - Description: "Get an asset by ID", - InputSchema: types.GetAssetToolInputSchema, - OutputSchema: types.GetAssetToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetAssetTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addAsset", - Description: "Add a new asset to the organization", - InputSchema: types.AddAssetToolInputSchema, - OutputSchema: types.AddAssetToolOutputSchema, - }, - resolver.AddAssetTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateAsset", - Description: "Update an existing asset", - InputSchema: types.UpdateAssetToolInputSchema, - OutputSchema: types.UpdateAssetToolOutputSchema, - }, - resolver.UpdateAssetTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listData", - Description: "List all data for the organization", - InputSchema: types.ListDataToolInputSchema, - OutputSchema: types.ListDataToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListDataTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getDatum", - Description: "Get a datum by ID", - InputSchema: types.GetDatumToolInputSchema, - OutputSchema: types.GetDatumToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetDatumTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addDatum", - Description: "Add a new datum to the organization", - InputSchema: types.AddDatumToolInputSchema, - OutputSchema: types.AddDatumToolOutputSchema, - }, - resolver.AddDatumTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateDatum", - Description: "Update an existing datum", - InputSchema: types.UpdateDatumToolInputSchema, - OutputSchema: types.UpdateDatumToolOutputSchema, - }, - resolver.UpdateDatumTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listNonconformities", - Description: "List all nonconformities for the organization", - InputSchema: types.ListNonconformitiesToolInputSchema, - OutputSchema: types.ListNonconformitiesToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListNonconformitiesTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getNonconformity", - Description: "Get a nonconformity by ID", - InputSchema: types.GetNonconformityToolInputSchema, - OutputSchema: types.GetNonconformityToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetNonconformityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addNonconformity", - Description: "Add a new nonconformity to the organization", - InputSchema: types.AddNonconformityToolInputSchema, - OutputSchema: types.AddNonconformityToolOutputSchema, - }, - resolver.AddNonconformityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateNonconformity", - Description: "Update an existing nonconformity", - InputSchema: types.UpdateNonconformityToolInputSchema, - OutputSchema: types.UpdateNonconformityToolOutputSchema, - }, - resolver.UpdateNonconformityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listObligations", - Description: "List all obligations for the organization", - InputSchema: types.ListObligationsToolInputSchema, - OutputSchema: types.ListObligationsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListObligationsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getObligation", - Description: "Get an obligation by ID", - InputSchema: types.GetObligationToolInputSchema, - OutputSchema: types.GetObligationToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetObligationTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addObligation", - Description: "Add a new obligation to the organization", - InputSchema: types.AddObligationToolInputSchema, - OutputSchema: types.AddObligationToolOutputSchema, - }, - resolver.AddObligationTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateObligation", - Description: "Update an existing obligation", - InputSchema: types.UpdateObligationToolInputSchema, - OutputSchema: types.UpdateObligationToolOutputSchema, - }, - resolver.UpdateObligationTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listProcessingActivities", - Description: "List all processing activities for the organization", - InputSchema: types.ListProcessingActivitiesToolInputSchema, - OutputSchema: types.ListProcessingActivitiesToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListProcessingActivitiesTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getProcessingActivity", - Description: "Get a processing activity by ID", - InputSchema: types.GetProcessingActivityToolInputSchema, - OutputSchema: types.GetProcessingActivityToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetProcessingActivityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addProcessingActivity", - Description: "Add a new processing activity to the organization", - InputSchema: types.AddProcessingActivityToolInputSchema, - OutputSchema: types.AddProcessingActivityToolOutputSchema, - }, - resolver.AddProcessingActivityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateProcessingActivity", - Description: "Update an existing processing activity", - InputSchema: types.UpdateProcessingActivityToolInputSchema, - OutputSchema: types.UpdateProcessingActivityToolOutputSchema, - }, - resolver.UpdateProcessingActivityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteProcessingActivity", - Description: "Delete a processing activity", - InputSchema: types.DeleteProcessingActivityToolInputSchema, - OutputSchema: types.DeleteProcessingActivityToolOutputSchema, - }, - resolver.DeleteProcessingActivityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listDataProtectionImpactAssessments", - Description: "List all data protection impact assessments (DPIAs) for the organization", - InputSchema: types.ListDataProtectionImpactAssessmentsToolInputSchema, - OutputSchema: types.ListDataProtectionImpactAssessmentsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListDataProtectionImpactAssessmentsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getDataProtectionImpactAssessment", - Description: "Get a data protection impact assessment (DPIA) by ID", - InputSchema: types.GetDataProtectionImpactAssessmentToolInputSchema, - OutputSchema: types.GetDataProtectionImpactAssessmentToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetDataProtectionImpactAssessmentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addDataProtectionImpactAssessment", - Description: "Add a new data protection impact assessment (DPIA) for a processing activity", - InputSchema: types.AddDataProtectionImpactAssessmentToolInputSchema, - OutputSchema: types.AddDataProtectionImpactAssessmentToolOutputSchema, - }, - resolver.AddDataProtectionImpactAssessmentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateDataProtectionImpactAssessment", - Description: "Update an existing data protection impact assessment (DPIA)", - InputSchema: types.UpdateDataProtectionImpactAssessmentToolInputSchema, - OutputSchema: types.UpdateDataProtectionImpactAssessmentToolOutputSchema, - }, - resolver.UpdateDataProtectionImpactAssessmentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteDataProtectionImpactAssessment", - Description: "Delete a data protection impact assessment (DPIA) by ID", - InputSchema: types.DeleteDataProtectionImpactAssessmentToolInputSchema, - OutputSchema: types.DeleteDataProtectionImpactAssessmentToolOutputSchema, - }, - resolver.DeleteDataProtectionImpactAssessmentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listTransferImpactAssessments", - Description: "List all transfer impact assessments (TIAs) for the organization", - InputSchema: types.ListTransferImpactAssessmentsToolInputSchema, - OutputSchema: types.ListTransferImpactAssessmentsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListTransferImpactAssessmentsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getTransferImpactAssessment", - Description: "Get a transfer impact assessment (TIA) by ID", - InputSchema: types.GetTransferImpactAssessmentToolInputSchema, - OutputSchema: types.GetTransferImpactAssessmentToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetTransferImpactAssessmentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addTransferImpactAssessment", - Description: "Add a new transfer impact assessment (TIA) for a processing activity", - InputSchema: types.AddTransferImpactAssessmentToolInputSchema, - OutputSchema: types.AddTransferImpactAssessmentToolOutputSchema, - }, - resolver.AddTransferImpactAssessmentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateTransferImpactAssessment", - Description: "Update an existing transfer impact assessment (TIA)", - InputSchema: types.UpdateTransferImpactAssessmentToolInputSchema, - OutputSchema: types.UpdateTransferImpactAssessmentToolOutputSchema, - }, - resolver.UpdateTransferImpactAssessmentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteTransferImpactAssessment", - Description: "Delete a transfer impact assessment (TIA)", - InputSchema: types.DeleteTransferImpactAssessmentToolInputSchema, - OutputSchema: types.DeleteTransferImpactAssessmentToolOutputSchema, - }, - resolver.DeleteTransferImpactAssessmentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listContinualImprovements", - Description: "List all continual improvements for the organization", - InputSchema: types.ListContinualImprovementsToolInputSchema, - OutputSchema: types.ListContinualImprovementsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListContinualImprovementsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getContinualImprovement", - Description: "Get a continual improvement by ID", - InputSchema: types.GetContinualImprovementToolInputSchema, - OutputSchema: types.GetContinualImprovementToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetContinualImprovementTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addContinualImprovement", - Description: "Add a new continual improvement to the organization", - InputSchema: types.AddContinualImprovementToolInputSchema, - OutputSchema: types.AddContinualImprovementToolOutputSchema, - }, - resolver.AddContinualImprovementTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateContinualImprovement", - Description: "Update an existing continual improvement", - InputSchema: types.UpdateContinualImprovementToolInputSchema, - OutputSchema: types.UpdateContinualImprovementToolOutputSchema, - }, - resolver.UpdateContinualImprovementTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listAudits", - Description: "List all audits for the organization", - InputSchema: types.ListAuditsToolInputSchema, - OutputSchema: types.ListAuditsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListAuditsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getAudit", - Description: "Get an audit by ID", - InputSchema: types.GetAuditToolInputSchema, - OutputSchema: types.GetAuditToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetAuditTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addAudit", - Description: "Add a new audit to the organization", - InputSchema: types.AddAuditToolInputSchema, - OutputSchema: types.AddAuditToolOutputSchema, - }, - resolver.AddAuditTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateAudit", - Description: "Update an existing audit", - InputSchema: types.UpdateAuditToolInputSchema, - OutputSchema: types.UpdateAuditToolOutputSchema, - }, - resolver.UpdateAuditTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listControls", - Description: "List all controls for the organization or framework", - InputSchema: types.ListControlsToolInputSchema, - OutputSchema: types.ListControlsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListControlsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getControl", - Description: "Get a control by ID", - InputSchema: types.GetControlToolInputSchema, - OutputSchema: types.GetControlToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetControlTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addControl", - Description: "Add a new control to a framework", - InputSchema: types.AddControlToolInputSchema, - OutputSchema: types.AddControlToolOutputSchema, - }, - resolver.AddControlTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateControl", - Description: "Update an existing control", - InputSchema: types.UpdateControlToolInputSchema, - OutputSchema: types.UpdateControlToolOutputSchema, - }, - resolver.UpdateControlTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "linkControl", - Description: "Link a resource to a control (measure, document, audit, snapshot, or obligation). The resource type is determined from the resource_id GID.", - InputSchema: types.LinkControlToolInputSchema, - OutputSchema: types.LinkControlToolOutputSchema, - }, - resolver.LinkControlTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "unlinkControl", - Description: "Unlink a resource from a control (measure, document, audit, snapshot, or obligation). The resource type is determined from the resource_id GID.", - InputSchema: types.UnlinkControlToolInputSchema, - OutputSchema: types.UnlinkControlToolOutputSchema, - }, - resolver.UnlinkControlTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listControlObligations", - Description: "List obligations linked to a control", - InputSchema: types.ListControlObligationsToolInputSchema, - OutputSchema: types.ListControlObligationsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListControlObligationsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listControlMeasures", - Description: "List measures linked to a control", - InputSchema: types.ListControlMeasuresToolInputSchema, - OutputSchema: types.ListControlMeasuresToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListControlMeasuresTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listControlDocuments", - Description: "List documents linked to a control", - InputSchema: types.ListControlDocumentsToolInputSchema, - OutputSchema: types.ListControlDocumentsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListControlDocumentsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listControlAudits", - Description: "List audits linked to a control", - InputSchema: types.ListControlAuditsToolInputSchema, - OutputSchema: types.ListControlAuditsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListControlAuditsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listControlSnapshots", - Description: "List snapshots linked to a control", - InputSchema: types.ListControlSnapshotsToolInputSchema, - OutputSchema: types.ListControlSnapshotsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListControlSnapshotsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listRiskObligations", - Description: "List obligations linked to a risk", - InputSchema: types.ListRiskObligationsToolInputSchema, - OutputSchema: types.ListRiskObligationsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListRiskObligationsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "linkRisk", - Description: "Link a risk to a resource (document, measure, or obligation). The resource type is determined from the resource_id GID.", - InputSchema: types.LinkRiskToolInputSchema, - OutputSchema: types.LinkRiskToolOutputSchema, - }, - resolver.LinkRiskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "unlinkRisk", - Description: "Unlink a risk from a resource (document, measure, or obligation). The resource type is determined from the resource_id GID.", - InputSchema: types.UnlinkRiskToolInputSchema, - OutputSchema: types.UnlinkRiskToolOutputSchema, - }, - resolver.UnlinkRiskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listTasks", - Description: "List all tasks for the organization or measure", - InputSchema: types.ListTasksToolInputSchema, - OutputSchema: types.ListTasksToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListTasksTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getTask", - Description: "Get a task by ID", - InputSchema: types.GetTaskToolInputSchema, - OutputSchema: types.GetTaskToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetTaskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addTask", - Description: "Add a new task to the organization", - InputSchema: types.AddTaskToolInputSchema, - OutputSchema: types.AddTaskToolOutputSchema, - }, - resolver.AddTaskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateTask", - Description: "Update an existing task", - InputSchema: types.UpdateTaskToolInputSchema, - OutputSchema: types.UpdateTaskToolOutputSchema, - }, - resolver.UpdateTaskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "assignTask", - Description: "Assign a task to a person", - InputSchema: types.AssignTaskToolInputSchema, - OutputSchema: types.AssignTaskToolOutputSchema, - }, - resolver.AssignTaskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "unassignTask", - Description: "Unassign a task from a person", - InputSchema: types.UnassignTaskToolInputSchema, - OutputSchema: types.UnassignTaskToolOutputSchema, - }, - resolver.UnassignTaskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteTask", - Description: "Delete a task", - InputSchema: types.DeleteTaskToolInputSchema, - OutputSchema: types.DeleteTaskToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - DestructiveHint: boolPtr(true), - }, - }, - resolver.DeleteTaskTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listSnapshots", - Description: "List all snapshots for the organization", - InputSchema: types.ListSnapshotsToolInputSchema, - OutputSchema: types.ListSnapshotsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListSnapshotsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getSnapshot", - Description: "Get a snapshot by ID", - InputSchema: types.GetSnapshotToolInputSchema, - OutputSchema: types.GetSnapshotToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetSnapshotTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "takeSnapshot", - Description: "Take a snapshot of a collection of objects (risks, vendors, assets, data, nonconformities, obligations, continual improvements, or processing activities)", - InputSchema: types.TakeSnapshotToolInputSchema, - OutputSchema: types.TakeSnapshotToolOutputSchema, - }, - resolver.TakeSnapshotTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listDocuments", - Description: "List all documents for the organization", - InputSchema: types.ListDocumentsToolInputSchema, - OutputSchema: types.ListDocumentsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListDocumentsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getDocument", - Description: "Get a document by ID", - InputSchema: types.GetDocumentToolInputSchema, - OutputSchema: types.GetDocumentToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetDocumentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addDocument", - Description: "Add a new document to the organization", - InputSchema: types.AddDocumentToolInputSchema, - OutputSchema: types.AddDocumentToolOutputSchema, - }, - resolver.AddDocumentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateDocument", - Description: "Update an existing document", - InputSchema: types.UpdateDocumentToolInputSchema, - OutputSchema: types.UpdateDocumentToolOutputSchema, - }, - resolver.UpdateDocumentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listDocumentVersions", - Description: "List all versions for a document", - InputSchema: types.ListDocumentVersionsToolInputSchema, - OutputSchema: types.ListDocumentVersionsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListDocumentVersionsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getDocumentVersion", - Description: "Get a document version by ID", - InputSchema: types.GetDocumentVersionToolInputSchema, - OutputSchema: types.GetDocumentVersionToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetDocumentVersionTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "createDraftDocumentVersion", - Description: "Create a new draft version from the latest published version", - InputSchema: types.CreateDraftDocumentVersionToolInputSchema, - OutputSchema: types.CreateDraftDocumentVersionToolOutputSchema, - }, - resolver.CreateDraftDocumentVersionTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateDocumentVersion", - Description: "Update an existing draft document version content", - InputSchema: types.UpdateDocumentVersionToolInputSchema, - OutputSchema: types.UpdateDocumentVersionToolOutputSchema, - }, - resolver.UpdateDocumentVersionTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteDraftDocumentVersion", - Description: "Delete a draft document version", - InputSchema: types.DeleteDraftDocumentVersionToolInputSchema, - OutputSchema: types.DeleteDraftDocumentVersionToolOutputSchema, - }, - resolver.DeleteDraftDocumentVersionTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "publishDocumentVersion", - Description: "Publish a draft document version", - InputSchema: types.PublishDocumentVersionToolInputSchema, - OutputSchema: types.PublishDocumentVersionToolOutputSchema, - }, - resolver.PublishDocumentVersionTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteDocument", - Description: "Delete a document", - InputSchema: types.DeleteDocumentToolInputSchema, - OutputSchema: types.DeleteDocumentToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - DestructiveHint: boolPtr(true), - }, - }, - resolver.DeleteDocumentTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listDocumentVersionSignatures", - Description: "List all signatures for a document version", - InputSchema: types.ListDocumentVersionSignaturesToolInputSchema, - OutputSchema: types.ListDocumentVersionSignaturesToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListDocumentVersionSignaturesTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getDocumentVersionSignature", - Description: "Get a document version signature by ID", - InputSchema: types.GetDocumentVersionSignatureToolInputSchema, - OutputSchema: types.GetDocumentVersionSignatureToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetDocumentVersionSignatureTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "requestDocumentVersionSignature", - Description: "Request a signature for a document version", - InputSchema: types.RequestDocumentVersionSignatureToolInputSchema, - OutputSchema: types.RequestDocumentVersionSignatureToolOutputSchema, - }, - resolver.RequestDocumentVersionSignatureTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "cancelSignatureRequest", - Description: "Cancel a document version signature request", - InputSchema: types.CancelSignatureRequestToolInputSchema, - OutputSchema: types.CancelSignatureRequestToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - DestructiveHint: boolPtr(true), - }, - }, - resolver.CancelSignatureRequestTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listMeetings", - Description: "List all meetings for the organization", - InputSchema: types.ListMeetingsToolInputSchema, - OutputSchema: types.ListMeetingsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListMeetingsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getMeeting", - Description: "Get a meeting by ID", - InputSchema: types.GetMeetingToolInputSchema, - OutputSchema: types.GetMeetingToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetMeetingTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addMeeting", - Description: "Add a new meeting to the organization", - InputSchema: types.AddMeetingToolInputSchema, - OutputSchema: types.AddMeetingToolOutputSchema, - }, - resolver.AddMeetingTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateMeeting", - Description: "Update an existing meeting", - InputSchema: types.UpdateMeetingToolInputSchema, - OutputSchema: types.UpdateMeetingToolOutputSchema, - }, - resolver.UpdateMeetingTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteMeeting", - Description: "Delete a meeting", - InputSchema: types.DeleteMeetingToolInputSchema, - OutputSchema: types.DeleteMeetingToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - DestructiveHint: boolPtr(true), - }, - }, - resolver.DeleteMeetingTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listMeetingAttendees", - Description: "List all attendees for a meeting", - InputSchema: types.ListMeetingAttendeesToolInputSchema, - OutputSchema: types.ListMeetingAttendeesToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListMeetingAttendeesTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listStatesOfApplicability", - Description: "List all states of applicability for the organization", - InputSchema: types.ListStatesOfApplicabilityToolInputSchema, - OutputSchema: types.ListStatesOfApplicabilityToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListStatesOfApplicabilityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getStateOfApplicability", - Description: "Get a state of applicability by ID", - InputSchema: types.GetStateOfApplicabilityToolInputSchema, - OutputSchema: types.GetStateOfApplicabilityToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetStateOfApplicabilityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addStateOfApplicability", - Description: "Add a new state of applicability to the organization", - InputSchema: types.AddStateOfApplicabilityToolInputSchema, - OutputSchema: types.AddStateOfApplicabilityToolOutputSchema, - }, - resolver.AddStateOfApplicabilityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateStateOfApplicability", - Description: "Update an existing state of applicability", - InputSchema: types.UpdateStateOfApplicabilityToolInputSchema, - OutputSchema: types.UpdateStateOfApplicabilityToolOutputSchema, - }, - resolver.UpdateStateOfApplicabilityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteStateOfApplicability", - Description: "Delete a state of applicability", - InputSchema: types.DeleteStateOfApplicabilityToolInputSchema, - OutputSchema: types.DeleteStateOfApplicabilityToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - DestructiveHint: boolPtr(true), - }, - }, - resolver.DeleteStateOfApplicabilityTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "exportStateOfApplicabilityPDF", - Description: "Export a state of applicability as a PDF document", - InputSchema: types.ExportStateOfApplicabilityPDFToolInputSchema, - OutputSchema: types.ExportStateOfApplicabilityPDFToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ExportStateOfApplicabilityPDFTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "listApplicabilityStatements", - Description: "List all applicability statements for a state of applicability", - InputSchema: types.ListApplicabilityStatementsToolInputSchema, - OutputSchema: types.ListApplicabilityStatementsToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.ListApplicabilityStatementsTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "getApplicabilityStatement", - Description: "Get an applicability statement by ID", - InputSchema: types.GetApplicabilityStatementToolInputSchema, - OutputSchema: types.GetApplicabilityStatementToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - ReadOnlyHint: true, - IdempotentHint: true, - }, - }, - resolver.GetApplicabilityStatementTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "addApplicabilityStatement", - Description: "Add a control to a state of applicability with an applicability decision", - InputSchema: types.AddApplicabilityStatementToolInputSchema, - OutputSchema: types.AddApplicabilityStatementToolOutputSchema, - }, - resolver.AddApplicabilityStatementTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "updateApplicabilityStatement", - Description: "Update the applicability and justification of an applicability statement", - InputSchema: types.UpdateApplicabilityStatementToolInputSchema, - OutputSchema: types.UpdateApplicabilityStatementToolOutputSchema, - }, - resolver.UpdateApplicabilityStatementTool, - ) - mcp.AddTool( - server, - &mcp.Tool{ - Name: "deleteApplicabilityStatement", - Description: "Delete an applicability statement from a state of applicability", - InputSchema: types.DeleteApplicabilityStatementToolInputSchema, - OutputSchema: types.DeleteApplicabilityStatementToolOutputSchema, - Annotations: &mcp.ToolAnnotations{ - DestructiveHint: boolPtr(true), - }, - }, - resolver.DeleteApplicabilityStatementTool, - ) -} - -func boolPtr(b bool) *bool { - return &b -} diff --git a/pkg/server/api/mcp/v1/types/types.go b/pkg/server/api/mcp/v1/types/types.go deleted file mode 100644 index 5fe15897c..000000000 --- a/pkg/server/api/mcp/v1/types/types.go +++ /dev/null @@ -1,3890 +0,0 @@ -// Code generated by mcpgen. DO NOT EDIT. - -package types - -import ( - "encoding/json" - "fmt" - "go.probo.inc/mcpgen/mcp" - "go.probo.inc/probo/pkg/coredata" - "go.probo.inc/probo/pkg/gid" - "go.probo.inc/probo/pkg/mail" - "go.probo.inc/probo/pkg/page" - "time" -) - -// Tool input schemas -var ( - AddApplicabilityStatementToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"applicability":{"type":"boolean","description":"Whether the control is applicable"},"control_id":{"type":"string","format":"string"},"justification":{"description":"Justification for the applicability decision","anyOf":[{"type":"string"},{"type":"null"}]},"state_of_applicability_id":{"type":"string","format":"string"}},"required":["state_of_applicability_id","control_id","applicability"]}`) - AddApplicabilityStatementToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"applicability_statement":{"type":"object","properties":{"applicability":{"type":"boolean","description":"Whether the control is applicable"},"control_id":{"type":"string","format":"string"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"justification":{"description":"Justification for the applicability decision","anyOf":[{"type":"string"},{"type":"null"}]},"organization_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"state_of_applicability_id":{"type":"string","format":"string"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","state_of_applicability_id","control_id","organization_id","applicability","created_at","updated_at"]}},"required":["applicability_statement"]}`) - AddAssetToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"amount":{"type":"integer","description":"Asset amount"},"asset_type":{"type":"string","enum":["PHYSICAL","VIRTUAL"]},"data_types_stored":{"type":"string","description":"Data types stored"},"name":{"type":"string","description":"Asset name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"vendor_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Vendor IDs"}},"required":["organization_id","name","amount","owner_id","asset_type","data_types_stored"]}`) - AddAssetToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"asset":{"type":"object","properties":{"amount":{"type":"integer","description":"Asset amount"},"asset_type":{"type":"string","enum":["PHYSICAL","VIRTUAL"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_types_stored":{"type":"string","description":"Data types stored"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Asset name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"type":["string","null"],"description":"Snapshot ID"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","amount","owner_id","asset_type","data_types_stored","created_at","updated_at"]}},"required":["asset"]}`) - AddAuditToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"framework_id":{"type":"string","format":"string"},"name":{"type":"string","description":"Audit name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","COMPLETED","REJECTED","OUTDATED"]},"valid_from":{"type":"string","description":"Valid from date","format":"date-time"},"valid_until":{"type":"string","description":"Valid until date","format":"date-time"}},"required":["organization_id","framework_id"]}`) - AddAuditToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"audit":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"framework_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"name":{"type":["string","null"],"description":"Audit name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","COMPLETED","REJECTED","OUTDATED"]},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"valid_from":{"type":["string","null"],"description":"Valid from date","format":"date-time"},"valid_until":{"type":["string","null"],"description":"Valid until date","format":"date-time"}},"required":["id","organization_id","framework_id","state","trust_center_visibility","created_at","updated_at"]}},"required":["audit"]}`) - AddContinualImprovementToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"description":{"type":"string","description":"Description"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"priority":{"description":"Priority","anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null","description":"No priority"}]},"reference_id":{"type":"string","description":"Reference ID"},"source":{"type":"string","description":"Source"},"status":{"description":"Status","anyOf":[{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},{"type":"null","description":"No status"}]},"target_date":{"type":"string","description":"Target date","format":"date-time"}},"required":["organization_id","reference_id","owner_id"]}`) - AddContinualImprovementToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"continual_improvement":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Description"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH"]},"reference_id":{"type":"string","description":"Reference ID"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"source":{"type":["string","null"],"description":"Source"},"source_id":{"type":["string","null"],"description":"Source ID"},"status":{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},"target_date":{"type":["string","null"],"description":"Target date","format":"date-time"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","reference_id","owner_id","status","priority","created_at","updated_at"]}},"required":["continual_improvement"]}`) - AddControlToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"description":{"type":"string","description":"Control description"},"framework_id":{"type":"string","format":"string"},"name":{"type":"string","description":"Control name"},"organization_id":{"type":"string","format":"string"},"section_title":{"type":"string","description":"Section title"}},"required":["organization_id","framework_id","section_title","name"]}`) - AddControlToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"control":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Control description"},"framework_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Control name"},"organization_id":{"type":"string","format":"string"},"section_title":{"type":"string","description":"Section title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","framework_id","section_title","name","created_at","updated_at"]}},"required":["control"]}`) - AddDataProtectionImpactAssessmentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"description":{"type":"string"},"mitigations":{"type":"string"},"necessity_and_proportionality":{"type":"string"},"potential_risk":{"type":"string"},"processing_activity_id":{"type":"string","format":"string"},"residual_risk":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]}},"required":["processing_activity_id"]}`) - AddDataProtectionImpactAssessmentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"data_protection_impact_assessment":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"id":{"type":"string","format":"string"},"mitigations":{"type":["string","null"]},"necessity_and_proportionality":{"type":["string","null"]},"organization_id":{"type":"string","format":"string"},"potential_risk":{"type":["string","null"]},"processing_activity_id":{"type":"string","format":"string"},"residual_risk":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"updated_at":{"type":"string","format":"date-time"}},"required":["id","organization_id","processing_activity_id","created_at","updated_at"]}},"required":["data_protection_impact_assessment"]}`) - AddDatumToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"data_classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"name":{"type":"string","description":"Datum name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"vendor_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Vendor IDs"}},"required":["organization_id","name","data_classification","owner_id"]}`) - AddDatumToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"datum":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Datum name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","data_classification","owner_id","created_at","updated_at"]}},"required":["datum"]}`) - AddDocumentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"content":{"type":"string","description":"Document content"},"document_type":{"type":"string","enum":["OTHER","ISMS","POLICY","PROCEDURE"]},"organization_id":{"type":"string","format":"string"},"title":{"type":"string","description":"Document title"},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]}},"required":["organization_id","title","content","approver_ids","classification","document_type"]}`) - AddDocumentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"current_published_version":{"type":["integer","null"],"description":"Current published version number"},"document_type":{"type":"string","enum":["OTHER","ISMS","POLICY","PROCEDURE"]},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"title":{"type":"string","description":"Document title"},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","approver_ids","title","document_type","classification","trust_center_visibility","created_at","updated_at"]},"document_version":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"changelog":{"type":"string","description":"Changelog"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"content":{"type":"string","description":"Document content"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"document_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"published_at":{"type":["string","null"],"description":"Published timestamp","format":"date-time"},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]},"title":{"type":"string","description":"Document version title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"version_number":{"type":"integer","description":"Version number"}},"required":["id","organization_id","document_id","title","approver_ids","version_number","classification","content","changelog","status","created_at","updated_at"]}},"required":["document","document_version"]}`) - AddFrameworkToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"description":{"type":"string","description":"Framework description"},"name":{"type":"string","description":"Framework name"},"organization_id":{"type":"string","format":"string"}},"required":["organization_id","name"]}`) - AddFrameworkToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"framework":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Framework description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Framework name"},"organization_id":{"type":"string","format":"string"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","created_at","updated_at"]}},"required":["framework"]}`) - AddMeasureToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"category":{"type":"string","description":"Measure category"},"description":{"type":"string","description":"Measure description"},"name":{"type":"string","description":"Measure name"},"organization_id":{"type":"string","format":"string"}},"required":["organization_id","name","category"]}`) - AddMeasureToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"measure":{"type":"object","properties":{"category":{"type":"string","description":"Measure category"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Measure description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Measure name"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","NOT_APPLICABLE","IMPLEMENTED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","category","name","state","created_at","updated_at"]}},"required":["measure"]}`) - AddMeetingToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"attendee_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"List of attendee profile IDs"},"date":{"type":"string","description":"Meeting date","format":"date-time"},"minutes":{"description":"Meeting minutes","anyOf":[{"type":"string","description":"Meeting minutes"},{"type":"null","description":"No minutes"}]},"name":{"type":"string","description":"Meeting name"},"organization_id":{"type":"string","format":"string"}},"required":["organization_id","name","date"]}`) - AddMeetingToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"meeting":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"date":{"type":"string","description":"Meeting date","format":"date-time"},"id":{"type":"string","format":"string"},"minutes":{"description":"Meeting minutes","anyOf":[{"type":"string","description":"Meeting minutes"},{"type":"null","description":"No minutes"}]},"name":{"type":"string","description":"Meeting name"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","name","date","created_at","updated_at"]}},"required":["meeting"]}`) - AddNonconformityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"audit_id":{"description":"Audit ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No audit"}]},"corrective_action":{"type":"string","description":"Corrective action"},"date_identified":{"type":"string","description":"Date identified","format":"date-time"},"description":{"type":"string","description":"Description"},"due_date":{"type":"string","description":"Due date","format":"date-time"},"effectiveness_check":{"type":"string","description":"Effectiveness check"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"reference_id":{"type":"string","description":"Reference ID"},"root_cause":{"type":"string","description":"Root cause"},"status":{"description":"Status","anyOf":[{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},{"type":"null","description":"No status"}]}},"required":["organization_id","reference_id","root_cause","owner_id","status"]}`) - AddNonconformityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"nonconformity":{"type":"object","properties":{"audit_id":{"description":"Audit ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No audit"}]},"corrective_action":{"type":["string","null"],"description":"Corrective action"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"date_identified":{"type":["string","null"],"description":"Date identified","format":"date-time"},"description":{"type":["string","null"],"description":"Description"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"effectiveness_check":{"type":["string","null"],"description":"Effectiveness check"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"reference_id":{"type":"string","description":"Reference ID"},"root_cause":{"type":"string","description":"Root cause"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"status":{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","reference_id","root_cause","owner_id","status","created_at","updated_at"]}},"required":["nonconformity"]}`) - AddObligationToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"actions_to_be_implemented":{"type":"string","description":"Actions to be implemented"},"area":{"type":"string","description":"Area"},"due_date":{"type":"string","description":"Due date","format":"date-time"},"last_review_date":{"type":"string","description":"Last review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"regulator":{"type":"string","description":"Regulator"},"requirement":{"type":"string","description":"Requirement"},"source":{"type":"string","description":"Source"},"status":{"description":"Status","anyOf":[{"type":"string","enum":["NON_COMPLIANT","PARTIALLY_COMPLIANT","COMPLIANT"]},{"type":"null","description":"No status"}]},"type":{"description":"Type","anyOf":[{"type":"string","enum":["LEGAL","CONTRACTUAL"]},{"type":"null","description":"No type"}]}},"required":["organization_id","owner_id","status","type"]}`) - AddObligationToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"obligation":{"type":"object","properties":{"actions_to_be_implemented":{"type":["string","null"],"description":"Actions to be implemented"},"area":{"type":["string","null"],"description":"Area"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"id":{"type":"string","format":"string"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"regulator":{"type":["string","null"],"description":"Regulator"},"requirement":{"type":["string","null"],"description":"Requirement"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"source":{"type":["string","null"],"description":"Source"},"source_id":{"type":["string","null"],"description":"Source ID"},"status":{"type":"string","enum":["NON_COMPLIANT","PARTIALLY_COMPLIANT","COMPLIANT"]},"type":{"type":"string","enum":["LEGAL","CONTRACTUAL"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","owner_id","status","type","created_at","updated_at"]}},"required":["obligation"]}`) - AddProcessingActivityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"consent_evidence_link":{"type":"string","description":"Consent evidence link"},"data_protection_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"data_protection_officer_id":{"description":"Data protection officer profile ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"data_subject_category":{"type":"string","description":"Data subject category"},"international_transfers":{"type":"boolean","description":"International transfers"},"last_review_date":{"type":"string","description":"Last review date","format":"date-time"},"lawful_basis":{"type":"string","enum":["LEGITIMATE_INTEREST","CONSENT","CONTRACTUAL_NECESSITY","LEGAL_OBLIGATION","VITAL_INTERESTS","PUBLIC_TASK"]},"location":{"type":"string","description":"Location"},"name":{"type":"string","description":"Name"},"next_review_date":{"type":"string","description":"Next review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"personal_data_category":{"type":"string","description":"Personal data category"},"purpose":{"type":"string","description":"Purpose"},"recipients":{"type":"string","description":"Recipients"},"retention_period":{"type":"string","description":"Retention period"},"role":{"type":"string","enum":["CONTROLLER","PROCESSOR"]},"security_measures":{"type":"string","description":"Security measures"},"special_or_criminal_data":{"type":"string","enum":["YES","NO","POSSIBLE"]},"transfer_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"transfer_safeguard":{"description":"Transfer safeguard","anyOf":[{"type":"string","enum":["STANDARD_CONTRACTUAL_CLAUSES","BINDING_CORPORATE_RULES","ADEQUACY_DECISION","DEROGATIONS","CODES_OF_CONDUCT","CERTIFICATION_MECHANISMS"]},{"type":"null"}]},"vendor_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Vendor IDs"}},"required":["organization_id","name","special_or_criminal_data","lawful_basis","international_transfers","data_protection_impact_assessment_needed","transfer_impact_assessment_needed","role"]}`) - AddProcessingActivityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"processing_activity":{"type":"object","properties":{"consent_evidence_link":{"type":["string","null"],"description":"Consent evidence link"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_protection_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"data_protection_officer_id":{"description":"Data protection officer profile ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"data_subject_category":{"type":["string","null"],"description":"Data subject category"},"id":{"type":"string","format":"string"},"international_transfers":{"type":"boolean","description":"International transfers"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"lawful_basis":{"type":"string","enum":["LEGITIMATE_INTEREST","CONSENT","CONTRACTUAL_NECESSITY","LEGAL_OBLIGATION","VITAL_INTERESTS","PUBLIC_TASK"]},"location":{"type":["string","null"],"description":"Location"},"name":{"type":"string","description":"Name"},"next_review_date":{"type":["string","null"],"description":"Next review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"personal_data_category":{"type":["string","null"],"description":"Personal data category"},"purpose":{"type":["string","null"],"description":"Purpose"},"recipients":{"type":["string","null"],"description":"Recipients"},"retention_period":{"type":["string","null"],"description":"Retention period"},"role":{"type":"string","enum":["CONTROLLER","PROCESSOR"]},"security_measures":{"type":["string","null"],"description":"Security measures"},"special_or_criminal_data":{"type":"string","enum":["YES","NO","POSSIBLE"]},"transfer_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"transfer_safeguard":{"description":"Transfer safeguard","anyOf":[{"type":"string","enum":["STANDARD_CONTRACTUAL_CLAUSES","BINDING_CORPORATE_RULES","ADEQUACY_DECISION","DEROGATIONS","CODES_OF_CONDUCT","CERTIFICATION_MECHANISMS"]},{"type":"null"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","special_or_criminal_data","lawful_basis","international_transfers","data_protection_impact_assessment_needed","transfer_impact_assessment_needed","role","created_at","updated_at"]}},"required":["processing_activity"]}`) - AddRiskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"category":{"type":"string","description":"Risk category"},"description":{"type":"string","description":"Risk description"},"inherent_impact":{"type":"integer","description":"Inherent impact"},"inherent_likelihood":{"type":"integer","description":"Inherent likelihood"},"name":{"type":"string","description":"Risk name"},"note":{"type":"string","description":"Risk note"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"residual_impact":{"type":"integer","description":"Residual impact"},"residual_likelihood":{"type":"integer","description":"Residual likelihood"},"treatment":{"type":"string","enum":["MITIGATED","ACCEPTED","AVOIDED","TRANSFERRED"]}},"required":["organization_id","name","category","treatment","inherent_likelihood","inherent_impact"]}`) - AddRiskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"risk":{"type":"object","properties":{"category":{"type":"string","description":"Risk category"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Risk description"},"id":{"type":"string","format":"string"},"inherent_impact":{"type":"integer","description":"Inherent impact"},"inherent_likelihood":{"type":"integer","description":"Inherent likelihood"},"inherent_risk_score":{"type":"integer","description":"Inherent risk score"},"name":{"type":"string","description":"Risk name"},"note":{"type":"string","description":"Risk note"},"organization_id":{"type":"string","format":"string"},"owner_id":{"anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No owner"}]},"residual_impact":{"type":"integer","description":"Residual impact"},"residual_likelihood":{"type":"integer","description":"Residual likelihood"},"residual_risk_score":{"type":"integer","description":"Residual risk score"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"treatment":{"type":"string","enum":["MITIGATED","ACCEPTED","AVOIDED","TRANSFERRED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","category","treatment","inherent_likelihood","inherent_impact","inherent_risk_score","residual_likelihood","residual_impact","residual_risk_score","note","created_at","updated_at"]}},"required":["risk"]}`) - AddStateOfApplicabilityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"name":{"type":"string","description":"State of applicability name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"}},"required":["organization_id","name","owner_id"]}`) - AddStateOfApplicabilityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"state_of_applicability":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"State of applicability name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","owner_id","created_at","updated_at"]}},"required":["state_of_applicability"]}`) - AddTaskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"assigned_to_id":{"description":"Assigned to person ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"Not assigned"}]},"deadline":{"type":"string","description":"Deadline","format":"date-time"},"description":{"type":"string","description":"Task description"},"measure_id":{"description":"Measure ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No measure"}]},"name":{"type":"string","description":"Task name"},"organization_id":{"type":"string","format":"string"},"time_estimate":{"type":"string","description":"A duration"}},"required":["organization_id","name"]}`) - AddTaskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"task":{"type":"object","properties":{"assigned_to_id":{"description":"Assigned to person ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"Not assigned"}]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"deadline":{"description":"Deadline","anyOf":[{"type":"string","description":"Deadline","format":"date-time"},{"type":"null","description":"No deadline"}]},"description":{"description":"Task description","anyOf":[{"type":"string","description":"Task description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"measure_id":{"description":"Measure ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No measure"}]},"name":{"type":"string","description":"Task name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["TODO","DONE"]},"time_estimate":{"description":"Time estimate","anyOf":[{"type":"string","description":"A duration"},{"type":"null","description":"No time estimate"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","state","created_at","updated_at"]}},"required":["task"]}`) - AddTransferImpactAssessmentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"data_subjects":{"type":"string"},"legal_mechanism":{"type":"string"},"local_law_risk":{"type":"string"},"processing_activity_id":{"type":"string","format":"string"},"supplementary_measures":{"type":"string"},"transfer":{"type":"string"}},"required":["processing_activity_id"]}`) - AddTransferImpactAssessmentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"transfer_impact_assessment":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time"},"data_subjects":{"type":["string","null"]},"id":{"type":"string","format":"string"},"legal_mechanism":{"type":["string","null"]},"local_law_risk":{"type":["string","null"]},"organization_id":{"type":"string","format":"string"},"processing_activity_id":{"type":"string","format":"string"},"supplementary_measures":{"type":["string","null"]},"transfer":{"type":["string","null"]},"updated_at":{"type":"string","format":"date-time"}},"required":["id","organization_id","processing_activity_id","created_at","updated_at"]}},"required":["transfer_impact_assessment"]}`) - AddVendorRiskAssessmentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"business_impact":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]},"data_sensitivity":{"type":"string","enum":["NONE","LOW","MEDIUM","HIGH","CRITICAL"]},"expires_at":{"type":"string","description":"Expiration timestamp","format":"date-time"},"notes":{"type":"string","description":"Notes"},"vendor_id":{"type":"string","format":"string"}},"required":["vendor_id","expires_at","data_sensitivity","business_impact"]}`) - AddVendorRiskAssessmentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"vendor_risk_assessment":{"type":"object","properties":{"business_impact":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_sensitivity":{"type":"string","enum":["NONE","LOW","MEDIUM","HIGH","CRITICAL"]},"expires_at":{"type":"string","description":"Expiration timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"notes":{"type":["string","null"],"description":"Notes"},"organization_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"vendor_id":{"type":"string","format":"string"}},"required":["id","organization_id","vendor_id","expires_at","data_sensitivity","business_impact","created_at","updated_at"]}},"required":["vendor_risk_assessment"]}`) - AddVendorToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"business_associate_agreement_url":{"type":"string","description":"Business associate agreement URL"},"business_owner_id":{"type":"string","format":"string"},"category":{"type":"string","description":"Vendor category","enum":["ANALYTICS","CLOUD_MONITORING","CLOUD_PROVIDER","COLLABORATION","CUSTOMER_SUPPORT","DATA_STORAGE_AND_PROCESSING","DOCUMENT_MANAGEMENT","EMPLOYEE_MANAGEMENT","ENGINEERING","FINANCE","IDENTITY_PROVIDER","IT","MARKETING","OFFICE_OPERATIONS","OTHER","PASSWORD_MANAGEMENT","PRODUCT_AND_DESIGN","PROFESSIONAL_SERVICES","RECRUITING","SALES","SECURITY","VERSION_CONTROL"]},"certifications":{"type":"array","items":{"type":"string"},"description":"Certifications"},"countries":{"type":"array","items":{"type":"string"},"description":"Countries (ISO 3166-1 alpha-2 country codes)"},"data_processing_agreement_url":{"type":"string","description":"Data processing agreement URL"},"description":{"type":"string","description":"Vendor description"},"headquarter_address":{"type":"string","description":"Headquarter address"},"legal_name":{"type":"string","description":"Legal name"},"name":{"type":"string","description":"Vendor name"},"organization_id":{"type":"string","format":"string"},"privacy_policy_url":{"type":"string","description":"Privacy policy URL"},"security_owner_id":{"type":"string","format":"string"},"security_page_url":{"type":"string","description":"Security page URL"},"service_level_agreement_url":{"type":"string","description":"Service level agreement URL"},"status_page_url":{"type":"string","description":"Status page URL"},"subprocessors_list_url":{"type":"string","description":"Subprocessors list URL"},"terms_of_service_url":{"type":"string","description":"Terms of service URL"},"trust_page_url":{"type":"string","description":"Trust page URL"},"website_url":{"type":"string","description":"Website URL"}},"required":["organization_id","name"]}`) - AddVendorToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"vendor":{"type":"object","properties":{"business_associate_agreement_url":{"type":["string","null"],"description":"Business associate agreement URL"},"business_owner_id":{"description":"Business owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"category":{"type":"string","description":"Vendor category","enum":["ANALYTICS","CLOUD_MONITORING","CLOUD_PROVIDER","COLLABORATION","CUSTOMER_SUPPORT","DATA_STORAGE_AND_PROCESSING","DOCUMENT_MANAGEMENT","EMPLOYEE_MANAGEMENT","ENGINEERING","FINANCE","IDENTITY_PROVIDER","IT","MARKETING","OFFICE_OPERATIONS","OTHER","PASSWORD_MANAGEMENT","PRODUCT_AND_DESIGN","PROFESSIONAL_SERVICES","RECRUITING","SALES","SECURITY","VERSION_CONTROL"]},"certifications":{"type":"array","items":{"type":"string"},"description":"Certifications"},"countries":{"type":"array","items":{"type":"string"},"description":"Countries (ISO 3166-1 alpha-2 country codes)"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_processing_agreement_url":{"type":["string","null"],"description":"Data processing agreement URL"},"description":{"type":["string","null"],"description":"Vendor description"},"headquarter_address":{"type":["string","null"],"description":"Headquarter address"},"id":{"type":"string","format":"string"},"legal_name":{"type":["string","null"],"description":"Legal name"},"name":{"type":"string","description":"Vendor name"},"organization_id":{"type":"string","format":"string"},"privacy_policy_url":{"type":["string","null"],"description":"Privacy policy URL"},"security_owner_id":{"description":"Security owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"security_page_url":{"type":["string","null"],"description":"Security page URL"},"service_level_agreement_url":{"type":["string","null"],"description":"Service level agreement URL"},"status_page_url":{"type":["string","null"],"description":"Status page URL"},"subprocessors_list_url":{"type":["string","null"],"description":"Subprocessors list URL"},"terms_of_service_url":{"type":["string","null"],"description":"Terms of service URL"},"trust_page_url":{"type":["string","null"],"description":"Trust page URL"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"website_url":{"type":["string","null"],"description":"Website URL"}},"required":["id","name","organization_id","category","created_at","updated_at"]}},"required":["vendor"]}`) - AssignTaskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"assigned_to_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"}},"required":["id","assigned_to_id"]}`) - AssignTaskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"task":{"type":"object","properties":{"assigned_to_id":{"description":"Assigned to person ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"Not assigned"}]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"deadline":{"description":"Deadline","anyOf":[{"type":"string","description":"Deadline","format":"date-time"},{"type":"null","description":"No deadline"}]},"description":{"description":"Task description","anyOf":[{"type":"string","description":"Task description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"measure_id":{"description":"Measure ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No measure"}]},"name":{"type":"string","description":"Task name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["TODO","DONE"]},"time_estimate":{"description":"Time estimate","anyOf":[{"type":"string","description":"A duration"},{"type":"null","description":"No time estimate"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","state","created_at","updated_at"]}},"required":["task"]}`) - CancelSignatureRequestToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_version_signature_id":{"type":"string","format":"string"}},"required":["document_version_signature_id"]}`) - CancelSignatureRequestToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_document_version_signature_id":{"type":"string","format":"string"}},"required":["deleted_document_version_signature_id"]}`) - CreateDraftDocumentVersionToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_id":{"type":"string","format":"string"}},"required":["document_id"]}`) - CreateDraftDocumentVersionToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_version":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"changelog":{"type":"string","description":"Changelog"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"content":{"type":"string","description":"Document content"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"document_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"published_at":{"type":["string","null"],"description":"Published timestamp","format":"date-time"},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]},"title":{"type":"string","description":"Document version title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"version_number":{"type":"integer","description":"Version number"}},"required":["id","organization_id","document_id","title","approver_ids","version_number","classification","content","changelog","status","created_at","updated_at"]}},"required":["document_version"]}`) - CreateUserToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"additional_email_addresses":{"type":"array","items":{"type":"string","format":"string"},"description":"Additional email addresses"},"contract_end_date":{"type":["string","null"],"description":"Contract end date","format":"date-time"},"contract_start_date":{"type":["string","null"],"description":"Contract start date","format":"date-time"},"email_address":{"type":"string","format":"string"},"full_name":{"type":"string","description":"Full name"},"kind":{"type":["string","null"],"description":"User kind"},"organization_id":{"type":"string","format":"string"},"position":{"type":["string","null"],"description":"Position"},"role":{"type":"string","enum":["OWNER","ADMIN","EMPLOYEE","VIEWER","AUDITOR"]}},"required":["organization_id","full_name","email_address","role","kind"]}`) - CreateUserToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"user":{"type":"object","properties":{"additional_email_addresses":{"type":"array","items":{"type":"string","format":"string"},"description":"Additional email addresses"},"contract_end_date":{"type":["string","null"],"description":"Contract end date","format":"date-time"},"contract_start_date":{"type":["string","null"],"description":"Contract start date","format":"date-time"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"email_address":{"type":"string","format":"string"},"full_name":{"type":"string","description":"Full name"},"id":{"type":"string","format":"string"},"kind":{"type":["string","null"],"description":"Profile kind"},"organization_id":{"type":"string","format":"string"},"position":{"type":["string","null"],"description":"Position"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","full_name","email_address","additional_email_addresses","kind","created_at","updated_at"]}},"required":["user"]}`) - DeleteApplicabilityStatementToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - DeleteApplicabilityStatementToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_applicability_statement_id":{"type":"string","format":"string"}},"required":["deleted_applicability_statement_id"]}`) - DeleteDataProtectionImpactAssessmentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - DeleteDataProtectionImpactAssessmentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_data_protection_impact_assessment_id":{"type":"string","format":"string"}},"required":["deleted_data_protection_impact_assessment_id"]}`) - DeleteDocumentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_id":{"type":"string","format":"string"}},"required":["document_id"]}`) - DeleteDocumentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_document_id":{"type":"string","format":"string"}},"required":["deleted_document_id"]}`) - DeleteDraftDocumentVersionToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_version_id":{"type":"string","format":"string"}},"required":["document_version_id"]}`) - DeleteDraftDocumentVersionToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_document_version_id":{"type":"string","format":"string"}},"required":["deleted_document_version_id"]}`) - DeleteMeasureToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - DeleteMeasureToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_measure_id":{"type":"string","format":"string"}},"required":["deleted_measure_id"]}`) - DeleteMeetingToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - DeleteMeetingToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_meeting_id":{"type":"string","format":"string"}},"required":["deleted_meeting_id"]}`) - DeleteProcessingActivityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - DeleteProcessingActivityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_processing_activity_id":{"type":"string","format":"string"}},"required":["deleted_processing_activity_id"]}`) - DeleteRiskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - DeleteRiskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_risk_id":{"type":"string","format":"string"}},"required":["deleted_risk_id"]}`) - DeleteStateOfApplicabilityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - DeleteStateOfApplicabilityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_state_of_applicability_id":{"type":"string","format":"string"}},"required":["deleted_state_of_applicability_id"]}`) - DeleteTaskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - DeleteTaskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_task_id":{"type":"string","format":"string"}},"required":["deleted_task_id"]}`) - DeleteTransferImpactAssessmentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - DeleteTransferImpactAssessmentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_transfer_impact_assessment_id":{"type":"string","format":"string"}},"required":["deleted_transfer_impact_assessment_id"]}`) - DeleteVendorToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - DeleteVendorToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_vendor_id":{"type":"string","format":"string"}},"required":["deleted_vendor_id"]}`) - ExportStateOfApplicabilityPDFToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - ExportStateOfApplicabilityPDFToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"filename":{"type":"string","description":"Suggested filename for the PDF"},"pdf_base64":{"type":"string","description":"Base64-encoded PDF content"}},"required":["pdf_base64","filename"]}`) - GetApplicabilityStatementToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetApplicabilityStatementToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"applicability_statement":{"type":"object","properties":{"applicability":{"type":"boolean","description":"Whether the control is applicable"},"control_id":{"type":"string","format":"string"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"justification":{"description":"Justification for the applicability decision","anyOf":[{"type":"string"},{"type":"null"}]},"organization_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"state_of_applicability_id":{"type":"string","format":"string"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","state_of_applicability_id","control_id","organization_id","applicability","created_at","updated_at"]}},"required":["applicability_statement"]}`) - GetAssetToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetAssetToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"asset":{"type":"object","properties":{"amount":{"type":"integer","description":"Asset amount"},"asset_type":{"type":"string","enum":["PHYSICAL","VIRTUAL"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_types_stored":{"type":"string","description":"Data types stored"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Asset name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"type":["string","null"],"description":"Snapshot ID"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","amount","owner_id","asset_type","data_types_stored","created_at","updated_at"]}},"required":["asset"]}`) - GetAuditToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetAuditToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"audit":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"framework_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"name":{"type":["string","null"],"description":"Audit name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","COMPLETED","REJECTED","OUTDATED"]},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"valid_from":{"type":["string","null"],"description":"Valid from date","format":"date-time"},"valid_until":{"type":["string","null"],"description":"Valid until date","format":"date-time"}},"required":["id","organization_id","framework_id","state","trust_center_visibility","created_at","updated_at"]}},"required":["audit"]}`) - GetContinualImprovementToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetContinualImprovementToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"continual_improvement":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Description"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH"]},"reference_id":{"type":"string","description":"Reference ID"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"source":{"type":["string","null"],"description":"Source"},"source_id":{"type":["string","null"],"description":"Source ID"},"status":{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},"target_date":{"type":["string","null"],"description":"Target date","format":"date-time"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","reference_id","owner_id","status","priority","created_at","updated_at"]}},"required":["continual_improvement"]}`) - GetControlToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetControlToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"control":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Control description"},"framework_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Control name"},"organization_id":{"type":"string","format":"string"},"section_title":{"type":"string","description":"Section title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","framework_id","section_title","name","created_at","updated_at"]}},"required":["control"]}`) - GetDataProtectionImpactAssessmentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetDataProtectionImpactAssessmentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"data_protection_impact_assessment":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"id":{"type":"string","format":"string"},"mitigations":{"type":["string","null"]},"necessity_and_proportionality":{"type":["string","null"]},"organization_id":{"type":"string","format":"string"},"potential_risk":{"type":["string","null"]},"processing_activity_id":{"type":"string","format":"string"},"residual_risk":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"updated_at":{"type":"string","format":"date-time"}},"required":["id","organization_id","processing_activity_id","created_at","updated_at"]}},"required":["data_protection_impact_assessment"]}`) - GetDatumToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetDatumToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"datum":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Datum name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","data_classification","owner_id","created_at","updated_at"]}},"required":["datum"]}`) - GetDocumentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetDocumentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"current_published_version":{"type":["integer","null"],"description":"Current published version number"},"document_type":{"type":"string","enum":["OTHER","ISMS","POLICY","PROCEDURE"]},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"title":{"type":"string","description":"Document title"},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","approver_ids","title","document_type","classification","trust_center_visibility","created_at","updated_at"]}},"required":["document"]}`) - GetDocumentVersionSignatureToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetDocumentVersionSignatureToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_version_signature":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"document_version_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"requested_at":{"type":"string","description":"Requested timestamp","format":"date-time"},"signed_at":{"type":["string","null"],"description":"Signed timestamp","format":"date-time"},"signed_by":{"type":"string","format":"string"},"state":{"type":"string","enum":["REQUESTED","SIGNED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","document_version_id","state","signed_by","requested_at","created_at","updated_at"]}},"required":["document_version_signature"]}`) - GetDocumentVersionToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetDocumentVersionToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_version":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"changelog":{"type":"string","description":"Changelog"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"content":{"type":"string","description":"Document content"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"document_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"published_at":{"type":["string","null"],"description":"Published timestamp","format":"date-time"},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]},"title":{"type":"string","description":"Document version title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"version_number":{"type":"integer","description":"Version number"}},"required":["id","organization_id","document_id","title","approver_ids","version_number","classification","content","changelog","status","created_at","updated_at"]}},"required":["document_version"]}`) - GetFrameworkToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetFrameworkToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"framework":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Framework description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Framework name"},"organization_id":{"type":"string","format":"string"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","created_at","updated_at"]}},"required":["framework"]}`) - GetMeasureToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetMeasureToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"measure":{"type":"object","properties":{"category":{"type":"string","description":"Measure category"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Measure description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Measure name"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","NOT_APPLICABLE","IMPLEMENTED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","category","name","state","created_at","updated_at"]}},"required":["measure"]}`) - GetMeetingToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetMeetingToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"meeting":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"date":{"type":"string","description":"Meeting date","format":"date-time"},"id":{"type":"string","format":"string"},"minutes":{"description":"Meeting minutes","anyOf":[{"type":"string","description":"Meeting minutes"},{"type":"null","description":"No minutes"}]},"name":{"type":"string","description":"Meeting name"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","name","date","created_at","updated_at"]}},"required":["meeting"]}`) - GetNonconformityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetNonconformityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"nonconformity":{"type":"object","properties":{"audit_id":{"description":"Audit ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No audit"}]},"corrective_action":{"type":["string","null"],"description":"Corrective action"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"date_identified":{"type":["string","null"],"description":"Date identified","format":"date-time"},"description":{"type":["string","null"],"description":"Description"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"effectiveness_check":{"type":["string","null"],"description":"Effectiveness check"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"reference_id":{"type":"string","description":"Reference ID"},"root_cause":{"type":"string","description":"Root cause"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"status":{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","reference_id","root_cause","owner_id","status","created_at","updated_at"]}},"required":["nonconformity"]}`) - GetObligationToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetObligationToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"obligation":{"type":"object","properties":{"actions_to_be_implemented":{"type":["string","null"],"description":"Actions to be implemented"},"area":{"type":["string","null"],"description":"Area"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"id":{"type":"string","format":"string"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"regulator":{"type":["string","null"],"description":"Regulator"},"requirement":{"type":["string","null"],"description":"Requirement"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"source":{"type":["string","null"],"description":"Source"},"source_id":{"type":["string","null"],"description":"Source ID"},"status":{"type":"string","enum":["NON_COMPLIANT","PARTIALLY_COMPLIANT","COMPLIANT"]},"type":{"type":"string","enum":["LEGAL","CONTRACTUAL"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","owner_id","status","type","created_at","updated_at"]}},"required":["obligation"]}`) - GetProcessingActivityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetProcessingActivityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"processing_activity":{"type":"object","properties":{"consent_evidence_link":{"type":["string","null"],"description":"Consent evidence link"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_protection_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"data_protection_officer_id":{"description":"Data protection officer profile ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"data_subject_category":{"type":["string","null"],"description":"Data subject category"},"id":{"type":"string","format":"string"},"international_transfers":{"type":"boolean","description":"International transfers"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"lawful_basis":{"type":"string","enum":["LEGITIMATE_INTEREST","CONSENT","CONTRACTUAL_NECESSITY","LEGAL_OBLIGATION","VITAL_INTERESTS","PUBLIC_TASK"]},"location":{"type":["string","null"],"description":"Location"},"name":{"type":"string","description":"Name"},"next_review_date":{"type":["string","null"],"description":"Next review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"personal_data_category":{"type":["string","null"],"description":"Personal data category"},"purpose":{"type":["string","null"],"description":"Purpose"},"recipients":{"type":["string","null"],"description":"Recipients"},"retention_period":{"type":["string","null"],"description":"Retention period"},"role":{"type":"string","enum":["CONTROLLER","PROCESSOR"]},"security_measures":{"type":["string","null"],"description":"Security measures"},"special_or_criminal_data":{"type":"string","enum":["YES","NO","POSSIBLE"]},"transfer_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"transfer_safeguard":{"description":"Transfer safeguard","anyOf":[{"type":"string","enum":["STANDARD_CONTRACTUAL_CLAUSES","BINDING_CORPORATE_RULES","ADEQUACY_DECISION","DEROGATIONS","CODES_OF_CONDUCT","CERTIFICATION_MECHANISMS"]},{"type":"null"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","special_or_criminal_data","lawful_basis","international_transfers","data_protection_impact_assessment_needed","transfer_impact_assessment_needed","role","created_at","updated_at"]}},"required":["processing_activity"]}`) - GetRiskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetRiskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"risk":{"type":"object","properties":{"category":{"type":"string","description":"Risk category"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Risk description"},"id":{"type":"string","format":"string"},"inherent_impact":{"type":"integer","description":"Inherent impact"},"inherent_likelihood":{"type":"integer","description":"Inherent likelihood"},"inherent_risk_score":{"type":"integer","description":"Inherent risk score"},"name":{"type":"string","description":"Risk name"},"note":{"type":"string","description":"Risk note"},"organization_id":{"type":"string","format":"string"},"owner_id":{"anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No owner"}]},"residual_impact":{"type":"integer","description":"Residual impact"},"residual_likelihood":{"type":"integer","description":"Residual likelihood"},"residual_risk_score":{"type":"integer","description":"Residual risk score"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"treatment":{"type":"string","enum":["MITIGATED","ACCEPTED","AVOIDED","TRANSFERRED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","category","treatment","inherent_likelihood","inherent_impact","inherent_risk_score","residual_likelihood","residual_impact","residual_risk_score","note","created_at","updated_at"]}},"required":["risk"]}`) - GetSnapshotToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetSnapshotToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"snapshot":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"description":"Snapshot description","anyOf":[{"type":"string","description":"Snapshot description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Snapshot name"},"organization_id":{"type":"string","format":"string"},"type":{"type":"string","enum":["RISKS","VENDORS","ASSETS","DATA","NONCONFORMITIES","OBLIGATIONS","CONTINUAL_IMPROVEMENTS","PROCESSING_ACTIVITIES","STATES_OF_APPLICABILITY"]}},"required":["id","organization_id","name","type","created_at"]}},"required":["snapshot"]}`) - GetStateOfApplicabilityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetStateOfApplicabilityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"state_of_applicability":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"State of applicability name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","owner_id","created_at","updated_at"]}},"required":["state_of_applicability"]}`) - GetTaskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetTaskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"task":{"type":"object","properties":{"assigned_to_id":{"description":"Assigned to person ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"Not assigned"}]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"deadline":{"description":"Deadline","anyOf":[{"type":"string","description":"Deadline","format":"date-time"},{"type":"null","description":"No deadline"}]},"description":{"description":"Task description","anyOf":[{"type":"string","description":"Task description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"measure_id":{"description":"Measure ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No measure"}]},"name":{"type":"string","description":"Task name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["TODO","DONE"]},"time_estimate":{"description":"Time estimate","anyOf":[{"type":"string","description":"A duration"},{"type":"null","description":"No time estimate"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","state","created_at","updated_at"]}},"required":["task"]}`) - GetTransferImpactAssessmentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetTransferImpactAssessmentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"transfer_impact_assessment":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time"},"data_subjects":{"type":["string","null"]},"id":{"type":"string","format":"string"},"legal_mechanism":{"type":["string","null"]},"local_law_risk":{"type":["string","null"]},"organization_id":{"type":"string","format":"string"},"processing_activity_id":{"type":"string","format":"string"},"supplementary_measures":{"type":["string","null"]},"transfer":{"type":["string","null"]},"updated_at":{"type":"string","format":"date-time"}},"required":["id","organization_id","processing_activity_id","created_at","updated_at"]}},"required":["transfer_impact_assessment"]}`) - GetUserToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - GetUserToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"user":{"type":"object","properties":{"additional_email_addresses":{"type":"array","items":{"type":"string","format":"string"},"description":"Additional email addresses"},"contract_end_date":{"type":["string","null"],"description":"Contract end date","format":"date-time"},"contract_start_date":{"type":["string","null"],"description":"Contract start date","format":"date-time"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"email_address":{"type":"string","format":"string"},"full_name":{"type":"string","description":"Full name"},"id":{"type":"string","format":"string"},"kind":{"type":["string","null"],"description":"Profile kind"},"organization_id":{"type":"string","format":"string"},"position":{"type":["string","null"],"description":"Position"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","full_name","email_address","additional_email_addresses","kind","created_at","updated_at"]}},"required":["user"]}`) - InviteUserToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"organization_id":{"type":"string","format":"string"},"profile_id":{"type":"string","format":"string"}},"required":["organization_id","profile_id"]}`) - InviteUserToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"invitation_id":{"type":"string","format":"string"}},"required":["invitation_id"]}`) - LinkControlToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"control_id":{"type":"string","format":"string"},"resource_id":{"type":"string","format":"string"}},"required":["control_id","resource_id"]}`) - LinkControlToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object"}`) - LinkMeasureToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"measure_id":{"type":"string","format":"string"},"resource_id":{"type":"string","format":"string"}},"required":["measure_id","resource_id"]}`) - LinkMeasureToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object"}`) - LinkRiskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"resource_id":{"type":"string","format":"string"},"risk_id":{"type":"string","format":"string"}},"required":["risk_id","resource_id"]}`) - LinkRiskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object"}`) - ListApplicabilityStatementsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","CONTROL_SECTION_TITLE"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"},"state_of_applicability_id":{"type":"string","format":"string"}},"required":["state_of_applicability_id"]}`) - ListApplicabilityStatementsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"applicability_statements":{"type":"array","items":{"type":"object","properties":{"applicability":{"type":"boolean","description":"Whether the control is applicable"},"control_id":{"type":"string","format":"string"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"justification":{"description":"Justification for the applicability decision","anyOf":[{"type":"string"},{"type":"null"}]},"organization_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"state_of_applicability_id":{"type":"string","format":"string"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","state_of_applicability_id","control_id","organization_id","applicability","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["applicability_statements"]}`) - ListAssetsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"snapshot_id":{"description":"Filter by snapshot ID. Defaults to null, which returns only assets with no snapshot (current live data). Pass a specific snapshot ID to retrieve assets as they were at that snapshot.","default":null,"anyOf":[{"type":"string","format":"string"},{"type":"null"}]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","AMOUNT"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListAssetsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"assets":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","description":"Asset amount"},"asset_type":{"type":"string","enum":["PHYSICAL","VIRTUAL"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_types_stored":{"type":"string","description":"Data types stored"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Asset name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"type":["string","null"],"description":"Snapshot ID"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","amount","owner_id","asset_type","data_types_stored","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["assets"]}`) - ListAuditsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","VALID_FROM","VALID_UNTIL","STATE"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListAuditsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"audits":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"framework_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"name":{"type":["string","null"],"description":"Audit name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","COMPLETED","REJECTED","OUTDATED"]},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"valid_from":{"type":["string","null"],"description":"Valid from date","format":"date-time"},"valid_until":{"type":["string","null"],"description":"Valid until date","format":"date-time"}},"required":["id","organization_id","framework_id","state","trust_center_visibility","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["audits"]}`) - ListContinualImprovementsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"snapshot_id":{"description":"Filter by snapshot ID. Defaults to null, which returns only continual improvements with no snapshot (current live data). Pass a specific snapshot ID to retrieve continual improvements as they were at that snapshot.","default":null,"anyOf":[{"type":"string","format":"string"},{"type":"null"}]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","REFERENCE_ID","TARGET_DATE","STATUS","PRIORITY"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListContinualImprovementsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"continual_improvements":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Description"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH"]},"reference_id":{"type":"string","description":"Reference ID"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"source":{"type":["string","null"],"description":"Source"},"source_id":{"type":["string","null"],"description":"Source ID"},"status":{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},"target_date":{"type":["string","null"],"description":"Target date","format":"date-time"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","reference_id","owner_id","status","priority","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["continual_improvements"]}`) - ListControlAuditsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"control_id":{"type":"string","format":"string"},"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","VALID_FROM","VALID_UNTIL","STATE"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"}},"required":["control_id"]}`) - ListControlAuditsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"audits":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"framework_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"name":{"type":["string","null"],"description":"Audit name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","COMPLETED","REJECTED","OUTDATED"]},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"valid_from":{"type":["string","null"],"description":"Valid from date","format":"date-time"},"valid_until":{"type":["string","null"],"description":"Valid until date","format":"date-time"}},"required":["id","organization_id","framework_id","state","trust_center_visibility","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["audits"]}`) - ListControlDocumentsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"control_id":{"type":"string","format":"string"},"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","TITLE","DOCUMENT_TYPE"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"}},"required":["control_id"]}`) - ListControlDocumentsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"documents":{"type":"array","items":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"current_published_version":{"type":["integer","null"],"description":"Current published version number"},"document_type":{"type":"string","enum":["OTHER","ISMS","POLICY","PROCEDURE"]},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"title":{"type":"string","description":"Document title"},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","approver_ids","title","document_type","classification","trust_center_visibility","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["documents"]}`) - ListControlMeasuresToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"control_id":{"type":"string","format":"string"},"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","NAME"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"}},"required":["control_id"]}`) - ListControlMeasuresToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"measures":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","description":"Measure category"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Measure description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Measure name"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","NOT_APPLICABLE","IMPLEMENTED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","category","name","state","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["measures"]}`) - ListControlObligationsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"control_id":{"type":"string","format":"string"},"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","LAST_REVIEW_DATE","DUE_DATE","STATUS"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"}},"required":["control_id"]}`) - ListControlObligationsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"obligations":{"type":"array","items":{"type":"object","properties":{"actions_to_be_implemented":{"type":["string","null"],"description":"Actions to be implemented"},"area":{"type":["string","null"],"description":"Area"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"id":{"type":"string","format":"string"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"regulator":{"type":["string","null"],"description":"Regulator"},"requirement":{"type":["string","null"],"description":"Requirement"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"source":{"type":["string","null"],"description":"Source"},"source_id":{"type":["string","null"],"description":"Source ID"},"status":{"type":"string","enum":["NON_COMPLIANT","PARTIALLY_COMPLIANT","COMPLIANT"]},"type":{"type":"string","enum":["LEGAL","CONTRACTUAL"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","owner_id","status","type","created_at","updated_at"]}}},"required":["obligations"]}`) - ListControlSnapshotsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"control_id":{"type":"string","format":"string"},"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","NAME","TYPE"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"}},"required":["control_id"]}`) - ListControlSnapshotsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"snapshots":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"description":"Snapshot description","anyOf":[{"type":"string","description":"Snapshot description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Snapshot name"},"organization_id":{"type":"string","format":"string"},"type":{"type":"string","enum":["RISKS","VENDORS","ASSETS","DATA","NONCONFORMITIES","OBLIGATIONS","CONTINUAL_IMPROVEMENTS","PROCESSING_ACTIVITIES","STATES_OF_APPLICABILITY"]}},"required":["id","organization_id","name","type","created_at"]}}},"required":["snapshots"]}`) - ListControlsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"query":{"type":"string","description":"Search query"}}},"framework_id":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","SECTION_TITLE"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListControlsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"controls":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Control description"},"framework_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Control name"},"organization_id":{"type":"string","format":"string"},"section_title":{"type":"string","description":"Section title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","framework_id","section_title","name","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["controls"]}`) - ListDataProtectionImpactAssessmentsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"snapshot_id":{"description":"Filter by snapshot ID. Defaults to null, which returns only DPIAs with no snapshot (current live data). Pass a specific snapshot ID to retrieve DPIAs as they were at that snapshot.","default":null,"anyOf":[{"type":"string","format":"string"},{"type":"null"}]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer"}},"required":["organization_id"]}`) - ListDataProtectionImpactAssessmentsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"data_protection_impact_assessments":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"id":{"type":"string","format":"string"},"mitigations":{"type":["string","null"]},"necessity_and_proportionality":{"type":["string","null"]},"organization_id":{"type":"string","format":"string"},"potential_risk":{"type":["string","null"]},"processing_activity_id":{"type":"string","format":"string"},"residual_risk":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"updated_at":{"type":"string","format":"date-time"}},"required":["id","organization_id","processing_activity_id","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["data_protection_impact_assessments"]}`) - ListDataToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"snapshot_id":{"description":"Filter by snapshot ID. Defaults to null, which returns only data with no snapshot (current live data). Pass a specific snapshot ID to retrieve data as it was at that snapshot.","default":null,"anyOf":[{"type":"string","format":"string"},{"type":"null"}]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","NAME","DATA_CLASSIFICATION"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListDataToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Datum name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","data_classification","owner_id","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["data"]}`) - ListDocumentVersionSignaturesToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"document_version_id":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"active_contract":{"type":"boolean","description":"Signatory contract status"},"states":{"type":"array","items":{"type":"string","enum":["REQUESTED","SIGNED"]},"description":"Signature states"}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","SIGNED_AT"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"}},"required":["document_version_id"]}`) - ListDocumentVersionSignaturesToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_version_signatures":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"document_version_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"requested_at":{"type":"string","description":"Requested timestamp","format":"date-time"},"signed_at":{"type":["string","null"],"description":"Signed timestamp","format":"date-time"},"signed_by":{"type":"string","format":"string"},"state":{"type":"string","enum":["REQUESTED","SIGNED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","document_version_id","state","signed_by","requested_at","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["document_version_signatures"]}`) - ListDocumentVersionsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"document_id":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","VERSION"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"}},"required":["document_id"]}`) - ListDocumentVersionsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_versions":{"type":"array","items":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"changelog":{"type":"string","description":"Changelog"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"content":{"type":"string","description":"Document content"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"document_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"published_at":{"type":["string","null"],"description":"Published timestamp","format":"date-time"},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]},"title":{"type":"string","description":"Document version title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"version_number":{"type":"integer","description":"Version number"}},"required":["id","organization_id","document_id","title","approver_ids","version_number","classification","content","changelog","status","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["document_versions"]}`) - ListDocumentsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"query":{"type":"string","description":"Search query"},"trust_center_visibilities":{"type":"array","items":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"description":"Trust center visibilities"}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","TITLE","DOCUMENT_TYPE"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListDocumentsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"documents":{"type":"array","items":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"current_published_version":{"type":["integer","null"],"description":"Current published version number"},"document_type":{"type":"string","enum":["OTHER","ISMS","POLICY","PROCEDURE"]},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"title":{"type":"string","description":"Document title"},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","approver_ids","title","document_type","classification","trust_center_visibility","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["documents"]}`) - ListFrameworksToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListFrameworksToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"frameworks":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Framework description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Framework name"},"organization_id":{"type":"string","format":"string"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["frameworks"]}`) - ListMeasureControlsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"measure_id":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","SECTION_TITLE"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"}},"required":["measure_id"]}`) - ListMeasureControlsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"controls":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Control description"},"framework_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Control name"},"organization_id":{"type":"string","format":"string"},"section_title":{"type":"string","description":"Section title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","framework_id","section_title","name","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["controls"]}`) - ListMeasureEvidencesToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"measure_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["measure_id"]}`) - ListMeasureEvidencesToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"evidences":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":"string","description":"Description"},"id":{"type":"string","format":"string"},"measure_id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"reference_id":{"type":"string","description":"Reference ID"},"state":{"type":"string","enum":["REQUESTED","FULFILLED"]},"task_id":{"type":"string","format":"string"},"type":{"type":"string","enum":["FILE","LINK"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"url":{"type":"string","description":"URL"}},"required":["id","organization_id","measure_id","state","reference_id","type","url","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["evidences"]}`) - ListMeasureRisksToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"measure_id":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","UPDATED_AT","NAME","CATEGORY","TREATMENT","INHERENT_RISK_SCORE","RESIDUAL_RISK_SCORE","OWNER_FULL_NAME"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"}},"required":["measure_id"]}`) - ListMeasureRisksToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"risks":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","description":"Risk category"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Risk description"},"id":{"type":"string","format":"string"},"inherent_impact":{"type":"integer","description":"Inherent impact"},"inherent_likelihood":{"type":"integer","description":"Inherent likelihood"},"inherent_risk_score":{"type":"integer","description":"Inherent risk score"},"name":{"type":"string","description":"Risk name"},"note":{"type":"string","description":"Risk note"},"organization_id":{"type":"string","format":"string"},"owner_id":{"anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No owner"}]},"residual_impact":{"type":"integer","description":"Residual impact"},"residual_likelihood":{"type":"integer","description":"Residual likelihood"},"residual_risk_score":{"type":"integer","description":"Residual risk score"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"treatment":{"type":"string","enum":["MITIGATED","ACCEPTED","AVOIDED","TRANSFERRED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","category","treatment","inherent_likelihood","inherent_impact","inherent_risk_score","residual_likelihood","residual_impact","residual_risk_score","note","created_at","updated_at"]}}},"required":["risks"]}`) - ListMeasureTasksToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"measure_id":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"}},"required":["measure_id"]}`) - ListMeasureTasksToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"tasks":{"type":"array","items":{"type":"object","properties":{"assigned_to_id":{"description":"Assigned to person ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"Not assigned"}]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"deadline":{"description":"Deadline","anyOf":[{"type":"string","description":"Deadline","format":"date-time"},{"type":"null","description":"No deadline"}]},"description":{"description":"Task description","anyOf":[{"type":"string","description":"Task description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"measure_id":{"description":"Measure ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No measure"}]},"name":{"type":"string","description":"Task name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["TODO","DONE"]},"time_estimate":{"description":"Time estimate","anyOf":[{"type":"string","description":"A duration"},{"type":"null","description":"No time estimate"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","state","created_at","updated_at"]}}},"required":["tasks"]}`) - ListMeasuresToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"query":{"type":"string","description":"Search query"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","NOT_APPLICABLE","IMPLEMENTED"]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","NAME"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListMeasuresToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"measures":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","description":"Measure category"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Measure description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Measure name"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","NOT_APPLICABLE","IMPLEMENTED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","category","name","state","created_at","updated_at"]}},"next_cursor":{"type":"string","format":"string"}},"required":["measures"]}`) - ListMeetingAttendeesToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"meeting_id":{"type":"string","format":"string"}},"required":["meeting_id"]}`) - ListMeetingAttendeesToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"attendees":{"type":"array","items":{"type":"object","properties":{"additional_email_addresses":{"type":"array","items":{"type":"string","format":"string"},"description":"Additional email addresses"},"contract_end_date":{"type":["string","null"],"description":"Contract end date","format":"date-time"},"contract_start_date":{"type":["string","null"],"description":"Contract start date","format":"date-time"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"email_address":{"type":"string","format":"string"},"full_name":{"type":"string","description":"Full name"},"id":{"type":"string","format":"string"},"kind":{"type":["string","null"],"description":"Profile kind"},"organization_id":{"type":"string","format":"string"},"position":{"type":["string","null"],"description":"Position"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","full_name","email_address","additional_email_addresses","kind","created_at","updated_at"]},"description":"List of attendee profiles"}},"required":["attendees"]}`) - ListMeetingsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","DATE","NAME"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListMeetingsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"meetings":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"date":{"type":"string","description":"Meeting date","format":"date-time"},"id":{"type":"string","format":"string"},"minutes":{"description":"Meeting minutes","anyOf":[{"type":"string","description":"Meeting minutes"},{"type":"null","description":"No minutes"}]},"name":{"type":"string","description":"Meeting name"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","name","date","created_at","updated_at"]},"description":"List of meetings"},"next_cursor":{"description":"Next page cursor","anyOf":[{"type":"string","format":"string"},{"type":"null"}]}},"required":["meetings"]}`) - ListNonconformitiesToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"snapshot_id":{"description":"Filter by snapshot ID. Defaults to null, which returns only nonconformities with no snapshot (current live data). Pass a specific snapshot ID to retrieve nonconformities as they were at that snapshot.","default":null,"anyOf":[{"type":"string","format":"string"},{"type":"null"}]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","REFERENCE_ID","DATE_IDENTIFIED","DUE_DATE","STATUS"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListNonconformitiesToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"nonconformities":{"type":"array","items":{"type":"object","properties":{"audit_id":{"description":"Audit ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No audit"}]},"corrective_action":{"type":["string","null"],"description":"Corrective action"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"date_identified":{"type":["string","null"],"description":"Date identified","format":"date-time"},"description":{"type":["string","null"],"description":"Description"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"effectiveness_check":{"type":["string","null"],"description":"Effectiveness check"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"reference_id":{"type":"string","description":"Reference ID"},"root_cause":{"type":"string","description":"Root cause"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"status":{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","reference_id","root_cause","owner_id","status","created_at","updated_at"]}}},"required":["nonconformities"]}`) - ListObligationsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"snapshot_id":{"description":"Filter by snapshot ID. Defaults to null, which returns only obligations with no snapshot (current live data). Pass a specific snapshot ID to retrieve obligations as they were at that snapshot.","default":null,"anyOf":[{"type":"string","format":"string"},{"type":"null"}]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","LAST_REVIEW_DATE","DUE_DATE","STATUS"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListObligationsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"obligations":{"type":"array","items":{"type":"object","properties":{"actions_to_be_implemented":{"type":["string","null"],"description":"Actions to be implemented"},"area":{"type":["string","null"],"description":"Area"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"id":{"type":"string","format":"string"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"regulator":{"type":["string","null"],"description":"Regulator"},"requirement":{"type":["string","null"],"description":"Requirement"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"source":{"type":["string","null"],"description":"Source"},"source_id":{"type":["string","null"],"description":"Source ID"},"status":{"type":"string","enum":["NON_COMPLIANT","PARTIALLY_COMPLIANT","COMPLIANT"]},"type":{"type":"string","enum":["LEGAL","CONTRACTUAL"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","owner_id","status","type","created_at","updated_at"]}}},"required":["obligations"]}`) - ListOrganizationsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"organization_id":{"type":"string","format":"string"}}}`) - ListOrganizationsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"organizations":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Organization description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Organization name"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","name","description","created_at","updated_at"]}}}}`) - ListProcessingActivitiesToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"snapshot_id":{"description":"Filter by snapshot ID. Defaults to null, which returns only processing activities with no snapshot (current live data). Pass a specific snapshot ID to retrieve processing activities as they were at that snapshot.","default":null,"anyOf":[{"type":"string","format":"string"},{"type":"null"}]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","NAME"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListProcessingActivitiesToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"processing_activities":{"type":"array","items":{"type":"object","properties":{"consent_evidence_link":{"type":["string","null"],"description":"Consent evidence link"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_protection_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"data_protection_officer_id":{"description":"Data protection officer profile ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"data_subject_category":{"type":["string","null"],"description":"Data subject category"},"id":{"type":"string","format":"string"},"international_transfers":{"type":"boolean","description":"International transfers"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"lawful_basis":{"type":"string","enum":["LEGITIMATE_INTEREST","CONSENT","CONTRACTUAL_NECESSITY","LEGAL_OBLIGATION","VITAL_INTERESTS","PUBLIC_TASK"]},"location":{"type":["string","null"],"description":"Location"},"name":{"type":"string","description":"Name"},"next_review_date":{"type":["string","null"],"description":"Next review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"personal_data_category":{"type":["string","null"],"description":"Personal data category"},"purpose":{"type":["string","null"],"description":"Purpose"},"recipients":{"type":["string","null"],"description":"Recipients"},"retention_period":{"type":["string","null"],"description":"Retention period"},"role":{"type":"string","enum":["CONTROLLER","PROCESSOR"]},"security_measures":{"type":["string","null"],"description":"Security measures"},"special_or_criminal_data":{"type":"string","enum":["YES","NO","POSSIBLE"]},"transfer_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"transfer_safeguard":{"description":"Transfer safeguard","anyOf":[{"type":"string","enum":["STANDARD_CONTRACTUAL_CLAUSES","BINDING_CORPORATE_RULES","ADEQUACY_DECISION","DEROGATIONS","CODES_OF_CONDUCT","CERTIFICATION_MECHANISMS"]},{"type":"null"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","special_or_criminal_data","lawful_basis","international_transfers","data_protection_impact_assessment_needed","transfer_impact_assessment_needed","role","created_at","updated_at"]}}},"required":["processing_activities"]}`) - ListRiskObligationsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","LAST_REVIEW_DATE","DUE_DATE","STATUS"]}},"required":["field","direction"]},"risk_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["risk_id"]}`) - ListRiskObligationsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"obligations":{"type":"array","items":{"type":"object","properties":{"actions_to_be_implemented":{"type":["string","null"],"description":"Actions to be implemented"},"area":{"type":["string","null"],"description":"Area"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"id":{"type":"string","format":"string"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"regulator":{"type":["string","null"],"description":"Regulator"},"requirement":{"type":["string","null"],"description":"Requirement"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"source":{"type":["string","null"],"description":"Source"},"source_id":{"type":["string","null"],"description":"Source ID"},"status":{"type":"string","enum":["NON_COMPLIANT","PARTIALLY_COMPLIANT","COMPLIANT"]},"type":{"type":"string","enum":["LEGAL","CONTRACTUAL"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","owner_id","status","type","created_at","updated_at"]}}},"required":["obligations"]}`) - ListRisksToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"query":{"type":"string","description":"Search query"},"snapshot_id":{"description":"Filter by snapshot ID. Defaults to null, which returns only risks with no snapshot (current live data). Pass a specific snapshot ID to retrieve risks as they were at that snapshot.","default":null,"anyOf":[{"type":"string","format":"string"},{"type":"null"}]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","UPDATED_AT","NAME","CATEGORY","TREATMENT","INHERENT_RISK_SCORE","RESIDUAL_RISK_SCORE","OWNER_FULL_NAME"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListRisksToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"risks":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","description":"Risk category"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Risk description"},"id":{"type":"string","format":"string"},"inherent_impact":{"type":"integer","description":"Inherent impact"},"inherent_likelihood":{"type":"integer","description":"Inherent likelihood"},"inherent_risk_score":{"type":"integer","description":"Inherent risk score"},"name":{"type":"string","description":"Risk name"},"note":{"type":"string","description":"Risk note"},"organization_id":{"type":"string","format":"string"},"owner_id":{"anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No owner"}]},"residual_impact":{"type":"integer","description":"Residual impact"},"residual_likelihood":{"type":"integer","description":"Residual likelihood"},"residual_risk_score":{"type":"integer","description":"Residual risk score"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"treatment":{"type":"string","enum":["MITIGATED","ACCEPTED","AVOIDED","TRANSFERRED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","category","treatment","inherent_likelihood","inherent_impact","inherent_risk_score","residual_likelihood","residual_impact","residual_risk_score","note","created_at","updated_at"]}}},"required":["risks"]}`) - ListSnapshotsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","NAME","TYPE"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListSnapshotsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"description":"Next page cursor","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"snapshots":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"description":"Snapshot description","anyOf":[{"type":"string","description":"Snapshot description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Snapshot name"},"organization_id":{"type":"string","format":"string"},"type":{"type":"string","enum":["RISKS","VENDORS","ASSETS","DATA","NONCONFORMITIES","OBLIGATIONS","CONTINUAL_IMPROVEMENTS","PROCESSING_ACTIVITIES","STATES_OF_APPLICABILITY"]}},"required":["id","organization_id","name","type","created_at"]},"description":"List of snapshots"}},"required":["snapshots"]}`) - ListStatesOfApplicabilityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","NAME"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListStatesOfApplicabilityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"states_of_applicability":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"State of applicability name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","owner_id","created_at","updated_at"]}}},"required":["states_of_applicability"]}`) - ListTasksToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"measure_id":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListTasksToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"description":"Next page cursor","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"tasks":{"type":"array","items":{"type":"object","properties":{"assigned_to_id":{"description":"Assigned to person ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"Not assigned"}]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"deadline":{"description":"Deadline","anyOf":[{"type":"string","description":"Deadline","format":"date-time"},{"type":"null","description":"No deadline"}]},"description":{"description":"Task description","anyOf":[{"type":"string","description":"Task description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"measure_id":{"description":"Measure ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No measure"}]},"name":{"type":"string","description":"Task name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["TODO","DONE"]},"time_estimate":{"description":"Time estimate","anyOf":[{"type":"string","description":"A duration"},{"type":"null","description":"No time estimate"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","state","created_at","updated_at"]},"description":"List of tasks"}},"required":["tasks"]}`) - ListTransferImpactAssessmentsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"snapshot_id":{"description":"Filter by snapshot ID. Defaults to null, which returns only TIAs with no snapshot (current live data). Pass a specific snapshot ID to retrieve TIAs as they were at that snapshot.","default":null,"anyOf":[{"type":"string","format":"string"},{"type":"null"}]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer"}},"required":["organization_id"]}`) - ListTransferImpactAssessmentsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"transfer_impact_assessments":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time"},"data_subjects":{"type":["string","null"]},"id":{"type":"string","format":"string"},"legal_mechanism":{"type":["string","null"]},"local_law_risk":{"type":["string","null"]},"organization_id":{"type":"string","format":"string"},"processing_activity_id":{"type":"string","format":"string"},"supplementary_measures":{"type":["string","null"]},"transfer":{"type":["string","null"]},"updated_at":{"type":"string","format":"date-time"}},"required":["id","organization_id","processing_activity_id","created_at","updated_at"]}}},"required":["transfer_impact_assessments"]}`) - ListUsersToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"exclude_contract_ended":{"type":"boolean","description":"Exclude users with ended contracts"}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","FULL_NAME","KIND"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListUsersToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"users":{"type":"array","items":{"type":"object","properties":{"additional_email_addresses":{"type":"array","items":{"type":"string","format":"string"},"description":"Additional email addresses"},"contract_end_date":{"type":["string","null"],"description":"Contract end date","format":"date-time"},"contract_start_date":{"type":["string","null"],"description":"Contract start date","format":"date-time"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"email_address":{"type":"string","format":"string"},"full_name":{"type":"string","description":"Full name"},"id":{"type":"string","format":"string"},"kind":{"type":["string","null"],"description":"Profile kind"},"organization_id":{"type":"string","format":"string"},"position":{"type":["string","null"],"description":"Position"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","full_name","email_address","additional_email_addresses","kind","created_at","updated_at"]}}},"required":["users"]}`) - ListVendorRiskAssessmentsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","EXPIRES_AT"]}},"required":["field","direction"]},"size":{"type":"integer","description":"Page size"},"vendor_id":{"type":"string","format":"string"}},"required":["vendor_id"]}`) - ListVendorRiskAssessmentsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"vendor_risk_assessments":{"type":"array","items":{"type":"object","properties":{"business_impact":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_sensitivity":{"type":"string","enum":["NONE","LOW","MEDIUM","HIGH","CRITICAL"]},"expires_at":{"type":"string","description":"Expiration timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"notes":{"type":["string","null"],"description":"Notes"},"organization_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"vendor_id":{"type":"string","format":"string"}},"required":["id","organization_id","vendor_id","expires_at","data_sensitivity","business_impact","created_at","updated_at"]}}},"required":["vendor_risk_assessments"]}`) - ListVendorsToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"cursor":{"type":"string","format":"string"},"filter":{"type":"object","properties":{"snapshot_id":{"description":"Filter by snapshot ID. Defaults to null, which returns only vendors with no snapshot (current live data). Pass a specific snapshot ID to retrieve vendors as they were at that snapshot.","default":null,"anyOf":[{"type":"string","format":"string"},{"type":"null"}]}}},"order_by":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"field":{"type":"string","enum":["CREATED_AT","UPDATED_AT","NAME"]}},"required":["field","direction"]},"organization_id":{"type":"string","format":"string"},"size":{"type":"integer","description":"Page size"}},"required":["organization_id"]}`) - ListVendorsToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"next_cursor":{"type":"string","format":"string"},"vendors":{"type":"array","items":{"type":"object","properties":{"business_associate_agreement_url":{"type":["string","null"],"description":"Business associate agreement URL"},"business_owner_id":{"description":"Business owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"category":{"type":"string","description":"Vendor category","enum":["ANALYTICS","CLOUD_MONITORING","CLOUD_PROVIDER","COLLABORATION","CUSTOMER_SUPPORT","DATA_STORAGE_AND_PROCESSING","DOCUMENT_MANAGEMENT","EMPLOYEE_MANAGEMENT","ENGINEERING","FINANCE","IDENTITY_PROVIDER","IT","MARKETING","OFFICE_OPERATIONS","OTHER","PASSWORD_MANAGEMENT","PRODUCT_AND_DESIGN","PROFESSIONAL_SERVICES","RECRUITING","SALES","SECURITY","VERSION_CONTROL"]},"certifications":{"type":"array","items":{"type":"string"},"description":"Certifications"},"countries":{"type":"array","items":{"type":"string"},"description":"Countries (ISO 3166-1 alpha-2 country codes)"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_processing_agreement_url":{"type":["string","null"],"description":"Data processing agreement URL"},"description":{"type":["string","null"],"description":"Vendor description"},"headquarter_address":{"type":["string","null"],"description":"Headquarter address"},"id":{"type":"string","format":"string"},"legal_name":{"type":["string","null"],"description":"Legal name"},"name":{"type":"string","description":"Vendor name"},"organization_id":{"type":"string","format":"string"},"privacy_policy_url":{"type":["string","null"],"description":"Privacy policy URL"},"security_owner_id":{"description":"Security owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"security_page_url":{"type":["string","null"],"description":"Security page URL"},"service_level_agreement_url":{"type":["string","null"],"description":"Service level agreement URL"},"status_page_url":{"type":["string","null"],"description":"Status page URL"},"subprocessors_list_url":{"type":["string","null"],"description":"Subprocessors list URL"},"terms_of_service_url":{"type":["string","null"],"description":"Terms of service URL"},"trust_page_url":{"type":["string","null"],"description":"Trust page URL"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"website_url":{"type":["string","null"],"description":"Website URL"}},"required":["id","name","organization_id","category","created_at","updated_at"]}}},"required":["vendors"]}`) - PublishDocumentVersionToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"changelog":{"type":"string","description":"Changelog"},"document_id":{"type":"string","format":"string"}},"required":["document_id"]}`) - PublishDocumentVersionToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"current_published_version":{"type":["integer","null"],"description":"Current published version number"},"document_type":{"type":"string","enum":["OTHER","ISMS","POLICY","PROCEDURE"]},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"title":{"type":"string","description":"Document title"},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","approver_ids","title","document_type","classification","trust_center_visibility","created_at","updated_at"]},"document_version":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"changelog":{"type":"string","description":"Changelog"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"content":{"type":"string","description":"Document content"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"document_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"published_at":{"type":["string","null"],"description":"Published timestamp","format":"date-time"},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]},"title":{"type":"string","description":"Document version title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"version_number":{"type":"integer","description":"Version number"}},"required":["id","organization_id","document_id","title","approver_ids","version_number","classification","content","changelog","status","created_at","updated_at"]}},"required":["document","document_version"]}`) - RemoveUserToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"organization_id":{"type":"string","format":"string"},"profile_id":{"type":"string","format":"string"}},"required":["organization_id","profile_id"]}`) - RemoveUserToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"deleted_user_id":{"type":"string","format":"string"}},"required":["deleted_user_id"]}`) - RequestDocumentVersionSignatureToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_version_id":{"type":"string","format":"string"},"signatory_id":{"type":"string","format":"string"}},"required":["document_version_id","signatory_id"]}`) - RequestDocumentVersionSignatureToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_version_signature":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"document_version_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"requested_at":{"type":"string","description":"Requested timestamp","format":"date-time"},"signed_at":{"type":["string","null"],"description":"Signed timestamp","format":"date-time"},"signed_by":{"type":"string","format":"string"},"state":{"type":"string","enum":["REQUESTED","SIGNED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","document_version_id","state","signed_by","requested_at","created_at","updated_at"]}},"required":["document_version_signature"]}`) - TakeSnapshotToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"description":{"type":"string","description":"Snapshot description"},"name":{"type":"string","description":"Snapshot name"},"organization_id":{"type":"string","format":"string"},"type":{"type":"string","enum":["RISKS","VENDORS","ASSETS","DATA","NONCONFORMITIES","OBLIGATIONS","CONTINUAL_IMPROVEMENTS","PROCESSING_ACTIVITIES","STATES_OF_APPLICABILITY"]}},"required":["organization_id","name","type"]}`) - TakeSnapshotToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"snapshot":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"description":"Snapshot description","anyOf":[{"type":"string","description":"Snapshot description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Snapshot name"},"organization_id":{"type":"string","format":"string"},"type":{"type":"string","enum":["RISKS","VENDORS","ASSETS","DATA","NONCONFORMITIES","OBLIGATIONS","CONTINUAL_IMPROVEMENTS","PROCESSING_ACTIVITIES","STATES_OF_APPLICABILITY"]}},"required":["id","organization_id","name","type","created_at"]}},"required":["snapshot"]}`) - UnassignTaskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"}},"required":["id"]}`) - UnassignTaskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"task":{"type":"object","properties":{"assigned_to_id":{"description":"Assigned to person ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"Not assigned"}]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"deadline":{"description":"Deadline","anyOf":[{"type":"string","description":"Deadline","format":"date-time"},{"type":"null","description":"No deadline"}]},"description":{"description":"Task description","anyOf":[{"type":"string","description":"Task description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"measure_id":{"description":"Measure ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No measure"}]},"name":{"type":"string","description":"Task name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["TODO","DONE"]},"time_estimate":{"description":"Time estimate","anyOf":[{"type":"string","description":"A duration"},{"type":"null","description":"No time estimate"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","state","created_at","updated_at"]}},"required":["task"]}`) - UnlinkControlToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"control_id":{"type":"string","format":"string"},"resource_id":{"type":"string","format":"string"}},"required":["control_id","resource_id"]}`) - UnlinkControlToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object"}`) - UnlinkMeasureToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"measure_id":{"type":"string","format":"string"},"resource_id":{"type":"string","format":"string"}},"required":["measure_id","resource_id"]}`) - UnlinkMeasureToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object"}`) - UnlinkRiskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"resource_id":{"type":"string","format":"string"},"risk_id":{"type":"string","format":"string"}},"required":["risk_id","resource_id"]}`) - UnlinkRiskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object"}`) - UpdateApplicabilityStatementToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"applicability":{"type":"boolean","description":"Whether the control is applicable"},"id":{"type":"string","format":"string"},"justification":{"description":"Justification for the applicability decision","anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","applicability"]}`) - UpdateApplicabilityStatementToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"applicability_statement":{"type":"object","properties":{"applicability":{"type":"boolean","description":"Whether the control is applicable"},"control_id":{"type":"string","format":"string"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"justification":{"description":"Justification for the applicability decision","anyOf":[{"type":"string"},{"type":"null"}]},"organization_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"state_of_applicability_id":{"type":"string","format":"string"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","state_of_applicability_id","control_id","organization_id","applicability","created_at","updated_at"]}},"required":["applicability_statement"]}`) - UpdateAssetToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"amount":{"type":"integer","description":"Asset amount"},"asset_type":{"type":"string","enum":["PHYSICAL","VIRTUAL"]},"data_types_stored":{"type":"string","description":"Data types stored"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Asset name"},"owner_id":{"description":"Owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"vendor_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Vendor IDs"}},"required":["id"]}`) - UpdateAssetToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"asset":{"type":"object","properties":{"amount":{"type":"integer","description":"Asset amount"},"asset_type":{"type":"string","enum":["PHYSICAL","VIRTUAL"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_types_stored":{"type":"string","description":"Data types stored"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Asset name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"type":["string","null"],"description":"Snapshot ID"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","amount","owner_id","asset_type","data_types_stored","created_at","updated_at"]}},"required":["asset"]}`) - UpdateAuditToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"},"name":{"type":["string","null"],"description":"Audit name"},"state":{"description":"Audit state","anyOf":[{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","COMPLETED","REJECTED","OUTDATED"]},{"type":"null","description":"No state"}]},"trust_center_visibility":{"description":"Trust center visibility","anyOf":[{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},{"type":"null","description":"No trust center visibility"}]},"valid_from":{"type":["string","null"],"description":"Valid from date","format":"date-time"},"valid_until":{"type":["string","null"],"description":"Valid until date","format":"date-time"}},"required":["id"]}`) - UpdateAuditToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"audit":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"framework_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"name":{"type":["string","null"],"description":"Audit name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","COMPLETED","REJECTED","OUTDATED"]},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"valid_from":{"type":["string","null"],"description":"Valid from date","format":"date-time"},"valid_until":{"type":["string","null"],"description":"Valid until date","format":"date-time"}},"required":["id","organization_id","framework_id","state","trust_center_visibility","created_at","updated_at"]}},"required":["audit"]}`) - UpdateContinualImprovementToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"description":{"type":["string","null"],"description":"Description"},"id":{"type":"string","format":"string"},"owner_id":{"description":"Owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"priority":{"description":"Priority","anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null","description":"No priority"}]},"reference_id":{"type":"string","description":"Reference ID"},"source":{"type":["string","null"],"description":"Source"},"status":{"description":"Status","anyOf":[{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},{"type":"null","description":"No status"}]},"target_date":{"type":["string","null"],"description":"Target date","format":"date-time"}},"required":["id"]}`) - UpdateContinualImprovementToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"continual_improvement":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Description"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH"]},"reference_id":{"type":"string","description":"Reference ID"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"source":{"type":["string","null"],"description":"Source"},"source_id":{"type":["string","null"],"description":"Source ID"},"status":{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},"target_date":{"type":["string","null"],"description":"Target date","format":"date-time"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","reference_id","owner_id","status","priority","created_at","updated_at"]}},"required":["continual_improvement"]}`) - UpdateControlToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"description":{"type":["string","null"],"description":"Control description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Control name"},"section_title":{"type":"string","description":"Section title"}},"required":["id"]}`) - UpdateControlToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"control":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Control description"},"framework_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Control name"},"organization_id":{"type":"string","format":"string"},"section_title":{"type":"string","description":"Section title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","framework_id","section_title","name","created_at","updated_at"]}},"required":["control"]}`) - UpdateDataProtectionImpactAssessmentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"description":{"type":["string","null"]},"id":{"type":"string","format":"string"},"mitigations":{"type":["string","null"]},"necessity_and_proportionality":{"type":["string","null"]},"potential_risk":{"type":["string","null"]},"residual_risk":{"type":"string","enum":["LOW","MEDIUM","HIGH"]}},"required":["id"]}`) - UpdateDataProtectionImpactAssessmentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"data_protection_impact_assessment":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time"},"description":{"type":["string","null"]},"id":{"type":"string","format":"string"},"mitigations":{"type":["string","null"]},"necessity_and_proportionality":{"type":["string","null"]},"organization_id":{"type":"string","format":"string"},"potential_risk":{"type":["string","null"]},"processing_activity_id":{"type":"string","format":"string"},"residual_risk":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"updated_at":{"type":"string","format":"date-time"}},"required":["id","organization_id","processing_activity_id","created_at","updated_at"]}},"required":["data_protection_impact_assessment"]}`) - UpdateDatumToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"data_classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Datum name"},"owner_id":{"description":"Owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"vendor_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Vendor IDs"}},"required":["id"]}`) - UpdateDatumToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"datum":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Datum name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","data_classification","owner_id","created_at","updated_at"]}},"required":["datum"]}`) - UpdateDocumentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"document_type":{"type":"string","enum":["OTHER","ISMS","POLICY","PROCEDURE"]},"id":{"type":"string","format":"string"},"title":{"type":"string","description":"Document title"},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]}},"required":["id"]}`) - UpdateDocumentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"current_published_version":{"type":["integer","null"],"description":"Current published version number"},"document_type":{"type":"string","enum":["OTHER","ISMS","POLICY","PROCEDURE"]},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"title":{"type":"string","description":"Document title"},"trust_center_visibility":{"type":"string","enum":["NONE","PRIVATE","PUBLIC"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","approver_ids","title","document_type","classification","trust_center_visibility","created_at","updated_at"]}},"required":["document"]}`) - UpdateDocumentVersionToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"content":{"type":"string","description":"Document content"},"document_version_id":{"type":"string","format":"string"}},"required":["document_version_id","content"]}`) - UpdateDocumentVersionToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"document_version":{"type":"object","properties":{"approver_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"Approver IDs"},"changelog":{"type":"string","description":"Changelog"},"classification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","SECRET"]},"content":{"type":"string","description":"Document content"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"document_id":{"type":"string","format":"string"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"published_at":{"type":["string","null"],"description":"Published timestamp","format":"date-time"},"status":{"type":"string","enum":["DRAFT","PUBLISHED"]},"title":{"type":"string","description":"Document version title"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"version_number":{"type":"integer","description":"Version number"}},"required":["id","organization_id","document_id","title","approver_ids","version_number","classification","content","changelog","status","created_at","updated_at"]}},"required":["document_version"]}`) - UpdateFrameworkToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"description":{"type":["string","null"],"description":"Framework description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Framework name"}},"required":["id"]}`) - UpdateFrameworkToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"framework":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Framework description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Framework name"},"organization_id":{"type":"string","format":"string"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","created_at","updated_at"]}},"required":["framework"]}`) - UpdateMeasureToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"category":{"type":"string","description":"Measure category"},"description":{"type":["string","null"],"description":"Measure description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Measure name"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","NOT_APPLICABLE","IMPLEMENTED"]}},"required":["id"]}`) - UpdateMeasureToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"measure":{"type":"object","properties":{"category":{"type":"string","description":"Measure category"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Measure description"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"Measure name"},"state":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","NOT_APPLICABLE","IMPLEMENTED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","category","name","state","created_at","updated_at"]}},"required":["measure"]}`) - UpdateMeetingToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"attendee_ids":{"type":"array","items":{"type":"string","format":"string"},"description":"List of attendee profile IDs"},"date":{"type":"string","description":"Meeting date","format":"date-time"},"id":{"type":"string","format":"string"},"minutes":{"type":["string","null"],"description":"Meeting minutes"},"name":{"type":"string","description":"Meeting name"}},"required":["id"]}`) - UpdateMeetingToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"meeting":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"date":{"type":"string","description":"Meeting date","format":"date-time"},"id":{"type":"string","format":"string"},"minutes":{"description":"Meeting minutes","anyOf":[{"type":"string","description":"Meeting minutes"},{"type":"null","description":"No minutes"}]},"name":{"type":"string","description":"Meeting name"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","name","date","created_at","updated_at"]}},"required":["meeting"]}`) - UpdateMembershipToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"membership_id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"role":{"type":"string","enum":["OWNER","ADMIN","EMPLOYEE","VIEWER","AUDITOR"]}},"required":["organization_id","membership_id","role"]}`) - UpdateMembershipToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"membership":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"role":{"type":"string","enum":["OWNER","ADMIN","EMPLOYEE","VIEWER","AUDITOR"]}},"required":["id","role","created_at"]}},"required":["membership"]}`) - UpdateNonconformityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"audit_id":{"description":"Audit ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"corrective_action":{"type":["string","null"],"description":"Corrective action"},"date_identified":{"type":["string","null"],"description":"Date identified","format":"date-time"},"description":{"type":["string","null"],"description":"Description"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"effectiveness_check":{"type":["string","null"],"description":"Effectiveness check"},"id":{"type":"string","format":"string"},"owner_id":{"description":"Owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"reference_id":{"type":"string","description":"Reference ID"},"root_cause":{"type":"string","description":"Root cause"},"status":{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]}},"required":["id"]}`) - UpdateNonconformityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"nonconformity":{"type":"object","properties":{"audit_id":{"description":"Audit ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No audit"}]},"corrective_action":{"type":["string","null"],"description":"Corrective action"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"date_identified":{"type":["string","null"],"description":"Date identified","format":"date-time"},"description":{"type":["string","null"],"description":"Description"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"effectiveness_check":{"type":["string","null"],"description":"Effectiveness check"},"id":{"type":"string","format":"string"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"reference_id":{"type":"string","description":"Reference ID"},"root_cause":{"type":"string","description":"Root cause"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"status":{"type":"string","enum":["OPEN","IN_PROGRESS","CLOSED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","reference_id","root_cause","owner_id","status","created_at","updated_at"]}},"required":["nonconformity"]}`) - UpdateObligationToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"actions_to_be_implemented":{"type":["string","null"],"description":"Actions to be implemented"},"area":{"type":["string","null"],"description":"Area"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"id":{"type":"string","format":"string"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"owner_id":{"description":"Owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"regulator":{"type":["string","null"],"description":"Regulator"},"requirement":{"type":["string","null"],"description":"Requirement"},"source":{"type":["string","null"],"description":"Source"},"status":{"description":"Status","anyOf":[{"type":"string","enum":["NON_COMPLIANT","PARTIALLY_COMPLIANT","COMPLIANT"]},{"type":"null","description":"No status"}]},"type":{"description":"Type","anyOf":[{"type":"string","enum":["LEGAL","CONTRACTUAL"]},{"type":"null","description":"No type"}]}},"required":["id"]}`) - UpdateObligationToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"obligation":{"type":"object","properties":{"actions_to_be_implemented":{"type":["string","null"],"description":"Actions to be implemented"},"area":{"type":["string","null"],"description":"Area"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"due_date":{"type":["string","null"],"description":"Due date","format":"date-time"},"id":{"type":"string","format":"string"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"regulator":{"type":["string","null"],"description":"Regulator"},"requirement":{"type":["string","null"],"description":"Requirement"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"source":{"type":["string","null"],"description":"Source"},"source_id":{"type":["string","null"],"description":"Source ID"},"status":{"type":"string","enum":["NON_COMPLIANT","PARTIALLY_COMPLIANT","COMPLIANT"]},"type":{"type":"string","enum":["LEGAL","CONTRACTUAL"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","owner_id","status","type","created_at","updated_at"]}},"required":["obligation"]}`) - UpdateProcessingActivityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"consent_evidence_link":{"type":["string","null"]},"data_protection_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"data_protection_officer_id":{"anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"data_subject_category":{"type":["string","null"]},"id":{"type":"string","format":"string"},"international_transfers":{"type":"boolean"},"last_review_date":{"type":["string","null"],"format":"date-time"},"lawful_basis":{"type":"string","enum":["LEGITIMATE_INTEREST","CONSENT","CONTRACTUAL_NECESSITY","LEGAL_OBLIGATION","VITAL_INTERESTS","PUBLIC_TASK"]},"location":{"type":["string","null"]},"name":{"type":"string"},"next_review_date":{"type":["string","null"],"format":"date-time"},"personal_data_category":{"type":["string","null"]},"purpose":{"type":["string","null"]},"recipients":{"type":["string","null"]},"retention_period":{"type":["string","null"]},"role":{"type":"string","enum":["CONTROLLER","PROCESSOR"]},"security_measures":{"type":["string","null"]},"special_or_criminal_data":{"type":"string","enum":["YES","NO","POSSIBLE"]},"transfer_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"transfer_safeguard":{"anyOf":[{"type":"string","enum":["STANDARD_CONTRACTUAL_CLAUSES","BINDING_CORPORATE_RULES","ADEQUACY_DECISION","DEROGATIONS","CODES_OF_CONDUCT","CERTIFICATION_MECHANISMS"]},{"type":"null"}]},"vendor_ids":{"type":"array","items":{"type":"string","format":"string"}}},"required":["id"]}`) - UpdateProcessingActivityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"processing_activity":{"type":"object","properties":{"consent_evidence_link":{"type":["string","null"],"description":"Consent evidence link"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_protection_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"data_protection_officer_id":{"description":"Data protection officer profile ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"data_subject_category":{"type":["string","null"],"description":"Data subject category"},"id":{"type":"string","format":"string"},"international_transfers":{"type":"boolean","description":"International transfers"},"last_review_date":{"type":["string","null"],"description":"Last review date","format":"date-time"},"lawful_basis":{"type":"string","enum":["LEGITIMATE_INTEREST","CONSENT","CONTRACTUAL_NECESSITY","LEGAL_OBLIGATION","VITAL_INTERESTS","PUBLIC_TASK"]},"location":{"type":["string","null"],"description":"Location"},"name":{"type":"string","description":"Name"},"next_review_date":{"type":["string","null"],"description":"Next review date","format":"date-time"},"organization_id":{"type":"string","format":"string"},"personal_data_category":{"type":["string","null"],"description":"Personal data category"},"purpose":{"type":["string","null"],"description":"Purpose"},"recipients":{"type":["string","null"],"description":"Recipients"},"retention_period":{"type":["string","null"],"description":"Retention period"},"role":{"type":"string","enum":["CONTROLLER","PROCESSOR"]},"security_measures":{"type":["string","null"],"description":"Security measures"},"special_or_criminal_data":{"type":"string","enum":["YES","NO","POSSIBLE"]},"transfer_impact_assessment_needed":{"type":"string","enum":["NEEDED","NOT_NEEDED"]},"transfer_safeguard":{"description":"Transfer safeguard","anyOf":[{"type":"string","enum":["STANDARD_CONTRACTUAL_CLAUSES","BINDING_CORPORATE_RULES","ADEQUACY_DECISION","DEROGATIONS","CODES_OF_CONDUCT","CERTIFICATION_MECHANISMS"]},{"type":"null"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","special_or_criminal_data","lawful_basis","international_transfers","data_protection_impact_assessment_needed","transfer_impact_assessment_needed","role","created_at","updated_at"]}},"required":["processing_activity"]}`) - UpdateRiskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"category":{"type":"string","description":"Risk category"},"description":{"type":["string","null"],"description":"Risk description"},"id":{"type":"string","format":"string"},"inherent_impact":{"type":"integer","description":"Inherent impact"},"inherent_likelihood":{"type":"integer","description":"Inherent likelihood"},"name":{"type":"string","description":"Risk name"},"note":{"type":"string","description":"Risk note"},"owner_id":{"description":"Owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"residual_impact":{"type":"integer","description":"Residual impact"},"residual_likelihood":{"type":"integer","description":"Residual likelihood"},"treatment":{"type":"string","enum":["MITIGATED","ACCEPTED","AVOIDED","TRANSFERRED"]}},"required":["id"]}`) - UpdateRiskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"risk":{"type":"object","properties":{"category":{"type":"string","description":"Risk category"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"description":{"type":["string","null"],"description":"Risk description"},"id":{"type":"string","format":"string"},"inherent_impact":{"type":"integer","description":"Inherent impact"},"inherent_likelihood":{"type":"integer","description":"Inherent likelihood"},"inherent_risk_score":{"type":"integer","description":"Inherent risk score"},"name":{"type":"string","description":"Risk name"},"note":{"type":"string","description":"Risk note"},"organization_id":{"type":"string","format":"string"},"owner_id":{"anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No owner"}]},"residual_impact":{"type":"integer","description":"Residual impact"},"residual_likelihood":{"type":"integer","description":"Residual likelihood"},"residual_risk_score":{"type":"integer","description":"Residual risk score"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No snapshot"}]},"treatment":{"type":"string","enum":["MITIGATED","ACCEPTED","AVOIDED","TRANSFERRED"]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","category","treatment","inherent_likelihood","inherent_impact","inherent_risk_score","residual_likelihood","residual_impact","residual_risk_score","note","created_at","updated_at"]}},"required":["risk"]}`) - UpdateStateOfApplicabilityToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"id":{"type":"string","format":"string"},"name":{"type":"string","description":"State of applicability name"},"owner_id":{"type":"string","format":"string"}},"required":["id"]}`) - UpdateStateOfApplicabilityToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"state_of_applicability":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"id":{"type":"string","format":"string"},"name":{"type":"string","description":"State of applicability name"},"organization_id":{"type":"string","format":"string"},"owner_id":{"type":"string","format":"string"},"snapshot_id":{"description":"Snapshot ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","owner_id","created_at","updated_at"]}},"required":["state_of_applicability"]}`) - UpdateTaskToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"assigned_to_id":{"description":"Assigned to person ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"Not assigned"}]},"deadline":{"description":"Deadline","anyOf":[{"type":"string","description":"Deadline","format":"date-time"},{"type":"null","description":"No deadline"}]},"description":{"type":["string","null"],"description":"Task description"},"id":{"type":"string","format":"string"},"measure_id":{"description":"Measure ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No measure"}]},"name":{"type":"string","description":"Task name"},"state":{"description":"Task state","anyOf":[{"type":"string","enum":["TODO","DONE"]},{"type":"null","description":"No state"}]},"time_estimate":{"description":"Time estimate","anyOf":[{"type":"string","description":"A duration"},{"type":"null","description":"No time estimate"}]}},"required":["id"]}`) - UpdateTaskToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"task":{"type":"object","properties":{"assigned_to_id":{"description":"Assigned to person ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"Not assigned"}]},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"deadline":{"description":"Deadline","anyOf":[{"type":"string","description":"Deadline","format":"date-time"},{"type":"null","description":"No deadline"}]},"description":{"description":"Task description","anyOf":[{"type":"string","description":"Task description"},{"type":"null","description":"No description"}]},"id":{"type":"string","format":"string"},"measure_id":{"description":"Measure ID","anyOf":[{"type":"string","format":"string"},{"type":"null","description":"No measure"}]},"name":{"type":"string","description":"Task name"},"organization_id":{"type":"string","format":"string"},"state":{"type":"string","enum":["TODO","DONE"]},"time_estimate":{"description":"Time estimate","anyOf":[{"type":"string","description":"A duration"},{"type":"null","description":"No time estimate"}]},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","name","state","created_at","updated_at"]}},"required":["task"]}`) - UpdateTransferImpactAssessmentToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"data_subjects":{"type":["string","null"]},"id":{"type":"string","format":"string"},"legal_mechanism":{"type":["string","null"]},"local_law_risk":{"type":["string","null"]},"supplementary_measures":{"type":["string","null"]},"transfer":{"type":["string","null"]}},"required":["id"]}`) - UpdateTransferImpactAssessmentToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"transfer_impact_assessment":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time"},"data_subjects":{"type":["string","null"]},"id":{"type":"string","format":"string"},"legal_mechanism":{"type":["string","null"]},"local_law_risk":{"type":["string","null"]},"organization_id":{"type":"string","format":"string"},"processing_activity_id":{"type":"string","format":"string"},"supplementary_measures":{"type":["string","null"]},"transfer":{"type":["string","null"]},"updated_at":{"type":"string","format":"date-time"}},"required":["id","organization_id","processing_activity_id","created_at","updated_at"]}},"required":["transfer_impact_assessment"]}`) - UpdateUserToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"additional_email_addresses":{"description":"Additional email addresses","anyOf":[{"type":"array","items":{"type":"string","format":"string"}},{"type":"null"}]},"contract_end_date":{"type":["string","null"],"description":"Contract end date","format":"date-time"},"contract_start_date":{"type":["string","null"],"description":"Contract start date","format":"date-time"},"full_name":{"type":"string","description":"Full name"},"id":{"type":"string","format":"string"},"kind":{"type":["string","null"],"description":"User kind"},"position":{"type":["string","null"],"description":"Position"}},"required":["id","full_name","kind"]}`) - UpdateUserToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"user":{"type":"object","properties":{"additional_email_addresses":{"type":"array","items":{"type":"string","format":"string"},"description":"Additional email addresses"},"contract_end_date":{"type":["string","null"],"description":"Contract end date","format":"date-time"},"contract_start_date":{"type":["string","null"],"description":"Contract start date","format":"date-time"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"email_address":{"type":"string","format":"string"},"full_name":{"type":"string","description":"Full name"},"id":{"type":"string","format":"string"},"kind":{"type":["string","null"],"description":"Profile kind"},"organization_id":{"type":"string","format":"string"},"position":{"type":["string","null"],"description":"Position"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"}},"required":["id","organization_id","full_name","email_address","additional_email_addresses","kind","created_at","updated_at"]}},"required":["user"]}`) - UpdateVendorToolInputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"business_associate_agreement_url":{"type":"string","description":"Business associate agreement URL"},"business_owner_id":{"type":"string","format":"string"},"category":{"type":"string","description":"Vendor category","enum":["ANALYTICS","CLOUD_MONITORING","CLOUD_PROVIDER","COLLABORATION","CUSTOMER_SUPPORT","DATA_STORAGE_AND_PROCESSING","DOCUMENT_MANAGEMENT","EMPLOYEE_MANAGEMENT","ENGINEERING","FINANCE","IDENTITY_PROVIDER","IT","MARKETING","OFFICE_OPERATIONS","OTHER","PASSWORD_MANAGEMENT","PRODUCT_AND_DESIGN","PROFESSIONAL_SERVICES","RECRUITING","SALES","SECURITY","VERSION_CONTROL"]},"certifications":{"type":"array","items":{"type":"string"},"description":"Certifications"},"countries":{"type":"array","items":{"type":"string"},"description":"Countries (ISO 3166-1 alpha-2 country codes)"},"data_processing_agreement_url":{"type":"string","description":"Data processing agreement URL"},"description":{"type":"string","description":"Vendor description"},"headquarter_address":{"type":"string","description":"Headquarter address"},"id":{"type":"string","format":"string"},"legal_name":{"type":"string","description":"Legal name"},"name":{"type":"string","description":"Vendor name"},"privacy_policy_url":{"type":"string","description":"Privacy policy URL"},"security_owner_id":{"type":"string","format":"string"},"security_page_url":{"type":"string","description":"Security page URL"},"service_level_agreement_url":{"type":"string","description":"Service level agreement URL"},"status_page_url":{"type":"string","description":"Status page URL"},"subprocessors_list_url":{"type":"string","description":"Subprocessors list URL"},"terms_of_service_url":{"type":"string","description":"Terms of service URL"},"trust_page_url":{"type":"string","description":"Trust page URL"},"website_url":{"type":"string","description":"Website URL"}},"required":["id"]}`) - UpdateVendorToolOutputSchema = mcp.MustUnmarshalSchema(`{"type":"object","properties":{"vendor":{"type":"object","properties":{"business_associate_agreement_url":{"type":["string","null"],"description":"Business associate agreement URL"},"business_owner_id":{"description":"Business owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"category":{"type":"string","description":"Vendor category","enum":["ANALYTICS","CLOUD_MONITORING","CLOUD_PROVIDER","COLLABORATION","CUSTOMER_SUPPORT","DATA_STORAGE_AND_PROCESSING","DOCUMENT_MANAGEMENT","EMPLOYEE_MANAGEMENT","ENGINEERING","FINANCE","IDENTITY_PROVIDER","IT","MARKETING","OFFICE_OPERATIONS","OTHER","PASSWORD_MANAGEMENT","PRODUCT_AND_DESIGN","PROFESSIONAL_SERVICES","RECRUITING","SALES","SECURITY","VERSION_CONTROL"]},"certifications":{"type":"array","items":{"type":"string"},"description":"Certifications"},"countries":{"type":"array","items":{"type":"string"},"description":"Countries (ISO 3166-1 alpha-2 country codes)"},"created_at":{"type":"string","description":"Creation timestamp","format":"date-time"},"data_processing_agreement_url":{"type":["string","null"],"description":"Data processing agreement URL"},"description":{"type":["string","null"],"description":"Vendor description"},"headquarter_address":{"type":["string","null"],"description":"Headquarter address"},"id":{"type":"string","format":"string"},"legal_name":{"type":["string","null"],"description":"Legal name"},"name":{"type":"string","description":"Vendor name"},"organization_id":{"type":"string","format":"string"},"privacy_policy_url":{"type":["string","null"],"description":"Privacy policy URL"},"security_owner_id":{"description":"Security owner ID","anyOf":[{"type":"string","format":"string"},{"type":"null"}]},"security_page_url":{"type":["string","null"],"description":"Security page URL"},"service_level_agreement_url":{"type":["string","null"],"description":"Service level agreement URL"},"status_page_url":{"type":["string","null"],"description":"Status page URL"},"subprocessors_list_url":{"type":["string","null"],"description":"Subprocessors list URL"},"terms_of_service_url":{"type":["string","null"],"description":"Terms of service URL"},"trust_page_url":{"type":["string","null"],"description":"Trust page URL"},"updated_at":{"type":"string","description":"Update timestamp","format":"date-time"},"website_url":{"type":["string","null"],"description":"Website URL"}},"required":["id","name","organization_id","category","created_at","updated_at"]}},"required":["vendor"]}`) -) - -// Vendor category -type AddVendorInputCategory string - -const ( - AddVendorInputCategoryANALYTICS AddVendorInputCategory = "ANALYTICS" - AddVendorInputCategoryCLOUDMONITORING AddVendorInputCategory = "CLOUD_MONITORING" - AddVendorInputCategoryCLOUDPROVIDER AddVendorInputCategory = "CLOUD_PROVIDER" - AddVendorInputCategoryCOLLABORATION AddVendorInputCategory = "COLLABORATION" - AddVendorInputCategoryCUSTOMERSUPPORT AddVendorInputCategory = "CUSTOMER_SUPPORT" - AddVendorInputCategoryDATASTORAGEANDPROCESSING AddVendorInputCategory = "DATA_STORAGE_AND_PROCESSING" - AddVendorInputCategoryDOCUMENTMANAGEMENT AddVendorInputCategory = "DOCUMENT_MANAGEMENT" - AddVendorInputCategoryEMPLOYEEMANAGEMENT AddVendorInputCategory = "EMPLOYEE_MANAGEMENT" - AddVendorInputCategoryENGINEERING AddVendorInputCategory = "ENGINEERING" - AddVendorInputCategoryFINANCE AddVendorInputCategory = "FINANCE" - AddVendorInputCategoryIDENTITYPROVIDER AddVendorInputCategory = "IDENTITY_PROVIDER" - AddVendorInputCategoryIT AddVendorInputCategory = "IT" - AddVendorInputCategoryMARKETING AddVendorInputCategory = "MARKETING" - AddVendorInputCategoryOFFICEOPERATIONS AddVendorInputCategory = "OFFICE_OPERATIONS" - AddVendorInputCategoryOTHER AddVendorInputCategory = "OTHER" - AddVendorInputCategoryPASSWORDMANAGEMENT AddVendorInputCategory = "PASSWORD_MANAGEMENT" - AddVendorInputCategoryPRODUCTANDDESIGN AddVendorInputCategory = "PRODUCT_AND_DESIGN" - AddVendorInputCategoryPROFESSIONALSERVICES AddVendorInputCategory = "PROFESSIONAL_SERVICES" - AddVendorInputCategoryRECRUITING AddVendorInputCategory = "RECRUITING" - AddVendorInputCategorySALES AddVendorInputCategory = "SALES" - AddVendorInputCategorySECURITY AddVendorInputCategory = "SECURITY" - AddVendorInputCategoryVERSIONCONTROL AddVendorInputCategory = "VERSION_CONTROL" -) - -// IsValid returns true if the AddVendorInputCategory value is valid -func (e AddVendorInputCategory) IsValid() bool { - switch e { - case AddVendorInputCategoryANALYTICS: - return true - case AddVendorInputCategoryCLOUDMONITORING: - return true - case AddVendorInputCategoryCLOUDPROVIDER: - return true - case AddVendorInputCategoryCOLLABORATION: - return true - case AddVendorInputCategoryCUSTOMERSUPPORT: - return true - case AddVendorInputCategoryDATASTORAGEANDPROCESSING: - return true - case AddVendorInputCategoryDOCUMENTMANAGEMENT: - return true - case AddVendorInputCategoryEMPLOYEEMANAGEMENT: - return true - case AddVendorInputCategoryENGINEERING: - return true - case AddVendorInputCategoryFINANCE: - return true - case AddVendorInputCategoryIDENTITYPROVIDER: - return true - case AddVendorInputCategoryIT: - return true - case AddVendorInputCategoryMARKETING: - return true - case AddVendorInputCategoryOFFICEOPERATIONS: - return true - case AddVendorInputCategoryOTHER: - return true - case AddVendorInputCategoryPASSWORDMANAGEMENT: - return true - case AddVendorInputCategoryPRODUCTANDDESIGN: - return true - case AddVendorInputCategoryPROFESSIONALSERVICES: - return true - case AddVendorInputCategoryRECRUITING: - return true - case AddVendorInputCategorySALES: - return true - case AddVendorInputCategorySECURITY: - return true - case AddVendorInputCategoryVERSIONCONTROL: - return true - } - return false -} - -// UnmarshalJSON implements json.Unmarshaler -func (e *AddVendorInputCategory) UnmarshalJSON(data []byte) error { - var s string - if err := json.Unmarshal(data, &s); err != nil { - return err - } - *e = AddVendorInputCategory(s) - if !e.IsValid() { - return fmt.Errorf("invalid AddVendorInputCategory value: %q", s) - } - return nil -} - -// MarshalJSON implements json.Marshaler -func (e AddVendorInputCategory) MarshalJSON() ([]byte, error) { - if !e.IsValid() { - return nil, fmt.Errorf("invalid AddVendorInputCategory value: %q", string(e)) - } - return json.Marshal(string(e)) -} - -// EvidenceState represents an enumeration -type EvidenceState string - -const ( - EvidenceStateREQUESTED EvidenceState = "REQUESTED" - EvidenceStateFULFILLED EvidenceState = "FULFILLED" -) - -// IsValid returns true if the EvidenceState value is valid -func (e EvidenceState) IsValid() bool { - switch e { - case EvidenceStateREQUESTED: - return true - case EvidenceStateFULFILLED: - return true - } - return false -} - -// UnmarshalJSON implements json.Unmarshaler -func (e *EvidenceState) UnmarshalJSON(data []byte) error { - var s string - if err := json.Unmarshal(data, &s); err != nil { - return err - } - *e = EvidenceState(s) - if !e.IsValid() { - return fmt.Errorf("invalid EvidenceState value: %q", s) - } - return nil -} - -// MarshalJSON implements json.Marshaler -func (e EvidenceState) MarshalJSON() ([]byte, error) { - if !e.IsValid() { - return nil, fmt.Errorf("invalid EvidenceState value: %q", string(e)) - } - return json.Marshal(string(e)) -} - -// EvidenceType represents an enumeration -type EvidenceType string - -const ( - EvidenceFILE EvidenceType = "FILE" - EvidenceLINK EvidenceType = "LINK" -) - -// IsValid returns true if the EvidenceType value is valid -func (e EvidenceType) IsValid() bool { - switch e { - case EvidenceFILE: - return true - case EvidenceLINK: - return true - } - return false -} - -// UnmarshalJSON implements json.Unmarshaler -func (e *EvidenceType) UnmarshalJSON(data []byte) error { - var s string - if err := json.Unmarshal(data, &s); err != nil { - return err - } - *e = EvidenceType(s) - if !e.IsValid() { - return fmt.Errorf("invalid EvidenceType value: %q", s) - } - return nil -} - -// MarshalJSON implements json.Marshaler -func (e EvidenceType) MarshalJSON() ([]byte, error) { - if !e.IsValid() { - return nil, fmt.Errorf("invalid EvidenceType value: %q", string(e)) - } - return json.Marshal(string(e)) -} - -// Vendor category -type UpdateVendorInputCategory string - -const ( - UpdateVendorInputCategoryANALYTICS UpdateVendorInputCategory = "ANALYTICS" - UpdateVendorInputCategoryCLOUDMONITORING UpdateVendorInputCategory = "CLOUD_MONITORING" - UpdateVendorInputCategoryCLOUDPROVIDER UpdateVendorInputCategory = "CLOUD_PROVIDER" - UpdateVendorInputCategoryCOLLABORATION UpdateVendorInputCategory = "COLLABORATION" - UpdateVendorInputCategoryCUSTOMERSUPPORT UpdateVendorInputCategory = "CUSTOMER_SUPPORT" - UpdateVendorInputCategoryDATASTORAGEANDPROCESSING UpdateVendorInputCategory = "DATA_STORAGE_AND_PROCESSING" - UpdateVendorInputCategoryDOCUMENTMANAGEMENT UpdateVendorInputCategory = "DOCUMENT_MANAGEMENT" - UpdateVendorInputCategoryEMPLOYEEMANAGEMENT UpdateVendorInputCategory = "EMPLOYEE_MANAGEMENT" - UpdateVendorInputCategoryENGINEERING UpdateVendorInputCategory = "ENGINEERING" - UpdateVendorInputCategoryFINANCE UpdateVendorInputCategory = "FINANCE" - UpdateVendorInputCategoryIDENTITYPROVIDER UpdateVendorInputCategory = "IDENTITY_PROVIDER" - UpdateVendorInputCategoryIT UpdateVendorInputCategory = "IT" - UpdateVendorInputCategoryMARKETING UpdateVendorInputCategory = "MARKETING" - UpdateVendorInputCategoryOFFICEOPERATIONS UpdateVendorInputCategory = "OFFICE_OPERATIONS" - UpdateVendorInputCategoryOTHER UpdateVendorInputCategory = "OTHER" - UpdateVendorInputCategoryPASSWORDMANAGEMENT UpdateVendorInputCategory = "PASSWORD_MANAGEMENT" - UpdateVendorInputCategoryPRODUCTANDDESIGN UpdateVendorInputCategory = "PRODUCT_AND_DESIGN" - UpdateVendorInputCategoryPROFESSIONALSERVICES UpdateVendorInputCategory = "PROFESSIONAL_SERVICES" - UpdateVendorInputCategoryRECRUITING UpdateVendorInputCategory = "RECRUITING" - UpdateVendorInputCategorySALES UpdateVendorInputCategory = "SALES" - UpdateVendorInputCategorySECURITY UpdateVendorInputCategory = "SECURITY" - UpdateVendorInputCategoryVERSIONCONTROL UpdateVendorInputCategory = "VERSION_CONTROL" -) - -// IsValid returns true if the UpdateVendorInputCategory value is valid -func (e UpdateVendorInputCategory) IsValid() bool { - switch e { - case UpdateVendorInputCategoryANALYTICS: - return true - case UpdateVendorInputCategoryCLOUDMONITORING: - return true - case UpdateVendorInputCategoryCLOUDPROVIDER: - return true - case UpdateVendorInputCategoryCOLLABORATION: - return true - case UpdateVendorInputCategoryCUSTOMERSUPPORT: - return true - case UpdateVendorInputCategoryDATASTORAGEANDPROCESSING: - return true - case UpdateVendorInputCategoryDOCUMENTMANAGEMENT: - return true - case UpdateVendorInputCategoryEMPLOYEEMANAGEMENT: - return true - case UpdateVendorInputCategoryENGINEERING: - return true - case UpdateVendorInputCategoryFINANCE: - return true - case UpdateVendorInputCategoryIDENTITYPROVIDER: - return true - case UpdateVendorInputCategoryIT: - return true - case UpdateVendorInputCategoryMARKETING: - return true - case UpdateVendorInputCategoryOFFICEOPERATIONS: - return true - case UpdateVendorInputCategoryOTHER: - return true - case UpdateVendorInputCategoryPASSWORDMANAGEMENT: - return true - case UpdateVendorInputCategoryPRODUCTANDDESIGN: - return true - case UpdateVendorInputCategoryPROFESSIONALSERVICES: - return true - case UpdateVendorInputCategoryRECRUITING: - return true - case UpdateVendorInputCategorySALES: - return true - case UpdateVendorInputCategorySECURITY: - return true - case UpdateVendorInputCategoryVERSIONCONTROL: - return true - } - return false -} - -// UnmarshalJSON implements json.Unmarshaler -func (e *UpdateVendorInputCategory) UnmarshalJSON(data []byte) error { - var s string - if err := json.Unmarshal(data, &s); err != nil { - return err - } - *e = UpdateVendorInputCategory(s) - if !e.IsValid() { - return fmt.Errorf("invalid UpdateVendorInputCategory value: %q", s) - } - return nil -} - -// MarshalJSON implements json.Marshaler -func (e UpdateVendorInputCategory) MarshalJSON() ([]byte, error) { - if !e.IsValid() { - return nil, fmt.Errorf("invalid UpdateVendorInputCategory value: %q", string(e)) - } - return json.Marshal(string(e)) -} - -// Vendor category -type VendorCategory string - -const ( - VendorCategoryANALYTICS VendorCategory = "ANALYTICS" - VendorCategoryCLOUDMONITORING VendorCategory = "CLOUD_MONITORING" - VendorCategoryCLOUDPROVIDER VendorCategory = "CLOUD_PROVIDER" - VendorCategoryCOLLABORATION VendorCategory = "COLLABORATION" - VendorCategoryCUSTOMERSUPPORT VendorCategory = "CUSTOMER_SUPPORT" - VendorCategoryDATASTORAGEANDPROCESSING VendorCategory = "DATA_STORAGE_AND_PROCESSING" - VendorCategoryDOCUMENTMANAGEMENT VendorCategory = "DOCUMENT_MANAGEMENT" - VendorCategoryEMPLOYEEMANAGEMENT VendorCategory = "EMPLOYEE_MANAGEMENT" - VendorCategoryENGINEERING VendorCategory = "ENGINEERING" - VendorCategoryFINANCE VendorCategory = "FINANCE" - VendorCategoryIDENTITYPROVIDER VendorCategory = "IDENTITY_PROVIDER" - VendorCategoryIT VendorCategory = "IT" - VendorCategoryMARKETING VendorCategory = "MARKETING" - VendorCategoryOFFICEOPERATIONS VendorCategory = "OFFICE_OPERATIONS" - VendorCategoryOTHER VendorCategory = "OTHER" - VendorCategoryPASSWORDMANAGEMENT VendorCategory = "PASSWORD_MANAGEMENT" - VendorCategoryPRODUCTANDDESIGN VendorCategory = "PRODUCT_AND_DESIGN" - VendorCategoryPROFESSIONALSERVICES VendorCategory = "PROFESSIONAL_SERVICES" - VendorCategoryRECRUITING VendorCategory = "RECRUITING" - VendorCategorySALES VendorCategory = "SALES" - VendorCategorySECURITY VendorCategory = "SECURITY" - VendorCategoryVERSIONCONTROL VendorCategory = "VERSION_CONTROL" -) - -// IsValid returns true if the VendorCategory value is valid -func (e VendorCategory) IsValid() bool { - switch e { - case VendorCategoryANALYTICS: - return true - case VendorCategoryCLOUDMONITORING: - return true - case VendorCategoryCLOUDPROVIDER: - return true - case VendorCategoryCOLLABORATION: - return true - case VendorCategoryCUSTOMERSUPPORT: - return true - case VendorCategoryDATASTORAGEANDPROCESSING: - return true - case VendorCategoryDOCUMENTMANAGEMENT: - return true - case VendorCategoryEMPLOYEEMANAGEMENT: - return true - case VendorCategoryENGINEERING: - return true - case VendorCategoryFINANCE: - return true - case VendorCategoryIDENTITYPROVIDER: - return true - case VendorCategoryIT: - return true - case VendorCategoryMARKETING: - return true - case VendorCategoryOFFICEOPERATIONS: - return true - case VendorCategoryOTHER: - return true - case VendorCategoryPASSWORDMANAGEMENT: - return true - case VendorCategoryPRODUCTANDDESIGN: - return true - case VendorCategoryPROFESSIONALSERVICES: - return true - case VendorCategoryRECRUITING: - return true - case VendorCategorySALES: - return true - case VendorCategorySECURITY: - return true - case VendorCategoryVERSIONCONTROL: - return true - } - return false -} - -// UnmarshalJSON implements json.Unmarshaler -func (e *VendorCategory) UnmarshalJSON(data []byte) error { - var s string - if err := json.Unmarshal(data, &s); err != nil { - return err - } - *e = VendorCategory(s) - if !e.IsValid() { - return fmt.Errorf("invalid VendorCategory value: %q", s) - } - return nil -} - -// MarshalJSON implements json.Marshaler -func (e VendorCategory) MarshalJSON() ([]byte, error) { - if !e.IsValid() { - return nil, fmt.Errorf("invalid VendorCategory value: %q", string(e)) - } - return json.Marshal(string(e)) -} - -// AddApplicabilityStatementInput represents the schema -type AddApplicabilityStatementInput struct { - // Whether the control is applicable - Applicability bool `json:"applicability"` - // Control ID - ControlID gid.GID `json:"control_id"` - // Justification for the applicability decision - Justification *string `json:"justification,omitempty"` - // State of applicability ID - StateOfApplicabilityID gid.GID `json:"state_of_applicability_id"` -} - -// AddApplicabilityStatementOutput represents the schema -type AddApplicabilityStatementOutput struct { - ApplicabilityStatement *ApplicabilityStatement `json:"applicability_statement"` -} - -// AddAssetInput represents the schema -type AddAssetInput struct { - // Asset amount - Amount int `json:"amount"` - // Asset type - AssetType coredata.AssetType `json:"asset_type"` - // Data types stored - DataTypesStored string `json:"data_types_stored"` - // Asset name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID gid.GID `json:"owner_id"` - // Vendor IDs - VendorIds []gid.GID `json:"vendor_ids,omitempty"` -} - -// AddAssetOutput represents the schema -type AddAssetOutput struct { - Asset *Asset `json:"asset"` -} - -// AddAuditInput represents the schema -type AddAuditInput struct { - // Framework ID - FrameworkID gid.GID `json:"framework_id"` - // Audit name - Name *string `json:"name,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Audit state - State *coredata.AuditState `json:"state,omitempty"` - // Valid from date - ValidFrom *time.Time `json:"valid_from,omitempty"` - // Valid until date - ValidUntil *time.Time `json:"valid_until,omitempty"` -} - -// AddAuditOutput represents the schema -type AddAuditOutput struct { - Audit *Audit `json:"audit"` -} - -// AddContinualImprovementInput represents the schema -type AddContinualImprovementInput struct { - // Description - Description *string `json:"description,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID gid.GID `json:"owner_id"` - // Priority - Priority *coredata.ContinualImprovementPriority `json:"priority,omitempty"` - // Reference ID - ReferenceID string `json:"reference_id"` - // Source - Source *string `json:"source,omitempty"` - // Status - Status *coredata.ContinualImprovementStatus `json:"status,omitempty"` - // Target date - TargetDate *time.Time `json:"target_date,omitempty"` -} - -// AddContinualImprovementOutput represents the schema -type AddContinualImprovementOutput struct { - ContinualImprovement *ContinualImprovement `json:"continual_improvement"` -} - -// AddControlInput represents the schema -type AddControlInput struct { - // Control description - Description *string `json:"description,omitempty"` - // Framework ID - FrameworkID gid.GID `json:"framework_id"` - // Control name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Section title - SectionTitle string `json:"section_title"` -} - -// AddControlOutput represents the schema -type AddControlOutput struct { - Control *Control `json:"control"` -} - -// AddDataProtectionImpactAssessmentInput represents the schema -type AddDataProtectionImpactAssessmentInput struct { - Description *string `json:"description,omitempty"` - Mitigations *string `json:"mitigations,omitempty"` - NecessityAndProportionality *string `json:"necessity_and_proportionality,omitempty"` - PotentialRisk *string `json:"potential_risk,omitempty"` - ProcessingActivityID gid.GID `json:"processing_activity_id"` - ResidualRisk *coredata.DataProtectionImpactAssessmentResidualRisk `json:"residual_risk,omitempty"` -} - -// AddDataProtectionImpactAssessmentOutput represents the schema -type AddDataProtectionImpactAssessmentOutput struct { - DataProtectionImpactAssessment *DataProtectionImpactAssessment `json:"data_protection_impact_assessment"` -} - -// AddDatumInput represents the schema -type AddDatumInput struct { - // Data classification - DataClassification coredata.DataClassification `json:"data_classification"` - // Datum name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID gid.GID `json:"owner_id"` - // Vendor IDs - VendorIds []gid.GID `json:"vendor_ids,omitempty"` -} - -// AddDatumOutput represents the schema -type AddDatumOutput struct { - Datum *Datum `json:"datum"` -} - -// AddDocumentInput represents the schema -type AddDocumentInput struct { - // Approver IDs - ApproverIds []gid.GID `json:"approver_ids"` - // Document classification - Classification coredata.DocumentClassification `json:"classification"` - // Document content - Content string `json:"content"` - // Document type - DocumentType coredata.DocumentType `json:"document_type"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Document title - Title string `json:"title"` - // Trust center visibility - TrustCenterVisibility *coredata.TrustCenterVisibility `json:"trust_center_visibility,omitempty"` -} - -// AddDocumentOutput represents the schema -type AddDocumentOutput struct { - Document *Document `json:"document"` - DocumentVersion *DocumentVersion `json:"document_version"` -} - -// AddFrameworkInput represents the schema -type AddFrameworkInput struct { - // Framework description - Description *string `json:"description,omitempty"` - // Framework name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` -} - -// AddFrameworkOutput represents the schema -type AddFrameworkOutput struct { - Framework *Framework `json:"framework"` -} - -// AddMeasureInput represents the schema -type AddMeasureInput struct { - // Measure category - Category string `json:"category"` - // Measure description - Description *string `json:"description,omitempty"` - // Measure name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` -} - -// AddMeasureOutput represents the schema -type AddMeasureOutput struct { - Measure *Measure `json:"measure"` -} - -// AddMeetingInput represents the schema -type AddMeetingInput struct { - // List of attendee profile IDs - AttendeeIds []gid.GID `json:"attendee_ids,omitempty"` - // Meeting date - Date time.Time `json:"date"` - // Meeting minutes - Minutes *string `json:"minutes,omitempty"` - // Meeting name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` -} - -// AddMeetingOutput represents the schema -type AddMeetingOutput struct { - Meeting *Meeting `json:"meeting"` -} - -// AddNonconformityInput represents the schema -type AddNonconformityInput struct { - // Audit ID - AuditID *gid.GID `json:"audit_id,omitempty"` - // Corrective action - CorrectiveAction *string `json:"corrective_action,omitempty"` - // Date identified - DateIdentified *time.Time `json:"date_identified,omitempty"` - // Description - Description *string `json:"description,omitempty"` - // Due date - DueDate *time.Time `json:"due_date,omitempty"` - // Effectiveness check - EffectivenessCheck *string `json:"effectiveness_check,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID gid.GID `json:"owner_id"` - // Reference ID - ReferenceID string `json:"reference_id"` - // Root cause - RootCause string `json:"root_cause"` - // Status - Status *coredata.NonconformityStatus `json:"status"` -} - -// AddNonconformityOutput represents the schema -type AddNonconformityOutput struct { - Nonconformity *Nonconformity `json:"nonconformity"` -} - -// AddObligationInput represents the schema -type AddObligationInput struct { - // Actions to be implemented - ActionsToBeImplemented *string `json:"actions_to_be_implemented,omitempty"` - // Area - Area *string `json:"area,omitempty"` - // Due date - DueDate *time.Time `json:"due_date,omitempty"` - // Last review date - LastReviewDate *time.Time `json:"last_review_date,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID gid.GID `json:"owner_id"` - // Regulator - Regulator *string `json:"regulator,omitempty"` - // Requirement - Requirement *string `json:"requirement,omitempty"` - // Source - Source *string `json:"source,omitempty"` - // Status - Status *coredata.ObligationStatus `json:"status"` - // Type - Type *coredata.ObligationType `json:"type"` -} - -// AddObligationOutput represents the schema -type AddObligationOutput struct { - Obligation *Obligation `json:"obligation"` -} - -// AddProcessingActivityInput represents the schema -type AddProcessingActivityInput struct { - // Consent evidence link - ConsentEvidenceLink *string `json:"consent_evidence_link,omitempty"` - // DPIA needed - DataProtectionImpactAssessmentNeeded coredata.ProcessingActivityDataProtectionImpactAssessment `json:"data_protection_impact_assessment_needed"` - // Data protection officer profile ID - DataProtectionOfficerID *gid.GID `json:"data_protection_officer_id,omitempty"` - // Data subject category - DataSubjectCategory *string `json:"data_subject_category,omitempty"` - // International transfers - InternationalTransfers bool `json:"international_transfers"` - // Last review date - LastReviewDate *time.Time `json:"last_review_date,omitempty"` - // Lawful basis - LawfulBasis coredata.ProcessingActivityLawfulBasis `json:"lawful_basis"` - // Location - Location *string `json:"location,omitempty"` - // Name - Name string `json:"name"` - // Next review date - NextReviewDate *time.Time `json:"next_review_date,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Personal data category - PersonalDataCategory *string `json:"personal_data_category,omitempty"` - // Purpose - Purpose *string `json:"purpose,omitempty"` - // Recipients - Recipients *string `json:"recipients,omitempty"` - // Retention period - RetentionPeriod *string `json:"retention_period,omitempty"` - // Role - Role coredata.ProcessingActivityRole `json:"role"` - // Security measures - SecurityMeasures *string `json:"security_measures,omitempty"` - // Special or criminal data - SpecialOrCriminalData coredata.ProcessingActivitySpecialOrCriminalDatum `json:"special_or_criminal_data"` - // TIA needed - TransferImpactAssessmentNeeded coredata.ProcessingActivityTransferImpactAssessment `json:"transfer_impact_assessment_needed"` - // Transfer safeguard - TransferSafeguard *coredata.ProcessingActivityTransferSafeguard `json:"transfer_safeguard,omitempty"` - // Vendor IDs - VendorIds []gid.GID `json:"vendor_ids,omitempty"` -} - -// AddProcessingActivityOutput represents the schema -type AddProcessingActivityOutput struct { - ProcessingActivity *ProcessingActivity `json:"processing_activity"` -} - -// AddRiskInput represents the schema -type AddRiskInput struct { - // Risk category - Category string `json:"category"` - // Risk description - Description *string `json:"description,omitempty"` - // Inherent impact - InherentImpact int `json:"inherent_impact"` - // Inherent likelihood - InherentLikelihood int `json:"inherent_likelihood"` - // Risk name - Name string `json:"name"` - // Risk note - Note *string `json:"note,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID *gid.GID `json:"owner_id,omitempty"` - // Residual impact - ResidualImpact *int `json:"residual_impact,omitempty"` - // Residual likelihood - ResidualLikelihood *int `json:"residual_likelihood,omitempty"` - // Risk treatment - Treatment coredata.RiskTreatment `json:"treatment"` -} - -// AddRiskOutput represents the schema -type AddRiskOutput struct { - Risk *Risk `json:"risk"` -} - -// AddStateOfApplicabilityInput represents the schema -type AddStateOfApplicabilityInput struct { - // State of applicability name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner profile ID - OwnerID gid.GID `json:"owner_id"` -} - -// AddStateOfApplicabilityOutput represents the schema -type AddStateOfApplicabilityOutput struct { - StateOfApplicability *StateOfApplicability `json:"state_of_applicability"` -} - -// AddTaskInput represents the schema -type AddTaskInput struct { - // Assigned to person ID - AssignedToID *gid.GID `json:"assigned_to_id,omitempty"` - // Deadline - Deadline *time.Time `json:"deadline,omitempty"` - // Task description - Description *string `json:"description,omitempty"` - // Measure ID - MeasureID *gid.GID `json:"measure_id,omitempty"` - // Task name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Time estimate - TimeEstimate *time.Duration `json:"time_estimate,omitempty"` -} - -// AddTaskOutput represents the schema -type AddTaskOutput struct { - Task *Task `json:"task"` -} - -// AddTransferImpactAssessmentInput represents the schema -type AddTransferImpactAssessmentInput struct { - DataSubjects *string `json:"data_subjects,omitempty"` - LegalMechanism *string `json:"legal_mechanism,omitempty"` - LocalLawRisk *string `json:"local_law_risk,omitempty"` - ProcessingActivityID gid.GID `json:"processing_activity_id"` - SupplementaryMeasures *string `json:"supplementary_measures,omitempty"` - Transfer *string `json:"transfer,omitempty"` -} - -// AddTransferImpactAssessmentOutput represents the schema -type AddTransferImpactAssessmentOutput struct { - TransferImpactAssessment *TransferImpactAssessment `json:"transfer_impact_assessment"` -} - -// AddVendorInput represents the schema -type AddVendorInput struct { - // Business associate agreement URL - BusinessAssociateAgreementURL *string `json:"business_associate_agreement_url,omitempty"` - // Business owner ID - BusinessOwnerID *gid.GID `json:"business_owner_id,omitempty"` - // Vendor category - Category *AddVendorInputCategory `json:"category,omitempty"` - // Certifications - Certifications []string `json:"certifications,omitempty"` - // Countries (ISO 3166-1 alpha-2 country codes) - Countries []string `json:"countries,omitempty"` - // Data processing agreement URL - DataProcessingAgreementURL *string `json:"data_processing_agreement_url,omitempty"` - // Vendor description - Description *string `json:"description,omitempty"` - // Headquarter address - HeadquarterAddress *string `json:"headquarter_address,omitempty"` - // Legal name - LegalName *string `json:"legal_name,omitempty"` - // Vendor name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Privacy policy URL - PrivacyPolicyURL *string `json:"privacy_policy_url,omitempty"` - // Security owner ID - SecurityOwnerID *gid.GID `json:"security_owner_id,omitempty"` - // Security page URL - SecurityPageURL *string `json:"security_page_url,omitempty"` - // Service level agreement URL - ServiceLevelAgreementURL *string `json:"service_level_agreement_url,omitempty"` - // Status page URL - StatusPageURL *string `json:"status_page_url,omitempty"` - // Subprocessors list URL - SubprocessorsListURL *string `json:"subprocessors_list_url,omitempty"` - // Terms of service URL - TermsOfServiceURL *string `json:"terms_of_service_url,omitempty"` - // Trust page URL - TrustPageURL *string `json:"trust_page_url,omitempty"` - // Website URL - WebsiteURL *string `json:"website_url,omitempty"` -} - -// AddVendorOutput represents the schema -type AddVendorOutput struct { - Vendor *Vendor `json:"vendor"` -} - -// AddVendorRiskAssessmentInput represents the schema -type AddVendorRiskAssessmentInput struct { - // Business impact level - BusinessImpact coredata.BusinessImpact `json:"business_impact"` - // Data sensitivity level - DataSensitivity coredata.DataSensitivity `json:"data_sensitivity"` - // Expiration timestamp - ExpiresAt time.Time `json:"expires_at"` - // Notes - Notes *string `json:"notes,omitempty"` - // Vendor ID - VendorID gid.GID `json:"vendor_id"` -} - -// AddVendorRiskAssessmentOutput represents the schema -type AddVendorRiskAssessmentOutput struct { - VendorRiskAssessment *VendorRiskAssessment `json:"vendor_risk_assessment"` -} - -// ApplicabilityStatement represents the schema -type ApplicabilityStatement struct { - // Whether the control is applicable - Applicability bool `json:"applicability"` - // Control ID - ControlID gid.GID `json:"control_id"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Applicability statement ID - ID gid.GID `json:"id"` - // Justification for the applicability decision - Justification *string `json:"justification,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Snapshot ID - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` - // State of applicability ID - StateOfApplicabilityID gid.GID `json:"state_of_applicability_id"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// ApplicabilityStatementOrderBy represents the schema -type ApplicabilityStatementOrderBy struct { - // Order direction - Direction page.OrderDirection `json:"direction"` - // Applicability statement order field - Field coredata.ApplicabilityStatementOrderField `json:"field"` -} - -// Asset represents the schema -type Asset struct { - // Asset amount - Amount int `json:"amount"` - // Asset type - AssetType coredata.AssetType `json:"asset_type"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Data types stored - DataTypesStored string `json:"data_types_stored"` - // Asset ID - ID gid.GID `json:"id"` - // Asset name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID gid.GID `json:"owner_id"` - // Snapshot ID - SnapshotID *string `json:"snapshot_id,omitempty"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// AssetOrderBy represents the schema -type AssetOrderBy struct { - // Asset order direction - Direction page.OrderDirection `json:"direction"` - // Asset order field - Field coredata.AssetOrderField `json:"field"` -} - -// AssignTaskInput represents the schema -type AssignTaskInput struct { - // Assigned to person ID - AssignedToID gid.GID `json:"assigned_to_id"` - // Task ID - ID gid.GID `json:"id"` -} - -// AssignTaskOutput represents the schema -type AssignTaskOutput struct { - Task *Task `json:"task"` -} - -// Audit represents the schema -type Audit struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Framework ID - FrameworkID gid.GID `json:"framework_id"` - // Audit ID - ID gid.GID `json:"id"` - // Audit name - Name *string `json:"name,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Audit state - State coredata.AuditState `json:"state"` - // Trust center visibility - TrustCenterVisibility coredata.TrustCenterVisibility `json:"trust_center_visibility"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` - // Valid from date - ValidFrom *time.Time `json:"valid_from,omitempty"` - // Valid until date - ValidUntil *time.Time `json:"valid_until,omitempty"` -} - -// AuditOrderBy represents the schema -type AuditOrderBy struct { - // Audit order direction - Direction page.OrderDirection `json:"direction"` - // Audit order field - Field coredata.AuditOrderField `json:"field"` -} - -// CancelSignatureRequestInput represents the schema -type CancelSignatureRequestInput struct { - // Document version signature ID - DocumentVersionSignatureID gid.GID `json:"document_version_signature_id"` -} - -// CancelSignatureRequestOutput represents the schema -type CancelSignatureRequestOutput struct { - // Deleted document version signature ID - DeletedDocumentVersionSignatureID gid.GID `json:"deleted_document_version_signature_id"` -} - -// ContinualImprovement represents the schema -type ContinualImprovement struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Description - Description *string `json:"description,omitempty"` - // Continual improvement ID - ID gid.GID `json:"id"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID gid.GID `json:"owner_id"` - // Priority - Priority coredata.ContinualImprovementPriority `json:"priority"` - // Reference ID - ReferenceID string `json:"reference_id"` - // Snapshot ID - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` - // Source - Source *string `json:"source,omitempty"` - // Source ID - SourceID *string `json:"source_id,omitempty"` - // Status - Status coredata.ContinualImprovementStatus `json:"status"` - // Target date - TargetDate *time.Time `json:"target_date,omitempty"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// ContinualImprovementOrderBy represents the schema -type ContinualImprovementOrderBy struct { - // Continual improvement order direction - Direction page.OrderDirection `json:"direction"` - // Continual improvement order field - Field coredata.ContinualImprovementOrderField `json:"field"` -} - -// Control represents the schema -type Control struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Control description - Description *string `json:"description,omitempty"` - // Framework ID - FrameworkID gid.GID `json:"framework_id"` - // Control ID - ID gid.GID `json:"id"` - // Control name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Section title - SectionTitle string `json:"section_title"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// ControlOrderBy represents the schema -type ControlOrderBy struct { - // Control order direction - Direction page.OrderDirection `json:"direction"` - // Control order field - Field coredata.ControlOrderField `json:"field"` -} - -// CreateDraftDocumentVersionInput represents the schema -type CreateDraftDocumentVersionInput struct { - // Document ID - DocumentID gid.GID `json:"document_id"` -} - -// CreateDraftDocumentVersionOutput represents the schema -type CreateDraftDocumentVersionOutput struct { - DocumentVersion *DocumentVersion `json:"document_version"` -} - -// CreateUserInput represents the schema -type CreateUserInput struct { - // Additional email addresses - AdditionalEmailAddresses []mail.Addr `json:"additional_email_addresses,omitempty"` - // Contract end date - ContractEndDate *time.Time `json:"contract_end_date,omitempty"` - // Contract start date - ContractStartDate *time.Time `json:"contract_start_date,omitempty"` - // Email address - EmailAddress mail.Addr `json:"email_address"` - // Full name - FullName string `json:"full_name"` - // User kind - Kind *string `json:"kind"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Position - Position *string `json:"position,omitempty"` - // Membership role - Role coredata.MembershipRole `json:"role"` -} - -// CreateUserOutput represents the schema -type CreateUserOutput struct { - User *Profile `json:"user"` -} - -// DataProtectionImpactAssessment represents the schema -type DataProtectionImpactAssessment struct { - CreatedAt time.Time `json:"created_at"` - Description *string `json:"description,omitempty"` - ID gid.GID `json:"id"` - Mitigations *string `json:"mitigations,omitempty"` - NecessityAndProportionality *string `json:"necessity_and_proportionality,omitempty"` - OrganizationID gid.GID `json:"organization_id"` - PotentialRisk *string `json:"potential_risk,omitempty"` - ProcessingActivityID gid.GID `json:"processing_activity_id"` - ResidualRisk *coredata.DataProtectionImpactAssessmentResidualRisk `json:"residual_risk,omitempty"` - UpdatedAt time.Time `json:"updated_at"` -} - -// DataProtectionImpactAssessmentOrderBy represents the schema -type DataProtectionImpactAssessmentOrderBy struct { - Direction page.OrderDirection `json:"direction"` - Field coredata.DataProtectionImpactAssessmentOrderField `json:"field"` -} - -// Datum represents the schema -type Datum struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Data classification - DataClassification coredata.DataClassification `json:"data_classification"` - // Datum ID - ID gid.GID `json:"id"` - // Datum name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID gid.GID `json:"owner_id"` - // Snapshot ID - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// DatumOrderBy represents the schema -type DatumOrderBy struct { - // Datum order direction - Direction page.OrderDirection `json:"direction"` - // Datum order field - Field coredata.DatumOrderField `json:"field"` -} - -// DeleteApplicabilityStatementInput represents the schema -type DeleteApplicabilityStatementInput struct { - // Applicability statement ID - ID gid.GID `json:"id"` -} - -// DeleteApplicabilityStatementOutput represents the schema -type DeleteApplicabilityStatementOutput struct { - // Deleted applicability statement ID - DeletedApplicabilityStatementID gid.GID `json:"deleted_applicability_statement_id"` -} - -// DeleteDataProtectionImpactAssessmentInput represents the schema -type DeleteDataProtectionImpactAssessmentInput struct { - ID gid.GID `json:"id"` -} - -// DeleteDataProtectionImpactAssessmentOutput represents the schema -type DeleteDataProtectionImpactAssessmentOutput struct { - DeletedDataProtectionImpactAssessmentID gid.GID `json:"deleted_data_protection_impact_assessment_id"` -} - -// DeleteDocumentInput represents the schema -type DeleteDocumentInput struct { - // Document ID - DocumentID gid.GID `json:"document_id"` -} - -// DeleteDocumentOutput represents the schema -type DeleteDocumentOutput struct { - // Deleted document ID - DeletedDocumentID gid.GID `json:"deleted_document_id"` -} - -// DeleteDraftDocumentVersionInput represents the schema -type DeleteDraftDocumentVersionInput struct { - // Document version ID - DocumentVersionID gid.GID `json:"document_version_id"` -} - -// DeleteDraftDocumentVersionOutput represents the schema -type DeleteDraftDocumentVersionOutput struct { - // Deleted document version ID - DeletedDocumentVersionID gid.GID `json:"deleted_document_version_id"` -} - -// DeleteMeasureInput represents the schema -type DeleteMeasureInput struct { - // Measure ID - ID gid.GID `json:"id"` -} - -// DeleteMeasureOutput represents the schema -type DeleteMeasureOutput struct { - // Deleted measure ID - DeletedMeasureID gid.GID `json:"deleted_measure_id"` -} - -// DeleteMeetingInput represents the schema -type DeleteMeetingInput struct { - // Meeting ID - ID gid.GID `json:"id"` -} - -// DeleteMeetingOutput represents the schema -type DeleteMeetingOutput struct { - // Deleted meeting ID - DeletedMeetingID gid.GID `json:"deleted_meeting_id"` -} - -// DeleteProcessingActivityInput represents the schema -type DeleteProcessingActivityInput struct { - // Processing activity ID - ID gid.GID `json:"id"` -} - -// DeleteProcessingActivityOutput represents the schema -type DeleteProcessingActivityOutput struct { - // Deleted processing activity ID - DeletedProcessingActivityID gid.GID `json:"deleted_processing_activity_id"` -} - -// DeleteRiskInput represents the schema -type DeleteRiskInput struct { - // Risk ID - ID gid.GID `json:"id"` -} - -// DeleteRiskOutput represents the schema -type DeleteRiskOutput struct { - // Deleted risk ID - DeletedRiskID gid.GID `json:"deleted_risk_id"` -} - -// DeleteStateOfApplicabilityInput represents the schema -type DeleteStateOfApplicabilityInput struct { - // State of applicability ID - ID gid.GID `json:"id"` -} - -// DeleteStateOfApplicabilityOutput represents the schema -type DeleteStateOfApplicabilityOutput struct { - // Deleted state of applicability ID - DeletedStateOfApplicabilityID gid.GID `json:"deleted_state_of_applicability_id"` -} - -// DeleteTaskInput represents the schema -type DeleteTaskInput struct { - // Task ID - ID gid.GID `json:"id"` -} - -// DeleteTaskOutput represents the schema -type DeleteTaskOutput struct { - // Deleted task ID - DeletedTaskID gid.GID `json:"deleted_task_id"` -} - -// DeleteTransferImpactAssessmentInput represents the schema -type DeleteTransferImpactAssessmentInput struct { - ID gid.GID `json:"id"` -} - -// DeleteTransferImpactAssessmentOutput represents the schema -type DeleteTransferImpactAssessmentOutput struct { - DeletedTransferImpactAssessmentID gid.GID `json:"deleted_transfer_impact_assessment_id"` -} - -// DeleteVendorInput represents the schema -type DeleteVendorInput struct { - // Vendor ID - ID gid.GID `json:"id"` -} - -// DeleteVendorOutput represents the schema -type DeleteVendorOutput struct { - // Deleted vendor ID - DeletedVendorID gid.GID `json:"deleted_vendor_id"` -} - -// Document represents the schema -type Document struct { - // Approver IDs - ApproverIds []gid.GID `json:"approver_ids"` - // Document classification - Classification coredata.DocumentClassification `json:"classification"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Current published version number - CurrentPublishedVersion *int `json:"current_published_version,omitempty"` - // Document type - DocumentType coredata.DocumentType `json:"document_type"` - // Document ID - ID gid.GID `json:"id"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Document title - Title string `json:"title"` - // Trust center visibility - TrustCenterVisibility coredata.TrustCenterVisibility `json:"trust_center_visibility"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// DocumentOrderBy represents the schema -type DocumentOrderBy struct { - // Document order direction - Direction page.OrderDirection `json:"direction"` - // Document order field - Field coredata.DocumentOrderField `json:"field"` -} - -// DocumentVersion represents the schema -type DocumentVersion struct { - // Approver IDs - ApproverIds []gid.GID `json:"approver_ids"` - // Changelog - Changelog string `json:"changelog"` - // Document classification - Classification coredata.DocumentClassification `json:"classification"` - // Document content - Content string `json:"content"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Document ID - DocumentID gid.GID `json:"document_id"` - // Document version ID - ID gid.GID `json:"id"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Published timestamp - PublishedAt *time.Time `json:"published_at,omitempty"` - // Document status - Status coredata.DocumentStatus `json:"status"` - // Document version title - Title string `json:"title"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` - // Version number - VersionNumber int `json:"version_number"` -} - -// DocumentVersionOrderBy represents the schema -type DocumentVersionOrderBy struct { - // Document version order direction - Direction page.OrderDirection `json:"direction"` - // Document version order field - Field coredata.DocumentVersionOrderField `json:"field"` -} - -// DocumentVersionSignature represents the schema -type DocumentVersionSignature struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Document version ID - DocumentVersionID gid.GID `json:"document_version_id"` - // Document version signature ID - ID gid.GID `json:"id"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Requested timestamp - RequestedAt time.Time `json:"requested_at"` - // Signed timestamp - SignedAt *time.Time `json:"signed_at,omitempty"` - // Signatory ID - SignedBy gid.GID `json:"signed_by"` - // Signature state - State coredata.DocumentVersionSignatureState `json:"state"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// DocumentVersionSignatureOrderBy represents the schema -type DocumentVersionSignatureOrderBy struct { - // Document version signature order direction - Direction page.OrderDirection `json:"direction"` - // Document version signature order field - Field coredata.DocumentVersionSignatureOrderField `json:"field"` -} - -// Evidence represents the schema -type Evidence struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Description - Description *string `json:"description,omitempty"` - ID gid.GID `json:"id"` - MeasureID gid.GID `json:"measure_id"` - OrganizationID gid.GID `json:"organization_id"` - // Reference ID - ReferenceID string `json:"reference_id"` - State EvidenceState `json:"state"` - // Task ID - TaskID *gid.GID `json:"task_id,omitempty"` - Type EvidenceType `json:"type"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` - // URL - URL string `json:"url"` -} - -// ExportStateOfApplicabilityPDFInput represents the schema -type ExportStateOfApplicabilityPDFInput struct { - // State of applicability ID - ID gid.GID `json:"id"` -} - -// ExportStateOfApplicabilityPDFOutput represents the schema -type ExportStateOfApplicabilityPDFOutput struct { - // Suggested filename for the PDF - Filename string `json:"filename"` - // Base64-encoded PDF content - PdfBase64 string `json:"pdf_base64"` -} - -// Framework represents the schema -type Framework struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Framework description - Description *string `json:"description,omitempty"` - // Framework ID - ID gid.GID `json:"id"` - // Framework name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// FrameworkOrderBy represents the schema -type FrameworkOrderBy struct { - // Framework order direction - Direction page.OrderDirection `json:"direction"` - // Framework order field - Field coredata.FrameworkOrderField `json:"field"` -} - -// GetApplicabilityStatementInput represents the schema -type GetApplicabilityStatementInput struct { - // Applicability statement ID - ID gid.GID `json:"id"` -} - -// GetApplicabilityStatementOutput represents the schema -type GetApplicabilityStatementOutput struct { - ApplicabilityStatement *ApplicabilityStatement `json:"applicability_statement"` -} - -// GetAssetInput represents the schema -type GetAssetInput struct { - // Asset ID - ID gid.GID `json:"id"` -} - -// GetAssetOutput represents the schema -type GetAssetOutput struct { - Asset *Asset `json:"asset"` -} - -// GetAuditInput represents the schema -type GetAuditInput struct { - // Audit ID - ID gid.GID `json:"id"` -} - -// GetAuditOutput represents the schema -type GetAuditOutput struct { - Audit *Audit `json:"audit"` -} - -// GetContinualImprovementInput represents the schema -type GetContinualImprovementInput struct { - // Continual improvement ID - ID gid.GID `json:"id"` -} - -// GetContinualImprovementOutput represents the schema -type GetContinualImprovementOutput struct { - ContinualImprovement *ContinualImprovement `json:"continual_improvement"` -} - -// GetControlInput represents the schema -type GetControlInput struct { - // Control ID - ID gid.GID `json:"id"` -} - -// GetControlOutput represents the schema -type GetControlOutput struct { - Control *Control `json:"control"` -} - -// GetDataProtectionImpactAssessmentInput represents the schema -type GetDataProtectionImpactAssessmentInput struct { - ID gid.GID `json:"id"` -} - -// GetDataProtectionImpactAssessmentOutput represents the schema -type GetDataProtectionImpactAssessmentOutput struct { - DataProtectionImpactAssessment *DataProtectionImpactAssessment `json:"data_protection_impact_assessment"` -} - -// GetDatumInput represents the schema -type GetDatumInput struct { - // Datum ID - ID gid.GID `json:"id"` -} - -// GetDatumOutput represents the schema -type GetDatumOutput struct { - Datum *Datum `json:"datum"` -} - -// GetDocumentInput represents the schema -type GetDocumentInput struct { - // Document ID - ID gid.GID `json:"id"` -} - -// GetDocumentOutput represents the schema -type GetDocumentOutput struct { - Document *Document `json:"document"` -} - -// GetDocumentVersionInput represents the schema -type GetDocumentVersionInput struct { - // Document version ID - ID gid.GID `json:"id"` -} - -// GetDocumentVersionOutput represents the schema -type GetDocumentVersionOutput struct { - DocumentVersion *DocumentVersion `json:"document_version"` -} - -// GetDocumentVersionSignatureInput represents the schema -type GetDocumentVersionSignatureInput struct { - // Document version signature ID - ID gid.GID `json:"id"` -} - -// GetDocumentVersionSignatureOutput represents the schema -type GetDocumentVersionSignatureOutput struct { - DocumentVersionSignature *DocumentVersionSignature `json:"document_version_signature"` -} - -// GetFrameworkInput represents the schema -type GetFrameworkInput struct { - // Framework ID - ID gid.GID `json:"id"` -} - -// GetFrameworkOutput represents the schema -type GetFrameworkOutput struct { - Framework *Framework `json:"framework"` -} - -// GetMeasureInput represents the schema -type GetMeasureInput struct { - // Measure ID - ID gid.GID `json:"id"` -} - -// GetMeasureOutput represents the schema -type GetMeasureOutput struct { - Measure *Measure `json:"measure"` -} - -// GetMeetingInput represents the schema -type GetMeetingInput struct { - // Meeting ID - ID gid.GID `json:"id"` -} - -// GetMeetingOutput represents the schema -type GetMeetingOutput struct { - Meeting *Meeting `json:"meeting"` -} - -// GetNonconformityInput represents the schema -type GetNonconformityInput struct { - // Nonconformity ID - ID gid.GID `json:"id"` -} - -// GetNonconformityOutput represents the schema -type GetNonconformityOutput struct { - Nonconformity *Nonconformity `json:"nonconformity"` -} - -// GetObligationInput represents the schema -type GetObligationInput struct { - // Obligation ID - ID gid.GID `json:"id"` -} - -// GetObligationOutput represents the schema -type GetObligationOutput struct { - Obligation *Obligation `json:"obligation"` -} - -// GetProcessingActivityInput represents the schema -type GetProcessingActivityInput struct { - // Processing activity ID - ID gid.GID `json:"id"` -} - -// GetProcessingActivityOutput represents the schema -type GetProcessingActivityOutput struct { - ProcessingActivity *ProcessingActivity `json:"processing_activity"` -} - -// GetProfileInput represents the schema -type GetProfileInput struct { - // Profile ID - ID gid.GID `json:"id"` -} - -// GetProfileOutput represents the schema -type GetProfileOutput struct { - Profile *Profile `json:"profile"` -} - -// GetRiskInput represents the schema -type GetRiskInput struct { - // Risk ID - ID gid.GID `json:"id"` -} - -// GetRiskOutput represents the schema -type GetRiskOutput struct { - Risk *Risk `json:"risk"` -} - -// GetSnapshotInput represents the schema -type GetSnapshotInput struct { - // Snapshot ID - ID gid.GID `json:"id"` -} - -// GetSnapshotOutput represents the schema -type GetSnapshotOutput struct { - Snapshot *Snapshot `json:"snapshot"` -} - -// GetStateOfApplicabilityInput represents the schema -type GetStateOfApplicabilityInput struct { - // State of applicability ID - ID gid.GID `json:"id"` -} - -// GetStateOfApplicabilityOutput represents the schema -type GetStateOfApplicabilityOutput struct { - StateOfApplicability *StateOfApplicability `json:"state_of_applicability"` -} - -// GetTaskInput represents the schema -type GetTaskInput struct { - // Task ID - ID gid.GID `json:"id"` -} - -// GetTaskOutput represents the schema -type GetTaskOutput struct { - Task *Task `json:"task"` -} - -// GetTransferImpactAssessmentInput represents the schema -type GetTransferImpactAssessmentInput struct { - ID gid.GID `json:"id"` -} - -// GetTransferImpactAssessmentOutput represents the schema -type GetTransferImpactAssessmentOutput struct { - TransferImpactAssessment *TransferImpactAssessment `json:"transfer_impact_assessment"` -} - -// GetUserInput represents the schema -type GetUserInput struct { - // User ID (profile ID) - ID gid.GID `json:"id"` -} - -// GetUserOutput represents the schema -type GetUserOutput struct { - User *Profile `json:"user"` -} - -// InviteUserInput represents the schema -type InviteUserInput struct { - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // User (profile) ID to invite - ProfileID gid.GID `json:"profile_id"` -} - -// InviteUserOutput represents the schema -type InviteUserOutput struct { - // Created invitation ID - InvitationID gid.GID `json:"invitation_id"` -} - -// LinkControlInput represents the schema -type LinkControlInput struct { - // Control ID - ControlID gid.GID `json:"control_id"` - // ID of the resource to link (measure, document, audit, snapshot, or obligation) - ResourceID gid.GID `json:"resource_id"` -} - -// LinkControlOutput represents the schema -type LinkControlOutput struct { -} - -// LinkMeasureInput represents the schema -type LinkMeasureInput struct { - // Measure ID - MeasureID gid.GID `json:"measure_id"` - // ID of the resource to link (control or risk) - ResourceID gid.GID `json:"resource_id"` -} - -// LinkMeasureOutput represents the schema -type LinkMeasureOutput struct { -} - -// LinkRiskInput represents the schema -type LinkRiskInput struct { - // ID of the resource to link (document, measure, or obligation) - ResourceID gid.GID `json:"resource_id"` - // Risk ID - RiskID gid.GID `json:"risk_id"` -} - -// LinkRiskOutput represents the schema -type LinkRiskOutput struct { -} - -// ListApplicabilityStatementsInput represents the schema -type ListApplicabilityStatementsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Order by - OrderBy *ApplicabilityStatementOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` - // State of applicability ID - StateOfApplicabilityID gid.GID `json:"state_of_applicability_id"` -} - -// ListApplicabilityStatementsOutput represents the schema -type ListApplicabilityStatementsOutput struct { - ApplicabilityStatements []*ApplicabilityStatement `json:"applicability_statements"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListAssetsInput represents the schema -type ListAssetsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListAssetsInputFilter `json:"filter,omitempty"` - // Asset order by - OrderBy *AssetOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListAssetsOutput represents the schema -type ListAssetsOutput struct { - Assets []*Asset `json:"assets"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListAuditsInput represents the schema -type ListAuditsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Audit order by - OrderBy *AuditOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListAuditsOutput represents the schema -type ListAuditsOutput struct { - Audits []*Audit `json:"audits"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListContinualImprovementsInput represents the schema -type ListContinualImprovementsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListContinualImprovementsInputFilter `json:"filter,omitempty"` - // Continual improvement order by - OrderBy *ContinualImprovementOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListContinualImprovementsOutput represents the schema -type ListContinualImprovementsOutput struct { - ContinualImprovements []*ContinualImprovement `json:"continual_improvements"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListControlAuditsInput represents the schema -type ListControlAuditsInput struct { - // Control ID - ControlID gid.GID `json:"control_id"` - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Audit order by - OrderBy *AuditOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListControlAuditsOutput represents the schema -type ListControlAuditsOutput struct { - Audits []*Audit `json:"audits"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListControlDocumentsInput represents the schema -type ListControlDocumentsInput struct { - // Control ID - ControlID gid.GID `json:"control_id"` - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Document order by - OrderBy *DocumentOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListControlDocumentsOutput represents the schema -type ListControlDocumentsOutput struct { - Documents []*Document `json:"documents"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListControlMeasuresInput represents the schema -type ListControlMeasuresInput struct { - // Control ID - ControlID gid.GID `json:"control_id"` - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Measure order by - OrderBy *MeasureOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListControlMeasuresOutput represents the schema -type ListControlMeasuresOutput struct { - Measures []*Measure `json:"measures"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListControlObligationsInput represents the schema -type ListControlObligationsInput struct { - // Control ID - ControlID gid.GID `json:"control_id"` - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Obligation order by - OrderBy *ObligationOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListControlObligationsOutput represents the schema -type ListControlObligationsOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - Obligations []*Obligation `json:"obligations"` -} - -// ListControlSnapshotsInput represents the schema -type ListControlSnapshotsInput struct { - // Control ID - ControlID gid.GID `json:"control_id"` - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Snapshot order by - OrderBy *SnapshotOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListControlSnapshotsOutput represents the schema -type ListControlSnapshotsOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - Snapshots []*Snapshot `json:"snapshots"` -} - -// ListControlsInput represents the schema -type ListControlsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListControlsInputFilter `json:"filter,omitempty"` - // Framework ID - FrameworkID *gid.GID `json:"framework_id,omitempty"` - // Control order by - OrderBy *ControlOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListControlsOutput represents the schema -type ListControlsOutput struct { - Controls []*Control `json:"controls"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListDataInput represents the schema -type ListDataInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListDataInputFilter `json:"filter,omitempty"` - // Datum order by - OrderBy *DatumOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListDataOutput represents the schema -type ListDataOutput struct { - Data []*Datum `json:"data"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListDataProtectionImpactAssessmentsInput represents the schema -type ListDataProtectionImpactAssessmentsInput struct { - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListDataProtectionImpactAssessmentsInputFilter `json:"filter,omitempty"` - OrderBy *DataProtectionImpactAssessmentOrderBy `json:"order_by,omitempty"` - OrganizationID gid.GID `json:"organization_id"` - Size *int `json:"size,omitempty"` -} - -// ListDataProtectionImpactAssessmentsOutput represents the schema -type ListDataProtectionImpactAssessmentsOutput struct { - DataProtectionImpactAssessments []*DataProtectionImpactAssessment `json:"data_protection_impact_assessments"` - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListDocumentVersionSignaturesInput represents the schema -type ListDocumentVersionSignaturesInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Document version ID - DocumentVersionID gid.GID `json:"document_version_id"` - Filter *ListDocumentVersionSignaturesInputFilter `json:"filter,omitempty"` - // Document version signature order by - OrderBy *DocumentVersionSignatureOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListDocumentVersionSignaturesOutput represents the schema -type ListDocumentVersionSignaturesOutput struct { - DocumentVersionSignatures []*DocumentVersionSignature `json:"document_version_signatures"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListDocumentVersionsInput represents the schema -type ListDocumentVersionsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Document ID - DocumentID gid.GID `json:"document_id"` - // Document version order by - OrderBy *DocumentVersionOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListDocumentVersionsOutput represents the schema -type ListDocumentVersionsOutput struct { - DocumentVersions []*DocumentVersion `json:"document_versions"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListDocumentsInput represents the schema -type ListDocumentsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListDocumentsInputFilter `json:"filter,omitempty"` - // Document order by - OrderBy *DocumentOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListDocumentsOutput represents the schema -type ListDocumentsOutput struct { - Documents []*Document `json:"documents"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListFrameworksInput represents the schema -type ListFrameworksInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Framework order by - OrderBy *FrameworkOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListFrameworksOutput represents the schema -type ListFrameworksOutput struct { - Frameworks []*Framework `json:"frameworks"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListMeasureControlsInput represents the schema -type ListMeasureControlsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Measure ID - MeasureID gid.GID `json:"measure_id"` - // Control order by - OrderBy *ControlOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListMeasureControlsOutput represents the schema -type ListMeasureControlsOutput struct { - Controls []*Control `json:"controls"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListMeasureEvidencesInput represents the schema -type ListMeasureEvidencesInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Measure ID - MeasureID gid.GID `json:"measure_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListMeasureEvidencesOutput represents the schema -type ListMeasureEvidencesOutput struct { - Evidences []*Evidence `json:"evidences"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListMeasureRisksInput represents the schema -type ListMeasureRisksInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Measure ID - MeasureID gid.GID `json:"measure_id"` - // Risk order by - OrderBy *RiskOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListMeasureRisksOutput represents the schema -type ListMeasureRisksOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - Risks []*Risk `json:"risks"` -} - -// ListMeasureTasksInput represents the schema -type ListMeasureTasksInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Measure ID - MeasureID gid.GID `json:"measure_id"` - // Task order by - OrderBy *TaskOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListMeasureTasksOutput represents the schema -type ListMeasureTasksOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - Tasks []*Task `json:"tasks"` -} - -// ListMeasuresInput represents the schema -type ListMeasuresInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListMeasuresInputFilter `json:"filter,omitempty"` - // Measure order by - OrderBy *MeasureOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListMeasuresOutput represents the schema -type ListMeasuresOutput struct { - Measures []*Measure `json:"measures"` - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListMeetingAttendeesInput represents the schema -type ListMeetingAttendeesInput struct { - // Meeting ID - MeetingID gid.GID `json:"meeting_id"` -} - -// ListMeetingAttendeesOutput represents the schema -type ListMeetingAttendeesOutput struct { - // List of attendee profiles - Attendees []*Profile `json:"attendees"` -} - -// ListMeetingsInput represents the schema -type ListMeetingsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Meeting order by - OrderBy *MeetingOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListMeetingsOutput represents the schema -type ListMeetingsOutput struct { - // List of meetings - Meetings []*Meeting `json:"meetings"` - // Next page cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` -} - -// ListNonconformitiesInput represents the schema -type ListNonconformitiesInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListNonconformitiesInputFilter `json:"filter,omitempty"` - // Nonconformity order by - OrderBy *NonconformityOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListNonconformitiesOutput represents the schema -type ListNonconformitiesOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - Nonconformities []*Nonconformity `json:"nonconformities"` -} - -// ListObligationsInput represents the schema -type ListObligationsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListObligationsInputFilter `json:"filter,omitempty"` - // Obligation order by - OrderBy *ObligationOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListObligationsOutput represents the schema -type ListObligationsOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - Obligations []*Obligation `json:"obligations"` -} - -// ListOrganizationsInput represents the schema -type ListOrganizationsInput struct { - // Organization ID - OrganizationID *gid.GID `json:"organization_id,omitempty"` -} - -// ListOrganizationsOutput represents the schema -type ListOrganizationsOutput struct { - Organizations []*Organization `json:"organizations,omitempty"` -} - -// ListProcessingActivitiesInput represents the schema -type ListProcessingActivitiesInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListProcessingActivitiesInputFilter `json:"filter,omitempty"` - // Order by - OrderBy *ProcessingActivityOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListProcessingActivitiesOutput represents the schema -type ListProcessingActivitiesOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - ProcessingActivities []*ProcessingActivity `json:"processing_activities"` -} - -// ListRiskObligationsInput represents the schema -type ListRiskObligationsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Obligation order by - OrderBy *ObligationOrderBy `json:"order_by,omitempty"` - // Risk ID - RiskID gid.GID `json:"risk_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListRiskObligationsOutput represents the schema -type ListRiskObligationsOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - Obligations []*Obligation `json:"obligations"` -} - -// ListRisksInput represents the schema -type ListRisksInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListRisksInputFilter `json:"filter,omitempty"` - // Risk order by - OrderBy *RiskOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListRisksOutput represents the schema -type ListRisksOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - Risks []*Risk `json:"risks"` -} - -// ListSnapshotsInput represents the schema -type ListSnapshotsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Snapshot order by - OrderBy *SnapshotOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListSnapshotsOutput represents the schema -type ListSnapshotsOutput struct { - // Next page cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - // List of snapshots - Snapshots []*Snapshot `json:"snapshots"` -} - -// ListStatesOfApplicabilityInput represents the schema -type ListStatesOfApplicabilityInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Order by - OrderBy *StateOfApplicabilityOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListStatesOfApplicabilityOutput represents the schema -type ListStatesOfApplicabilityOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - StatesOfApplicability []*StateOfApplicability `json:"states_of_applicability"` -} - -// ListTasksInput represents the schema -type ListTasksInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Measure ID - MeasureID *gid.GID `json:"measure_id,omitempty"` - // Task order by - OrderBy *TaskOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListTasksOutput represents the schema -type ListTasksOutput struct { - // Next page cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - // List of tasks - Tasks []*Task `json:"tasks"` -} - -// ListTransferImpactAssessmentsInput represents the schema -type ListTransferImpactAssessmentsInput struct { - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListTransferImpactAssessmentsInputFilter `json:"filter,omitempty"` - OrderBy *TransferImpactAssessmentOrderBy `json:"order_by,omitempty"` - OrganizationID gid.GID `json:"organization_id"` - Size *int `json:"size,omitempty"` -} - -// ListTransferImpactAssessmentsOutput represents the schema -type ListTransferImpactAssessmentsOutput struct { - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - TransferImpactAssessments []*TransferImpactAssessment `json:"transfer_impact_assessments"` -} - -// ListUsersInput represents the schema -type ListUsersInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListUsersInputFilter `json:"filter,omitempty"` - // User order by - OrderBy *ProfileOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListUsersOutput represents the schema -type ListUsersOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - Users []*Profile `json:"users"` -} - -// ListVendorRiskAssessmentsInput represents the schema -type ListVendorRiskAssessmentsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - // Vendor risk assessment order by - OrderBy *VendorRiskAssessmentOrderBy `json:"order_by,omitempty"` - // Page size - Size *int `json:"size,omitempty"` - // Vendor ID - VendorID gid.GID `json:"vendor_id"` -} - -// ListVendorRiskAssessmentsOutput represents the schema -type ListVendorRiskAssessmentsOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - VendorRiskAssessments []*VendorRiskAssessment `json:"vendor_risk_assessments"` -} - -// ListVendorsInput represents the schema -type ListVendorsInput struct { - // Page cursor - Cursor *page.CursorKey `json:"cursor,omitempty"` - Filter *ListVendorsInputFilter `json:"filter,omitempty"` - // Vendor order by - OrderBy *VendorOrderBy `json:"order_by,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Page size - Size *int `json:"size,omitempty"` -} - -// ListVendorsOutput represents the schema -type ListVendorsOutput struct { - // Next cursor - NextCursor *page.CursorKey `json:"next_cursor,omitempty"` - Vendors []*Vendor `json:"vendors"` -} - -// Measure represents the schema -type Measure struct { - // Measure category - Category string `json:"category"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Measure description - Description *string `json:"description,omitempty"` - // Measure ID - ID gid.GID `json:"id"` - // Measure name - Name string `json:"name"` - // Measure state - State coredata.MeasureState `json:"state"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// MeasureOrderBy represents the schema -type MeasureOrderBy struct { - // Measure order direction - Direction page.OrderDirection `json:"direction"` - // Measure order field - Field coredata.MeasureOrderField `json:"field"` -} - -// Meeting represents the schema -type Meeting struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Meeting date - Date time.Time `json:"date"` - // Meeting ID - ID gid.GID `json:"id"` - // Meeting minutes - Minutes *string `json:"minutes,omitempty"` - // Meeting name - Name string `json:"name"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// MeetingOrderBy represents the schema -type MeetingOrderBy struct { - // Meeting order direction - Direction page.OrderDirection `json:"direction"` - // Meeting order field - Field coredata.MeetingOrderField `json:"field"` -} - -// Membership represents the schema -type Membership struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Membership ID - ID gid.GID `json:"id"` - // Membership role - Role coredata.MembershipRole `json:"role"` -} - -// Nonconformity represents the schema -type Nonconformity struct { - // Audit ID - AuditID *gid.GID `json:"audit_id,omitempty"` - // Corrective action - CorrectiveAction *string `json:"corrective_action,omitempty"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Date identified - DateIdentified *time.Time `json:"date_identified,omitempty"` - // Description - Description *string `json:"description,omitempty"` - // Due date - DueDate *time.Time `json:"due_date,omitempty"` - // Effectiveness check - EffectivenessCheck *string `json:"effectiveness_check,omitempty"` - // Nonconformity ID - ID gid.GID `json:"id"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID gid.GID `json:"owner_id"` - // Reference ID - ReferenceID string `json:"reference_id"` - // Root cause - RootCause string `json:"root_cause"` - // Snapshot ID - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` - // Status - Status coredata.NonconformityStatus `json:"status"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// NonconformityOrderBy represents the schema -type NonconformityOrderBy struct { - // Nonconformity order direction - Direction page.OrderDirection `json:"direction"` - // Nonconformity order field - Field coredata.NonconformityOrderField `json:"field"` -} - -// Obligation represents the schema -type Obligation struct { - // Actions to be implemented - ActionsToBeImplemented *string `json:"actions_to_be_implemented,omitempty"` - // Area - Area *string `json:"area,omitempty"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Due date - DueDate *time.Time `json:"due_date,omitempty"` - // Obligation ID - ID gid.GID `json:"id"` - // Last review date - LastReviewDate *time.Time `json:"last_review_date,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner ID - OwnerID gid.GID `json:"owner_id"` - // Regulator - Regulator *string `json:"regulator,omitempty"` - // Requirement - Requirement *string `json:"requirement,omitempty"` - // Snapshot ID - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` - // Source - Source *string `json:"source,omitempty"` - // Source ID - SourceID *string `json:"source_id,omitempty"` - // Status - Status coredata.ObligationStatus `json:"status"` - // Type - Type coredata.ObligationType `json:"type"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// ObligationOrderBy represents the schema -type ObligationOrderBy struct { - // Obligation order direction - Direction page.OrderDirection `json:"direction"` - // Obligation order field - Field coredata.ObligationOrderField `json:"field"` -} - -// Organization represents the schema -type Organization struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Organization description - Description *string `json:"description"` - // Organization ID - ID gid.GID `json:"id"` - // Organization name - Name string `json:"name"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// ProcessingActivity represents the schema -type ProcessingActivity struct { - // Consent evidence link - ConsentEvidenceLink *string `json:"consent_evidence_link,omitempty"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // DPIA needed - DataProtectionImpactAssessmentNeeded coredata.ProcessingActivityDataProtectionImpactAssessment `json:"data_protection_impact_assessment_needed"` - // Data protection officer profile ID - DataProtectionOfficerID *gid.GID `json:"data_protection_officer_id,omitempty"` - // Data subject category - DataSubjectCategory *string `json:"data_subject_category,omitempty"` - // Processing activity ID - ID gid.GID `json:"id"` - // International transfers - InternationalTransfers bool `json:"international_transfers"` - // Last review date - LastReviewDate *time.Time `json:"last_review_date,omitempty"` - // Lawful basis - LawfulBasis coredata.ProcessingActivityLawfulBasis `json:"lawful_basis"` - // Location - Location *string `json:"location,omitempty"` - // Name - Name string `json:"name"` - // Next review date - NextReviewDate *time.Time `json:"next_review_date,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Personal data category - PersonalDataCategory *string `json:"personal_data_category,omitempty"` - // Purpose - Purpose *string `json:"purpose,omitempty"` - // Recipients - Recipients *string `json:"recipients,omitempty"` - // Retention period - RetentionPeriod *string `json:"retention_period,omitempty"` - // Role - Role coredata.ProcessingActivityRole `json:"role"` - // Security measures - SecurityMeasures *string `json:"security_measures,omitempty"` - // Special or criminal data - SpecialOrCriminalData coredata.ProcessingActivitySpecialOrCriminalDatum `json:"special_or_criminal_data"` - // TIA needed - TransferImpactAssessmentNeeded coredata.ProcessingActivityTransferImpactAssessment `json:"transfer_impact_assessment_needed"` - // Transfer safeguard - TransferSafeguard *coredata.ProcessingActivityTransferSafeguard `json:"transfer_safeguard,omitempty"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// ProcessingActivityOrderBy represents the schema -type ProcessingActivityOrderBy struct { - // Order direction - Direction page.OrderDirection `json:"direction"` - // Processing activity order field - Field coredata.ProcessingActivityOrderField `json:"field"` -} - -// Profile represents the schema -type Profile struct { - // Additional email addresses - AdditionalEmailAddresses []mail.Addr `json:"additional_email_addresses"` - // Contract end date - ContractEndDate *time.Time `json:"contract_end_date,omitempty"` - // Contract start date - ContractStartDate *time.Time `json:"contract_start_date,omitempty"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Primary email address - EmailAddress mail.Addr `json:"email_address"` - // Full name - FullName string `json:"full_name"` - // Profile ID - ID gid.GID `json:"id"` - // Profile kind - Kind *string `json:"kind"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Position - Position *string `json:"position,omitempty"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// ProfileOrderBy represents the schema -type ProfileOrderBy struct { - // Profile order direction - Direction page.OrderDirection `json:"direction"` - // Profile order field - Field coredata.MembershipProfileOrderField `json:"field"` -} - -// PublishDocumentVersionInput represents the schema -type PublishDocumentVersionInput struct { - // Changelog - Changelog *string `json:"changelog,omitempty"` - // Document ID - DocumentID gid.GID `json:"document_id"` -} - -// PublishDocumentVersionOutput represents the schema -type PublishDocumentVersionOutput struct { - Document *Document `json:"document"` - DocumentVersion *DocumentVersion `json:"document_version"` -} - -// RemoveUserInput represents the schema -type RemoveUserInput struct { - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // User (profile) ID to remove - ProfileID gid.GID `json:"profile_id"` -} - -// RemoveUserOutput represents the schema -type RemoveUserOutput struct { - // Deleted user (profile) ID - DeletedUserID gid.GID `json:"deleted_user_id"` -} - -// RequestDocumentVersionSignatureInput represents the schema -type RequestDocumentVersionSignatureInput struct { - // Document version ID - DocumentVersionID gid.GID `json:"document_version_id"` - // Signatory ID (Profile ID) - SignatoryID gid.GID `json:"signatory_id"` -} - -// RequestDocumentVersionSignatureOutput represents the schema -type RequestDocumentVersionSignatureOutput struct { - DocumentVersionSignature *DocumentVersionSignature `json:"document_version_signature"` -} - -// Risk represents the schema -type Risk struct { - // Risk category - Category string `json:"category"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Risk description - Description *string `json:"description,omitempty"` - // Risk ID - ID gid.GID `json:"id"` - // Inherent impact - InherentImpact int `json:"inherent_impact"` - // Inherent likelihood - InherentLikelihood int `json:"inherent_likelihood"` - // Inherent risk score - InherentRiskScore int `json:"inherent_risk_score"` - // Risk name - Name string `json:"name"` - // Risk note - Note string `json:"note"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - OwnerID *gid.GID `json:"owner_id,omitempty"` - // Residual impact - ResidualImpact int `json:"residual_impact"` - // Residual likelihood - ResidualLikelihood int `json:"residual_likelihood"` - // Residual risk score - ResidualRiskScore int `json:"residual_risk_score"` - // Snapshot ID - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` - // Risk treatment - Treatment coredata.RiskTreatment `json:"treatment"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// RiskOrderBy represents the schema -type RiskOrderBy struct { - // Risk order direction - Direction page.OrderDirection `json:"direction"` - // Risk order field - Field coredata.RiskOrderField `json:"field"` -} - -// Snapshot represents the schema -type Snapshot struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Snapshot description - Description *string `json:"description,omitempty"` - // Snapshot ID - ID gid.GID `json:"id"` - // Snapshot name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Snapshot type - Type coredata.SnapshotsType `json:"type"` -} - -// SnapshotOrderBy represents the schema -type SnapshotOrderBy struct { - // Snapshot order direction - Direction page.OrderDirection `json:"direction"` - // Snapshot order field - Field coredata.SnapshotOrderField `json:"field"` -} - -// StateOfApplicability represents the schema -type StateOfApplicability struct { - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // State of applicability ID - ID gid.GID `json:"id"` - // State of applicability name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Owner profile ID - OwnerID gid.GID `json:"owner_id"` - // Snapshot ID - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// StateOfApplicabilityOrderBy represents the schema -type StateOfApplicabilityOrderBy struct { - // Order direction - Direction page.OrderDirection `json:"direction"` - // State of applicability order field - Field coredata.StateOfApplicabilityOrderField `json:"field"` -} - -// TakeSnapshotInput represents the schema -type TakeSnapshotInput struct { - // Snapshot description - Description *string `json:"description,omitempty"` - // Snapshot name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Snapshot type (determines which collection to snapshot) - Type coredata.SnapshotsType `json:"type"` -} - -// TakeSnapshotOutput represents the schema -type TakeSnapshotOutput struct { - Snapshot *Snapshot `json:"snapshot"` -} - -// Task represents the schema -type Task struct { - // Assigned to person ID - AssignedToID *gid.GID `json:"assigned_to_id,omitempty"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Deadline - Deadline *time.Time `json:"deadline,omitempty"` - // Task description - Description *string `json:"description,omitempty"` - // Task ID - ID gid.GID `json:"id"` - // Measure ID - MeasureID *gid.GID `json:"measure_id,omitempty"` - // Task name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Task state - State coredata.TaskState `json:"state"` - // Time estimate - TimeEstimate *time.Duration `json:"time_estimate,omitempty"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` -} - -// TaskOrderBy represents the schema -type TaskOrderBy struct { - // Task order direction - Direction page.OrderDirection `json:"direction"` - // Task order field - Field coredata.TaskOrderField `json:"field"` -} - -// TransferImpactAssessment represents the schema -type TransferImpactAssessment struct { - CreatedAt time.Time `json:"created_at"` - DataSubjects *string `json:"data_subjects,omitempty"` - ID gid.GID `json:"id"` - LegalMechanism *string `json:"legal_mechanism,omitempty"` - LocalLawRisk *string `json:"local_law_risk,omitempty"` - OrganizationID gid.GID `json:"organization_id"` - ProcessingActivityID gid.GID `json:"processing_activity_id"` - SupplementaryMeasures *string `json:"supplementary_measures,omitempty"` - Transfer *string `json:"transfer,omitempty"` - UpdatedAt time.Time `json:"updated_at"` -} - -// TransferImpactAssessmentOrderBy represents the schema -type TransferImpactAssessmentOrderBy struct { - Direction page.OrderDirection `json:"direction"` - Field coredata.TransferImpactAssessmentOrderField `json:"field"` -} - -// UnassignTaskInput represents the schema -type UnassignTaskInput struct { - // Task ID - ID gid.GID `json:"id"` -} - -// UnassignTaskOutput represents the schema -type UnassignTaskOutput struct { - Task *Task `json:"task"` -} - -// UnlinkControlInput represents the schema -type UnlinkControlInput struct { - // Control ID - ControlID gid.GID `json:"control_id"` - // ID of the resource to unlink (measure, document, audit, snapshot, or obligation) - ResourceID gid.GID `json:"resource_id"` -} - -// UnlinkControlOutput represents the schema -type UnlinkControlOutput struct { -} - -// UnlinkMeasureInput represents the schema -type UnlinkMeasureInput struct { - // Measure ID - MeasureID gid.GID `json:"measure_id"` - // ID of the resource to unlink (control or risk) - ResourceID gid.GID `json:"resource_id"` -} - -// UnlinkMeasureOutput represents the schema -type UnlinkMeasureOutput struct { -} - -// UnlinkRiskInput represents the schema -type UnlinkRiskInput struct { - // ID of the resource to unlink (document, measure, or obligation) - ResourceID gid.GID `json:"resource_id"` - // Risk ID - RiskID gid.GID `json:"risk_id"` -} - -// UnlinkRiskOutput represents the schema -type UnlinkRiskOutput struct { -} - -// UpdateApplicabilityStatementInput represents the schema -type UpdateApplicabilityStatementInput struct { - // Whether the control is applicable - Applicability bool `json:"applicability"` - // Applicability statement ID - ID gid.GID `json:"id"` - // Justification for the applicability decision - Justification *string `json:"justification,omitempty"` -} - -// UpdateApplicabilityStatementOutput represents the schema -type UpdateApplicabilityStatementOutput struct { - ApplicabilityStatement *ApplicabilityStatement `json:"applicability_statement"` -} - -// UpdateAssetInput represents the schema -type UpdateAssetInput struct { - // Asset amount - Amount *int `json:"amount,omitempty"` - // Asset type - AssetType *coredata.AssetType `json:"asset_type,omitempty"` - // Data types stored - DataTypesStored *string `json:"data_types_stored,omitempty"` - // Asset ID - ID gid.GID `json:"id"` - // Asset name - Name *string `json:"name,omitempty"` - // Owner ID - OwnerID *gid.GID `json:"owner_id,omitempty"` - // Vendor IDs - VendorIds []gid.GID `json:"vendor_ids,omitempty"` -} - -// UpdateAssetOutput represents the schema -type UpdateAssetOutput struct { - Asset *Asset `json:"asset"` -} - -// UpdateAuditInput represents the schema -type UpdateAuditInput struct { - // Audit ID - ID gid.GID `json:"id"` - // Audit name - Name mcp.Omittable[*string] `json:"name,omitempty"` - // Audit state - State *coredata.AuditState `json:"state,omitempty"` - // Trust center visibility - TrustCenterVisibility *coredata.TrustCenterVisibility `json:"trust_center_visibility,omitempty"` - // Valid from date - ValidFrom *time.Time `json:"valid_from,omitempty"` - // Valid until date - ValidUntil *time.Time `json:"valid_until,omitempty"` -} - -// UpdateAuditOutput represents the schema -type UpdateAuditOutput struct { - Audit *Audit `json:"audit"` -} - -// UpdateContinualImprovementInput represents the schema -type UpdateContinualImprovementInput struct { - // Description - Description mcp.Omittable[*string] `json:"description,omitempty"` - // Continual improvement ID - ID gid.GID `json:"id"` - // Owner ID - OwnerID *gid.GID `json:"owner_id,omitempty"` - // Priority - Priority *coredata.ContinualImprovementPriority `json:"priority,omitempty"` - // Reference ID - ReferenceID *string `json:"reference_id,omitempty"` - // Source - Source mcp.Omittable[*string] `json:"source,omitempty"` - // Status - Status *coredata.ContinualImprovementStatus `json:"status,omitempty"` - // Target date - TargetDate mcp.Omittable[*time.Time] `json:"target_date,omitempty"` -} - -// UpdateContinualImprovementOutput represents the schema -type UpdateContinualImprovementOutput struct { - ContinualImprovement *ContinualImprovement `json:"continual_improvement"` -} - -// UpdateControlInput represents the schema -type UpdateControlInput struct { - // Control description - Description mcp.Omittable[*string] `json:"description,omitempty"` - // Control ID - ID gid.GID `json:"id"` - // Control name - Name *string `json:"name,omitempty"` - // Section title - SectionTitle *string `json:"section_title,omitempty"` -} - -// UpdateControlOutput represents the schema -type UpdateControlOutput struct { - Control *Control `json:"control"` -} - -// UpdateDataProtectionImpactAssessmentInput represents the schema -type UpdateDataProtectionImpactAssessmentInput struct { - Description mcp.Omittable[*string] `json:"description,omitempty"` - ID gid.GID `json:"id"` - Mitigations mcp.Omittable[*string] `json:"mitigations,omitempty"` - NecessityAndProportionality mcp.Omittable[*string] `json:"necessity_and_proportionality,omitempty"` - PotentialRisk mcp.Omittable[*string] `json:"potential_risk,omitempty"` - ResidualRisk *coredata.DataProtectionImpactAssessmentResidualRisk `json:"residual_risk,omitempty"` -} - -// UpdateDataProtectionImpactAssessmentOutput represents the schema -type UpdateDataProtectionImpactAssessmentOutput struct { - DataProtectionImpactAssessment *DataProtectionImpactAssessment `json:"data_protection_impact_assessment"` -} - -// UpdateDatumInput represents the schema -type UpdateDatumInput struct { - // Data classification - DataClassification *coredata.DataClassification `json:"data_classification,omitempty"` - // Datum ID - ID gid.GID `json:"id"` - // Datum name - Name *string `json:"name,omitempty"` - // Owner ID - OwnerID *gid.GID `json:"owner_id,omitempty"` - // Vendor IDs - VendorIds []gid.GID `json:"vendor_ids,omitempty"` -} - -// UpdateDatumOutput represents the schema -type UpdateDatumOutput struct { - Datum *Datum `json:"datum"` -} - -// UpdateDocumentInput represents the schema -type UpdateDocumentInput struct { - // Approver IDs - ApproverIds []gid.GID `json:"approver_ids,omitempty"` - // Document classification - Classification *coredata.DocumentClassification `json:"classification,omitempty"` - // Document type - DocumentType *coredata.DocumentType `json:"document_type,omitempty"` - // Document ID - ID gid.GID `json:"id"` - // Document title - Title *string `json:"title,omitempty"` - // Trust center visibility - TrustCenterVisibility *coredata.TrustCenterVisibility `json:"trust_center_visibility,omitempty"` -} - -// UpdateDocumentOutput represents the schema -type UpdateDocumentOutput struct { - Document *Document `json:"document"` -} - -// UpdateDocumentVersionInput represents the schema -type UpdateDocumentVersionInput struct { - // Document content - Content string `json:"content"` - // Document version ID - DocumentVersionID gid.GID `json:"document_version_id"` -} - -// UpdateDocumentVersionOutput represents the schema -type UpdateDocumentVersionOutput struct { - DocumentVersion *DocumentVersion `json:"document_version"` -} - -// UpdateFrameworkInput represents the schema -type UpdateFrameworkInput struct { - // Framework description - Description mcp.Omittable[*string] `json:"description,omitempty"` - // Framework ID - ID gid.GID `json:"id"` - // Framework name - Name *string `json:"name,omitempty"` -} - -// UpdateFrameworkOutput represents the schema -type UpdateFrameworkOutput struct { - Framework *Framework `json:"framework"` -} - -// UpdateMeasureInput represents the schema -type UpdateMeasureInput struct { - // Measure category - Category *string `json:"category,omitempty"` - // Measure description - Description mcp.Omittable[*string] `json:"description,omitempty"` - // Measure ID - ID gid.GID `json:"id"` - // Measure name - Name *string `json:"name,omitempty"` - // Measure state - State *coredata.MeasureState `json:"state,omitempty"` -} - -// UpdateMeasureOutput represents the schema -type UpdateMeasureOutput struct { - Measure *Measure `json:"measure"` -} - -// UpdateMeetingInput represents the schema -type UpdateMeetingInput struct { - // List of attendee profile IDs - AttendeeIds []gid.GID `json:"attendee_ids,omitempty"` - // Meeting date - Date *time.Time `json:"date,omitempty"` - // Meeting ID - ID gid.GID `json:"id"` - // Meeting minutes - Minutes mcp.Omittable[*string] `json:"minutes,omitempty"` - // Meeting name - Name *string `json:"name,omitempty"` -} - -// UpdateMeetingOutput represents the schema -type UpdateMeetingOutput struct { - Meeting *Meeting `json:"meeting"` -} - -// UpdateMembershipInput represents the schema -type UpdateMembershipInput struct { - // Membership ID - MembershipID gid.GID `json:"membership_id"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // New role - Role coredata.MembershipRole `json:"role"` -} - -// UpdateMembershipOutput represents the schema -type UpdateMembershipOutput struct { - Membership *Membership `json:"membership"` -} - -// UpdateNonconformityInput represents the schema -type UpdateNonconformityInput struct { - // Audit ID - AuditID mcp.Omittable[*gid.GID] `json:"audit_id,omitempty"` - // Corrective action - CorrectiveAction mcp.Omittable[*string] `json:"corrective_action,omitempty"` - // Date identified - DateIdentified mcp.Omittable[*time.Time] `json:"date_identified,omitempty"` - // Description - Description mcp.Omittable[*string] `json:"description,omitempty"` - // Due date - DueDate mcp.Omittable[*time.Time] `json:"due_date,omitempty"` - // Effectiveness check - EffectivenessCheck mcp.Omittable[*string] `json:"effectiveness_check,omitempty"` - // Nonconformity ID - ID gid.GID `json:"id"` - // Owner ID - OwnerID *gid.GID `json:"owner_id,omitempty"` - // Reference ID - ReferenceID *string `json:"reference_id,omitempty"` - // Root cause - RootCause *string `json:"root_cause,omitempty"` - // Status - Status *coredata.NonconformityStatus `json:"status,omitempty"` -} - -// UpdateNonconformityOutput represents the schema -type UpdateNonconformityOutput struct { - Nonconformity *Nonconformity `json:"nonconformity"` -} - -// UpdateObligationInput represents the schema -type UpdateObligationInput struct { - // Actions to be implemented - ActionsToBeImplemented mcp.Omittable[*string] `json:"actions_to_be_implemented,omitempty"` - // Area - Area mcp.Omittable[*string] `json:"area,omitempty"` - // Due date - DueDate mcp.Omittable[*time.Time] `json:"due_date,omitempty"` - // Obligation ID - ID gid.GID `json:"id"` - // Last review date - LastReviewDate mcp.Omittable[*time.Time] `json:"last_review_date,omitempty"` - // Owner ID - OwnerID *gid.GID `json:"owner_id,omitempty"` - // Regulator - Regulator mcp.Omittable[*string] `json:"regulator,omitempty"` - // Requirement - Requirement mcp.Omittable[*string] `json:"requirement,omitempty"` - // Source - Source mcp.Omittable[*string] `json:"source,omitempty"` - // Status - Status *coredata.ObligationStatus `json:"status,omitempty"` - // Type - Type *coredata.ObligationType `json:"type,omitempty"` -} - -// UpdateObligationOutput represents the schema -type UpdateObligationOutput struct { - Obligation *Obligation `json:"obligation"` -} - -// UpdateProcessingActivityInput represents the schema -type UpdateProcessingActivityInput struct { - ConsentEvidenceLink mcp.Omittable[*string] `json:"consent_evidence_link,omitempty"` - DataProtectionImpactAssessmentNeeded *coredata.ProcessingActivityDataProtectionImpactAssessment `json:"data_protection_impact_assessment_needed,omitempty"` - DataProtectionOfficerID mcp.Omittable[*gid.GID] `json:"data_protection_officer_id,omitempty"` - DataSubjectCategory mcp.Omittable[*string] `json:"data_subject_category,omitempty"` - // Processing activity ID - ID gid.GID `json:"id"` - InternationalTransfers *bool `json:"international_transfers,omitempty"` - LastReviewDate mcp.Omittable[*time.Time] `json:"last_review_date,omitempty"` - LawfulBasis *coredata.ProcessingActivityLawfulBasis `json:"lawful_basis,omitempty"` - Location mcp.Omittable[*string] `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - NextReviewDate mcp.Omittable[*time.Time] `json:"next_review_date,omitempty"` - PersonalDataCategory mcp.Omittable[*string] `json:"personal_data_category,omitempty"` - Purpose mcp.Omittable[*string] `json:"purpose,omitempty"` - Recipients mcp.Omittable[*string] `json:"recipients,omitempty"` - RetentionPeriod mcp.Omittable[*string] `json:"retention_period,omitempty"` - Role *coredata.ProcessingActivityRole `json:"role,omitempty"` - SecurityMeasures mcp.Omittable[*string] `json:"security_measures,omitempty"` - SpecialOrCriminalData *coredata.ProcessingActivitySpecialOrCriminalDatum `json:"special_or_criminal_data,omitempty"` - TransferImpactAssessmentNeeded *coredata.ProcessingActivityTransferImpactAssessment `json:"transfer_impact_assessment_needed,omitempty"` - TransferSafeguard mcp.Omittable[*coredata.ProcessingActivityTransferSafeguard] `json:"transfer_safeguard,omitempty"` - VendorIds []gid.GID `json:"vendor_ids,omitempty"` -} - -// UpdateProcessingActivityOutput represents the schema -type UpdateProcessingActivityOutput struct { - ProcessingActivity *ProcessingActivity `json:"processing_activity"` -} - -// UpdateProfileInput represents the schema -type UpdateProfileInput struct { - // Additional email addresses - AdditionalEmailAddresses *[]mail.Addr `json:"additional_email_addresses,omitempty"` - // Contract end date - ContractEndDate mcp.Omittable[*time.Time] `json:"contract_end_date,omitempty"` - // Contract start date - ContractStartDate mcp.Omittable[*time.Time] `json:"contract_start_date,omitempty"` - // Full name - FullName *string `json:"full_name,omitempty"` - // Profile ID - ID gid.GID `json:"id"` - // Profile kind - Kind *string `json:"kind,omitempty"` - // Position - Position mcp.Omittable[*string] `json:"position,omitempty"` -} - -// UpdateProfileOutput represents the schema -type UpdateProfileOutput struct { - Profile *Profile `json:"profile"` -} - -// UpdateRiskInput represents the schema -type UpdateRiskInput struct { - // Risk category - Category *string `json:"category,omitempty"` - // Risk description - Description mcp.Omittable[*string] `json:"description,omitempty"` - // Risk ID - ID gid.GID `json:"id"` - // Inherent impact - InherentImpact *int `json:"inherent_impact,omitempty"` - // Inherent likelihood - InherentLikelihood *int `json:"inherent_likelihood,omitempty"` - // Risk name - Name *string `json:"name,omitempty"` - // Risk note - Note *string `json:"note,omitempty"` - // Owner ID - OwnerID mcp.Omittable[*gid.GID] `json:"owner_id,omitempty"` - // Residual impact - ResidualImpact *int `json:"residual_impact,omitempty"` - // Residual likelihood - ResidualLikelihood *int `json:"residual_likelihood,omitempty"` - // Risk treatment - Treatment *coredata.RiskTreatment `json:"treatment,omitempty"` -} - -// UpdateRiskOutput represents the schema -type UpdateRiskOutput struct { - Risk *Risk `json:"risk"` -} - -// UpdateStateOfApplicabilityInput represents the schema -type UpdateStateOfApplicabilityInput struct { - // State of applicability ID - ID gid.GID `json:"id"` - // State of applicability name - Name *string `json:"name,omitempty"` - // Owner profile ID - OwnerID *gid.GID `json:"owner_id,omitempty"` -} - -// UpdateStateOfApplicabilityOutput represents the schema -type UpdateStateOfApplicabilityOutput struct { - StateOfApplicability *StateOfApplicability `json:"state_of_applicability"` -} - -// UpdateTaskInput represents the schema -type UpdateTaskInput struct { - // Assigned to person ID - AssignedToID mcp.Omittable[*gid.GID] `json:"assigned_to_id,omitempty"` - // Deadline - Deadline mcp.Omittable[*time.Time] `json:"deadline,omitempty"` - // Task description - Description mcp.Omittable[*string] `json:"description,omitempty"` - // Task ID - ID gid.GID `json:"id"` - // Measure ID - MeasureID mcp.Omittable[*gid.GID] `json:"measure_id,omitempty"` - // Task name - Name *string `json:"name,omitempty"` - // Task state - State *coredata.TaskState `json:"state,omitempty"` - // Time estimate - TimeEstimate mcp.Omittable[*time.Duration] `json:"time_estimate,omitempty"` -} - -// UpdateTaskOutput represents the schema -type UpdateTaskOutput struct { - Task *Task `json:"task"` -} - -// UpdateTransferImpactAssessmentInput represents the schema -type UpdateTransferImpactAssessmentInput struct { - DataSubjects mcp.Omittable[*string] `json:"data_subjects,omitempty"` - ID gid.GID `json:"id"` - LegalMechanism mcp.Omittable[*string] `json:"legal_mechanism,omitempty"` - LocalLawRisk mcp.Omittable[*string] `json:"local_law_risk,omitempty"` - SupplementaryMeasures mcp.Omittable[*string] `json:"supplementary_measures,omitempty"` - Transfer mcp.Omittable[*string] `json:"transfer,omitempty"` -} - -// UpdateTransferImpactAssessmentOutput represents the schema -type UpdateTransferImpactAssessmentOutput struct { - TransferImpactAssessment *TransferImpactAssessment `json:"transfer_impact_assessment"` -} - -// UpdateUserInput represents the schema -type UpdateUserInput struct { - // Additional email addresses - AdditionalEmailAddresses *[]mail.Addr `json:"additional_email_addresses,omitempty"` - // Contract end date - ContractEndDate mcp.Omittable[*time.Time] `json:"contract_end_date,omitempty"` - // Contract start date - ContractStartDate mcp.Omittable[*time.Time] `json:"contract_start_date,omitempty"` - // Full name - FullName string `json:"full_name"` - // User (profile) ID - ID gid.GID `json:"id"` - // User kind - Kind *string `json:"kind"` - // Position - Position mcp.Omittable[*string] `json:"position,omitempty"` -} - -// UpdateUserOutput represents the schema -type UpdateUserOutput struct { - User *Profile `json:"user"` -} - -// UpdateVendorInput represents the schema -type UpdateVendorInput struct { - // Business associate agreement URL - BusinessAssociateAgreementURL *string `json:"business_associate_agreement_url,omitempty"` - // Business owner ID - BusinessOwnerID *gid.GID `json:"business_owner_id,omitempty"` - // Vendor category - Category *UpdateVendorInputCategory `json:"category,omitempty"` - // Certifications - Certifications []string `json:"certifications,omitempty"` - // Countries (ISO 3166-1 alpha-2 country codes) - Countries []string `json:"countries,omitempty"` - // Data processing agreement URL - DataProcessingAgreementURL *string `json:"data_processing_agreement_url,omitempty"` - // Vendor description - Description *string `json:"description,omitempty"` - // Headquarter address - HeadquarterAddress *string `json:"headquarter_address,omitempty"` - // Vendor ID - ID gid.GID `json:"id"` - // Legal name - LegalName *string `json:"legal_name,omitempty"` - // Vendor name - Name *string `json:"name,omitempty"` - // Privacy policy URL - PrivacyPolicyURL *string `json:"privacy_policy_url,omitempty"` - // Security owner ID - SecurityOwnerID *gid.GID `json:"security_owner_id,omitempty"` - // Security page URL - SecurityPageURL *string `json:"security_page_url,omitempty"` - // Service level agreement URL - ServiceLevelAgreementURL *string `json:"service_level_agreement_url,omitempty"` - // Status page URL - StatusPageURL *string `json:"status_page_url,omitempty"` - // Subprocessors list URL - SubprocessorsListURL *string `json:"subprocessors_list_url,omitempty"` - // Terms of service URL - TermsOfServiceURL *string `json:"terms_of_service_url,omitempty"` - // Trust page URL - TrustPageURL *string `json:"trust_page_url,omitempty"` - // Website URL - WebsiteURL *string `json:"website_url,omitempty"` -} - -// UpdateVendorOutput represents the schema -type UpdateVendorOutput struct { - Vendor *Vendor `json:"vendor"` -} - -// Vendor represents the schema -type Vendor struct { - // Business associate agreement URL - BusinessAssociateAgreementURL *string `json:"business_associate_agreement_url,omitempty"` - // Business owner ID - BusinessOwnerID *gid.GID `json:"business_owner_id,omitempty"` - // Vendor category - Category VendorCategory `json:"category"` - // Certifications - Certifications []string `json:"certifications,omitempty"` - // Countries (ISO 3166-1 alpha-2 country codes) - Countries []string `json:"countries,omitempty"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Data processing agreement URL - DataProcessingAgreementURL *string `json:"data_processing_agreement_url,omitempty"` - // Vendor description - Description *string `json:"description,omitempty"` - // Headquarter address - HeadquarterAddress *string `json:"headquarter_address,omitempty"` - // Vendor ID - ID gid.GID `json:"id"` - // Legal name - LegalName *string `json:"legal_name,omitempty"` - // Vendor name - Name string `json:"name"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Privacy policy URL - PrivacyPolicyURL *string `json:"privacy_policy_url,omitempty"` - // Security owner ID - SecurityOwnerID *gid.GID `json:"security_owner_id,omitempty"` - // Security page URL - SecurityPageURL *string `json:"security_page_url,omitempty"` - // Service level agreement URL - ServiceLevelAgreementURL *string `json:"service_level_agreement_url,omitempty"` - // Status page URL - StatusPageURL *string `json:"status_page_url,omitempty"` - // Subprocessors list URL - SubprocessorsListURL *string `json:"subprocessors_list_url,omitempty"` - // Terms of service URL - TermsOfServiceURL *string `json:"terms_of_service_url,omitempty"` - // Trust page URL - TrustPageURL *string `json:"trust_page_url,omitempty"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` - // Website URL - WebsiteURL *string `json:"website_url,omitempty"` -} - -// VendorOrderBy represents the schema -type VendorOrderBy struct { - // Vendor order direction - Direction page.OrderDirection `json:"direction"` - // Vendor order field - Field coredata.VendorOrderField `json:"field"` -} - -// VendorRiskAssessment represents the schema -type VendorRiskAssessment struct { - // Business impact level - BusinessImpact coredata.BusinessImpact `json:"business_impact"` - // Creation timestamp - CreatedAt time.Time `json:"created_at"` - // Data sensitivity level - DataSensitivity coredata.DataSensitivity `json:"data_sensitivity"` - // Expiration timestamp - ExpiresAt time.Time `json:"expires_at"` - // Vendor risk assessment ID - ID gid.GID `json:"id"` - // Notes - Notes *string `json:"notes,omitempty"` - // Organization ID - OrganizationID gid.GID `json:"organization_id"` - // Snapshot ID - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` - // Update timestamp - UpdatedAt time.Time `json:"updated_at"` - // Vendor ID - VendorID gid.GID `json:"vendor_id"` -} - -// VendorRiskAssessmentOrderBy represents the schema -type VendorRiskAssessmentOrderBy struct { - // Vendor risk assessment order direction - Direction page.OrderDirection `json:"direction"` - // Vendor risk assessment order field - Field coredata.VendorRiskAssessmentOrderField `json:"field"` -} - -// ListAssetsInputFilter represents the schema -type ListAssetsInputFilter struct { - // Filter by snapshot ID. Defaults to null, which returns only assets with no snapshot (current live data). Pass a specific snapshot ID to retrieve assets as they were at that snapshot. - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` -} - -// ListContinualImprovementsInputFilter represents the schema -type ListContinualImprovementsInputFilter struct { - // Filter by snapshot ID. Defaults to null, which returns only continual improvements with no snapshot (current live data). Pass a specific snapshot ID to retrieve continual improvements as they were at that snapshot. - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` -} - -// ListControlsInputFilter represents the schema -type ListControlsInputFilter struct { - // Search query - Query *string `json:"query,omitempty"` -} - -// ListDataInputFilter represents the schema -type ListDataInputFilter struct { - // Filter by snapshot ID. Defaults to null, which returns only data with no snapshot (current live data). Pass a specific snapshot ID to retrieve data as it was at that snapshot. - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` -} - -// ListDataProtectionImpactAssessmentsInputFilter represents the schema -type ListDataProtectionImpactAssessmentsInputFilter struct { - // Filter by snapshot ID. Defaults to null, which returns only DPIAs with no snapshot (current live data). Pass a specific snapshot ID to retrieve DPIAs as they were at that snapshot. - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` -} - -// ListDocumentVersionSignaturesInputFilter represents the schema -type ListDocumentVersionSignaturesInputFilter struct { - // Signatory contract status - ActiveContract *bool `json:"active_contract,omitempty"` - // Signature states - States []coredata.DocumentVersionSignatureState `json:"states,omitempty"` -} - -// ListDocumentsInputFilter represents the schema -type ListDocumentsInputFilter struct { - // Search query - Query *string `json:"query,omitempty"` - // Trust center visibilities - TrustCenterVisibilities []coredata.TrustCenterVisibility `json:"trust_center_visibilities,omitempty"` -} - -// ListMeasuresInputFilter represents the schema -type ListMeasuresInputFilter struct { - // Search query - Query *string `json:"query,omitempty"` - // Measure state filter - State *coredata.MeasureState `json:"state,omitempty"` -} - -// ListNonconformitiesInputFilter represents the schema -type ListNonconformitiesInputFilter struct { - // Filter by snapshot ID. Defaults to null, which returns only nonconformities with no snapshot (current live data). Pass a specific snapshot ID to retrieve nonconformities as they were at that snapshot. - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` -} - -// ListObligationsInputFilter represents the schema -type ListObligationsInputFilter struct { - // Filter by snapshot ID. Defaults to null, which returns only obligations with no snapshot (current live data). Pass a specific snapshot ID to retrieve obligations as they were at that snapshot. - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` -} - -// ListProcessingActivitiesInputFilter represents the schema -type ListProcessingActivitiesInputFilter struct { - // Filter by snapshot ID. Defaults to null, which returns only processing activities with no snapshot (current live data). Pass a specific snapshot ID to retrieve processing activities as they were at that snapshot. - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` -} - -// ListRisksInputFilter represents the schema -type ListRisksInputFilter struct { - // Search query - Query *string `json:"query,omitempty"` - // Filter by snapshot ID. Defaults to null, which returns only risks with no snapshot (current live data). Pass a specific snapshot ID to retrieve risks as they were at that snapshot. - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` -} - -// ListTransferImpactAssessmentsInputFilter represents the schema -type ListTransferImpactAssessmentsInputFilter struct { - // Filter by snapshot ID. Defaults to null, which returns only TIAs with no snapshot (current live data). Pass a specific snapshot ID to retrieve TIAs as they were at that snapshot. - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` -} - -// ListUsersInputFilter represents the schema -type ListUsersInputFilter struct { - // Exclude users with ended contracts - ExcludeContractEnded *bool `json:"exclude_contract_ended,omitempty"` -} - -// ListVendorsInputFilter represents the schema -type ListVendorsInputFilter struct { - // Filter by snapshot ID. Defaults to null, which returns only vendors with no snapshot (current live data). Pass a specific snapshot ID to retrieve vendors as they were at that snapshot. - SnapshotID *gid.GID `json:"snapshot_id,omitempty"` -} diff --git a/pkg/server/api/trust/v1/schema/.gitignore b/pkg/server/api/trust/v1/schema/.gitignore new file mode 100644 index 000000000..4103f224a --- /dev/null +++ b/pkg/server/api/trust/v1/schema/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!doc.go diff --git a/pkg/server/api/trust/v1/schema/doc.go b/pkg/server/api/trust/v1/schema/doc.go new file mode 100644 index 000000000..fe679e842 --- /dev/null +++ b/pkg/server/api/trust/v1/schema/doc.go @@ -0,0 +1,17 @@ +// Copyright (c) 2025 Probo Inc . +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +// PERFORMANCE OF THIS SOFTWARE. + +// Package schema contains the generated GraphQL executable schema for the +// Trust API. +package schema diff --git a/pkg/server/api/trust/v1/schema/schema.go b/pkg/server/api/trust/v1/schema/schema.go deleted file mode 100644 index 98bc37586..000000000 --- a/pkg/server/api/trust/v1/schema/schema.go +++ /dev/null @@ -1,17177 +0,0 @@ -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package schema - -import ( - "bytes" - "context" - "errors" - "fmt" - "strconv" - "sync/atomic" - "time" - - "github.com/99designs/gqlgen/graphql" - "github.com/99designs/gqlgen/graphql/introspection" - gqlparser "github.com/vektah/gqlparser/v2" - "github.com/vektah/gqlparser/v2/ast" - "go.probo.inc/probo/pkg/coredata" - "go.probo.inc/probo/pkg/gid" - "go.probo.inc/probo/pkg/mail" - "go.probo.inc/probo/pkg/page" - "go.probo.inc/probo/pkg/server/api/trust/v1/types" - "go.probo.inc/probo/pkg/server/gqlutils/directives/session" - "go.probo.inc/probo/pkg/server/gqlutils/types/cursor" - gid1 "go.probo.inc/probo/pkg/server/gqlutils/types/gid" - mail1 "go.probo.inc/probo/pkg/server/gqlutils/types/mail" -) - -// region ************************** generated!.gotpl ************************** - -// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. -func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { - return &executableSchema{SchemaData: cfg.Schema, Resolvers: cfg.Resolvers, Directives: cfg.Directives, ComplexityRoot: cfg.Complexity} -} - -type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot] - -type ResolverRoot interface { - Audit() AuditResolver - ComplianceFramework() ComplianceFrameworkResolver - Document() DocumentResolver - Framework() FrameworkResolver - Mutation() MutationResolver - NonDisclosureAgreement() NonDisclosureAgreementResolver - Organization() OrganizationResolver - Query() QueryResolver - Report() ReportResolver - TrustCenter() TrustCenterResolver - TrustCenterFile() TrustCenterFileResolver - TrustCenterReference() TrustCenterReferenceResolver - VendorConnection() VendorConnectionResolver -} - -type DirectiveRoot struct { - Nda func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) - Session func(ctx context.Context, obj any, next graphql.Resolver, required session.SessionRequirement) (res any, err error) -} - -type ComplexityRoot struct { - AcceptElectronicSignaturePayload struct { - Signature func(childComplexity int) int - } - - Audit struct { - Framework func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Report func(childComplexity int) int - } - - AuditConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - AuditEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ComplianceExternalURL struct { - ID func(childComplexity int) int - Name func(childComplexity int) int - Rank func(childComplexity int) int - URL func(childComplexity int) int - } - - ComplianceExternalURLConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - ComplianceExternalURLEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ComplianceFramework struct { - Framework func(childComplexity int) int - ID func(childComplexity int) int - } - - ComplianceFrameworkConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - ComplianceFrameworkEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Document struct { - Access func(childComplexity int) int - DocumentType func(childComplexity int) int - ID func(childComplexity int) int - IsUserAuthorized func(childComplexity int) int - Title func(childComplexity int) int - } - - DocumentAccess struct { - ID func(childComplexity int) int - Status func(childComplexity int) int - } - - DocumentConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - DocumentEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ElectronicSignature struct { - ConsentText func(childComplexity int) int - CreatedAt func(childComplexity int) int - DocumentType func(childComplexity int) int - ID func(childComplexity int) int - LastError func(childComplexity int) int - SignedAt func(childComplexity int) int - Status func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - ExportDocumentPDFPayload struct { - Data func(childComplexity int) int - } - - ExportReportPDFPayload struct { - Data func(childComplexity int) int - } - - ExportTrustCenterFilePayload struct { - Data func(childComplexity int) int - } - - Framework struct { - DarkLogoURL func(childComplexity int) int - ID func(childComplexity int) int - LightLogoURL func(childComplexity int) int - Name func(childComplexity int) int - } - - Identity struct { - CreatedAt func(childComplexity int) int - Email func(childComplexity int) int - EmailVerified func(childComplexity int) int - FullName func(childComplexity int) int - ID func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - MailingListSubscriber struct { - CreatedAt func(childComplexity int) int - Email func(childComplexity int) int - FullName func(childComplexity int) int - ID func(childComplexity int) int - Status func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - MailingListUpdate struct { - Body func(childComplexity int) int - ID func(childComplexity int) int - Title func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - MailingListUpdateConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - MailingListUpdateEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - Mutation struct { - AcceptElectronicSignature func(childComplexity int, input types.AcceptElectronicSignatureInput) int - ExportDocumentPDF func(childComplexity int, input types.ExportDocumentPDFInput) int - ExportReportPDF func(childComplexity int, input types.ExportReportPDFInput) int - ExportTrustCenterFile func(childComplexity int, input types.ExportTrustCenterFileInput) int - RecordSigningEvent func(childComplexity int, input types.RecordSigningEventInput) int - RequestAllAccesses func(childComplexity int) int - RequestDocumentAccess func(childComplexity int, input types.RequestDocumentAccessInput) int - RequestReportAccess func(childComplexity int, input types.RequestReportAccessInput) int - RequestTrustCenterFileAccess func(childComplexity int, input types.RequestTrustCenterFileAccessInput) int - SendMagicLink func(childComplexity int, input types.SendMagicLinkInput) int - SubscribeToMailingList func(childComplexity int) int - UnsubscribeFromMailingList func(childComplexity int) int - UpdateFullName func(childComplexity int, input types.UpdateFullNameInput) int - VerifyMagicLink func(childComplexity int, input types.VerifyMagicLinkInput) int - } - - NonDisclosureAgreement struct { - FileName func(childComplexity int) int - FileURL func(childComplexity int) int - ViewerSignature func(childComplexity int) int - } - - Organization struct { - Description func(childComplexity int) int - Email func(childComplexity int) int - HeadquarterAddress func(childComplexity int) int - ID func(childComplexity int) int - LogoURL func(childComplexity int) int - Name func(childComplexity int) int - WebsiteURL func(childComplexity int) int - } - - PageInfo struct { - EndCursor func(childComplexity int) int - HasNextPage func(childComplexity int) int - HasPreviousPage func(childComplexity int) int - StartCursor func(childComplexity int) int - } - - Query struct { - CurrentTrustCenter func(childComplexity int) int - Node func(childComplexity int, id gid.GID) int - Viewer func(childComplexity int) int - } - - RecordSigningEventPayload struct { - Success func(childComplexity int) int - } - - Report struct { - Access func(childComplexity int) int - Filename func(childComplexity int) int - ID func(childComplexity int) int - IsUserAuthorized func(childComplexity int) int - } - - RequestAccessesPayload struct { - TrustCenterAccess func(childComplexity int) int - } - - RequestDocumentAccessPayload struct { - Document func(childComplexity int) int - } - - RequestFileAccessPayload struct { - File func(childComplexity int) int - } - - RequestReportAccessPayload struct { - Audit func(childComplexity int) int - } - - SendMagicLinkPayload struct { - Success func(childComplexity int) int - } - - SubscribeToMailingListPayload struct { - Subscription func(childComplexity int) int - } - - TrustCenter struct { - Active func(childComplexity int) int - Audits func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - ComplianceFrameworks func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - DarkLogoFileURL func(childComplexity int) int - Documents func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - ExternalUrls func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - ID func(childComplexity int) int - LogoFileURL func(childComplexity int) int - NonDisclosureAgreement func(childComplexity int) int - Organization func(childComplexity int) int - References func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - Slug func(childComplexity int) int - TrustCenterFiles func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - Updates func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - Vendors func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int - ViewerSubscription func(childComplexity int) int - } - - TrustCenterAccess struct { - CreatedAt func(childComplexity int) int - Email func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - UpdatedAt func(childComplexity int) int - } - - TrustCenterFile struct { - Access func(childComplexity int) int - Category func(childComplexity int) int - ID func(childComplexity int) int - IsUserAuthorized func(childComplexity int) int - Name func(childComplexity int) int - } - - TrustCenterFileConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - TrustCenterFileEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - TrustCenterReference struct { - Description func(childComplexity int) int - ID func(childComplexity int) int - LogoURL func(childComplexity int) int - Name func(childComplexity int) int - WebsiteURL func(childComplexity int) int - } - - TrustCenterReferenceConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - } - - TrustCenterReferenceEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - UnsubscribeFromMailingListPayload struct { - DeletedMailingListSubscriberID func(childComplexity int) int - } - - UpdateFullNamePayload struct { - Success func(childComplexity int) int - } - - Vendor struct { - Category func(childComplexity int) int - Countries func(childComplexity int) int - Description func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - PrivacyPolicyURL func(childComplexity int) int - WebsiteURL func(childComplexity int) int - } - - VendorConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - VendorEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - VerifyMagicLinkPayload struct { - Continue func(childComplexity int) int - } -} - -type AuditResolver interface { - Framework(ctx context.Context, obj *types.Audit) (*types.Framework, error) - Report(ctx context.Context, obj *types.Audit) (*types.Report, error) -} -type ComplianceFrameworkResolver interface { - Framework(ctx context.Context, obj *types.ComplianceFramework) (*types.Framework, error) -} -type DocumentResolver interface { - IsUserAuthorized(ctx context.Context, obj *types.Document) (bool, error) - Access(ctx context.Context, obj *types.Document) (*types.DocumentAccess, error) -} -type FrameworkResolver interface { - LightLogoURL(ctx context.Context, obj *types.Framework) (*string, error) - DarkLogoURL(ctx context.Context, obj *types.Framework) (*string, error) -} -type MutationResolver interface { - SendMagicLink(ctx context.Context, input types.SendMagicLinkInput) (*types.SendMagicLinkPayload, error) - VerifyMagicLink(ctx context.Context, input types.VerifyMagicLinkInput) (*types.VerifyMagicLinkPayload, error) - UpdateFullName(ctx context.Context, input types.UpdateFullNameInput) (*types.UpdateFullNamePayload, error) - RequestAllAccesses(ctx context.Context) (*types.RequestAccessesPayload, error) - ExportDocumentPDF(ctx context.Context, input types.ExportDocumentPDFInput) (*types.ExportDocumentPDFPayload, error) - ExportReportPDF(ctx context.Context, input types.ExportReportPDFInput) (*types.ExportReportPDFPayload, error) - ExportTrustCenterFile(ctx context.Context, input types.ExportTrustCenterFileInput) (*types.ExportTrustCenterFilePayload, error) - RequestDocumentAccess(ctx context.Context, input types.RequestDocumentAccessInput) (*types.RequestDocumentAccessPayload, error) - RequestReportAccess(ctx context.Context, input types.RequestReportAccessInput) (*types.RequestReportAccessPayload, error) - RequestTrustCenterFileAccess(ctx context.Context, input types.RequestTrustCenterFileAccessInput) (*types.RequestFileAccessPayload, error) - AcceptElectronicSignature(ctx context.Context, input types.AcceptElectronicSignatureInput) (*types.AcceptElectronicSignaturePayload, error) - RecordSigningEvent(ctx context.Context, input types.RecordSigningEventInput) (*types.RecordSigningEventPayload, error) - SubscribeToMailingList(ctx context.Context) (*types.SubscribeToMailingListPayload, error) - UnsubscribeFromMailingList(ctx context.Context) (*types.UnsubscribeFromMailingListPayload, error) -} -type NonDisclosureAgreementResolver interface { - FileURL(ctx context.Context, obj *types.NonDisclosureAgreement) (string, error) - ViewerSignature(ctx context.Context, obj *types.NonDisclosureAgreement) (*types.ElectronicSignature, error) -} -type OrganizationResolver interface { - LogoURL(ctx context.Context, obj *types.Organization) (*string, error) -} -type QueryResolver interface { - Viewer(ctx context.Context) (*types.Identity, error) - Node(ctx context.Context, id gid.GID) (types.Node, error) - CurrentTrustCenter(ctx context.Context) (*types.TrustCenter, error) -} -type ReportResolver interface { - IsUserAuthorized(ctx context.Context, obj *types.Report) (bool, error) - Access(ctx context.Context, obj *types.Report) (*types.DocumentAccess, error) -} -type TrustCenterResolver interface { - LogoFileURL(ctx context.Context, obj *types.TrustCenter) (*string, error) - DarkLogoFileURL(ctx context.Context, obj *types.TrustCenter) (*string, error) - NonDisclosureAgreement(ctx context.Context, obj *types.TrustCenter) (*types.NonDisclosureAgreement, error) - ViewerSubscription(ctx context.Context, obj *types.TrustCenter) (*types.MailingListSubscriber, error) - Organization(ctx context.Context, obj *types.TrustCenter) (*types.Organization, error) - Documents(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.DocumentConnection, error) - Audits(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.AuditConnection, error) - Vendors(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.VendorConnection, error) - References(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.TrustCenterReferenceConnection, error) - TrustCenterFiles(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.TrustCenterFileConnection, error) - ComplianceFrameworks(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.ComplianceFrameworkConnection, error) - ExternalUrls(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.ComplianceExternalURLConnection, error) - Updates(ctx context.Context, obj *types.TrustCenter, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.MailingListUpdateConnection, error) -} -type TrustCenterFileResolver interface { - IsUserAuthorized(ctx context.Context, obj *types.TrustCenterFile) (bool, error) - Access(ctx context.Context, obj *types.TrustCenterFile) (*types.DocumentAccess, error) -} -type TrustCenterReferenceResolver interface { - LogoURL(ctx context.Context, obj *types.TrustCenterReference) (string, error) -} -type VendorConnectionResolver interface { - TotalCount(ctx context.Context, obj *types.VendorConnection) (int, error) -} - -type executableSchema graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot] - -func (e *executableSchema) Schema() *ast.Schema { - if e.SchemaData != nil { - return e.SchemaData - } - return parsedSchema -} - -func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) { - ec := newExecutionContext(nil, e, nil) - _ = ec - switch typeName + "." + field { - - case "AcceptElectronicSignaturePayload.signature": - if e.ComplexityRoot.AcceptElectronicSignaturePayload.Signature == nil { - break - } - - return e.ComplexityRoot.AcceptElectronicSignaturePayload.Signature(childComplexity), true - - case "Audit.framework": - if e.ComplexityRoot.Audit.Framework == nil { - break - } - - return e.ComplexityRoot.Audit.Framework(childComplexity), true - case "Audit.id": - if e.ComplexityRoot.Audit.ID == nil { - break - } - - return e.ComplexityRoot.Audit.ID(childComplexity), true - case "Audit.name": - if e.ComplexityRoot.Audit.Name == nil { - break - } - - return e.ComplexityRoot.Audit.Name(childComplexity), true - case "Audit.report": - if e.ComplexityRoot.Audit.Report == nil { - break - } - - return e.ComplexityRoot.Audit.Report(childComplexity), true - - case "AuditConnection.edges": - if e.ComplexityRoot.AuditConnection.Edges == nil { - break - } - - return e.ComplexityRoot.AuditConnection.Edges(childComplexity), true - case "AuditConnection.pageInfo": - if e.ComplexityRoot.AuditConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.AuditConnection.PageInfo(childComplexity), true - - case "AuditEdge.cursor": - if e.ComplexityRoot.AuditEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.AuditEdge.Cursor(childComplexity), true - case "AuditEdge.node": - if e.ComplexityRoot.AuditEdge.Node == nil { - break - } - - return e.ComplexityRoot.AuditEdge.Node(childComplexity), true - - case "ComplianceExternalURL.id": - if e.ComplexityRoot.ComplianceExternalURL.ID == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURL.ID(childComplexity), true - case "ComplianceExternalURL.name": - if e.ComplexityRoot.ComplianceExternalURL.Name == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURL.Name(childComplexity), true - case "ComplianceExternalURL.rank": - if e.ComplexityRoot.ComplianceExternalURL.Rank == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURL.Rank(childComplexity), true - case "ComplianceExternalURL.url": - if e.ComplexityRoot.ComplianceExternalURL.URL == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURL.URL(childComplexity), true - - case "ComplianceExternalURLConnection.edges": - if e.ComplexityRoot.ComplianceExternalURLConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURLConnection.Edges(childComplexity), true - case "ComplianceExternalURLConnection.pageInfo": - if e.ComplexityRoot.ComplianceExternalURLConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURLConnection.PageInfo(childComplexity), true - - case "ComplianceExternalURLEdge.cursor": - if e.ComplexityRoot.ComplianceExternalURLEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURLEdge.Cursor(childComplexity), true - case "ComplianceExternalURLEdge.node": - if e.ComplexityRoot.ComplianceExternalURLEdge.Node == nil { - break - } - - return e.ComplexityRoot.ComplianceExternalURLEdge.Node(childComplexity), true - - case "ComplianceFramework.framework": - if e.ComplexityRoot.ComplianceFramework.Framework == nil { - break - } - - return e.ComplexityRoot.ComplianceFramework.Framework(childComplexity), true - case "ComplianceFramework.id": - if e.ComplexityRoot.ComplianceFramework.ID == nil { - break - } - - return e.ComplexityRoot.ComplianceFramework.ID(childComplexity), true - - case "ComplianceFrameworkConnection.edges": - if e.ComplexityRoot.ComplianceFrameworkConnection.Edges == nil { - break - } - - return e.ComplexityRoot.ComplianceFrameworkConnection.Edges(childComplexity), true - case "ComplianceFrameworkConnection.pageInfo": - if e.ComplexityRoot.ComplianceFrameworkConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.ComplianceFrameworkConnection.PageInfo(childComplexity), true - - case "ComplianceFrameworkEdge.cursor": - if e.ComplexityRoot.ComplianceFrameworkEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.ComplianceFrameworkEdge.Cursor(childComplexity), true - case "ComplianceFrameworkEdge.node": - if e.ComplexityRoot.ComplianceFrameworkEdge.Node == nil { - break - } - - return e.ComplexityRoot.ComplianceFrameworkEdge.Node(childComplexity), true - - case "Document.access": - if e.ComplexityRoot.Document.Access == nil { - break - } - - return e.ComplexityRoot.Document.Access(childComplexity), true - case "Document.documentType": - if e.ComplexityRoot.Document.DocumentType == nil { - break - } - - return e.ComplexityRoot.Document.DocumentType(childComplexity), true - case "Document.id": - if e.ComplexityRoot.Document.ID == nil { - break - } - - return e.ComplexityRoot.Document.ID(childComplexity), true - case "Document.isUserAuthorized": - if e.ComplexityRoot.Document.IsUserAuthorized == nil { - break - } - - return e.ComplexityRoot.Document.IsUserAuthorized(childComplexity), true - case "Document.title": - if e.ComplexityRoot.Document.Title == nil { - break - } - - return e.ComplexityRoot.Document.Title(childComplexity), true - - case "DocumentAccess.id": - if e.ComplexityRoot.DocumentAccess.ID == nil { - break - } - - return e.ComplexityRoot.DocumentAccess.ID(childComplexity), true - case "DocumentAccess.status": - if e.ComplexityRoot.DocumentAccess.Status == nil { - break - } - - return e.ComplexityRoot.DocumentAccess.Status(childComplexity), true - - case "DocumentConnection.edges": - if e.ComplexityRoot.DocumentConnection.Edges == nil { - break - } - - return e.ComplexityRoot.DocumentConnection.Edges(childComplexity), true - case "DocumentConnection.pageInfo": - if e.ComplexityRoot.DocumentConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.DocumentConnection.PageInfo(childComplexity), true - - case "DocumentEdge.cursor": - if e.ComplexityRoot.DocumentEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.DocumentEdge.Cursor(childComplexity), true - case "DocumentEdge.node": - if e.ComplexityRoot.DocumentEdge.Node == nil { - break - } - - return e.ComplexityRoot.DocumentEdge.Node(childComplexity), true - - case "ElectronicSignature.consentText": - if e.ComplexityRoot.ElectronicSignature.ConsentText == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.ConsentText(childComplexity), true - case "ElectronicSignature.createdAt": - if e.ComplexityRoot.ElectronicSignature.CreatedAt == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.CreatedAt(childComplexity), true - case "ElectronicSignature.documentType": - if e.ComplexityRoot.ElectronicSignature.DocumentType == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.DocumentType(childComplexity), true - case "ElectronicSignature.id": - if e.ComplexityRoot.ElectronicSignature.ID == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.ID(childComplexity), true - case "ElectronicSignature.lastError": - if e.ComplexityRoot.ElectronicSignature.LastError == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.LastError(childComplexity), true - case "ElectronicSignature.signedAt": - if e.ComplexityRoot.ElectronicSignature.SignedAt == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.SignedAt(childComplexity), true - case "ElectronicSignature.status": - if e.ComplexityRoot.ElectronicSignature.Status == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.Status(childComplexity), true - case "ElectronicSignature.updatedAt": - if e.ComplexityRoot.ElectronicSignature.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.ElectronicSignature.UpdatedAt(childComplexity), true - - case "ExportDocumentPDFPayload.data": - if e.ComplexityRoot.ExportDocumentPDFPayload.Data == nil { - break - } - - return e.ComplexityRoot.ExportDocumentPDFPayload.Data(childComplexity), true - - case "ExportReportPDFPayload.data": - if e.ComplexityRoot.ExportReportPDFPayload.Data == nil { - break - } - - return e.ComplexityRoot.ExportReportPDFPayload.Data(childComplexity), true - - case "ExportTrustCenterFilePayload.data": - if e.ComplexityRoot.ExportTrustCenterFilePayload.Data == nil { - break - } - - return e.ComplexityRoot.ExportTrustCenterFilePayload.Data(childComplexity), true - - case "Framework.darkLogoURL": - if e.ComplexityRoot.Framework.DarkLogoURL == nil { - break - } - - return e.ComplexityRoot.Framework.DarkLogoURL(childComplexity), true - case "Framework.id": - if e.ComplexityRoot.Framework.ID == nil { - break - } - - return e.ComplexityRoot.Framework.ID(childComplexity), true - case "Framework.lightLogoURL": - if e.ComplexityRoot.Framework.LightLogoURL == nil { - break - } - - return e.ComplexityRoot.Framework.LightLogoURL(childComplexity), true - case "Framework.name": - if e.ComplexityRoot.Framework.Name == nil { - break - } - - return e.ComplexityRoot.Framework.Name(childComplexity), true - - case "Identity.createdAt": - if e.ComplexityRoot.Identity.CreatedAt == nil { - break - } - - return e.ComplexityRoot.Identity.CreatedAt(childComplexity), true - case "Identity.email": - if e.ComplexityRoot.Identity.Email == nil { - break - } - - return e.ComplexityRoot.Identity.Email(childComplexity), true - case "Identity.emailVerified": - if e.ComplexityRoot.Identity.EmailVerified == nil { - break - } - - return e.ComplexityRoot.Identity.EmailVerified(childComplexity), true - case "Identity.fullName": - if e.ComplexityRoot.Identity.FullName == nil { - break - } - - return e.ComplexityRoot.Identity.FullName(childComplexity), true - case "Identity.id": - if e.ComplexityRoot.Identity.ID == nil { - break - } - - return e.ComplexityRoot.Identity.ID(childComplexity), true - case "Identity.updatedAt": - if e.ComplexityRoot.Identity.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.Identity.UpdatedAt(childComplexity), true - - case "MailingListSubscriber.createdAt": - if e.ComplexityRoot.MailingListSubscriber.CreatedAt == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.CreatedAt(childComplexity), true - case "MailingListSubscriber.email": - if e.ComplexityRoot.MailingListSubscriber.Email == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.Email(childComplexity), true - case "MailingListSubscriber.fullName": - if e.ComplexityRoot.MailingListSubscriber.FullName == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.FullName(childComplexity), true - case "MailingListSubscriber.id": - if e.ComplexityRoot.MailingListSubscriber.ID == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.ID(childComplexity), true - case "MailingListSubscriber.status": - if e.ComplexityRoot.MailingListSubscriber.Status == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.Status(childComplexity), true - case "MailingListSubscriber.updatedAt": - if e.ComplexityRoot.MailingListSubscriber.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.MailingListSubscriber.UpdatedAt(childComplexity), true - - case "MailingListUpdate.body": - if e.ComplexityRoot.MailingListUpdate.Body == nil { - break - } - - return e.ComplexityRoot.MailingListUpdate.Body(childComplexity), true - case "MailingListUpdate.id": - if e.ComplexityRoot.MailingListUpdate.ID == nil { - break - } - - return e.ComplexityRoot.MailingListUpdate.ID(childComplexity), true - case "MailingListUpdate.title": - if e.ComplexityRoot.MailingListUpdate.Title == nil { - break - } - - return e.ComplexityRoot.MailingListUpdate.Title(childComplexity), true - case "MailingListUpdate.updatedAt": - if e.ComplexityRoot.MailingListUpdate.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.MailingListUpdate.UpdatedAt(childComplexity), true - - case "MailingListUpdateConnection.edges": - if e.ComplexityRoot.MailingListUpdateConnection.Edges == nil { - break - } - - return e.ComplexityRoot.MailingListUpdateConnection.Edges(childComplexity), true - case "MailingListUpdateConnection.pageInfo": - if e.ComplexityRoot.MailingListUpdateConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.MailingListUpdateConnection.PageInfo(childComplexity), true - - case "MailingListUpdateEdge.cursor": - if e.ComplexityRoot.MailingListUpdateEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.MailingListUpdateEdge.Cursor(childComplexity), true - case "MailingListUpdateEdge.node": - if e.ComplexityRoot.MailingListUpdateEdge.Node == nil { - break - } - - return e.ComplexityRoot.MailingListUpdateEdge.Node(childComplexity), true - - case "Mutation.acceptElectronicSignature": - if e.ComplexityRoot.Mutation.AcceptElectronicSignature == nil { - break - } - - args, err := ec.field_Mutation_acceptElectronicSignature_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.AcceptElectronicSignature(childComplexity, args["input"].(types.AcceptElectronicSignatureInput)), true - case "Mutation.exportDocumentPDF": - if e.ComplexityRoot.Mutation.ExportDocumentPDF == nil { - break - } - - args, err := ec.field_Mutation_exportDocumentPDF_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ExportDocumentPDF(childComplexity, args["input"].(types.ExportDocumentPDFInput)), true - case "Mutation.exportReportPDF": - if e.ComplexityRoot.Mutation.ExportReportPDF == nil { - break - } - - args, err := ec.field_Mutation_exportReportPDF_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ExportReportPDF(childComplexity, args["input"].(types.ExportReportPDFInput)), true - case "Mutation.exportTrustCenterFile": - if e.ComplexityRoot.Mutation.ExportTrustCenterFile == nil { - break - } - - args, err := ec.field_Mutation_exportTrustCenterFile_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.ExportTrustCenterFile(childComplexity, args["input"].(types.ExportTrustCenterFileInput)), true - case "Mutation.recordSigningEvent": - if e.ComplexityRoot.Mutation.RecordSigningEvent == nil { - break - } - - args, err := ec.field_Mutation_recordSigningEvent_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.RecordSigningEvent(childComplexity, args["input"].(types.RecordSigningEventInput)), true - case "Mutation.requestAllAccesses": - if e.ComplexityRoot.Mutation.RequestAllAccesses == nil { - break - } - - return e.ComplexityRoot.Mutation.RequestAllAccesses(childComplexity), true - case "Mutation.requestDocumentAccess": - if e.ComplexityRoot.Mutation.RequestDocumentAccess == nil { - break - } - - args, err := ec.field_Mutation_requestDocumentAccess_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.RequestDocumentAccess(childComplexity, args["input"].(types.RequestDocumentAccessInput)), true - case "Mutation.requestReportAccess": - if e.ComplexityRoot.Mutation.RequestReportAccess == nil { - break - } - - args, err := ec.field_Mutation_requestReportAccess_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.RequestReportAccess(childComplexity, args["input"].(types.RequestReportAccessInput)), true - case "Mutation.requestTrustCenterFileAccess": - if e.ComplexityRoot.Mutation.RequestTrustCenterFileAccess == nil { - break - } - - args, err := ec.field_Mutation_requestTrustCenterFileAccess_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.RequestTrustCenterFileAccess(childComplexity, args["input"].(types.RequestTrustCenterFileAccessInput)), true - case "Mutation.sendMagicLink": - if e.ComplexityRoot.Mutation.SendMagicLink == nil { - break - } - - args, err := ec.field_Mutation_sendMagicLink_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.SendMagicLink(childComplexity, args["input"].(types.SendMagicLinkInput)), true - case "Mutation.subscribeToMailingList": - if e.ComplexityRoot.Mutation.SubscribeToMailingList == nil { - break - } - - return e.ComplexityRoot.Mutation.SubscribeToMailingList(childComplexity), true - case "Mutation.unsubscribeFromMailingList": - if e.ComplexityRoot.Mutation.UnsubscribeFromMailingList == nil { - break - } - - return e.ComplexityRoot.Mutation.UnsubscribeFromMailingList(childComplexity), true - case "Mutation.updateFullName": - if e.ComplexityRoot.Mutation.UpdateFullName == nil { - break - } - - args, err := ec.field_Mutation_updateFullName_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.UpdateFullName(childComplexity, args["input"].(types.UpdateFullNameInput)), true - case "Mutation.verifyMagicLink": - if e.ComplexityRoot.Mutation.VerifyMagicLink == nil { - break - } - - args, err := ec.field_Mutation_verifyMagicLink_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Mutation.VerifyMagicLink(childComplexity, args["input"].(types.VerifyMagicLinkInput)), true - - case "NonDisclosureAgreement.fileName": - if e.ComplexityRoot.NonDisclosureAgreement.FileName == nil { - break - } - - return e.ComplexityRoot.NonDisclosureAgreement.FileName(childComplexity), true - case "NonDisclosureAgreement.fileUrl": - if e.ComplexityRoot.NonDisclosureAgreement.FileURL == nil { - break - } - - return e.ComplexityRoot.NonDisclosureAgreement.FileURL(childComplexity), true - case "NonDisclosureAgreement.viewerSignature": - if e.ComplexityRoot.NonDisclosureAgreement.ViewerSignature == nil { - break - } - - return e.ComplexityRoot.NonDisclosureAgreement.ViewerSignature(childComplexity), true - - case "Organization.description": - if e.ComplexityRoot.Organization.Description == nil { - break - } - - return e.ComplexityRoot.Organization.Description(childComplexity), true - case "Organization.email": - if e.ComplexityRoot.Organization.Email == nil { - break - } - - return e.ComplexityRoot.Organization.Email(childComplexity), true - case "Organization.headquarterAddress": - if e.ComplexityRoot.Organization.HeadquarterAddress == nil { - break - } - - return e.ComplexityRoot.Organization.HeadquarterAddress(childComplexity), true - case "Organization.id": - if e.ComplexityRoot.Organization.ID == nil { - break - } - - return e.ComplexityRoot.Organization.ID(childComplexity), true - case "Organization.logoUrl": - if e.ComplexityRoot.Organization.LogoURL == nil { - break - } - - return e.ComplexityRoot.Organization.LogoURL(childComplexity), true - case "Organization.name": - if e.ComplexityRoot.Organization.Name == nil { - break - } - - return e.ComplexityRoot.Organization.Name(childComplexity), true - case "Organization.websiteUrl": - if e.ComplexityRoot.Organization.WebsiteURL == nil { - break - } - - return e.ComplexityRoot.Organization.WebsiteURL(childComplexity), true - - case "PageInfo.endCursor": - if e.ComplexityRoot.PageInfo.EndCursor == nil { - break - } - - return e.ComplexityRoot.PageInfo.EndCursor(childComplexity), true - case "PageInfo.hasNextPage": - if e.ComplexityRoot.PageInfo.HasNextPage == nil { - break - } - - return e.ComplexityRoot.PageInfo.HasNextPage(childComplexity), true - case "PageInfo.hasPreviousPage": - if e.ComplexityRoot.PageInfo.HasPreviousPage == nil { - break - } - - return e.ComplexityRoot.PageInfo.HasPreviousPage(childComplexity), true - case "PageInfo.startCursor": - if e.ComplexityRoot.PageInfo.StartCursor == nil { - break - } - - return e.ComplexityRoot.PageInfo.StartCursor(childComplexity), true - - case "Query.currentTrustCenter": - if e.ComplexityRoot.Query.CurrentTrustCenter == nil { - break - } - - return e.ComplexityRoot.Query.CurrentTrustCenter(childComplexity), true - - case "Query.node": - if e.ComplexityRoot.Query.Node == nil { - break - } - - args, err := ec.field_Query_node_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.Query.Node(childComplexity, args["id"].(gid.GID)), true - case "Query.viewer": - if e.ComplexityRoot.Query.Viewer == nil { - break - } - - return e.ComplexityRoot.Query.Viewer(childComplexity), true - - case "RecordSigningEventPayload.success": - if e.ComplexityRoot.RecordSigningEventPayload.Success == nil { - break - } - - return e.ComplexityRoot.RecordSigningEventPayload.Success(childComplexity), true - - case "Report.access": - if e.ComplexityRoot.Report.Access == nil { - break - } - - return e.ComplexityRoot.Report.Access(childComplexity), true - case "Report.filename": - if e.ComplexityRoot.Report.Filename == nil { - break - } - - return e.ComplexityRoot.Report.Filename(childComplexity), true - case "Report.id": - if e.ComplexityRoot.Report.ID == nil { - break - } - - return e.ComplexityRoot.Report.ID(childComplexity), true - case "Report.isUserAuthorized": - if e.ComplexityRoot.Report.IsUserAuthorized == nil { - break - } - - return e.ComplexityRoot.Report.IsUserAuthorized(childComplexity), true - - case "RequestAccessesPayload.trustCenterAccess": - if e.ComplexityRoot.RequestAccessesPayload.TrustCenterAccess == nil { - break - } - - return e.ComplexityRoot.RequestAccessesPayload.TrustCenterAccess(childComplexity), true - - case "RequestDocumentAccessPayload.document": - if e.ComplexityRoot.RequestDocumentAccessPayload.Document == nil { - break - } - - return e.ComplexityRoot.RequestDocumentAccessPayload.Document(childComplexity), true - - case "RequestFileAccessPayload.file": - if e.ComplexityRoot.RequestFileAccessPayload.File == nil { - break - } - - return e.ComplexityRoot.RequestFileAccessPayload.File(childComplexity), true - - case "RequestReportAccessPayload.audit": - if e.ComplexityRoot.RequestReportAccessPayload.Audit == nil { - break - } - - return e.ComplexityRoot.RequestReportAccessPayload.Audit(childComplexity), true - - case "SendMagicLinkPayload.success": - if e.ComplexityRoot.SendMagicLinkPayload.Success == nil { - break - } - - return e.ComplexityRoot.SendMagicLinkPayload.Success(childComplexity), true - - case "SubscribeToMailingListPayload.subscription": - if e.ComplexityRoot.SubscribeToMailingListPayload.Subscription == nil { - break - } - - return e.ComplexityRoot.SubscribeToMailingListPayload.Subscription(childComplexity), true - - case "TrustCenter.active": - if e.ComplexityRoot.TrustCenter.Active == nil { - break - } - - return e.ComplexityRoot.TrustCenter.Active(childComplexity), true - case "TrustCenter.audits": - if e.ComplexityRoot.TrustCenter.Audits == nil { - break - } - - args, err := ec.field_TrustCenter_audits_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.Audits(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "TrustCenter.complianceFrameworks": - if e.ComplexityRoot.TrustCenter.ComplianceFrameworks == nil { - break - } - - args, err := ec.field_TrustCenter_complianceFrameworks_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.ComplianceFrameworks(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "TrustCenter.darkLogoFileUrl": - if e.ComplexityRoot.TrustCenter.DarkLogoFileURL == nil { - break - } - - return e.ComplexityRoot.TrustCenter.DarkLogoFileURL(childComplexity), true - case "TrustCenter.documents": - if e.ComplexityRoot.TrustCenter.Documents == nil { - break - } - - args, err := ec.field_TrustCenter_documents_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.Documents(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "TrustCenter.externalUrls": - if e.ComplexityRoot.TrustCenter.ExternalUrls == nil { - break - } - - args, err := ec.field_TrustCenter_externalUrls_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.ExternalUrls(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "TrustCenter.id": - if e.ComplexityRoot.TrustCenter.ID == nil { - break - } - - return e.ComplexityRoot.TrustCenter.ID(childComplexity), true - case "TrustCenter.logoFileUrl": - if e.ComplexityRoot.TrustCenter.LogoFileURL == nil { - break - } - - return e.ComplexityRoot.TrustCenter.LogoFileURL(childComplexity), true - case "TrustCenter.nonDisclosureAgreement": - if e.ComplexityRoot.TrustCenter.NonDisclosureAgreement == nil { - break - } - - return e.ComplexityRoot.TrustCenter.NonDisclosureAgreement(childComplexity), true - case "TrustCenter.organization": - if e.ComplexityRoot.TrustCenter.Organization == nil { - break - } - - return e.ComplexityRoot.TrustCenter.Organization(childComplexity), true - case "TrustCenter.references": - if e.ComplexityRoot.TrustCenter.References == nil { - break - } - - args, err := ec.field_TrustCenter_references_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.References(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "TrustCenter.slug": - if e.ComplexityRoot.TrustCenter.Slug == nil { - break - } - - return e.ComplexityRoot.TrustCenter.Slug(childComplexity), true - case "TrustCenter.trustCenterFiles": - if e.ComplexityRoot.TrustCenter.TrustCenterFiles == nil { - break - } - - args, err := ec.field_TrustCenter_trustCenterFiles_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.TrustCenterFiles(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "TrustCenter.updates": - if e.ComplexityRoot.TrustCenter.Updates == nil { - break - } - - args, err := ec.field_TrustCenter_updates_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.Updates(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "TrustCenter.vendors": - if e.ComplexityRoot.TrustCenter.Vendors == nil { - break - } - - args, err := ec.field_TrustCenter_vendors_args(ctx, rawArgs) - if err != nil { - return 0, false - } - - return e.ComplexityRoot.TrustCenter.Vendors(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true - case "TrustCenter.viewerSubscription": - if e.ComplexityRoot.TrustCenter.ViewerSubscription == nil { - break - } - - return e.ComplexityRoot.TrustCenter.ViewerSubscription(childComplexity), true - - case "TrustCenterAccess.createdAt": - if e.ComplexityRoot.TrustCenterAccess.CreatedAt == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.CreatedAt(childComplexity), true - case "TrustCenterAccess.email": - if e.ComplexityRoot.TrustCenterAccess.Email == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.Email(childComplexity), true - case "TrustCenterAccess.id": - if e.ComplexityRoot.TrustCenterAccess.ID == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.ID(childComplexity), true - case "TrustCenterAccess.name": - if e.ComplexityRoot.TrustCenterAccess.Name == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.Name(childComplexity), true - case "TrustCenterAccess.updatedAt": - if e.ComplexityRoot.TrustCenterAccess.UpdatedAt == nil { - break - } - - return e.ComplexityRoot.TrustCenterAccess.UpdatedAt(childComplexity), true - - case "TrustCenterFile.access": - if e.ComplexityRoot.TrustCenterFile.Access == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.Access(childComplexity), true - case "TrustCenterFile.category": - if e.ComplexityRoot.TrustCenterFile.Category == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.Category(childComplexity), true - case "TrustCenterFile.id": - if e.ComplexityRoot.TrustCenterFile.ID == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.ID(childComplexity), true - case "TrustCenterFile.isUserAuthorized": - if e.ComplexityRoot.TrustCenterFile.IsUserAuthorized == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.IsUserAuthorized(childComplexity), true - case "TrustCenterFile.name": - if e.ComplexityRoot.TrustCenterFile.Name == nil { - break - } - - return e.ComplexityRoot.TrustCenterFile.Name(childComplexity), true - - case "TrustCenterFileConnection.edges": - if e.ComplexityRoot.TrustCenterFileConnection.Edges == nil { - break - } - - return e.ComplexityRoot.TrustCenterFileConnection.Edges(childComplexity), true - case "TrustCenterFileConnection.pageInfo": - if e.ComplexityRoot.TrustCenterFileConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.TrustCenterFileConnection.PageInfo(childComplexity), true - - case "TrustCenterFileEdge.cursor": - if e.ComplexityRoot.TrustCenterFileEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.TrustCenterFileEdge.Cursor(childComplexity), true - case "TrustCenterFileEdge.node": - if e.ComplexityRoot.TrustCenterFileEdge.Node == nil { - break - } - - return e.ComplexityRoot.TrustCenterFileEdge.Node(childComplexity), true - - case "TrustCenterReference.description": - if e.ComplexityRoot.TrustCenterReference.Description == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.Description(childComplexity), true - case "TrustCenterReference.id": - if e.ComplexityRoot.TrustCenterReference.ID == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.ID(childComplexity), true - case "TrustCenterReference.logoUrl": - if e.ComplexityRoot.TrustCenterReference.LogoURL == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.LogoURL(childComplexity), true - case "TrustCenterReference.name": - if e.ComplexityRoot.TrustCenterReference.Name == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.Name(childComplexity), true - case "TrustCenterReference.websiteUrl": - if e.ComplexityRoot.TrustCenterReference.WebsiteURL == nil { - break - } - - return e.ComplexityRoot.TrustCenterReference.WebsiteURL(childComplexity), true - - case "TrustCenterReferenceConnection.edges": - if e.ComplexityRoot.TrustCenterReferenceConnection.Edges == nil { - break - } - - return e.ComplexityRoot.TrustCenterReferenceConnection.Edges(childComplexity), true - case "TrustCenterReferenceConnection.pageInfo": - if e.ComplexityRoot.TrustCenterReferenceConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.TrustCenterReferenceConnection.PageInfo(childComplexity), true - - case "TrustCenterReferenceEdge.cursor": - if e.ComplexityRoot.TrustCenterReferenceEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.TrustCenterReferenceEdge.Cursor(childComplexity), true - case "TrustCenterReferenceEdge.node": - if e.ComplexityRoot.TrustCenterReferenceEdge.Node == nil { - break - } - - return e.ComplexityRoot.TrustCenterReferenceEdge.Node(childComplexity), true - - case "UnsubscribeFromMailingListPayload.deletedMailingListSubscriberId": - if e.ComplexityRoot.UnsubscribeFromMailingListPayload.DeletedMailingListSubscriberID == nil { - break - } - - return e.ComplexityRoot.UnsubscribeFromMailingListPayload.DeletedMailingListSubscriberID(childComplexity), true - - case "UpdateFullNamePayload.success": - if e.ComplexityRoot.UpdateFullNamePayload.Success == nil { - break - } - - return e.ComplexityRoot.UpdateFullNamePayload.Success(childComplexity), true - - case "Vendor.category": - if e.ComplexityRoot.Vendor.Category == nil { - break - } - - return e.ComplexityRoot.Vendor.Category(childComplexity), true - case "Vendor.countries": - if e.ComplexityRoot.Vendor.Countries == nil { - break - } - - return e.ComplexityRoot.Vendor.Countries(childComplexity), true - case "Vendor.description": - if e.ComplexityRoot.Vendor.Description == nil { - break - } - - return e.ComplexityRoot.Vendor.Description(childComplexity), true - case "Vendor.id": - if e.ComplexityRoot.Vendor.ID == nil { - break - } - - return e.ComplexityRoot.Vendor.ID(childComplexity), true - case "Vendor.name": - if e.ComplexityRoot.Vendor.Name == nil { - break - } - - return e.ComplexityRoot.Vendor.Name(childComplexity), true - case "Vendor.privacyPolicyUrl": - if e.ComplexityRoot.Vendor.PrivacyPolicyURL == nil { - break - } - - return e.ComplexityRoot.Vendor.PrivacyPolicyURL(childComplexity), true - case "Vendor.websiteUrl": - if e.ComplexityRoot.Vendor.WebsiteURL == nil { - break - } - - return e.ComplexityRoot.Vendor.WebsiteURL(childComplexity), true - - case "VendorConnection.edges": - if e.ComplexityRoot.VendorConnection.Edges == nil { - break - } - - return e.ComplexityRoot.VendorConnection.Edges(childComplexity), true - case "VendorConnection.pageInfo": - if e.ComplexityRoot.VendorConnection.PageInfo == nil { - break - } - - return e.ComplexityRoot.VendorConnection.PageInfo(childComplexity), true - case "VendorConnection.totalCount": - if e.ComplexityRoot.VendorConnection.TotalCount == nil { - break - } - - return e.ComplexityRoot.VendorConnection.TotalCount(childComplexity), true - - case "VendorEdge.cursor": - if e.ComplexityRoot.VendorEdge.Cursor == nil { - break - } - - return e.ComplexityRoot.VendorEdge.Cursor(childComplexity), true - case "VendorEdge.node": - if e.ComplexityRoot.VendorEdge.Node == nil { - break - } - - return e.ComplexityRoot.VendorEdge.Node(childComplexity), true - - case "VerifyMagicLinkPayload.continue": - if e.ComplexityRoot.VerifyMagicLinkPayload.Continue == nil { - break - } - - return e.ComplexityRoot.VerifyMagicLinkPayload.Continue(childComplexity), true - - } - return 0, false -} - -func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { - opCtx := graphql.GetOperationContext(ctx) - ec := newExecutionContext(opCtx, e, make(chan graphql.DeferredResult)) - inputUnmarshalMap := graphql.BuildUnmarshalerMap( - ec.unmarshalInputAcceptElectronicSignatureInput, - ec.unmarshalInputExportDocumentPDFInput, - ec.unmarshalInputExportReportPDFInput, - ec.unmarshalInputExportTrustCenterFileInput, - ec.unmarshalInputRecordSigningEventInput, - ec.unmarshalInputRequestDocumentAccessInput, - ec.unmarshalInputRequestReportAccessInput, - ec.unmarshalInputRequestTrustCenterFileAccessInput, - ec.unmarshalInputSendMagicLinkInput, - ec.unmarshalInputUpdateFullNameInput, - ec.unmarshalInputVerifyMagicLinkInput, - ) - first := true - - switch opCtx.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, opCtx.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, opCtx.Operation.SelectionSet) - var buf bytes.Buffer - data.MarshalGQL(&buf) - - return &graphql.Response{ - Data: buf.Bytes(), - } - } - - default: - return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) - } -} - -type executionContext struct { - *graphql.ExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot] -} - -func newExecutionContext( - opCtx *graphql.OperationContext, - execSchema *executableSchema, - deferredResults chan graphql.DeferredResult, -) executionContext { - return executionContext{ - ExecutionContextState: graphql.NewExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot]( - opCtx, - (*graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot])(execSchema), - parsedSchema, - deferredResults, - ), - } -} - -var sources = []*ast.Source{ - {Name: "../schema.graphql", Input: `# Directives -directive @goField( - forceResolver: Boolean - name: String - omittable: Boolean -) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION - -directive @goModel( - model: String - models: [String!] -) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION - -directive @goEnum(value: String) on ENUM_VALUE - -directive @nda on FIELD_DEFINITION | OBJECT - -scalar CursorKey -scalar Datetime -scalar EmailAddr - -interface Node { - id: ID! -} - -type PageInfo { - hasNextPage: Boolean! - hasPreviousPage: Boolean! - startCursor: CursorKey - endCursor: CursorKey -} - -type Identity implements Node { - id: ID! - email: EmailAddr! - fullName: String! - emailVerified: Boolean! - createdAt: Datetime! - updatedAt: Datetime! -} - -type Organization implements Node { - id: ID! - name: String! - logoUrl: String @goField(forceResolver: true) - - description: String - websiteUrl: String - email: String - headquarterAddress: String -} - -enum DocumentType - @goModel(model: "go.probo.inc/probo/pkg/coredata.DocumentType") { - OTHER @goEnum(value: "go.probo.inc/probo/pkg/coredata.DocumentTypeOther") - ISMS @goEnum(value: "go.probo.inc/probo/pkg/coredata.DocumentTypeISMS") - POLICY @goEnum(value: "go.probo.inc/probo/pkg/coredata.DocumentTypePolicy") - PROCEDURE - @goEnum(value: "go.probo.inc/probo/pkg/coredata.DocumentTypeProcedure") -} - -type Document implements Node @nda { - id: ID! - title: String! - documentType: DocumentType! - isUserAuthorized: Boolean! @goField(forceResolver: true) - access: DocumentAccess @goField(forceResolver: true) -} - -type DocumentConnection @nda { - edges: [DocumentEdge!]! - pageInfo: PageInfo! -} - -type DocumentEdge @nda { - cursor: CursorKey! - node: Document! -} - -type Framework implements Node @nda { - id: ID! - name: String! - lightLogoURL: String @goField(forceResolver: true) - darkLogoURL: String @goField(forceResolver: true) -} - -type Report implements Node @nda { - id: ID! - filename: String! - isUserAuthorized: Boolean! @goField(forceResolver: true) - access: DocumentAccess @goField(forceResolver: true) -} - -type Audit implements Node @nda { - id: ID! - name: String - framework: Framework! @goField(forceResolver: true) - report: Report @goField(forceResolver: true) -} - -type AuditConnection @nda { - edges: [AuditEdge!]! - pageInfo: PageInfo! -} - -type AuditEdge @nda { - cursor: CursorKey! - node: Audit! -} - -type ComplianceFramework implements Node - @goModel( - model: "go.probo.inc/probo/pkg/server/api/trust/v1/types.ComplianceFramework" - ) { - id: ID! - framework: Framework! @goField(forceResolver: true) -} - -type ComplianceFrameworkConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/trust/v1/types.ComplianceFrameworkConnection" - ) { - edges: [ComplianceFrameworkEdge!]! - pageInfo: PageInfo! -} - -type ComplianceFrameworkEdge - @goModel( - model: "go.probo.inc/probo/pkg/server/api/trust/v1/types.ComplianceFrameworkEdge" - ) { - cursor: CursorKey! - node: ComplianceFramework! -} - -type MailingListUpdate implements Node { - id: ID! - title: String! - body: String! - updatedAt: Datetime! -} - -type MailingListUpdateConnection { - edges: [MailingListUpdateEdge!]! - pageInfo: PageInfo! -} - -type MailingListUpdateEdge { - cursor: CursorKey! - node: MailingListUpdate! -} - -enum CountryCode - @goModel(model: "go.probo.inc/probo/pkg/coredata.CountryCode") { - AD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAD") - AE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAE") - AF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAF") - AG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAG") - AI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAI") - AL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAL") - AM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAM") - AO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAO") - AQ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAQ") - AR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAR") - AS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAS") - AT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAT") - AU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAU") - AW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAW") - AX @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAX") - AZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAZ") - BA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBA") - BB @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBB") - BD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBD") - BE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBE") - BF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBF") - BG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBG") - BH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBH") - BI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBI") - BJ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBJ") - BL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBL") - BM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBM") - BN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBN") - BO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBO") - BQ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBQ") - BR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBR") - BS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBS") - BT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBT") - BV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBV") - BW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBW") - BY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBY") - BZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeBZ") - CA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCA") - CC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCC") - CD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCD") - CF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCF") - CG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCG") - CH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCH") - CI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCI") - CK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCK") - CL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCL") - CM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCM") - CN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCN") - CO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCO") - CR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCR") - CU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCU") - CV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCV") - CW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCW") - CX @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCX") - CY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCY") - CZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeCZ") - DE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDE") - DJ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDJ") - DK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDK") - DM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDM") - DO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDO") - DZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeDZ") - EC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeEC") - EE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeEE") - EG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeEG") - EH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeEH") - ER @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeER") - ES @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeES") - ET @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeET") - EU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeEU") - FI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFI") - FJ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFJ") - FK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFK") - FM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFM") - FO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFO") - FR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeFR") - GA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGA") - GB @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGB") - GD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGD") - GE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGE") - GF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGF") - GG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGG") - GH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGH") - GI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGI") - GL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGL") - GM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGM") - GN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGN") - GP @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGP") - GQ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGQ") - GR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGR") - GT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGT") - GU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGU") - GW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGW") - GY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGY") - HK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHK") - HM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHM") - HN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHN") - HR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHR") - HT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHT") - HU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeHU") - ID @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeID") - IE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIE") - IL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIL") - IM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIM") - IN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIN") - IO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIO") - IQ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIQ") - IR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIR") - IS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIS") - IT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeIT") - JE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeJE") - JM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeJM") - JO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeJO") - JP @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeJP") - KE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKE") - KG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKG") - KH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKH") - KI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKI") - KM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKM") - KN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKN") - KP @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKP") - KR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKR") - KW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKW") - KY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKY") - KZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeKZ") - LA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLA") - LB @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLB") - LC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLC") - LI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLI") - LK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLK") - LR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLR") - LS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLS") - LT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLT") - LU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLU") - LV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLV") - LY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeLY") - MA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMA") - MC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMC") - MD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMD") - ME @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeME") - MF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMF") - MG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMG") - MH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMH") - MK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMK") - ML @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeML") - MM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMM") - MN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMN") - MO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMO") - MP @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMP") - MQ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMQ") - MR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMR") - MS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMS") - MT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMT") - MU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMU") - MV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMV") - MW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMW") - MX @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMX") - MY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMY") - MZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeMZ") - NA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNA") - NC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNC") - NE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNE") - NF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNF") - NG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNG") - NI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNI") - NL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNL") - NO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNO") - NP @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNP") - NR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNR") - NU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNU") - NZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeNZ") - OM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeOM") - PA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePA") - PE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePE") - PF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePF") - PG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePG") - PH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePH") - PK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePK") - PL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePL") - PM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePM") - PN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePN") - PR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePR") - PS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePS") - PT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePT") - PW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePW") - PY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodePY") - QA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeQA") - RE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeRE") - RO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeRO") - RS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeRS") - RU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeRU") - RW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeRW") - SA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSA") - SB @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSB") - SC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSC") - SD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSD") - SE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSE") - SG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSG") - SH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSH") - SI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSI") - SJ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSJ") - SK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSK") - SL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSL") - SM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSM") - SN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSN") - SO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSO") - SR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSR") - SS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSS") - ST @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeST") - SV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSV") - SX @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSX") - SY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSY") - SZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeSZ") - TC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTC") - TD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTD") - TF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTF") - TG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTG") - TH @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTH") - TJ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTJ") - TK @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTK") - TL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTL") - TM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTM") - TN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTN") - TO @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTO") - TR @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTR") - TT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTT") - TV @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTV") - TW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTW") - TZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeTZ") - UA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUA") - UG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUG") - UM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUM") - US @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUS") - UY @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUY") - UZ @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeUZ") - VA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVA") - VC @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVC") - VE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVE") - VG @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVG") - VI @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVI") - VN @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVN") - VU @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeVU") - WF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeWF") - WS @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeWS") - YE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeYE") - YT @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeYT") - ZA @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeZA") - ZM @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeZM") - ZW @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeZW") -} - -enum VendorCategory - @goModel(model: "go.probo.inc/probo/pkg/coredata.VendorCategory") { - ANALYTICS - @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategoryAnalytics") - CLOUD_MONITORING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryCloudMonitoring" - ) - CLOUD_PROVIDER - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryCloudProvider" - ) - COLLABORATION - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryCollaboration" - ) - CUSTOMER_SUPPORT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryCustomerSupport" - ) - DATA_STORAGE_AND_PROCESSING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryDataStorageAndProcessing" - ) - DOCUMENT_MANAGEMENT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryDocumentManagement" - ) - EMPLOYEE_MANAGEMENT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryEmployeeManagement" - ) - ENGINEERING - @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategoryEngineering") - FINANCE - @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategoryFinance") - IDENTITY_PROVIDER - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryIdentityProvider" - ) - IT @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategoryIT") - MARKETING - @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategoryMarketing") - OFFICE_OPERATIONS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryOfficeOperations" - ) - OTHER @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategoryOther") - PASSWORD_MANAGEMENT - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryPasswordManagement" - ) - PRODUCT_AND_DESIGN - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryProductAndDesign" - ) - PROFESSIONAL_SERVICES - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryProfessionalServices" - ) - RECRUITING - @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategoryRecruiting") - SALES @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategorySales") - SECURITY - @goEnum(value: "go.probo.inc/probo/pkg/coredata.VendorCategorySecurity") - VERSION_CONTROL - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.VendorCategoryVersionControl" - ) -} - -type Vendor implements Node @nda { - id: ID! - name: String! - description: String - category: VendorCategory! - websiteUrl: String - privacyPolicyUrl: String - countries: [CountryCode!]! -} - -type VendorConnection - @goModel( - model: "go.probo.inc/probo/pkg/server/api/trust/v1/types.VendorConnection" - ) @nda { - edges: [VendorEdge!]! - pageInfo: PageInfo! - totalCount: Int! @goField(forceResolver: true) -} - -type VendorEdge @nda { - cursor: CursorKey! - node: Vendor! -} - -type TrustCenterReference implements Node @nda { - id: ID! - name: String! - description: String - websiteUrl: String! - logoUrl: String! @goField(forceResolver: true) -} - -type TrustCenterReferenceConnection @nda { - edges: [TrustCenterReferenceEdge!]! - pageInfo: PageInfo! -} - -type TrustCenterReferenceEdge @nda { - cursor: CursorKey! - node: TrustCenterReference! -} - -type TrustCenterFile implements Node @nda { - id: ID! - name: String! - category: String! - isUserAuthorized: Boolean! @goField(forceResolver: true) - access: DocumentAccess @goField(forceResolver: true) -} - -type TrustCenterFileConnection @nda { - edges: [TrustCenterFileEdge!]! - pageInfo: PageInfo! -} - -type TrustCenterFileEdge @nda { - cursor: CursorKey! - node: TrustCenterFile! -} - -type NonDisclosureAgreement { - fileName: String! - fileUrl: String! @goField(forceResolver: true) - viewerSignature: ElectronicSignature @goField(forceResolver: true) -} - -type TrustCenter implements Node { - id: ID! - active: Boolean! - slug: String! - logoFileUrl: String @goField(forceResolver: true) - darkLogoFileUrl: String @goField(forceResolver: true) - - nonDisclosureAgreement: NonDisclosureAgreement @goField(forceResolver: true) - - viewerSubscription: MailingListSubscriber @goField(forceResolver: true) - organization: Organization! @goField(forceResolver: true) - - documents( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): DocumentConnection! @goField(forceResolver: true) - - audits( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): AuditConnection! @goField(forceResolver: true) - - vendors( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): VendorConnection! @goField(forceResolver: true) - - references( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): TrustCenterReferenceConnection! @goField(forceResolver: true) - - trustCenterFiles( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): TrustCenterFileConnection! @goField(forceResolver: true) - - complianceFrameworks( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): ComplianceFrameworkConnection! @goField(forceResolver: true) - - externalUrls( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): ComplianceExternalURLConnection! @goField(forceResolver: true) - - updates( - first: Int - after: CursorKey - last: Int - before: CursorKey - ): MailingListUpdateConnection! @goField(forceResolver: true) -} - -type ComplianceExternalURL implements Node { - id: ID! - name: String! - url: String! - rank: Int! -} - -type ComplianceExternalURLConnection { - edges: [ComplianceExternalURLEdge!]! - pageInfo: PageInfo! -} - -type ComplianceExternalURLEdge { - cursor: CursorKey! - node: ComplianceExternalURL! -} - -type TrustCenterAccess implements Node { - id: ID! - email: EmailAddr! - name: String! - createdAt: Datetime! - updatedAt: Datetime! -} - -enum DocumentAccessStatus - @goModel( - model: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessStatus" - ) { - REQUESTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessStatusRequested" - ) - GRANTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessStatusGranted" - ) - REJECTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessStatusRejected" - ) - REVOKED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.TrustCenterDocumentAccessStatusRevoked" - ) -} - -type DocumentAccess implements Node { - id: ID! - status: DocumentAccessStatus! -} - -input SendMagicLinkInput { - email: EmailAddr! - continue: String -} - -type SendMagicLinkPayload { - success: Boolean! -} - -input VerifyMagicLinkInput { - token: String! -} - -type VerifyMagicLinkPayload { - continue: String -} - -input UpdateFullNameInput { - fullName: String! -} - -type UpdateFullNamePayload { - success: Boolean! -} - -type RequestDocumentAccessPayload { - document: Document -} - -type RequestReportAccessPayload { - audit: Audit -} - -type RequestFileAccessPayload { - file: TrustCenterFile -} - -type RequestAccessesPayload { - trustCenterAccess: TrustCenterAccess! -} - -input ExportDocumentPDFInput { - documentId: ID! -} - -input ExportReportPDFInput { - reportId: ID! -} - -input RequestDocumentAccessInput { - documentId: ID! -} - -input RequestReportAccessInput { - reportId: ID! -} - -input RequestTrustCenterFileAccessInput { - trustCenterFileId: ID! -} - -input ExportTrustCenterFileInput { - trustCenterFileId: ID! -} - -type ExportDocumentPDFPayload { - data: String! -} - -type ExportReportPDFPayload { - data: String! -} - -type ExportTrustCenterFilePayload { - data: String! -} - -# Electronic Signature - -enum ElectronicSignatureStatus - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatus" - ) { - PENDING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatusPending" - ) - ACCEPTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatusAccepted" - ) - PROCESSING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatusProcessing" - ) - COMPLETED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatusCompleted" - ) - FAILED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureStatusFailed" - ) -} - -enum ElectronicSignatureDocumentType - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentType" - ) { - NDA - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeNDA" - ) - DPA - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeDPA" - ) - MSA - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeMSA" - ) - SOW - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeSOW" - ) - SLA - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeSLA" - ) - TOS - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeTOS" - ) - PRIVACY_POLICY - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypePrivacyPolicy" - ) - OTHER - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureDocumentTypeOther" - ) -} - -enum ElectronicSignatureEventType - @goModel( - model: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventType" - ) { - DOCUMENT_VIEWED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeDocumentViewed" - ) - CONSENT_GIVEN - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeConsentGiven" - ) - FULL_NAME_TYPED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeFullNameTyped" - ) - SIGNATURE_ACCEPTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeSignatureAccepted" - ) - SIGNATURE_COMPLETED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeSignatureCompleted" - ) - SEAL_COMPUTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeSealComputed" - ) - TIMESTAMP_REQUESTED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeTimestampRequested" - ) - CERTIFICATE_GENERATED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeCertificateGenerated" - ) - PROCESSING_ERROR - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.ElectronicSignatureEventTypeProcessingError" - ) -} - -type ElectronicSignature implements Node { - id: ID! - status: ElectronicSignatureStatus! - documentType: ElectronicSignatureDocumentType! - consentText: String! - lastError: String - signedAt: Datetime - createdAt: Datetime! - updatedAt: Datetime! -} - -input AcceptElectronicSignatureInput { - signatureId: ID! -} - -type AcceptElectronicSignaturePayload { - signature: ElectronicSignature! -} - -input RecordSigningEventInput { - signatureId: ID! - eventType: ElectronicSignatureEventType! -} - -type RecordSigningEventPayload { - success: Boolean! -} - -type Query { - viewer: Identity - node(id: ID!): Node! - currentTrustCenter: TrustCenter -} - -type Mutation { - sendMagicLink(input: SendMagicLinkInput!): SendMagicLinkPayload - @session(required: OPTIONAL) - verifyMagicLink(input: VerifyMagicLinkInput!): VerifyMagicLinkPayload - @session(required: OPTIONAL) - updateFullName(input: UpdateFullNameInput!): UpdateFullNamePayload - @session(required: PRESENT) - - requestAllAccesses: RequestAccessesPayload! @session(required: PRESENT) @nda - - exportDocumentPDF(input: ExportDocumentPDFInput!): ExportDocumentPDFPayload! - @session(required: OPTIONAL) @nda - - exportReportPDF(input: ExportReportPDFInput!): ExportReportPDFPayload! - @session(required: OPTIONAL) @nda - - exportTrustCenterFile( - input: ExportTrustCenterFileInput! - ): ExportTrustCenterFilePayload! @session(required: OPTIONAL) @nda - - requestDocumentAccess( - input: RequestDocumentAccessInput! - ): RequestDocumentAccessPayload! @session(required: PRESENT) @nda - - requestReportAccess( - input: RequestReportAccessInput! - ): RequestReportAccessPayload! @session(required: PRESENT) @nda - - requestTrustCenterFileAccess( - input: RequestTrustCenterFileAccessInput! - ): RequestFileAccessPayload! @session(required: PRESENT) @nda - - acceptElectronicSignature( - input: AcceptElectronicSignatureInput! - ): AcceptElectronicSignaturePayload @session(required: PRESENT) - - recordSigningEvent( - input: RecordSigningEventInput! - ): RecordSigningEventPayload @session(required: PRESENT) - - subscribeToMailingList: SubscribeToMailingListPayload! @session(required: PRESENT) - - unsubscribeFromMailingList: UnsubscribeFromMailingListPayload! @session(required: PRESENT) -} - -type SubscribeToMailingListPayload { - subscription: MailingListSubscriber! -} - -type UnsubscribeFromMailingListPayload { - deletedMailingListSubscriberId: ID -} - -enum MailingListSubscriberStatus - @goModel( - model: "go.probo.inc/probo/pkg/coredata.MailingListSubscriberStatus" - ) { - PENDING - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MailingListSubscriberStatusPending" - ) - CONFIRMED - @goEnum( - value: "go.probo.inc/probo/pkg/coredata.MailingListSubscriberStatusConfirmed" - ) -} - -type MailingListSubscriber implements Node - @goModel( - model: "go.probo.inc/probo/pkg/server/api/trust/v1/types.MailingListSubscriber" - ) { - id: ID! - fullName: String! - email: EmailAddr! - status: MailingListSubscriberStatus! - createdAt: Datetime! - updatedAt: Datetime! -} -`, BuiltIn: false}, - {Name: "../../../../gqlutils/directives/session/schema.graphql", Input: `# Session directive for GraphQL APIs -# Include this schema in your gqlgen configuration to enable session-based access control. -# -# Usage in your schema.graphql: -# type Query { -# viewer: User @session(required: PRESENT) -# publicData: Data @session(required: OPTIONAL) -# signup(input: SignUpInput!): SignUpPayload @session(required: NONE) -# } - -directive @session(required: SessionRequirement!) on FIELD_DEFINITION - -enum SessionRequirement - @goModel( - model: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirement" - ) { - """ - Requires an authenticated session or API key. - """ - PRESENT - @goEnum( - value: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirementPresent" - ) - """ - Forbids authenticated access (e.g., for login/signup endpoints). - """ - NONE - @goEnum( - value: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirementNone" - ) - """ - Allows both authenticated and unauthenticated access. - """ - OPTIONAL - @goEnum( - value: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirementOptional" - ) -} -`, BuiltIn: false}, -} -var parsedSchema = gqlparser.MustLoadSchema(sources...) - -// endregion ************************** generated!.gotpl ************************** - -// region ***************************** args.gotpl ***************************** - -func (ec *executionContext) dir_session_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "required", ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement) - if err != nil { - return nil, err - } - args["required"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_acceptElectronicSignature_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNAcceptElectronicSignatureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAcceptElectronicSignatureInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_exportDocumentPDF_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNExportDocumentPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportDocumentPDFInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_exportReportPDF_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNExportReportPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportReportPDFInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_exportTrustCenterFile_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNExportTrustCenterFileInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportTrustCenterFileInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_recordSigningEvent_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRecordSigningEventInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRecordSigningEventInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_requestDocumentAccess_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRequestDocumentAccessInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestDocumentAccessInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_requestReportAccess_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRequestReportAccessInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestReportAccessInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_requestTrustCenterFileAccess_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRequestTrustCenterFileAccessInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestTrustCenterFileAccessInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_sendMagicLink_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNSendMagicLinkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐSendMagicLinkInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_updateFullName_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateFullNameInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐUpdateFullNameInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Mutation_verifyMagicLink_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNVerifyMagicLinkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVerifyMagicLinkInput) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name", ec.unmarshalNString2string) - if err != nil { - return nil, err - } - args["name"] = arg0 - return args, nil -} - -func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_audits_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_complianceFrameworks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_externalUrls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_references_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_trustCenterFiles_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_updates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field_TrustCenter_vendors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["first"] = arg0 - arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["after"] = arg1 - arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint) - if err != nil { - return nil, err - } - args["last"] = arg2 - arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey) - if err != nil { - return nil, err - } - args["before"] = arg3 - return args, nil -} - -func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool) - if err != nil { - return nil, err - } - args["includeDeprecated"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool) - if err != nil { - return nil, err - } - args["includeDeprecated"] = arg0 - return args, nil -} - -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool) - 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]any) (map[string]any, error) { - var err error - args := map[string]any{} - arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool) - 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) _AcceptElectronicSignaturePayload_signature(ctx context.Context, field graphql.CollectedField, obj *types.AcceptElectronicSignaturePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AcceptElectronicSignaturePayload_signature, - func(ctx context.Context) (any, error) { - return obj.Signature, nil - }, - nil, - ec.marshalNElectronicSignature2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐElectronicSignature, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AcceptElectronicSignaturePayload_signature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AcceptElectronicSignaturePayload", - 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_ElectronicSignature_id(ctx, field) - case "status": - return ec.fieldContext_ElectronicSignature_status(ctx, field) - case "documentType": - return ec.fieldContext_ElectronicSignature_documentType(ctx, field) - case "consentText": - return ec.fieldContext_ElectronicSignature_consentText(ctx, field) - case "lastError": - return ec.fieldContext_ElectronicSignature_lastError(ctx, field) - case "signedAt": - return ec.fieldContext_ElectronicSignature_signedAt(ctx, field) - case "createdAt": - return ec.fieldContext_ElectronicSignature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ElectronicSignature_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ElectronicSignature", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_id(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_name(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Audit_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_framework(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_framework, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Audit().Framework(ctx, obj) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.Framework - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐFramework, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Audit_framework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - 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_Framework_id(ctx, field) - case "name": - return ec.fieldContext_Framework_name(ctx, field) - case "lightLogoURL": - return ec.fieldContext_Framework_lightLogoURL(ctx, field) - case "darkLogoURL": - return ec.fieldContext_Framework_darkLogoURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Framework", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Audit_report(ctx context.Context, field graphql.CollectedField, obj *types.Audit) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Audit_report, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Audit().Report(ctx, obj) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.Report - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalOReport2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐReport, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Audit_report(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Audit", - 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_Report_id(ctx, field) - case "filename": - return ec.fieldContext_Report_filename(ctx, field) - case "isUserAuthorized": - return ec.fieldContext_Report_isUserAuthorized(ctx, field) - case "access": - return ec.fieldContext_Report_access(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Report", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.AuditConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AuditConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal []*types.AuditEdge - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNAuditEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAuditEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AuditConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_AuditEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_AuditEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.AuditConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AuditConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AuditConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.AuditEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AuditEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AuditEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.AuditEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_AuditEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.Audit - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAudit, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_AuditEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditEdge", - 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_Audit_id(ctx, field) - case "name": - return ec.fieldContext_Audit_name(ctx, field) - case "framework": - return ec.fieldContext_Audit_framework(ctx, field) - case "report": - return ec.fieldContext_Audit_report(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURL_id(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURL_name(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURL_url(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_url, - func(ctx context.Context) (any, error) { - return obj.URL, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURL_rank(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURL) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURL_rank, - func(ctx context.Context) (any, error) { - return obj.Rank, nil - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURL_rank(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURL", - 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) _ComplianceExternalURLConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURLConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURLConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNComplianceExternalURLEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceExternalURLEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURLConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURLConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ComplianceExternalURLEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ComplianceExternalURLEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceExternalURLEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURLConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURLConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURLConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURLConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURLConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURLEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURLEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURLEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURLEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURLEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceExternalURLEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceExternalURLEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceExternalURLEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNComplianceExternalURL2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceExternalURL, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceExternalURLEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceExternalURLEdge", - 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_ComplianceExternalURL_id(ctx, field) - case "name": - return ec.fieldContext_ComplianceExternalURL_name(ctx, field) - case "url": - return ec.fieldContext_ComplianceExternalURL_url(ctx, field) - case "rank": - return ec.fieldContext_ComplianceExternalURL_rank(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceExternalURL", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFramework_id(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFramework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFramework_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFramework_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFramework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFramework_framework(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFramework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFramework_framework, - func(ctx context.Context) (any, error) { - return ec.Resolvers.ComplianceFramework().Framework(ctx, obj) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.Framework - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐFramework, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFramework_framework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFramework", - 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_Framework_id(ctx, field) - case "name": - return ec.fieldContext_Framework_name(ctx, field) - case "lightLogoURL": - return ec.fieldContext_Framework_lightLogoURL(ctx, field) - case "darkLogoURL": - return ec.fieldContext_Framework_darkLogoURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Framework", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFrameworkConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFrameworkConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFrameworkConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNComplianceFrameworkEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceFrameworkEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFrameworkConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFrameworkConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_ComplianceFrameworkEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_ComplianceFrameworkEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceFrameworkEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFrameworkConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFrameworkConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFrameworkConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFrameworkConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFrameworkConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFrameworkEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFrameworkEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFrameworkEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFrameworkEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFrameworkEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ComplianceFrameworkEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ComplianceFrameworkEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ComplianceFrameworkEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNComplianceFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceFramework, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ComplianceFrameworkEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ComplianceFrameworkEdge", - 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_ComplianceFramework_id(ctx, field) - case "framework": - return ec.fieldContext_ComplianceFramework_framework(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceFramework", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_id(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_title(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_title, - func(ctx context.Context) (any, error) { - return obj.Title, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Document_documentType(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_documentType, - func(ctx context.Context) (any, error) { - return obj.DocumentType, nil - }, - nil, - ec.marshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_documentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - 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) _Document_isUserAuthorized(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_isUserAuthorized, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Document().IsUserAuthorized(ctx, obj) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Document_isUserAuthorized(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - 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) _Document_access(ctx context.Context, field graphql.CollectedField, obj *types.Document) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Document_access, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Document().Access(ctx, obj) - }, - nil, - ec.marshalODocumentAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentAccess, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Document_access(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Document", - 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_DocumentAccess_id(ctx, field) - case "status": - return ec.fieldContext_DocumentAccess_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentAccess", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentAccess_id(ctx context.Context, field graphql.CollectedField, obj *types.DocumentAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentAccess_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentAccess_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentAccess_status(ctx context.Context, field graphql.CollectedField, obj *types.DocumentAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentAccess_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentAccess_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentAccessStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.DocumentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal []*types.DocumentEdge - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNDocumentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_DocumentEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_DocumentEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.DocumentConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.DocumentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.DocumentEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_DocumentEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.Document - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocument, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_DocumentEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentEdge", - 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_Document_id(ctx, field) - case "title": - return ec.fieldContext_Document_title(ctx, field) - case "documentType": - return ec.fieldContext_Document_documentType(ctx, field) - case "isUserAuthorized": - return ec.fieldContext_Document_isUserAuthorized(ctx, field) - case "access": - return ec.fieldContext_Document_access(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Document", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_id(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_status(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ElectronicSignatureStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_documentType(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_documentType, - func(ctx context.Context) (any, error) { - return obj.DocumentType, nil - }, - nil, - ec.marshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_documentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ElectronicSignatureDocumentType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_consentText(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_consentText, - func(ctx context.Context) (any, error) { - return obj.ConsentText, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_consentText(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_lastError(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_lastError, - func(ctx context.Context) (any, error) { - return obj.LastError, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_lastError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_signedAt(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_signedAt, - func(ctx context.Context) (any, error) { - return obj.SignedAt, nil - }, - nil, - ec.marshalODatetime2ᚖtimeᚐTime, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_signedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ElectronicSignature_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.ElectronicSignature) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ElectronicSignature_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ElectronicSignature_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ElectronicSignature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExportDocumentPDFPayload_data(ctx context.Context, field graphql.CollectedField, obj *types.ExportDocumentPDFPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ExportDocumentPDFPayload_data, - func(ctx context.Context) (any, error) { - return obj.Data, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ExportDocumentPDFPayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExportDocumentPDFPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExportReportPDFPayload_data(ctx context.Context, field graphql.CollectedField, obj *types.ExportReportPDFPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ExportReportPDFPayload_data, - func(ctx context.Context) (any, error) { - return obj.Data, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ExportReportPDFPayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExportReportPDFPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ExportTrustCenterFilePayload_data(ctx context.Context, field graphql.CollectedField, obj *types.ExportTrustCenterFilePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_ExportTrustCenterFilePayload_data, - func(ctx context.Context) (any, error) { - return obj.Data, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_ExportTrustCenterFilePayload_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ExportTrustCenterFilePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Framework_id(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Framework_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Framework_name(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Framework_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Framework_lightLogoURL(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_lightLogoURL, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Framework().LightLogoURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Framework_lightLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - 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) _Framework_darkLogoURL(ctx context.Context, field graphql.CollectedField, obj *types.Framework) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Framework_darkLogoURL, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Framework().DarkLogoURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Framework_darkLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Framework", - 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) _Identity_id(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Identity_email(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_email, - func(ctx context.Context) (any, error) { - return obj.Email, nil - }, - nil, - ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Identity_fullName(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_fullName, - func(ctx context.Context) (any, error) { - return obj.FullName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Identity_emailVerified(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_emailVerified, - func(ctx context.Context) (any, error) { - return obj.EmailVerified, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_emailVerified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - 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) _Identity_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Identity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Identity_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Identity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Identity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_id(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_fullName(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_fullName, - func(ctx context.Context) (any, error) { - return obj.FullName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_email(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_email, - func(ctx context.Context) (any, error) { - return obj.Email, nil - }, - nil, - ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_status(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_status, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - ec.marshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type MailingListSubscriberStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListSubscriber_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.MailingListSubscriber) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListSubscriber_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListSubscriber_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListSubscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdate_id(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdate) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdate_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdate_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdate_title(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdate) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdate_title, - func(ctx context.Context) (any, error) { - return obj.Title, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdate_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdate_body(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdate) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdate_body, - func(ctx context.Context) (any, error) { - return obj.Body, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdate_body(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdate_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdate) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdate_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdate_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdate", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdateConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdateConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdateConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - ec.marshalNMailingListUpdateEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdateConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdateConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_MailingListUpdateEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_MailingListUpdateEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListUpdateEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdateConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdateConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdateConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdateConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdateConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdateEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdateEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdateEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdateEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdateEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _MailingListUpdateEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.MailingListUpdateEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_MailingListUpdateEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - ec.marshalNMailingListUpdate2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdate, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_MailingListUpdateEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MailingListUpdateEdge", - 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_MailingListUpdate_id(ctx, field) - case "title": - return ec.fieldContext_MailingListUpdate_title(ctx, field) - case "body": - return ec.fieldContext_MailingListUpdate_body(ctx, field) - case "updatedAt": - return ec.fieldContext_MailingListUpdate_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListUpdate", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Mutation_sendMagicLink(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_sendMagicLink, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().SendMagicLink(ctx, fc.Args["input"].(types.SendMagicLinkInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL") - if err != nil { - var zeroVal *types.SendMagicLinkPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.SendMagicLinkPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOSendMagicLinkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐSendMagicLinkPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_sendMagicLink(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 "success": - return ec.fieldContext_SendMagicLinkPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SendMagicLinkPayload", 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_sendMagicLink_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_verifyMagicLink(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_verifyMagicLink, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().VerifyMagicLink(ctx, fc.Args["input"].(types.VerifyMagicLinkInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL") - if err != nil { - var zeroVal *types.VerifyMagicLinkPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.VerifyMagicLinkPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOVerifyMagicLinkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVerifyMagicLinkPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_verifyMagicLink(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 "continue": - return ec.fieldContext_VerifyMagicLinkPayload_continue(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VerifyMagicLinkPayload", 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_verifyMagicLink_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_updateFullName(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_updateFullName, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().UpdateFullName(ctx, fc.Args["input"].(types.UpdateFullNameInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.UpdateFullNamePayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.UpdateFullNamePayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOUpdateFullNamePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐUpdateFullNamePayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_updateFullName(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 "success": - return ec.fieldContext_UpdateFullNamePayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UpdateFullNamePayload", 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_updateFullName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_requestAllAccesses(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_requestAllAccesses, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Mutation().RequestAllAccesses(ctx) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.RequestAccessesPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.RequestAccessesPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - directive2 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.RequestAccessesPayload - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, nil, directive1) - } - - next = directive2 - return next - }, - ec.marshalNRequestAccessesPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestAccessesPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_requestAllAccesses(_ 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 "trustCenterAccess": - return ec.fieldContext_RequestAccessesPayload_trustCenterAccess(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RequestAccessesPayload", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Mutation_exportDocumentPDF(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_exportDocumentPDF, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ExportDocumentPDF(ctx, fc.Args["input"].(types.ExportDocumentPDFInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL") - if err != nil { - var zeroVal *types.ExportDocumentPDFPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.ExportDocumentPDFPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - directive2 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.ExportDocumentPDFPayload - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, nil, directive1) - } - - next = directive2 - return next - }, - ec.marshalNExportDocumentPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportDocumentPDFPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_exportDocumentPDF(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 "data": - return ec.fieldContext_ExportDocumentPDFPayload_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExportDocumentPDFPayload", 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_exportDocumentPDF_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_exportReportPDF(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_exportReportPDF, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ExportReportPDF(ctx, fc.Args["input"].(types.ExportReportPDFInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL") - if err != nil { - var zeroVal *types.ExportReportPDFPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.ExportReportPDFPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - directive2 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.ExportReportPDFPayload - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, nil, directive1) - } - - next = directive2 - return next - }, - ec.marshalNExportReportPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportReportPDFPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_exportReportPDF(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 "data": - return ec.fieldContext_ExportReportPDFPayload_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExportReportPDFPayload", 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_exportReportPDF_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_exportTrustCenterFile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_exportTrustCenterFile, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().ExportTrustCenterFile(ctx, fc.Args["input"].(types.ExportTrustCenterFileInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL") - if err != nil { - var zeroVal *types.ExportTrustCenterFilePayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.ExportTrustCenterFilePayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - directive2 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.ExportTrustCenterFilePayload - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, nil, directive1) - } - - next = directive2 - return next - }, - ec.marshalNExportTrustCenterFilePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportTrustCenterFilePayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_exportTrustCenterFile(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 "data": - return ec.fieldContext_ExportTrustCenterFilePayload_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ExportTrustCenterFilePayload", 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_exportTrustCenterFile_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_requestDocumentAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_requestDocumentAccess, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().RequestDocumentAccess(ctx, fc.Args["input"].(types.RequestDocumentAccessInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.RequestDocumentAccessPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.RequestDocumentAccessPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - directive2 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.RequestDocumentAccessPayload - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, nil, directive1) - } - - next = directive2 - return next - }, - ec.marshalNRequestDocumentAccessPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestDocumentAccessPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_requestDocumentAccess(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 "document": - return ec.fieldContext_RequestDocumentAccessPayload_document(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RequestDocumentAccessPayload", 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_requestDocumentAccess_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_requestReportAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_requestReportAccess, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().RequestReportAccess(ctx, fc.Args["input"].(types.RequestReportAccessInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.RequestReportAccessPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.RequestReportAccessPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - directive2 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.RequestReportAccessPayload - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, nil, directive1) - } - - next = directive2 - return next - }, - ec.marshalNRequestReportAccessPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestReportAccessPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_requestReportAccess(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 "audit": - return ec.fieldContext_RequestReportAccessPayload_audit(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RequestReportAccessPayload", 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_requestReportAccess_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_requestTrustCenterFileAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_requestTrustCenterFileAccess, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().RequestTrustCenterFileAccess(ctx, fc.Args["input"].(types.RequestTrustCenterFileAccessInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.RequestFileAccessPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.RequestFileAccessPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - directive2 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.RequestFileAccessPayload - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, nil, directive1) - } - - next = directive2 - return next - }, - ec.marshalNRequestFileAccessPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestFileAccessPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_requestTrustCenterFileAccess(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 "file": - return ec.fieldContext_RequestFileAccessPayload_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RequestFileAccessPayload", 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_requestTrustCenterFileAccess_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_acceptElectronicSignature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_acceptElectronicSignature, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().AcceptElectronicSignature(ctx, fc.Args["input"].(types.AcceptElectronicSignatureInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.AcceptElectronicSignaturePayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.AcceptElectronicSignaturePayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalOAcceptElectronicSignaturePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAcceptElectronicSignaturePayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_acceptElectronicSignature(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 "signature": - return ec.fieldContext_AcceptElectronicSignaturePayload_signature(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AcceptElectronicSignaturePayload", 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_acceptElectronicSignature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_recordSigningEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_recordSigningEvent, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Mutation().RecordSigningEvent(ctx, fc.Args["input"].(types.RecordSigningEventInput)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.RecordSigningEventPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.RecordSigningEventPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalORecordSigningEventPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRecordSigningEventPayload, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Mutation_recordSigningEvent(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 "success": - return ec.fieldContext_RecordSigningEventPayload_success(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RecordSigningEventPayload", 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_recordSigningEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Mutation_subscribeToMailingList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_subscribeToMailingList, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Mutation().SubscribeToMailingList(ctx) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.SubscribeToMailingListPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.SubscribeToMailingListPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNSubscribeToMailingListPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐSubscribeToMailingListPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_subscribeToMailingList(_ 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 "subscription": - return ec.fieldContext_SubscribeToMailingListPayload_subscription(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscribeToMailingListPayload", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Mutation_unsubscribeFromMailingList(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Mutation_unsubscribeFromMailingList, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Mutation().UnsubscribeFromMailingList(ctx) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT") - if err != nil { - var zeroVal *types.UnsubscribeFromMailingListPayload - return zeroVal, err - } - if ec.Directives.Session == nil { - var zeroVal *types.UnsubscribeFromMailingListPayload - return zeroVal, errors.New("directive session is not implemented") - } - return ec.Directives.Session(ctx, nil, directive0, required) - } - - next = directive1 - return next - }, - ec.marshalNUnsubscribeFromMailingListPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐUnsubscribeFromMailingListPayload, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Mutation_unsubscribeFromMailingList(_ 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 "deletedMailingListSubscriberId": - return ec.fieldContext_UnsubscribeFromMailingListPayload_deletedMailingListSubscriberId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UnsubscribeFromMailingListPayload", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _NonDisclosureAgreement_fileName(ctx context.Context, field graphql.CollectedField, obj *types.NonDisclosureAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_NonDisclosureAgreement_fileName, - func(ctx context.Context) (any, error) { - return obj.FileName, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_NonDisclosureAgreement_fileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NonDisclosureAgreement", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _NonDisclosureAgreement_fileUrl(ctx context.Context, field graphql.CollectedField, obj *types.NonDisclosureAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_NonDisclosureAgreement_fileUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.NonDisclosureAgreement().FileURL(ctx, obj) - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_NonDisclosureAgreement_fileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NonDisclosureAgreement", - 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) _NonDisclosureAgreement_viewerSignature(ctx context.Context, field graphql.CollectedField, obj *types.NonDisclosureAgreement) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_NonDisclosureAgreement_viewerSignature, - func(ctx context.Context) (any, error) { - return ec.Resolvers.NonDisclosureAgreement().ViewerSignature(ctx, obj) - }, - nil, - ec.marshalOElectronicSignature2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐElectronicSignature, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_NonDisclosureAgreement_viewerSignature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NonDisclosureAgreement", - 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_ElectronicSignature_id(ctx, field) - case "status": - return ec.fieldContext_ElectronicSignature_status(ctx, field) - case "documentType": - return ec.fieldContext_ElectronicSignature_documentType(ctx, field) - case "consentText": - return ec.fieldContext_ElectronicSignature_consentText(ctx, field) - case "lastError": - return ec.fieldContext_ElectronicSignature_lastError(ctx, field) - case "signedAt": - return ec.fieldContext_ElectronicSignature_signedAt(ctx, field) - case "createdAt": - return ec.fieldContext_ElectronicSignature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ElectronicSignature_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ElectronicSignature", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_id(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_name(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Organization_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_logoUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_logoUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Organization().LogoURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_logoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - 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) _Organization_description(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_websiteUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_websiteUrl, - func(ctx context.Context) (any, error) { - return obj.WebsiteURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_websiteUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_email(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_email, - func(ctx context.Context) (any, error) { - return obj.Email, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_headquarterAddress(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Organization_headquarterAddress, - func(ctx context.Context) (any, error) { - return obj.HeadquarterAddress, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Organization_headquarterAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_hasNextPage, - func(ctx context.Context) (any, error) { - return obj.HasNextPage, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - 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) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_hasPreviousPage, - func(ctx context.Context) (any, error) { - return obj.HasPreviousPage, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - 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) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_startCursor, - func(ctx context.Context) (any, error) { - return obj.StartCursor, nil - }, - nil, - ec.marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_PageInfo_endCursor, - func(ctx context.Context) (any, error) { - return obj.EndCursor, nil - }, - nil, - ec.marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query_viewer, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Query().Viewer(ctx) - }, - nil, - ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐIdentity, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Query_viewer(_ 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_Identity_id(ctx, field) - case "email": - return ec.fieldContext_Identity_email(ctx, field) - case "fullName": - return ec.fieldContext_Identity_fullName(ctx, field) - case "emailVerified": - return ec.fieldContext_Identity_emailVerified(ctx, field) - case "createdAt": - return ec.fieldContext_Identity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Identity_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query_node, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Node(ctx, fc.Args["id"].(gid.GID)) - }, - nil, - ec.marshalNNode2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐNode, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Query_node(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) { - return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") - }, - } - 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_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_currentTrustCenter(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query_currentTrustCenter, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Query().CurrentTrustCenter(ctx) - }, - nil, - ec.marshalOTrustCenter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenter, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Query_currentTrustCenter(_ 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_TrustCenter_id(ctx, field) - case "active": - return ec.fieldContext_TrustCenter_active(ctx, field) - case "slug": - return ec.fieldContext_TrustCenter_slug(ctx, field) - case "logoFileUrl": - return ec.fieldContext_TrustCenter_logoFileUrl(ctx, field) - case "darkLogoFileUrl": - return ec.fieldContext_TrustCenter_darkLogoFileUrl(ctx, field) - case "nonDisclosureAgreement": - return ec.fieldContext_TrustCenter_nonDisclosureAgreement(ctx, field) - case "viewerSubscription": - return ec.fieldContext_TrustCenter_viewerSubscription(ctx, field) - case "organization": - return ec.fieldContext_TrustCenter_organization(ctx, field) - case "documents": - return ec.fieldContext_TrustCenter_documents(ctx, field) - case "audits": - return ec.fieldContext_TrustCenter_audits(ctx, field) - case "vendors": - return ec.fieldContext_TrustCenter_vendors(ctx, field) - case "references": - return ec.fieldContext_TrustCenter_references(ctx, field) - case "trustCenterFiles": - return ec.fieldContext_TrustCenter_trustCenterFiles(ctx, field) - case "complianceFrameworks": - return ec.fieldContext_TrustCenter_complianceFrameworks(ctx, field) - case "externalUrls": - return ec.fieldContext_TrustCenter_externalUrls(ctx, field) - case "updates": - return ec.fieldContext_TrustCenter_updates(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenter", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query___type, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.IntrospectType(fc.Args["name"].(string)) - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Query___schema, - func(ctx context.Context) (any, error) { - return ec.IntrospectSchema() - }, - nil, - ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Query___schema(_ 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) _RecordSigningEventPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.RecordSigningEventPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RecordSigningEventPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RecordSigningEventPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RecordSigningEventPayload", - 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) _Report_id(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Report_filename(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_filename, - func(ctx context.Context) (any, error) { - return obj.Filename, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_filename(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Report_isUserAuthorized(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_isUserAuthorized, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Report().IsUserAuthorized(ctx, obj) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Report_isUserAuthorized(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - 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) _Report_access(ctx context.Context, field graphql.CollectedField, obj *types.Report) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Report_access, - func(ctx context.Context) (any, error) { - return ec.Resolvers.Report().Access(ctx, obj) - }, - nil, - ec.marshalODocumentAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentAccess, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Report_access(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Report", - 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_DocumentAccess_id(ctx, field) - case "status": - return ec.fieldContext_DocumentAccess_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentAccess", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RequestAccessesPayload_trustCenterAccess(ctx context.Context, field graphql.CollectedField, obj *types.RequestAccessesPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RequestAccessesPayload_trustCenterAccess, - func(ctx context.Context) (any, error) { - return obj.TrustCenterAccess, nil - }, - nil, - ec.marshalNTrustCenterAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterAccess, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_RequestAccessesPayload_trustCenterAccess(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RequestAccessesPayload", - 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_TrustCenterAccess_id(ctx, field) - case "email": - return ec.fieldContext_TrustCenterAccess_email(ctx, field) - case "name": - return ec.fieldContext_TrustCenterAccess_name(ctx, field) - case "createdAt": - return ec.fieldContext_TrustCenterAccess_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TrustCenterAccess_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterAccess", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RequestDocumentAccessPayload_document(ctx context.Context, field graphql.CollectedField, obj *types.RequestDocumentAccessPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RequestDocumentAccessPayload_document, - func(ctx context.Context) (any, error) { - return obj.Document, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.Document - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalODocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocument, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_RequestDocumentAccessPayload_document(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RequestDocumentAccessPayload", - 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_Document_id(ctx, field) - case "title": - return ec.fieldContext_Document_title(ctx, field) - case "documentType": - return ec.fieldContext_Document_documentType(ctx, field) - case "isUserAuthorized": - return ec.fieldContext_Document_isUserAuthorized(ctx, field) - case "access": - return ec.fieldContext_Document_access(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Document", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RequestFileAccessPayload_file(ctx context.Context, field graphql.CollectedField, obj *types.RequestFileAccessPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RequestFileAccessPayload_file, - func(ctx context.Context) (any, error) { - return obj.File, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.TrustCenterFile - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalOTrustCenterFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFile, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_RequestFileAccessPayload_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RequestFileAccessPayload", - 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_TrustCenterFile_id(ctx, field) - case "name": - return ec.fieldContext_TrustCenterFile_name(ctx, field) - case "category": - return ec.fieldContext_TrustCenterFile_category(ctx, field) - case "isUserAuthorized": - return ec.fieldContext_TrustCenterFile_isUserAuthorized(ctx, field) - case "access": - return ec.fieldContext_TrustCenterFile_access(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _RequestReportAccessPayload_audit(ctx context.Context, field graphql.CollectedField, obj *types.RequestReportAccessPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_RequestReportAccessPayload_audit, - func(ctx context.Context) (any, error) { - return obj.Audit, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.Audit - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalOAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAudit, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_RequestReportAccessPayload_audit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "RequestReportAccessPayload", - 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_Audit_id(ctx, field) - case "name": - return ec.fieldContext_Audit_name(ctx, field) - case "framework": - return ec.fieldContext_Audit_framework(ctx, field) - case "report": - return ec.fieldContext_Audit_report(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Audit", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SendMagicLinkPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.SendMagicLinkPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SendMagicLinkPayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SendMagicLinkPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SendMagicLinkPayload", - 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) _SubscribeToMailingListPayload_subscription(ctx context.Context, field graphql.CollectedField, obj *types.SubscribeToMailingListPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_SubscribeToMailingListPayload_subscription, - func(ctx context.Context) (any, error) { - return obj.Subscription, nil - }, - nil, - ec.marshalNMailingListSubscriber2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListSubscriber, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_SubscribeToMailingListPayload_subscription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscribeToMailingListPayload", - 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_MailingListSubscriber_id(ctx, field) - case "fullName": - return ec.fieldContext_MailingListSubscriber_fullName(ctx, field) - case "email": - return ec.fieldContext_MailingListSubscriber_email(ctx, field) - case "status": - return ec.fieldContext_MailingListSubscriber_status(ctx, field) - case "createdAt": - return ec.fieldContext_MailingListSubscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_MailingListSubscriber_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListSubscriber", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_active(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_active, - func(ctx context.Context) (any, error) { - return obj.Active, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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) _TrustCenter_slug(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_slug, - func(ctx context.Context) (any, error) { - return obj.Slug, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_slug(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_logoFileUrl(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_logoFileUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenter().LogoFileURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_logoFileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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) _TrustCenter_darkLogoFileUrl(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_darkLogoFileUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenter().DarkLogoFileURL(ctx, obj) - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_darkLogoFileUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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) _TrustCenter_nonDisclosureAgreement(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_nonDisclosureAgreement, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenter().NonDisclosureAgreement(ctx, obj) - }, - nil, - ec.marshalONonDisclosureAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐNonDisclosureAgreement, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_nonDisclosureAgreement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "fileName": - return ec.fieldContext_NonDisclosureAgreement_fileName(ctx, field) - case "fileUrl": - return ec.fieldContext_NonDisclosureAgreement_fileUrl(ctx, field) - case "viewerSignature": - return ec.fieldContext_NonDisclosureAgreement_viewerSignature(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NonDisclosureAgreement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_viewerSubscription(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_viewerSubscription, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenter().ViewerSubscription(ctx, obj) - }, - nil, - ec.marshalOMailingListSubscriber2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListSubscriber, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_viewerSubscription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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_MailingListSubscriber_id(ctx, field) - case "fullName": - return ec.fieldContext_MailingListSubscriber_fullName(ctx, field) - case "email": - return ec.fieldContext_MailingListSubscriber_email(ctx, field) - case "status": - return ec.fieldContext_MailingListSubscriber_status(ctx, field) - case "createdAt": - return ec.fieldContext_MailingListSubscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_MailingListSubscriber_updatedAt(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListSubscriber", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_organization(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_organization, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenter().Organization(ctx, obj) - }, - nil, - ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐOrganization, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - 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_Organization_id(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "logoUrl": - return ec.fieldContext_Organization_logoUrl(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_Organization_websiteUrl(ctx, field) - case "email": - return ec.fieldContext_Organization_email(ctx, field) - case "headquarterAddress": - return ec.fieldContext_Organization_headquarterAddress(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_documents(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_documents, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().Documents(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.DocumentConnection - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNDocumentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_documents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_DocumentConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentConnection", 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_TrustCenter_documents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_audits(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_audits, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().Audits(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.AuditConnection - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNAuditConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAuditConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_audits(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_AuditConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_AuditConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditConnection", 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_TrustCenter_audits_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_vendors(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_vendors, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().Vendors(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.VendorConnection - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNVendorConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVendorConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_vendors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_VendorConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_VendorConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_VendorConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorConnection", 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_TrustCenter_vendors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_references(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_references, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().References(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.TrustCenterReferenceConnection - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNTrustCenterReferenceConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterReferenceConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_references(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_TrustCenterReferenceConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TrustCenterReferenceConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterReferenceConnection", 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_TrustCenter_references_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_trustCenterFiles(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_trustCenterFiles, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().TrustCenterFiles(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.TrustCenterFileConnection - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNTrustCenterFileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFileConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_trustCenterFiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_TrustCenterFileConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TrustCenterFileConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFileConnection", 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_TrustCenter_trustCenterFiles_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_complianceFrameworks(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_complianceFrameworks, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().ComplianceFrameworks(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - nil, - ec.marshalNComplianceFrameworkConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceFrameworkConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_complianceFrameworks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ComplianceFrameworkConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComplianceFrameworkConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceFrameworkConnection", 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_TrustCenter_complianceFrameworks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_externalUrls(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_externalUrls, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().ExternalUrls(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - nil, - ec.marshalNComplianceExternalURLConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceExternalURLConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_externalUrls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ComplianceExternalURLConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ComplianceExternalURLConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ComplianceExternalURLConnection", 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_TrustCenter_externalUrls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenter_updates(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenter) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenter_updates, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.TrustCenter().Updates(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey)) - }, - nil, - ec.marshalNMailingListUpdateConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateConnection, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenter_updates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenter", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_MailingListUpdateConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_MailingListUpdateConnection_pageInfo(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type MailingListUpdateConnection", 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_TrustCenter_updates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_email(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_email, - func(ctx context.Context) (any, error) { - return obj.Email, nil - }, - nil, - ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EmailAddr does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_name(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_createdAt, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterAccess_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterAccess) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterAccess_updatedAt, - func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil - }, - nil, - ec.marshalNDatetime2timeᚐTime, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterAccess_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterAccess", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Datetime does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_name(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_category(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_category, - func(ctx context.Context) (any, error) { - return obj.Category, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFile_isUserAuthorized(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_isUserAuthorized, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterFile().IsUserAuthorized(ctx, obj) - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_isUserAuthorized(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - 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) _TrustCenterFile_access(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFile) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFile_access, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterFile().Access(ctx, obj) - }, - nil, - ec.marshalODocumentAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentAccess, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFile_access(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFile", - 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_DocumentAccess_id(ctx, field) - case "status": - return ec.fieldContext_DocumentAccess_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentAccess", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFileConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFileConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal []*types.TrustCenterFileEdge - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNTrustCenterFileEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFileEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFileConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFileConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TrustCenterFileEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TrustCenterFileEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFileEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFileConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFileConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFileConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFileConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFileConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFileEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFileEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFileEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFileEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFileEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterFileEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterFileEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterFileEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.TrustCenterFile - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNTrustCenterFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFile, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterFileEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterFileEdge", - 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_TrustCenterFile_id(ctx, field) - case "name": - return ec.fieldContext_TrustCenterFile_name(ctx, field) - case "category": - return ec.fieldContext_TrustCenterFile_category(ctx, field) - case "isUserAuthorized": - return ec.fieldContext_TrustCenterFile_isUserAuthorized(ctx, field) - case "access": - return ec.fieldContext_TrustCenterFile_access(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterFile", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_id(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_name(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_description(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_websiteUrl(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_websiteUrl, - func(ctx context.Context) (any, error) { - return obj.WebsiteURL, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_websiteUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReference_logoUrl(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReference) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReference_logoUrl, - func(ctx context.Context) (any, error) { - return ec.Resolvers.TrustCenterReference().LogoURL(ctx, obj) - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReference_logoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReference", - 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) _TrustCenterReferenceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReferenceConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReferenceConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal []*types.TrustCenterReferenceEdge - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNTrustCenterReferenceEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterReferenceEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReferenceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReferenceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_TrustCenterReferenceEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_TrustCenterReferenceEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterReferenceEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReferenceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReferenceConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReferenceConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReferenceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReferenceConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReferenceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReferenceEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReferenceEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReferenceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReferenceEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TrustCenterReferenceEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.TrustCenterReferenceEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_TrustCenterReferenceEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.TrustCenterReference - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNTrustCenterReference2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterReference, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_TrustCenterReferenceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TrustCenterReferenceEdge", - 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_TrustCenterReference_id(ctx, field) - case "name": - return ec.fieldContext_TrustCenterReference_name(ctx, field) - case "description": - return ec.fieldContext_TrustCenterReference_description(ctx, field) - case "websiteUrl": - return ec.fieldContext_TrustCenterReference_websiteUrl(ctx, field) - case "logoUrl": - return ec.fieldContext_TrustCenterReference_logoUrl(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TrustCenterReference", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UnsubscribeFromMailingListPayload_deletedMailingListSubscriberId(ctx context.Context, field graphql.CollectedField, obj *types.UnsubscribeFromMailingListPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UnsubscribeFromMailingListPayload_deletedMailingListSubscriberId, - func(ctx context.Context) (any, error) { - return obj.DeletedMailingListSubscriberID, nil - }, - nil, - ec.marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_UnsubscribeFromMailingListPayload_deletedMailingListSubscriberId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UnsubscribeFromMailingListPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UpdateFullNamePayload_success(ctx context.Context, field graphql.CollectedField, obj *types.UpdateFullNamePayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_UpdateFullNamePayload_success, - func(ctx context.Context) (any, error) { - return obj.Success, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_UpdateFullNamePayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UpdateFullNamePayload", - 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) _Vendor_id(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_id, - func(ctx context.Context) (any, error) { - return obj.ID, nil - }, - nil, - ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_name(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_description(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_description, - func(ctx context.Context) (any, error) { - return obj.Description, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_category(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_category, - func(ctx context.Context) (any, error) { - return obj.Category, nil - }, - nil, - ec.marshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type VendorCategory does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_websiteUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_websiteUrl, - func(ctx context.Context) (any, error) { - return obj.WebsiteURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_websiteUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_privacyPolicyUrl(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_privacyPolicyUrl, - func(ctx context.Context) (any, error) { - return obj.PrivacyPolicyURL, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_Vendor_privacyPolicyUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Vendor_countries(ctx context.Context, field graphql.CollectedField, obj *types.Vendor) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_Vendor_countries, - func(ctx context.Context) (any, error) { - return obj.Countries, nil - }, - nil, - ec.marshalNCountryCode2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCodeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_Vendor_countries(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Vendor", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CountryCode does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.VendorConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorConnection_edges, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal []*types.VendorEdge - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNVendorEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVendorEdgeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cursor": - return ec.fieldContext_VendorEdge_cursor(ctx, field) - case "node": - return ec.fieldContext_VendorEdge_node(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type VendorEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.VendorConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorConnection_pageInfo, - func(ctx context.Context) (any, error) { - return obj.PageInfo, nil - }, - nil, - ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐPageInfo, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.VendorConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorConnection_totalCount, - func(ctx context.Context) (any, error) { - return ec.Resolvers.VendorConnection().TotalCount(ctx, obj) - }, - nil, - ec.marshalNInt2int, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorConnection", - 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) _VendorEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.VendorEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorEdge_cursor, - func(ctx context.Context) (any, error) { - return obj.Cursor, nil - }, - nil, - ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type CursorKey does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _VendorEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.VendorEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VendorEdge_node, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next - - directive1 := func(ctx context.Context) (any, error) { - if ec.Directives.Nda == nil { - var zeroVal *types.Vendor - return zeroVal, errors.New("directive nda is not implemented") - } - return ec.Directives.Nda(ctx, obj, directive0) - } - - next = directive1 - return next - }, - ec.marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVendor, - true, - true, - ) -} - -func (ec *executionContext) fieldContext_VendorEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VendorEdge", - 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_Vendor_id(ctx, field) - case "name": - return ec.fieldContext_Vendor_name(ctx, field) - case "description": - return ec.fieldContext_Vendor_description(ctx, field) - case "category": - return ec.fieldContext_Vendor_category(ctx, field) - case "websiteUrl": - return ec.fieldContext_Vendor_websiteUrl(ctx, field) - case "privacyPolicyUrl": - return ec.fieldContext_Vendor_privacyPolicyUrl(ctx, field) - case "countries": - return ec.fieldContext_Vendor_countries(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Vendor", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _VerifyMagicLinkPayload_continue(ctx context.Context, field graphql.CollectedField, obj *types.VerifyMagicLinkPayload) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext_VerifyMagicLinkPayload_continue, - func(ctx context.Context) (any, error) { - return obj.Continue, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext_VerifyMagicLinkPayload_continue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "VerifyMagicLinkPayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field 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_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Directive_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Directive_description(_ 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_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_isRepeatable, - func(ctx context.Context) (any, error) { - return obj.IsRepeatable, nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Directive_isRepeatable(_ 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) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_locations, - func(ctx context.Context) (any, error) { - return obj.Locations, nil - }, - nil, - ec.marshalN__DirectiveLocation2ᚕstringᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Directive_locations(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Directive_args, - func(ctx context.Context) (any, error) { - return obj.Args, nil - }, - nil, - ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ, - true, - true, - ) -} - -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) - case "isDeprecated": - return ec.fieldContext___InputValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___InputValue_deprecationReason(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", 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___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_isDeprecated, - func(ctx context.Context) (any, error) { - return obj.IsDeprecated(), nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___EnumValue_deprecationReason, - func(ctx context.Context) (any, error) { - return obj.DeprecationReason(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Field_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Field_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_args, - func(ctx context.Context) (any, error) { - return obj.Args, nil - }, - nil, - ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ, - true, - true, - ) -} - -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) - case "isDeprecated": - return ec.fieldContext___InputValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___InputValue_deprecationReason(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", 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___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Field_type(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_isDeprecated, - func(ctx context.Context) (any, error) { - return obj.IsDeprecated(), nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Field_isDeprecated(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Field_deprecationReason, - func(ctx context.Context) (any, error) { - return obj.DeprecationReason(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Field_deprecationReason(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_name, - func(ctx context.Context) (any, error) { - return obj.Name, nil - }, - nil, - ec.marshalNString2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___InputValue_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___InputValue_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_type, - func(ctx context.Context) (any, error) { - return obj.Type, nil - }, - nil, - ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___InputValue_type(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_defaultValue, - func(ctx context.Context) (any, error) { - return obj.DefaultValue, nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___InputValue_defaultValue(_ 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_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_isDeprecated, - func(ctx context.Context) (any, error) { - return obj.IsDeprecated(), nil - }, - nil, - ec.marshalNBoolean2bool, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ 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 Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___InputValue_deprecationReason, - func(ctx context.Context) (any, error) { - return obj.DeprecationReason(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ 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) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Schema_description(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_types, - func(ctx context.Context) (any, error) { - return obj.Types(), nil - }, - nil, - ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Schema_types(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_queryType, - func(ctx context.Context) (any, error) { - return obj.QueryType(), nil - }, - nil, - ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Schema_queryType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_mutationType, - func(ctx context.Context) (any, error) { - return obj.MutationType(), nil - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Schema_mutationType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_subscriptionType, - func(ctx context.Context) (any, error) { - return obj.SubscriptionType(), nil - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Schema_subscriptionType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Schema_directives, - func(ctx context.Context) (any, error) { - return obj.Directives(), nil - }, - nil, - ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Schema_directives(_ 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 "isRepeatable": - return ec.fieldContext___Directive_isRepeatable(ctx, field) - case "locations": - return ec.fieldContext___Directive_locations(ctx, field) - case "args": - return ec.fieldContext___Directive_args(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_kind, - func(ctx context.Context) (any, error) { - return obj.Kind(), nil - }, - nil, - ec.marshalN__TypeKind2string, - true, - true, - ) -} - -func (ec *executionContext) fieldContext___Type_kind(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_name, - func(ctx context.Context) (any, error) { - return obj.Name(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_name(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_description, - func(ctx context.Context) (any, error) { - return obj.Description(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_description(_ 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_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_specifiedByURL, - func(ctx context.Context) (any, error) { - return obj.SpecifiedByURL(), nil - }, - nil, - ec.marshalOString2ᚖstring, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_specifiedByURL(_ 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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_fields, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil - }, - nil, - ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ, - true, - false, - ) -} - -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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_interfaces, - func(ctx context.Context) (any, error) { - return obj.Interfaces(), nil - }, - nil, - ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_interfaces(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_possibleTypes, - func(ctx context.Context) (any, error) { - return obj.PossibleTypes(), nil - }, - nil, - ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_possibleTypes(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_enumValues, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil - }, - nil, - ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ, - true, - false, - ) -} - -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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_inputFields, - func(ctx context.Context) (any, error) { - return obj.InputFields(), nil - }, - nil, - ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_inputFields(_ 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) - case "isDeprecated": - return ec.fieldContext___InputValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___InputValue_deprecationReason(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) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_ofType, - func(ctx context.Context) (any, error) { - return obj.OfType(), nil - }, - nil, - ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_ofType(_ 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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 "isOneOf": - return ec.fieldContext___Type_isOneOf(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - ec.fieldContext___Type_isOneOf, - func(ctx context.Context) (any, error) { - return obj.IsOneOf(), nil - }, - nil, - ec.marshalOBoolean2bool, - true, - false, - ) -} - -func (ec *executionContext) fieldContext___Type_isOneOf(_ 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 Boolean does not have child fields") - }, - } - return fc, nil -} - -// endregion **************************** field.gotpl ***************************** - -// region **************************** input.gotpl ***************************** - -func (ec *executionContext) unmarshalInputAcceptElectronicSignatureInput(ctx context.Context, obj any) (types.AcceptElectronicSignatureInput, error) { - var it types.AcceptElectronicSignatureInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"signatureId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "signatureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SignatureID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputExportDocumentPDFInput(ctx context.Context, obj any) (types.ExportDocumentPDFInput, error) { - var it types.ExportDocumentPDFInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputExportReportPDFInput(ctx context.Context, obj any) (types.ExportReportPDFInput, error) { - var it types.ExportReportPDFInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"reportId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "reportId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reportId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ReportID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputExportTrustCenterFileInput(ctx context.Context, obj any) (types.ExportTrustCenterFileInput, error) { - var it types.ExportTrustCenterFileInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"trustCenterFileId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "trustCenterFileId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterFileId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterFileID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRecordSigningEventInput(ctx context.Context, obj any) (types.RecordSigningEventInput, error) { - var it types.RecordSigningEventInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"signatureId", "eventType"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "signatureId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signatureId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.SignatureID = data - case "eventType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventType")) - data, err := ec.unmarshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType(ctx, v) - if err != nil { - return it, err - } - it.EventType = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRequestDocumentAccessInput(ctx context.Context, obj any) (types.RequestDocumentAccessInput, error) { - var it types.RequestDocumentAccessInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"documentId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "documentId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.DocumentID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRequestReportAccessInput(ctx context.Context, obj any) (types.RequestReportAccessInput, error) { - var it types.RequestReportAccessInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"reportId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "reportId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("reportId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.ReportID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputRequestTrustCenterFileAccessInput(ctx context.Context, obj any) (types.RequestTrustCenterFileAccessInput, error) { - var it types.RequestTrustCenterFileAccessInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"trustCenterFileId"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "trustCenterFileId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterFileId")) - data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v) - if err != nil { - return it, err - } - it.TrustCenterFileID = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputSendMagicLinkInput(ctx context.Context, obj any) (types.SendMagicLinkInput, error) { - var it types.SendMagicLinkInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"email", "continue"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v) - if err != nil { - return it, err - } - it.Email = data - case "continue": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continue")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Continue = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateFullNameInput(ctx context.Context, obj any) (types.UpdateFullNameInput, error) { - var it types.UpdateFullNameInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"fullName"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.FullName = data - } - } - return it, nil -} - -func (ec *executionContext) unmarshalInputVerifyMagicLinkInput(ctx context.Context, obj any) (types.VerifyMagicLinkInput, error) { - var it types.VerifyMagicLinkInput - asMap := map[string]any{} - for k, v := range obj.(map[string]any) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"token"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "token": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.Token = data - } - } - return it, nil -} - -// endregion **************************** input.gotpl ***************************** - -// region ************************** interface.gotpl *************************** - -func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj types.Node) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case types.Vendor: - return ec._Vendor(ctx, sel, &obj) - case *types.Vendor: - if obj == nil { - return graphql.Null - } - return ec._Vendor(ctx, sel, obj) - case types.TrustCenterReference: - return ec._TrustCenterReference(ctx, sel, &obj) - case *types.TrustCenterReference: - if obj == nil { - return graphql.Null - } - return ec._TrustCenterReference(ctx, sel, obj) - case types.TrustCenterFile: - return ec._TrustCenterFile(ctx, sel, &obj) - case *types.TrustCenterFile: - if obj == nil { - return graphql.Null - } - return ec._TrustCenterFile(ctx, sel, obj) - case types.TrustCenterAccess: - return ec._TrustCenterAccess(ctx, sel, &obj) - case *types.TrustCenterAccess: - if obj == nil { - return graphql.Null - } - return ec._TrustCenterAccess(ctx, sel, obj) - case types.TrustCenter: - return ec._TrustCenter(ctx, sel, &obj) - case *types.TrustCenter: - if obj == nil { - return graphql.Null - } - return ec._TrustCenter(ctx, sel, obj) - case types.Report: - return ec._Report(ctx, sel, &obj) - case *types.Report: - if obj == nil { - return graphql.Null - } - return ec._Report(ctx, sel, obj) - case types.Organization: - return ec._Organization(ctx, sel, &obj) - case *types.Organization: - if obj == nil { - return graphql.Null - } - return ec._Organization(ctx, sel, obj) - case types.MailingListUpdate: - return ec._MailingListUpdate(ctx, sel, &obj) - case *types.MailingListUpdate: - if obj == nil { - return graphql.Null - } - return ec._MailingListUpdate(ctx, sel, obj) - case types.MailingListSubscriber: - return ec._MailingListSubscriber(ctx, sel, &obj) - case *types.MailingListSubscriber: - if obj == nil { - return graphql.Null - } - return ec._MailingListSubscriber(ctx, sel, obj) - case types.Identity: - return ec._Identity(ctx, sel, &obj) - case *types.Identity: - if obj == nil { - return graphql.Null - } - return ec._Identity(ctx, sel, obj) - case types.Framework: - return ec._Framework(ctx, sel, &obj) - case *types.Framework: - if obj == nil { - return graphql.Null - } - return ec._Framework(ctx, sel, obj) - case types.ElectronicSignature: - return ec._ElectronicSignature(ctx, sel, &obj) - case *types.ElectronicSignature: - if obj == nil { - return graphql.Null - } - return ec._ElectronicSignature(ctx, sel, obj) - case types.DocumentAccess: - return ec._DocumentAccess(ctx, sel, &obj) - case *types.DocumentAccess: - if obj == nil { - return graphql.Null - } - return ec._DocumentAccess(ctx, sel, obj) - case types.Document: - return ec._Document(ctx, sel, &obj) - case *types.Document: - if obj == nil { - return graphql.Null - } - return ec._Document(ctx, sel, obj) - case types.ComplianceFramework: - return ec._ComplianceFramework(ctx, sel, &obj) - case *types.ComplianceFramework: - if obj == nil { - return graphql.Null - } - return ec._ComplianceFramework(ctx, sel, obj) - case types.ComplianceExternalURL: - return ec._ComplianceExternalURL(ctx, sel, &obj) - case *types.ComplianceExternalURL: - if obj == nil { - return graphql.Null - } - return ec._ComplianceExternalURL(ctx, sel, obj) - case types.Audit: - return ec._Audit(ctx, sel, &obj) - case *types.Audit: - if obj == nil { - return graphql.Null - } - return ec._Audit(ctx, sel, obj) - default: - if typedObj, ok := obj.(graphql.Marshaler); ok { - return typedObj - } else { - panic(fmt.Errorf("unexpected type %T; non-generated variants of Node must implement graphql.Marshaler", obj)) - } - } -} - -// endregion ************************** interface.gotpl *************************** - -// region **************************** object.gotpl **************************** - -var acceptElectronicSignaturePayloadImplementors = []string{"AcceptElectronicSignaturePayload"} - -func (ec *executionContext) _AcceptElectronicSignaturePayload(ctx context.Context, sel ast.SelectionSet, obj *types.AcceptElectronicSignaturePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, acceptElectronicSignaturePayloadImplementors) - - 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("AcceptElectronicSignaturePayload") - case "signature": - out.Values[i] = ec._AcceptElectronicSignaturePayload_signature(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 auditImplementors = []string{"Audit", "Node"} - -func (ec *executionContext) _Audit(ctx context.Context, sel ast.SelectionSet, obj *types.Audit) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditImplementors) - - 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("Audit") - case "id": - out.Values[i] = ec._Audit_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Audit_name(ctx, field, obj) - case "framework": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Audit_framework(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "report": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Audit_report(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 auditConnectionImplementors = []string{"AuditConnection"} - -func (ec *executionContext) _AuditConnection(ctx context.Context, sel ast.SelectionSet, obj *types.AuditConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditConnectionImplementors) - - 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("AuditConnection") - case "edges": - out.Values[i] = ec._AuditConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._AuditConnection_pageInfo(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 auditEdgeImplementors = []string{"AuditEdge"} - -func (ec *executionContext) _AuditEdge(ctx context.Context, sel ast.SelectionSet, obj *types.AuditEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditEdgeImplementors) - - 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("AuditEdge") - case "cursor": - out.Values[i] = ec._AuditEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._AuditEdge_node(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 complianceExternalURLImplementors = []string{"ComplianceExternalURL", "Node"} - -func (ec *executionContext) _ComplianceExternalURL(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceExternalURL) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceExternalURLImplementors) - - 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("ComplianceExternalURL") - case "id": - out.Values[i] = ec._ComplianceExternalURL_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec._ComplianceExternalURL_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "url": - out.Values[i] = ec._ComplianceExternalURL_url(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "rank": - out.Values[i] = ec._ComplianceExternalURL_rank(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 complianceExternalURLConnectionImplementors = []string{"ComplianceExternalURLConnection"} - -func (ec *executionContext) _ComplianceExternalURLConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceExternalURLConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceExternalURLConnectionImplementors) - - 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("ComplianceExternalURLConnection") - case "edges": - out.Values[i] = ec._ComplianceExternalURLConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._ComplianceExternalURLConnection_pageInfo(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 complianceExternalURLEdgeImplementors = []string{"ComplianceExternalURLEdge"} - -func (ec *executionContext) _ComplianceExternalURLEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceExternalURLEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceExternalURLEdgeImplementors) - - 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("ComplianceExternalURLEdge") - case "cursor": - out.Values[i] = ec._ComplianceExternalURLEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ComplianceExternalURLEdge_node(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 complianceFrameworkImplementors = []string{"ComplianceFramework", "Node"} - -func (ec *executionContext) _ComplianceFramework(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceFramework) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceFrameworkImplementors) - - 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("ComplianceFramework") - case "id": - out.Values[i] = ec._ComplianceFramework_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "framework": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._ComplianceFramework_framework(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 complianceFrameworkConnectionImplementors = []string{"ComplianceFrameworkConnection"} - -func (ec *executionContext) _ComplianceFrameworkConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceFrameworkConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceFrameworkConnectionImplementors) - - 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("ComplianceFrameworkConnection") - case "edges": - out.Values[i] = ec._ComplianceFrameworkConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._ComplianceFrameworkConnection_pageInfo(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 complianceFrameworkEdgeImplementors = []string{"ComplianceFrameworkEdge"} - -func (ec *executionContext) _ComplianceFrameworkEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ComplianceFrameworkEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, complianceFrameworkEdgeImplementors) - - 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("ComplianceFrameworkEdge") - case "cursor": - out.Values[i] = ec._ComplianceFrameworkEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._ComplianceFrameworkEdge_node(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 documentImplementors = []string{"Document", "Node"} - -func (ec *executionContext) _Document(ctx context.Context, sel ast.SelectionSet, obj *types.Document) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentImplementors) - - 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("Document") - case "id": - out.Values[i] = ec._Document_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "title": - out.Values[i] = ec._Document_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "documentType": - out.Values[i] = ec._Document_documentType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isUserAuthorized": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Document_isUserAuthorized(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "access": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Document_access(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 documentAccessImplementors = []string{"DocumentAccess", "Node"} - -func (ec *executionContext) _DocumentAccess(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentAccess) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentAccessImplementors) - - 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("DocumentAccess") - case "id": - out.Values[i] = ec._DocumentAccess_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._DocumentAccess_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 documentConnectionImplementors = []string{"DocumentConnection"} - -func (ec *executionContext) _DocumentConnection(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentConnectionImplementors) - - 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("DocumentConnection") - case "edges": - out.Values[i] = ec._DocumentConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._DocumentConnection_pageInfo(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 documentEdgeImplementors = []string{"DocumentEdge"} - -func (ec *executionContext) _DocumentEdge(ctx context.Context, sel ast.SelectionSet, obj *types.DocumentEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentEdgeImplementors) - - 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("DocumentEdge") - case "cursor": - out.Values[i] = ec._DocumentEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._DocumentEdge_node(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 electronicSignatureImplementors = []string{"ElectronicSignature", "Node"} - -func (ec *executionContext) _ElectronicSignature(ctx context.Context, sel ast.SelectionSet, obj *types.ElectronicSignature) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, electronicSignatureImplementors) - - 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("ElectronicSignature") - case "id": - out.Values[i] = ec._ElectronicSignature_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._ElectronicSignature_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "documentType": - out.Values[i] = ec._ElectronicSignature_documentType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "consentText": - out.Values[i] = ec._ElectronicSignature_consentText(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "lastError": - out.Values[i] = ec._ElectronicSignature_lastError(ctx, field, obj) - case "signedAt": - out.Values[i] = ec._ElectronicSignature_signedAt(ctx, field, obj) - case "createdAt": - out.Values[i] = ec._ElectronicSignature_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatedAt": - out.Values[i] = ec._ElectronicSignature_updatedAt(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 exportDocumentPDFPayloadImplementors = []string{"ExportDocumentPDFPayload"} - -func (ec *executionContext) _ExportDocumentPDFPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportDocumentPDFPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportDocumentPDFPayloadImplementors) - - 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("ExportDocumentPDFPayload") - case "data": - out.Values[i] = ec._ExportDocumentPDFPayload_data(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 exportReportPDFPayloadImplementors = []string{"ExportReportPDFPayload"} - -func (ec *executionContext) _ExportReportPDFPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportReportPDFPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportReportPDFPayloadImplementors) - - 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("ExportReportPDFPayload") - case "data": - out.Values[i] = ec._ExportReportPDFPayload_data(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 exportTrustCenterFilePayloadImplementors = []string{"ExportTrustCenterFilePayload"} - -func (ec *executionContext) _ExportTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, obj *types.ExportTrustCenterFilePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, exportTrustCenterFilePayloadImplementors) - - 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("ExportTrustCenterFilePayload") - case "data": - out.Values[i] = ec._ExportTrustCenterFilePayload_data(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 frameworkImplementors = []string{"Framework", "Node"} - -func (ec *executionContext) _Framework(ctx context.Context, sel ast.SelectionSet, obj *types.Framework) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, frameworkImplementors) - - 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("Framework") - case "id": - out.Values[i] = ec._Framework_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Framework_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "lightLogoURL": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Framework_lightLogoURL(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 "darkLogoURL": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Framework_darkLogoURL(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 identityImplementors = []string{"Identity", "Node"} - -func (ec *executionContext) _Identity(ctx context.Context, sel ast.SelectionSet, obj *types.Identity) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, identityImplementors) - - 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("Identity") - case "id": - out.Values[i] = ec._Identity_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "email": - out.Values[i] = ec._Identity_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fullName": - out.Values[i] = ec._Identity_fullName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "emailVerified": - out.Values[i] = ec._Identity_emailVerified(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._Identity_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatedAt": - out.Values[i] = ec._Identity_updatedAt(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 mailingListSubscriberImplementors = []string{"MailingListSubscriber", "Node"} - -func (ec *executionContext) _MailingListSubscriber(ctx context.Context, sel ast.SelectionSet, obj *types.MailingListSubscriber) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListSubscriberImplementors) - - 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("MailingListSubscriber") - case "id": - out.Values[i] = ec._MailingListSubscriber_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "fullName": - out.Values[i] = ec._MailingListSubscriber_fullName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "email": - out.Values[i] = ec._MailingListSubscriber_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "status": - out.Values[i] = ec._MailingListSubscriber_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._MailingListSubscriber_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatedAt": - out.Values[i] = ec._MailingListSubscriber_updatedAt(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 mailingListUpdateImplementors = []string{"MailingListUpdate", "Node"} - -func (ec *executionContext) _MailingListUpdate(ctx context.Context, sel ast.SelectionSet, obj *types.MailingListUpdate) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListUpdateImplementors) - - 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("MailingListUpdate") - case "id": - out.Values[i] = ec._MailingListUpdate_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "title": - out.Values[i] = ec._MailingListUpdate_title(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "body": - out.Values[i] = ec._MailingListUpdate_body(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatedAt": - out.Values[i] = ec._MailingListUpdate_updatedAt(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 mailingListUpdateConnectionImplementors = []string{"MailingListUpdateConnection"} - -func (ec *executionContext) _MailingListUpdateConnection(ctx context.Context, sel ast.SelectionSet, obj *types.MailingListUpdateConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListUpdateConnectionImplementors) - - 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("MailingListUpdateConnection") - case "edges": - out.Values[i] = ec._MailingListUpdateConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._MailingListUpdateConnection_pageInfo(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 mailingListUpdateEdgeImplementors = []string{"MailingListUpdateEdge"} - -func (ec *executionContext) _MailingListUpdateEdge(ctx context.Context, sel ast.SelectionSet, obj *types.MailingListUpdateEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mailingListUpdateEdgeImplementors) - - 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("MailingListUpdateEdge") - case "cursor": - out.Values[i] = ec._MailingListUpdateEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._MailingListUpdateEdge_node(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 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 "sendMagicLink": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_sendMagicLink(ctx, field) - }) - case "verifyMagicLink": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_verifyMagicLink(ctx, field) - }) - case "updateFullName": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateFullName(ctx, field) - }) - case "requestAllAccesses": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_requestAllAccesses(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportDocumentPDF": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_exportDocumentPDF(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportReportPDF": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_exportReportPDF(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "exportTrustCenterFile": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_exportTrustCenterFile(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "requestDocumentAccess": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_requestDocumentAccess(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "requestReportAccess": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_requestReportAccess(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "requestTrustCenterFileAccess": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_requestTrustCenterFileAccess(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "acceptElectronicSignature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_acceptElectronicSignature(ctx, field) - }) - case "recordSigningEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_recordSigningEvent(ctx, field) - }) - case "subscribeToMailingList": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_subscribeToMailingList(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "unsubscribeFromMailingList": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_unsubscribeFromMailingList(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 nonDisclosureAgreementImplementors = []string{"NonDisclosureAgreement"} - -func (ec *executionContext) _NonDisclosureAgreement(ctx context.Context, sel ast.SelectionSet, obj *types.NonDisclosureAgreement) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, nonDisclosureAgreementImplementors) - - 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("NonDisclosureAgreement") - case "fileName": - out.Values[i] = ec._NonDisclosureAgreement_fileName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "fileUrl": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._NonDisclosureAgreement_fileUrl(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "viewerSignature": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._NonDisclosureAgreement_viewerSignature(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 organizationImplementors = []string{"Organization", "Node"} - -func (ec *executionContext) _Organization(ctx context.Context, sel ast.SelectionSet, obj *types.Organization) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationImplementors) - - 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("Organization") - case "id": - out.Values[i] = ec._Organization_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._Organization_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "logoUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_logoUrl(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 "description": - out.Values[i] = ec._Organization_description(ctx, field, obj) - case "websiteUrl": - out.Values[i] = ec._Organization_websiteUrl(ctx, field, obj) - case "email": - out.Values[i] = ec._Organization_email(ctx, field, obj) - case "headquarterAddress": - out.Values[i] = ec._Organization_headquarterAddress(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 pageInfoImplementors = []string{"PageInfo"} - -func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *types.PageInfo) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors) - - 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("PageInfo") - case "hasNextPage": - out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "hasPreviousPage": - out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "startCursor": - out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) - case "endCursor": - out.Values[i] = ec._PageInfo_endCursor(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 "viewer": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_viewer(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 "node": - field := field - - innerFunc := func(ctx 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_node(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 "currentTrustCenter": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_currentTrustCenter(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 "__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 recordSigningEventPayloadImplementors = []string{"RecordSigningEventPayload"} - -func (ec *executionContext) _RecordSigningEventPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RecordSigningEventPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, recordSigningEventPayloadImplementors) - - 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("RecordSigningEventPayload") - case "success": - out.Values[i] = ec._RecordSigningEventPayload_success(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 reportImplementors = []string{"Report", "Node"} - -func (ec *executionContext) _Report(ctx context.Context, sel ast.SelectionSet, obj *types.Report) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, reportImplementors) - - 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("Report") - case "id": - out.Values[i] = ec._Report_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "filename": - out.Values[i] = ec._Report_filename(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isUserAuthorized": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Report_isUserAuthorized(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "access": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Report_access(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 requestAccessesPayloadImplementors = []string{"RequestAccessesPayload"} - -func (ec *executionContext) _RequestAccessesPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RequestAccessesPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, requestAccessesPayloadImplementors) - - 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("RequestAccessesPayload") - case "trustCenterAccess": - out.Values[i] = ec._RequestAccessesPayload_trustCenterAccess(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 requestDocumentAccessPayloadImplementors = []string{"RequestDocumentAccessPayload"} - -func (ec *executionContext) _RequestDocumentAccessPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RequestDocumentAccessPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, requestDocumentAccessPayloadImplementors) - - 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("RequestDocumentAccessPayload") - case "document": - out.Values[i] = ec._RequestDocumentAccessPayload_document(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 requestFileAccessPayloadImplementors = []string{"RequestFileAccessPayload"} - -func (ec *executionContext) _RequestFileAccessPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RequestFileAccessPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, requestFileAccessPayloadImplementors) - - 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("RequestFileAccessPayload") - case "file": - out.Values[i] = ec._RequestFileAccessPayload_file(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 requestReportAccessPayloadImplementors = []string{"RequestReportAccessPayload"} - -func (ec *executionContext) _RequestReportAccessPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RequestReportAccessPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, requestReportAccessPayloadImplementors) - - 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("RequestReportAccessPayload") - case "audit": - out.Values[i] = ec._RequestReportAccessPayload_audit(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 sendMagicLinkPayloadImplementors = []string{"SendMagicLinkPayload"} - -func (ec *executionContext) _SendMagicLinkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SendMagicLinkPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, sendMagicLinkPayloadImplementors) - - 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("SendMagicLinkPayload") - case "success": - out.Values[i] = ec._SendMagicLinkPayload_success(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 subscribeToMailingListPayloadImplementors = []string{"SubscribeToMailingListPayload"} - -func (ec *executionContext) _SubscribeToMailingListPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SubscribeToMailingListPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscribeToMailingListPayloadImplementors) - - 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("SubscribeToMailingListPayload") - case "subscription": - out.Values[i] = ec._SubscribeToMailingListPayload_subscription(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 trustCenterImplementors = []string{"TrustCenter", "Node"} - -func (ec *executionContext) _TrustCenter(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenter) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterImplementors) - - 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("TrustCenter") - case "id": - out.Values[i] = ec._TrustCenter_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "active": - out.Values[i] = ec._TrustCenter_active(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "slug": - out.Values[i] = ec._TrustCenter_slug(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "logoFileUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_logoFileUrl(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 "darkLogoFileUrl": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_darkLogoFileUrl(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 "nonDisclosureAgreement": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_nonDisclosureAgreement(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 "viewerSubscription": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_viewerSubscription(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 "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the 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._TrustCenter_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 "audits": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_audits(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "vendors": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_vendors(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "references": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_references(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "trustCenterFiles": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_trustCenterFiles(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "complianceFrameworks": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_complianceFrameworks(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "externalUrls": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_externalUrls(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "updates": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenter_updates(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 trustCenterAccessImplementors = []string{"TrustCenterAccess", "Node"} - -func (ec *executionContext) _TrustCenterAccess(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterAccess) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterAccessImplementors) - - 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("TrustCenterAccess") - case "id": - out.Values[i] = ec._TrustCenterAccess_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "email": - out.Values[i] = ec._TrustCenterAccess_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec._TrustCenterAccess_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._TrustCenterAccess_createdAt(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatedAt": - out.Values[i] = ec._TrustCenterAccess_updatedAt(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 trustCenterFileImplementors = []string{"TrustCenterFile", "Node"} - -func (ec *executionContext) _TrustCenterFile(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterFile) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterFileImplementors) - - 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("TrustCenterFile") - case "id": - out.Values[i] = ec._TrustCenterFile_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._TrustCenterFile_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "category": - out.Values[i] = ec._TrustCenterFile_category(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isUserAuthorized": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterFile_isUserAuthorized(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "access": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterFile_access(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 trustCenterFileConnectionImplementors = []string{"TrustCenterFileConnection"} - -func (ec *executionContext) _TrustCenterFileConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterFileConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterFileConnectionImplementors) - - 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("TrustCenterFileConnection") - case "edges": - out.Values[i] = ec._TrustCenterFileConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._TrustCenterFileConnection_pageInfo(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 trustCenterFileEdgeImplementors = []string{"TrustCenterFileEdge"} - -func (ec *executionContext) _TrustCenterFileEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterFileEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterFileEdgeImplementors) - - 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("TrustCenterFileEdge") - case "cursor": - out.Values[i] = ec._TrustCenterFileEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._TrustCenterFileEdge_node(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 trustCenterReferenceImplementors = []string{"TrustCenterReference", "Node"} - -func (ec *executionContext) _TrustCenterReference(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterReference) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterReferenceImplementors) - - 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("TrustCenterReference") - case "id": - out.Values[i] = ec._TrustCenterReference_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "name": - out.Values[i] = ec._TrustCenterReference_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._TrustCenterReference_description(ctx, field, obj) - case "websiteUrl": - out.Values[i] = ec._TrustCenterReference_websiteUrl(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "logoUrl": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TrustCenterReference_logoUrl(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 trustCenterReferenceConnectionImplementors = []string{"TrustCenterReferenceConnection"} - -func (ec *executionContext) _TrustCenterReferenceConnection(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterReferenceConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterReferenceConnectionImplementors) - - 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("TrustCenterReferenceConnection") - case "edges": - out.Values[i] = ec._TrustCenterReferenceConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "pageInfo": - out.Values[i] = ec._TrustCenterReferenceConnection_pageInfo(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 trustCenterReferenceEdgeImplementors = []string{"TrustCenterReferenceEdge"} - -func (ec *executionContext) _TrustCenterReferenceEdge(ctx context.Context, sel ast.SelectionSet, obj *types.TrustCenterReferenceEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, trustCenterReferenceEdgeImplementors) - - 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("TrustCenterReferenceEdge") - case "cursor": - out.Values[i] = ec._TrustCenterReferenceEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._TrustCenterReferenceEdge_node(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 unsubscribeFromMailingListPayloadImplementors = []string{"UnsubscribeFromMailingListPayload"} - -func (ec *executionContext) _UnsubscribeFromMailingListPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UnsubscribeFromMailingListPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, unsubscribeFromMailingListPayloadImplementors) - - 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("UnsubscribeFromMailingListPayload") - case "deletedMailingListSubscriberId": - out.Values[i] = ec._UnsubscribeFromMailingListPayload_deletedMailingListSubscriberId(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 updateFullNamePayloadImplementors = []string{"UpdateFullNamePayload"} - -func (ec *executionContext) _UpdateFullNamePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateFullNamePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, updateFullNamePayloadImplementors) - - 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("UpdateFullNamePayload") - case "success": - out.Values[i] = ec._UpdateFullNamePayload_success(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 vendorImplementors = []string{"Vendor", "Node"} - -func (ec *executionContext) _Vendor(ctx context.Context, sel ast.SelectionSet, obj *types.Vendor) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorImplementors) - - 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("Vendor") - case "id": - out.Values[i] = ec._Vendor_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec._Vendor_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec._Vendor_description(ctx, field, obj) - case "category": - out.Values[i] = ec._Vendor_category(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "websiteUrl": - out.Values[i] = ec._Vendor_websiteUrl(ctx, field, obj) - case "privacyPolicyUrl": - out.Values[i] = ec._Vendor_privacyPolicyUrl(ctx, field, obj) - case "countries": - out.Values[i] = ec._Vendor_countries(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 vendorConnectionImplementors = []string{"VendorConnection"} - -func (ec *executionContext) _VendorConnection(ctx context.Context, sel ast.SelectionSet, obj *types.VendorConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorConnectionImplementors) - - 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("VendorConnection") - case "edges": - out.Values[i] = ec._VendorConnection_edges(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "pageInfo": - out.Values[i] = ec._VendorConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "totalCount": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._VendorConnection_totalCount(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run 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 vendorEdgeImplementors = []string{"VendorEdge"} - -func (ec *executionContext) _VendorEdge(ctx context.Context, sel ast.SelectionSet, obj *types.VendorEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, vendorEdgeImplementors) - - 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("VendorEdge") - case "cursor": - out.Values[i] = ec._VendorEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "node": - out.Values[i] = ec._VendorEdge_node(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 verifyMagicLinkPayloadImplementors = []string{"VerifyMagicLinkPayload"} - -func (ec *executionContext) _VerifyMagicLinkPayload(ctx context.Context, sel ast.SelectionSet, obj *types.VerifyMagicLinkPayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, verifyMagicLinkPayloadImplementors) - - 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("VerifyMagicLinkPayload") - case "continue": - out.Values[i] = ec._VerifyMagicLinkPayload_continue(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 "isRepeatable": - out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - 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++ - } - 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) - case "isDeprecated": - out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___InputValue_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 __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 "specifiedByURL": - out.Values[i] = ec.___Type_specifiedByURL(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 "isOneOf": - out.Values[i] = ec.___Type_isOneOf(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) unmarshalNAcceptElectronicSignatureInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAcceptElectronicSignatureInput(ctx context.Context, v any) (types.AcceptElectronicSignatureInput, error) { - res, err := ec.unmarshalInputAcceptElectronicSignatureInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAudit(ctx context.Context, sel ast.SelectionSet, v *types.Audit) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Audit(ctx, sel, v) -} - -func (ec *executionContext) marshalNAuditConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAuditConnection(ctx context.Context, sel ast.SelectionSet, v types.AuditConnection) graphql.Marshaler { - return ec._AuditConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAuditConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAuditConnection(ctx context.Context, sel ast.SelectionSet, v *types.AuditConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AuditConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNAuditEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAuditEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.AuditEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNAuditEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAuditEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNAuditEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAuditEdge(ctx context.Context, sel ast.SelectionSet, v *types.AuditEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AuditEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalBoolean(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNComplianceExternalURL2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceExternalURL(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceExternalURL) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceExternalURL(ctx, sel, v) -} - -func (ec *executionContext) marshalNComplianceExternalURLConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceExternalURLConnection(ctx context.Context, sel ast.SelectionSet, v types.ComplianceExternalURLConnection) graphql.Marshaler { - return ec._ComplianceExternalURLConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNComplianceExternalURLConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceExternalURLConnection(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceExternalURLConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceExternalURLConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNComplianceExternalURLEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceExternalURLEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ComplianceExternalURLEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNComplianceExternalURLEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceExternalURLEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNComplianceExternalURLEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceExternalURLEdge(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceExternalURLEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceExternalURLEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalNComplianceFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceFramework(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceFramework) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceFramework(ctx, sel, v) -} - -func (ec *executionContext) marshalNComplianceFrameworkConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceFrameworkConnection(ctx context.Context, sel ast.SelectionSet, v types.ComplianceFrameworkConnection) graphql.Marshaler { - return ec._ComplianceFrameworkConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNComplianceFrameworkConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceFrameworkConnection(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceFrameworkConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceFrameworkConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNComplianceFrameworkEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceFrameworkEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ComplianceFrameworkEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNComplianceFrameworkEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceFrameworkEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNComplianceFrameworkEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐComplianceFrameworkEdge(ctx context.Context, sel ast.SelectionSet, v *types.ComplianceFrameworkEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ComplianceFrameworkEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode(ctx context.Context, v any) (coredata.CountryCode, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode(ctx context.Context, sel ast.SelectionSet, v coredata.CountryCode) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode = map[string]coredata.CountryCode{ - "AD": coredata.CountryCodeAD, - "AE": coredata.CountryCodeAE, - "AF": coredata.CountryCodeAF, - "AG": coredata.CountryCodeAG, - "AI": coredata.CountryCodeAI, - "AL": coredata.CountryCodeAL, - "AM": coredata.CountryCodeAM, - "AO": coredata.CountryCodeAO, - "AQ": coredata.CountryCodeAQ, - "AR": coredata.CountryCodeAR, - "AS": coredata.CountryCodeAS, - "AT": coredata.CountryCodeAT, - "AU": coredata.CountryCodeAU, - "AW": coredata.CountryCodeAW, - "AX": coredata.CountryCodeAX, - "AZ": coredata.CountryCodeAZ, - "BA": coredata.CountryCodeBA, - "BB": coredata.CountryCodeBB, - "BD": coredata.CountryCodeBD, - "BE": coredata.CountryCodeBE, - "BF": coredata.CountryCodeBF, - "BG": coredata.CountryCodeBG, - "BH": coredata.CountryCodeBH, - "BI": coredata.CountryCodeBI, - "BJ": coredata.CountryCodeBJ, - "BL": coredata.CountryCodeBL, - "BM": coredata.CountryCodeBM, - "BN": coredata.CountryCodeBN, - "BO": coredata.CountryCodeBO, - "BQ": coredata.CountryCodeBQ, - "BR": coredata.CountryCodeBR, - "BS": coredata.CountryCodeBS, - "BT": coredata.CountryCodeBT, - "BV": coredata.CountryCodeBV, - "BW": coredata.CountryCodeBW, - "BY": coredata.CountryCodeBY, - "BZ": coredata.CountryCodeBZ, - "CA": coredata.CountryCodeCA, - "CC": coredata.CountryCodeCC, - "CD": coredata.CountryCodeCD, - "CF": coredata.CountryCodeCF, - "CG": coredata.CountryCodeCG, - "CH": coredata.CountryCodeCH, - "CI": coredata.CountryCodeCI, - "CK": coredata.CountryCodeCK, - "CL": coredata.CountryCodeCL, - "CM": coredata.CountryCodeCM, - "CN": coredata.CountryCodeCN, - "CO": coredata.CountryCodeCO, - "CR": coredata.CountryCodeCR, - "CU": coredata.CountryCodeCU, - "CV": coredata.CountryCodeCV, - "CW": coredata.CountryCodeCW, - "CX": coredata.CountryCodeCX, - "CY": coredata.CountryCodeCY, - "CZ": coredata.CountryCodeCZ, - "DE": coredata.CountryCodeDE, - "DJ": coredata.CountryCodeDJ, - "DK": coredata.CountryCodeDK, - "DM": coredata.CountryCodeDM, - "DO": coredata.CountryCodeDO, - "DZ": coredata.CountryCodeDZ, - "EC": coredata.CountryCodeEC, - "EE": coredata.CountryCodeEE, - "EG": coredata.CountryCodeEG, - "EH": coredata.CountryCodeEH, - "ER": coredata.CountryCodeER, - "ES": coredata.CountryCodeES, - "ET": coredata.CountryCodeET, - "EU": coredata.CountryCodeEU, - "FI": coredata.CountryCodeFI, - "FJ": coredata.CountryCodeFJ, - "FK": coredata.CountryCodeFK, - "FM": coredata.CountryCodeFM, - "FO": coredata.CountryCodeFO, - "FR": coredata.CountryCodeFR, - "GA": coredata.CountryCodeGA, - "GB": coredata.CountryCodeGB, - "GD": coredata.CountryCodeGD, - "GE": coredata.CountryCodeGE, - "GF": coredata.CountryCodeGF, - "GG": coredata.CountryCodeGG, - "GH": coredata.CountryCodeGH, - "GI": coredata.CountryCodeGI, - "GL": coredata.CountryCodeGL, - "GM": coredata.CountryCodeGM, - "GN": coredata.CountryCodeGN, - "GP": coredata.CountryCodeGP, - "GQ": coredata.CountryCodeGQ, - "GR": coredata.CountryCodeGR, - "GT": coredata.CountryCodeGT, - "GU": coredata.CountryCodeGU, - "GW": coredata.CountryCodeGW, - "GY": coredata.CountryCodeGY, - "HK": coredata.CountryCodeHK, - "HM": coredata.CountryCodeHM, - "HN": coredata.CountryCodeHN, - "HR": coredata.CountryCodeHR, - "HT": coredata.CountryCodeHT, - "HU": coredata.CountryCodeHU, - "ID": coredata.CountryCodeID, - "IE": coredata.CountryCodeIE, - "IL": coredata.CountryCodeIL, - "IM": coredata.CountryCodeIM, - "IN": coredata.CountryCodeIN, - "IO": coredata.CountryCodeIO, - "IQ": coredata.CountryCodeIQ, - "IR": coredata.CountryCodeIR, - "IS": coredata.CountryCodeIS, - "IT": coredata.CountryCodeIT, - "JE": coredata.CountryCodeJE, - "JM": coredata.CountryCodeJM, - "JO": coredata.CountryCodeJO, - "JP": coredata.CountryCodeJP, - "KE": coredata.CountryCodeKE, - "KG": coredata.CountryCodeKG, - "KH": coredata.CountryCodeKH, - "KI": coredata.CountryCodeKI, - "KM": coredata.CountryCodeKM, - "KN": coredata.CountryCodeKN, - "KP": coredata.CountryCodeKP, - "KR": coredata.CountryCodeKR, - "KW": coredata.CountryCodeKW, - "KY": coredata.CountryCodeKY, - "KZ": coredata.CountryCodeKZ, - "LA": coredata.CountryCodeLA, - "LB": coredata.CountryCodeLB, - "LC": coredata.CountryCodeLC, - "LI": coredata.CountryCodeLI, - "LK": coredata.CountryCodeLK, - "LR": coredata.CountryCodeLR, - "LS": coredata.CountryCodeLS, - "LT": coredata.CountryCodeLT, - "LU": coredata.CountryCodeLU, - "LV": coredata.CountryCodeLV, - "LY": coredata.CountryCodeLY, - "MA": coredata.CountryCodeMA, - "MC": coredata.CountryCodeMC, - "MD": coredata.CountryCodeMD, - "ME": coredata.CountryCodeME, - "MF": coredata.CountryCodeMF, - "MG": coredata.CountryCodeMG, - "MH": coredata.CountryCodeMH, - "MK": coredata.CountryCodeMK, - "ML": coredata.CountryCodeML, - "MM": coredata.CountryCodeMM, - "MN": coredata.CountryCodeMN, - "MO": coredata.CountryCodeMO, - "MP": coredata.CountryCodeMP, - "MQ": coredata.CountryCodeMQ, - "MR": coredata.CountryCodeMR, - "MS": coredata.CountryCodeMS, - "MT": coredata.CountryCodeMT, - "MU": coredata.CountryCodeMU, - "MV": coredata.CountryCodeMV, - "MW": coredata.CountryCodeMW, - "MX": coredata.CountryCodeMX, - "MY": coredata.CountryCodeMY, - "MZ": coredata.CountryCodeMZ, - "NA": coredata.CountryCodeNA, - "NC": coredata.CountryCodeNC, - "NE": coredata.CountryCodeNE, - "NF": coredata.CountryCodeNF, - "NG": coredata.CountryCodeNG, - "NI": coredata.CountryCodeNI, - "NL": coredata.CountryCodeNL, - "NO": coredata.CountryCodeNO, - "NP": coredata.CountryCodeNP, - "NR": coredata.CountryCodeNR, - "NU": coredata.CountryCodeNU, - "NZ": coredata.CountryCodeNZ, - "OM": coredata.CountryCodeOM, - "PA": coredata.CountryCodePA, - "PE": coredata.CountryCodePE, - "PF": coredata.CountryCodePF, - "PG": coredata.CountryCodePG, - "PH": coredata.CountryCodePH, - "PK": coredata.CountryCodePK, - "PL": coredata.CountryCodePL, - "PM": coredata.CountryCodePM, - "PN": coredata.CountryCodePN, - "PR": coredata.CountryCodePR, - "PS": coredata.CountryCodePS, - "PT": coredata.CountryCodePT, - "PW": coredata.CountryCodePW, - "PY": coredata.CountryCodePY, - "QA": coredata.CountryCodeQA, - "RE": coredata.CountryCodeRE, - "RO": coredata.CountryCodeRO, - "RS": coredata.CountryCodeRS, - "RU": coredata.CountryCodeRU, - "RW": coredata.CountryCodeRW, - "SA": coredata.CountryCodeSA, - "SB": coredata.CountryCodeSB, - "SC": coredata.CountryCodeSC, - "SD": coredata.CountryCodeSD, - "SE": coredata.CountryCodeSE, - "SG": coredata.CountryCodeSG, - "SH": coredata.CountryCodeSH, - "SI": coredata.CountryCodeSI, - "SJ": coredata.CountryCodeSJ, - "SK": coredata.CountryCodeSK, - "SL": coredata.CountryCodeSL, - "SM": coredata.CountryCodeSM, - "SN": coredata.CountryCodeSN, - "SO": coredata.CountryCodeSO, - "SR": coredata.CountryCodeSR, - "SS": coredata.CountryCodeSS, - "ST": coredata.CountryCodeST, - "SV": coredata.CountryCodeSV, - "SX": coredata.CountryCodeSX, - "SY": coredata.CountryCodeSY, - "SZ": coredata.CountryCodeSZ, - "TC": coredata.CountryCodeTC, - "TD": coredata.CountryCodeTD, - "TF": coredata.CountryCodeTF, - "TG": coredata.CountryCodeTG, - "TH": coredata.CountryCodeTH, - "TJ": coredata.CountryCodeTJ, - "TK": coredata.CountryCodeTK, - "TL": coredata.CountryCodeTL, - "TM": coredata.CountryCodeTM, - "TN": coredata.CountryCodeTN, - "TO": coredata.CountryCodeTO, - "TR": coredata.CountryCodeTR, - "TT": coredata.CountryCodeTT, - "TV": coredata.CountryCodeTV, - "TW": coredata.CountryCodeTW, - "TZ": coredata.CountryCodeTZ, - "UA": coredata.CountryCodeUA, - "UG": coredata.CountryCodeUG, - "UM": coredata.CountryCodeUM, - "US": coredata.CountryCodeUS, - "UY": coredata.CountryCodeUY, - "UZ": coredata.CountryCodeUZ, - "VA": coredata.CountryCodeVA, - "VC": coredata.CountryCodeVC, - "VE": coredata.CountryCodeVE, - "VG": coredata.CountryCodeVG, - "VI": coredata.CountryCodeVI, - "VN": coredata.CountryCodeVN, - "VU": coredata.CountryCodeVU, - "WF": coredata.CountryCodeWF, - "WS": coredata.CountryCodeWS, - "YE": coredata.CountryCodeYE, - "YT": coredata.CountryCodeYT, - "ZA": coredata.CountryCodeZA, - "ZM": coredata.CountryCodeZM, - "ZW": coredata.CountryCodeZW, - } - marshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode = map[coredata.CountryCode]string{ - coredata.CountryCodeAD: "AD", - coredata.CountryCodeAE: "AE", - coredata.CountryCodeAF: "AF", - coredata.CountryCodeAG: "AG", - coredata.CountryCodeAI: "AI", - coredata.CountryCodeAL: "AL", - coredata.CountryCodeAM: "AM", - coredata.CountryCodeAO: "AO", - coredata.CountryCodeAQ: "AQ", - coredata.CountryCodeAR: "AR", - coredata.CountryCodeAS: "AS", - coredata.CountryCodeAT: "AT", - coredata.CountryCodeAU: "AU", - coredata.CountryCodeAW: "AW", - coredata.CountryCodeAX: "AX", - coredata.CountryCodeAZ: "AZ", - coredata.CountryCodeBA: "BA", - coredata.CountryCodeBB: "BB", - coredata.CountryCodeBD: "BD", - coredata.CountryCodeBE: "BE", - coredata.CountryCodeBF: "BF", - coredata.CountryCodeBG: "BG", - coredata.CountryCodeBH: "BH", - coredata.CountryCodeBI: "BI", - coredata.CountryCodeBJ: "BJ", - coredata.CountryCodeBL: "BL", - coredata.CountryCodeBM: "BM", - coredata.CountryCodeBN: "BN", - coredata.CountryCodeBO: "BO", - coredata.CountryCodeBQ: "BQ", - coredata.CountryCodeBR: "BR", - coredata.CountryCodeBS: "BS", - coredata.CountryCodeBT: "BT", - coredata.CountryCodeBV: "BV", - coredata.CountryCodeBW: "BW", - coredata.CountryCodeBY: "BY", - coredata.CountryCodeBZ: "BZ", - coredata.CountryCodeCA: "CA", - coredata.CountryCodeCC: "CC", - coredata.CountryCodeCD: "CD", - coredata.CountryCodeCF: "CF", - coredata.CountryCodeCG: "CG", - coredata.CountryCodeCH: "CH", - coredata.CountryCodeCI: "CI", - coredata.CountryCodeCK: "CK", - coredata.CountryCodeCL: "CL", - coredata.CountryCodeCM: "CM", - coredata.CountryCodeCN: "CN", - coredata.CountryCodeCO: "CO", - coredata.CountryCodeCR: "CR", - coredata.CountryCodeCU: "CU", - coredata.CountryCodeCV: "CV", - coredata.CountryCodeCW: "CW", - coredata.CountryCodeCX: "CX", - coredata.CountryCodeCY: "CY", - coredata.CountryCodeCZ: "CZ", - coredata.CountryCodeDE: "DE", - coredata.CountryCodeDJ: "DJ", - coredata.CountryCodeDK: "DK", - coredata.CountryCodeDM: "DM", - coredata.CountryCodeDO: "DO", - coredata.CountryCodeDZ: "DZ", - coredata.CountryCodeEC: "EC", - coredata.CountryCodeEE: "EE", - coredata.CountryCodeEG: "EG", - coredata.CountryCodeEH: "EH", - coredata.CountryCodeER: "ER", - coredata.CountryCodeES: "ES", - coredata.CountryCodeET: "ET", - coredata.CountryCodeEU: "EU", - coredata.CountryCodeFI: "FI", - coredata.CountryCodeFJ: "FJ", - coredata.CountryCodeFK: "FK", - coredata.CountryCodeFM: "FM", - coredata.CountryCodeFO: "FO", - coredata.CountryCodeFR: "FR", - coredata.CountryCodeGA: "GA", - coredata.CountryCodeGB: "GB", - coredata.CountryCodeGD: "GD", - coredata.CountryCodeGE: "GE", - coredata.CountryCodeGF: "GF", - coredata.CountryCodeGG: "GG", - coredata.CountryCodeGH: "GH", - coredata.CountryCodeGI: "GI", - coredata.CountryCodeGL: "GL", - coredata.CountryCodeGM: "GM", - coredata.CountryCodeGN: "GN", - coredata.CountryCodeGP: "GP", - coredata.CountryCodeGQ: "GQ", - coredata.CountryCodeGR: "GR", - coredata.CountryCodeGT: "GT", - coredata.CountryCodeGU: "GU", - coredata.CountryCodeGW: "GW", - coredata.CountryCodeGY: "GY", - coredata.CountryCodeHK: "HK", - coredata.CountryCodeHM: "HM", - coredata.CountryCodeHN: "HN", - coredata.CountryCodeHR: "HR", - coredata.CountryCodeHT: "HT", - coredata.CountryCodeHU: "HU", - coredata.CountryCodeID: "ID", - coredata.CountryCodeIE: "IE", - coredata.CountryCodeIL: "IL", - coredata.CountryCodeIM: "IM", - coredata.CountryCodeIN: "IN", - coredata.CountryCodeIO: "IO", - coredata.CountryCodeIQ: "IQ", - coredata.CountryCodeIR: "IR", - coredata.CountryCodeIS: "IS", - coredata.CountryCodeIT: "IT", - coredata.CountryCodeJE: "JE", - coredata.CountryCodeJM: "JM", - coredata.CountryCodeJO: "JO", - coredata.CountryCodeJP: "JP", - coredata.CountryCodeKE: "KE", - coredata.CountryCodeKG: "KG", - coredata.CountryCodeKH: "KH", - coredata.CountryCodeKI: "KI", - coredata.CountryCodeKM: "KM", - coredata.CountryCodeKN: "KN", - coredata.CountryCodeKP: "KP", - coredata.CountryCodeKR: "KR", - coredata.CountryCodeKW: "KW", - coredata.CountryCodeKY: "KY", - coredata.CountryCodeKZ: "KZ", - coredata.CountryCodeLA: "LA", - coredata.CountryCodeLB: "LB", - coredata.CountryCodeLC: "LC", - coredata.CountryCodeLI: "LI", - coredata.CountryCodeLK: "LK", - coredata.CountryCodeLR: "LR", - coredata.CountryCodeLS: "LS", - coredata.CountryCodeLT: "LT", - coredata.CountryCodeLU: "LU", - coredata.CountryCodeLV: "LV", - coredata.CountryCodeLY: "LY", - coredata.CountryCodeMA: "MA", - coredata.CountryCodeMC: "MC", - coredata.CountryCodeMD: "MD", - coredata.CountryCodeME: "ME", - coredata.CountryCodeMF: "MF", - coredata.CountryCodeMG: "MG", - coredata.CountryCodeMH: "MH", - coredata.CountryCodeMK: "MK", - coredata.CountryCodeML: "ML", - coredata.CountryCodeMM: "MM", - coredata.CountryCodeMN: "MN", - coredata.CountryCodeMO: "MO", - coredata.CountryCodeMP: "MP", - coredata.CountryCodeMQ: "MQ", - coredata.CountryCodeMR: "MR", - coredata.CountryCodeMS: "MS", - coredata.CountryCodeMT: "MT", - coredata.CountryCodeMU: "MU", - coredata.CountryCodeMV: "MV", - coredata.CountryCodeMW: "MW", - coredata.CountryCodeMX: "MX", - coredata.CountryCodeMY: "MY", - coredata.CountryCodeMZ: "MZ", - coredata.CountryCodeNA: "NA", - coredata.CountryCodeNC: "NC", - coredata.CountryCodeNE: "NE", - coredata.CountryCodeNF: "NF", - coredata.CountryCodeNG: "NG", - coredata.CountryCodeNI: "NI", - coredata.CountryCodeNL: "NL", - coredata.CountryCodeNO: "NO", - coredata.CountryCodeNP: "NP", - coredata.CountryCodeNR: "NR", - coredata.CountryCodeNU: "NU", - coredata.CountryCodeNZ: "NZ", - coredata.CountryCodeOM: "OM", - coredata.CountryCodePA: "PA", - coredata.CountryCodePE: "PE", - coredata.CountryCodePF: "PF", - coredata.CountryCodePG: "PG", - coredata.CountryCodePH: "PH", - coredata.CountryCodePK: "PK", - coredata.CountryCodePL: "PL", - coredata.CountryCodePM: "PM", - coredata.CountryCodePN: "PN", - coredata.CountryCodePR: "PR", - coredata.CountryCodePS: "PS", - coredata.CountryCodePT: "PT", - coredata.CountryCodePW: "PW", - coredata.CountryCodePY: "PY", - coredata.CountryCodeQA: "QA", - coredata.CountryCodeRE: "RE", - coredata.CountryCodeRO: "RO", - coredata.CountryCodeRS: "RS", - coredata.CountryCodeRU: "RU", - coredata.CountryCodeRW: "RW", - coredata.CountryCodeSA: "SA", - coredata.CountryCodeSB: "SB", - coredata.CountryCodeSC: "SC", - coredata.CountryCodeSD: "SD", - coredata.CountryCodeSE: "SE", - coredata.CountryCodeSG: "SG", - coredata.CountryCodeSH: "SH", - coredata.CountryCodeSI: "SI", - coredata.CountryCodeSJ: "SJ", - coredata.CountryCodeSK: "SK", - coredata.CountryCodeSL: "SL", - coredata.CountryCodeSM: "SM", - coredata.CountryCodeSN: "SN", - coredata.CountryCodeSO: "SO", - coredata.CountryCodeSR: "SR", - coredata.CountryCodeSS: "SS", - coredata.CountryCodeST: "ST", - coredata.CountryCodeSV: "SV", - coredata.CountryCodeSX: "SX", - coredata.CountryCodeSY: "SY", - coredata.CountryCodeSZ: "SZ", - coredata.CountryCodeTC: "TC", - coredata.CountryCodeTD: "TD", - coredata.CountryCodeTF: "TF", - coredata.CountryCodeTG: "TG", - coredata.CountryCodeTH: "TH", - coredata.CountryCodeTJ: "TJ", - coredata.CountryCodeTK: "TK", - coredata.CountryCodeTL: "TL", - coredata.CountryCodeTM: "TM", - coredata.CountryCodeTN: "TN", - coredata.CountryCodeTO: "TO", - coredata.CountryCodeTR: "TR", - coredata.CountryCodeTT: "TT", - coredata.CountryCodeTV: "TV", - coredata.CountryCodeTW: "TW", - coredata.CountryCodeTZ: "TZ", - coredata.CountryCodeUA: "UA", - coredata.CountryCodeUG: "UG", - coredata.CountryCodeUM: "UM", - coredata.CountryCodeUS: "US", - coredata.CountryCodeUY: "UY", - coredata.CountryCodeUZ: "UZ", - coredata.CountryCodeVA: "VA", - coredata.CountryCodeVC: "VC", - coredata.CountryCodeVE: "VE", - coredata.CountryCodeVG: "VG", - coredata.CountryCodeVI: "VI", - coredata.CountryCodeVN: "VN", - coredata.CountryCodeVU: "VU", - coredata.CountryCodeWF: "WF", - coredata.CountryCodeWS: "WS", - coredata.CountryCodeYE: "YE", - coredata.CountryCodeYT: "YT", - coredata.CountryCodeZA: "ZA", - coredata.CountryCodeZM: "ZM", - coredata.CountryCodeZW: "ZW", - } -) - -func (ec *executionContext) unmarshalNCountryCode2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCodeᚄ(ctx context.Context, v any) ([]coredata.CountryCode, error) { - var vSlice []any - vSlice = graphql.CoerceList(v) - var err error - res := make([]coredata.CountryCode, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNCountryCode2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCodeᚄ(ctx context.Context, sel ast.SelectionSet, v []coredata.CountryCode) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNCountryCode2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐCountryCode(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (page.CursorKey, error) { - res, err := cursor.UnmarshalCursorKeyScalar(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, sel ast.SelectionSet, v page.CursorKey) graphql.Marshaler { - _ = sel - res := cursor.MarshalCursorKeyScalar(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNDatetime2timeᚐTime(ctx context.Context, v any) (time.Time, error) { - res, err := graphql.UnmarshalTime(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDatetime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { - _ = sel - res := graphql.MarshalTime(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNDocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocument(ctx context.Context, sel ast.SelectionSet, v *types.Document) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Document(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus(ctx context.Context, v any) (coredata.TrustCenterDocumentAccessStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus(ctx context.Context, sel ast.SelectionSet, v coredata.TrustCenterDocumentAccessStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus = map[string]coredata.TrustCenterDocumentAccessStatus{ - "REQUESTED": coredata.TrustCenterDocumentAccessStatusRequested, - "GRANTED": coredata.TrustCenterDocumentAccessStatusGranted, - "REJECTED": coredata.TrustCenterDocumentAccessStatusRejected, - "REVOKED": coredata.TrustCenterDocumentAccessStatusRevoked, - } - marshalNDocumentAccessStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐTrustCenterDocumentAccessStatus = map[coredata.TrustCenterDocumentAccessStatus]string{ - coredata.TrustCenterDocumentAccessStatusRequested: "REQUESTED", - coredata.TrustCenterDocumentAccessStatusGranted: "GRANTED", - coredata.TrustCenterDocumentAccessStatusRejected: "REJECTED", - coredata.TrustCenterDocumentAccessStatusRevoked: "REVOKED", - } -) - -func (ec *executionContext) marshalNDocumentConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentConnection(ctx context.Context, sel ast.SelectionSet, v types.DocumentConnection) graphql.Marshaler { - return ec._DocumentConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocumentConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentConnection(ctx context.Context, sel ast.SelectionSet, v *types.DocumentConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNDocumentEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.DocumentEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNDocumentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNDocumentEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentEdge(ctx context.Context, sel ast.SelectionSet, v *types.DocumentEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx context.Context, v any) (coredata.DocumentType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v coredata.DocumentType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType = map[string]coredata.DocumentType{ - "OTHER": coredata.DocumentTypeOther, - "ISMS": coredata.DocumentTypeISMS, - "POLICY": coredata.DocumentTypePolicy, - "PROCEDURE": coredata.DocumentTypeProcedure, - } - marshalNDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐDocumentType = map[coredata.DocumentType]string{ - coredata.DocumentTypeOther: "OTHER", - coredata.DocumentTypeISMS: "ISMS", - coredata.DocumentTypePolicy: "POLICY", - coredata.DocumentTypeProcedure: "PROCEDURE", - } -) - -func (ec *executionContext) marshalNElectronicSignature2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐElectronicSignature(ctx context.Context, sel ast.SelectionSet, v *types.ElectronicSignature) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ElectronicSignature(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType(ctx context.Context, v any) (coredata.ElectronicSignatureDocumentType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType(ctx context.Context, sel ast.SelectionSet, v coredata.ElectronicSignatureDocumentType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType = map[string]coredata.ElectronicSignatureDocumentType{ - "NDA": coredata.ElectronicSignatureDocumentTypeNDA, - "DPA": coredata.ElectronicSignatureDocumentTypeDPA, - "MSA": coredata.ElectronicSignatureDocumentTypeMSA, - "SOW": coredata.ElectronicSignatureDocumentTypeSOW, - "SLA": coredata.ElectronicSignatureDocumentTypeSLA, - "TOS": coredata.ElectronicSignatureDocumentTypeTOS, - "PRIVACY_POLICY": coredata.ElectronicSignatureDocumentTypePrivacyPolicy, - "OTHER": coredata.ElectronicSignatureDocumentTypeOther, - } - marshalNElectronicSignatureDocumentType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureDocumentType = map[coredata.ElectronicSignatureDocumentType]string{ - coredata.ElectronicSignatureDocumentTypeNDA: "NDA", - coredata.ElectronicSignatureDocumentTypeDPA: "DPA", - coredata.ElectronicSignatureDocumentTypeMSA: "MSA", - coredata.ElectronicSignatureDocumentTypeSOW: "SOW", - coredata.ElectronicSignatureDocumentTypeSLA: "SLA", - coredata.ElectronicSignatureDocumentTypeTOS: "TOS", - coredata.ElectronicSignatureDocumentTypePrivacyPolicy: "PRIVACY_POLICY", - coredata.ElectronicSignatureDocumentTypeOther: "OTHER", - } -) - -func (ec *executionContext) unmarshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType(ctx context.Context, v any) (coredata.ElectronicSignatureEventType, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType(ctx context.Context, sel ast.SelectionSet, v coredata.ElectronicSignatureEventType) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType = map[string]coredata.ElectronicSignatureEventType{ - "DOCUMENT_VIEWED": coredata.ElectronicSignatureEventTypeDocumentViewed, - "CONSENT_GIVEN": coredata.ElectronicSignatureEventTypeConsentGiven, - "FULL_NAME_TYPED": coredata.ElectronicSignatureEventTypeFullNameTyped, - "SIGNATURE_ACCEPTED": coredata.ElectronicSignatureEventTypeSignatureAccepted, - "SIGNATURE_COMPLETED": coredata.ElectronicSignatureEventTypeSignatureCompleted, - "SEAL_COMPUTED": coredata.ElectronicSignatureEventTypeSealComputed, - "TIMESTAMP_REQUESTED": coredata.ElectronicSignatureEventTypeTimestampRequested, - "CERTIFICATE_GENERATED": coredata.ElectronicSignatureEventTypeCertificateGenerated, - "PROCESSING_ERROR": coredata.ElectronicSignatureEventTypeProcessingError, - } - marshalNElectronicSignatureEventType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureEventType = map[coredata.ElectronicSignatureEventType]string{ - coredata.ElectronicSignatureEventTypeDocumentViewed: "DOCUMENT_VIEWED", - coredata.ElectronicSignatureEventTypeConsentGiven: "CONSENT_GIVEN", - coredata.ElectronicSignatureEventTypeFullNameTyped: "FULL_NAME_TYPED", - coredata.ElectronicSignatureEventTypeSignatureAccepted: "SIGNATURE_ACCEPTED", - coredata.ElectronicSignatureEventTypeSignatureCompleted: "SIGNATURE_COMPLETED", - coredata.ElectronicSignatureEventTypeSealComputed: "SEAL_COMPUTED", - coredata.ElectronicSignatureEventTypeTimestampRequested: "TIMESTAMP_REQUESTED", - coredata.ElectronicSignatureEventTypeCertificateGenerated: "CERTIFICATE_GENERATED", - coredata.ElectronicSignatureEventTypeProcessingError: "PROCESSING_ERROR", - } -) - -func (ec *executionContext) unmarshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus(ctx context.Context, v any) (coredata.ElectronicSignatureStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus(ctx context.Context, sel ast.SelectionSet, v coredata.ElectronicSignatureStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus = map[string]coredata.ElectronicSignatureStatus{ - "PENDING": coredata.ElectronicSignatureStatusPending, - "ACCEPTED": coredata.ElectronicSignatureStatusAccepted, - "PROCESSING": coredata.ElectronicSignatureStatusProcessing, - "COMPLETED": coredata.ElectronicSignatureStatusCompleted, - "FAILED": coredata.ElectronicSignatureStatusFailed, - } - marshalNElectronicSignatureStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐElectronicSignatureStatus = map[coredata.ElectronicSignatureStatus]string{ - coredata.ElectronicSignatureStatusPending: "PENDING", - coredata.ElectronicSignatureStatusAccepted: "ACCEPTED", - coredata.ElectronicSignatureStatusProcessing: "PROCESSING", - coredata.ElectronicSignatureStatusCompleted: "COMPLETED", - coredata.ElectronicSignatureStatusFailed: "FAILED", - } -) - -func (ec *executionContext) unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx context.Context, v any) (mail.Addr, error) { - res, err := mail1.UnmarshalAddrScalar(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx context.Context, sel ast.SelectionSet, v mail.Addr) graphql.Marshaler { - _ = sel - res := mail1.MarshalAddrScalar(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNExportDocumentPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportDocumentPDFInput(ctx context.Context, v any) (types.ExportDocumentPDFInput, error) { - res, err := ec.unmarshalInputExportDocumentPDFInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExportDocumentPDFPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportDocumentPDFPayload(ctx context.Context, sel ast.SelectionSet, v types.ExportDocumentPDFPayload) graphql.Marshaler { - return ec._ExportDocumentPDFPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExportDocumentPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportDocumentPDFPayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportDocumentPDFPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExportDocumentPDFPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNExportReportPDFInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportReportPDFInput(ctx context.Context, v any) (types.ExportReportPDFInput, error) { - res, err := ec.unmarshalInputExportReportPDFInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExportReportPDFPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportReportPDFPayload(ctx context.Context, sel ast.SelectionSet, v types.ExportReportPDFPayload) graphql.Marshaler { - return ec._ExportReportPDFPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExportReportPDFPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportReportPDFPayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportReportPDFPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExportReportPDFPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNExportTrustCenterFileInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportTrustCenterFileInput(ctx context.Context, v any) (types.ExportTrustCenterFileInput, error) { - res, err := ec.unmarshalInputExportTrustCenterFileInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNExportTrustCenterFilePayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, v types.ExportTrustCenterFilePayload) graphql.Marshaler { - return ec._ExportTrustCenterFilePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNExportTrustCenterFilePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐExportTrustCenterFilePayload(ctx context.Context, sel ast.SelectionSet, v *types.ExportTrustCenterFilePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ExportTrustCenterFilePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNFramework2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐFramework(ctx context.Context, sel ast.SelectionSet, v types.Framework) graphql.Marshaler { - return ec._Framework(ctx, sel, &v) -} - -func (ec *executionContext) marshalNFramework2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐFramework(ctx context.Context, sel ast.SelectionSet, v *types.Framework) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Framework(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (gid.GID, error) { - res, err := gid1.UnmarshalGIDScalar(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, sel ast.SelectionSet, v gid.GID) graphql.Marshaler { - _ = sel - res := gid1.MarshalGIDScalar(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalInt(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNMailingListSubscriber2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListSubscriber(ctx context.Context, sel ast.SelectionSet, v *types.MailingListSubscriber) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingListSubscriber(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus(ctx context.Context, v any) (coredata.MailingListSubscriberStatus, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus(ctx context.Context, sel ast.SelectionSet, v coredata.MailingListSubscriberStatus) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus = map[string]coredata.MailingListSubscriberStatus{ - "PENDING": coredata.MailingListSubscriberStatusPending, - "CONFIRMED": coredata.MailingListSubscriberStatusConfirmed, - } - marshalNMailingListSubscriberStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMailingListSubscriberStatus = map[coredata.MailingListSubscriberStatus]string{ - coredata.MailingListSubscriberStatusPending: "PENDING", - coredata.MailingListSubscriberStatusConfirmed: "CONFIRMED", - } -) - -func (ec *executionContext) marshalNMailingListUpdate2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdate(ctx context.Context, sel ast.SelectionSet, v *types.MailingListUpdate) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingListUpdate(ctx, sel, v) -} - -func (ec *executionContext) marshalNMailingListUpdateConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateConnection(ctx context.Context, sel ast.SelectionSet, v types.MailingListUpdateConnection) graphql.Marshaler { - return ec._MailingListUpdateConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNMailingListUpdateConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateConnection(ctx context.Context, sel ast.SelectionSet, v *types.MailingListUpdateConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingListUpdateConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNMailingListUpdateEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.MailingListUpdateEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNMailingListUpdateEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNMailingListUpdateEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListUpdateEdge(ctx context.Context, sel ast.SelectionSet, v *types.MailingListUpdateEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._MailingListUpdateEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalNNode2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐNode(ctx context.Context, sel ast.SelectionSet, v types.Node) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Node(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganization2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v types.Organization) graphql.Marshaler { - return ec._Organization(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *types.Organization) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Organization(ctx, sel, v) -} - -func (ec *executionContext) marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v types.PageInfo) graphql.Marshaler { - return ec._PageInfo(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPageInfo2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v *types.PageInfo) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PageInfo(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNRecordSigningEventInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRecordSigningEventInput(ctx context.Context, v any) (types.RecordSigningEventInput, error) { - res, err := ec.unmarshalInputRecordSigningEventInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRequestAccessesPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestAccessesPayload(ctx context.Context, sel ast.SelectionSet, v types.RequestAccessesPayload) graphql.Marshaler { - return ec._RequestAccessesPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRequestAccessesPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestAccessesPayload(ctx context.Context, sel ast.SelectionSet, v *types.RequestAccessesPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RequestAccessesPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNRequestDocumentAccessInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestDocumentAccessInput(ctx context.Context, v any) (types.RequestDocumentAccessInput, error) { - res, err := ec.unmarshalInputRequestDocumentAccessInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRequestDocumentAccessPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestDocumentAccessPayload(ctx context.Context, sel ast.SelectionSet, v types.RequestDocumentAccessPayload) graphql.Marshaler { - return ec._RequestDocumentAccessPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRequestDocumentAccessPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestDocumentAccessPayload(ctx context.Context, sel ast.SelectionSet, v *types.RequestDocumentAccessPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RequestDocumentAccessPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNRequestFileAccessPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestFileAccessPayload(ctx context.Context, sel ast.SelectionSet, v types.RequestFileAccessPayload) graphql.Marshaler { - return ec._RequestFileAccessPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRequestFileAccessPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestFileAccessPayload(ctx context.Context, sel ast.SelectionSet, v *types.RequestFileAccessPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RequestFileAccessPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNRequestReportAccessInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestReportAccessInput(ctx context.Context, v any) (types.RequestReportAccessInput, error) { - res, err := ec.unmarshalInputRequestReportAccessInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNRequestReportAccessPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestReportAccessPayload(ctx context.Context, sel ast.SelectionSet, v types.RequestReportAccessPayload) graphql.Marshaler { - return ec._RequestReportAccessPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRequestReportAccessPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestReportAccessPayload(ctx context.Context, sel ast.SelectionSet, v *types.RequestReportAccessPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RequestReportAccessPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNRequestTrustCenterFileAccessInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRequestTrustCenterFileAccessInput(ctx context.Context, v any) (types.RequestTrustCenterFileAccessInput, error) { - res, err := ec.unmarshalInputRequestTrustCenterFileAccessInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNSendMagicLinkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐSendMagicLinkInput(ctx context.Context, v any) (types.SendMagicLinkInput, error) { - res, err := ec.unmarshalInputSendMagicLinkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx context.Context, v any) (session.SessionRequirement, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx context.Context, sel ast.SelectionSet, v session.SessionRequirement) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement = map[string]session.SessionRequirement{ - "PRESENT": session.SessionRequirementPresent, - "NONE": session.SessionRequirementNone, - "OPTIONAL": session.SessionRequirementOptional, - } - marshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement = map[session.SessionRequirement]string{ - session.SessionRequirementPresent: "PRESENT", - session.SessionRequirementNone: "NONE", - session.SessionRequirementOptional: "OPTIONAL", - } -) - -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNSubscribeToMailingListPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐSubscribeToMailingListPayload(ctx context.Context, sel ast.SelectionSet, v types.SubscribeToMailingListPayload) graphql.Marshaler { - return ec._SubscribeToMailingListPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubscribeToMailingListPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐSubscribeToMailingListPayload(ctx context.Context, sel ast.SelectionSet, v *types.SubscribeToMailingListPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SubscribeToMailingListPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterAccess(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterAccess) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterAccess(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFile(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterFile) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterFile(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterFileConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFileConnection(ctx context.Context, sel ast.SelectionSet, v types.TrustCenterFileConnection) graphql.Marshaler { - return ec._TrustCenterFileConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTrustCenterFileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFileConnection(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterFileConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterFileConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterFileEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFileEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TrustCenterFileEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNTrustCenterFileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFileEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTrustCenterFileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFileEdge(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterFileEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterFileEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterReference2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterReference(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterReference) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterReference(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterReferenceConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterReferenceConnection(ctx context.Context, sel ast.SelectionSet, v types.TrustCenterReferenceConnection) graphql.Marshaler { - return ec._TrustCenterReferenceConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTrustCenterReferenceConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterReferenceConnection(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterReferenceConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterReferenceConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNTrustCenterReferenceEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterReferenceEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.TrustCenterReferenceEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNTrustCenterReferenceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterReferenceEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNTrustCenterReferenceEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterReferenceEdge(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterReferenceEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TrustCenterReferenceEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalNUnsubscribeFromMailingListPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐUnsubscribeFromMailingListPayload(ctx context.Context, sel ast.SelectionSet, v types.UnsubscribeFromMailingListPayload) graphql.Marshaler { - return ec._UnsubscribeFromMailingListPayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUnsubscribeFromMailingListPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐUnsubscribeFromMailingListPayload(ctx context.Context, sel ast.SelectionSet, v *types.UnsubscribeFromMailingListPayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UnsubscribeFromMailingListPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUpdateFullNameInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐUpdateFullNameInput(ctx context.Context, v any) (types.UpdateFullNameInput, error) { - res, err := ec.unmarshalInputUpdateFullNameInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNVendor2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVendor(ctx context.Context, sel ast.SelectionSet, v *types.Vendor) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._Vendor(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx context.Context, v any) (coredata.VendorCategory, error) { - tmp, err := graphql.UnmarshalString(v) - res := unmarshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory[tmp] - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory(ctx context.Context, sel ast.SelectionSet, v coredata.VendorCategory) graphql.Marshaler { - _ = sel - res := graphql.MarshalString(marshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory[v]) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -var ( - unmarshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory = map[string]coredata.VendorCategory{ - "ANALYTICS": coredata.VendorCategoryAnalytics, - "CLOUD_MONITORING": coredata.VendorCategoryCloudMonitoring, - "CLOUD_PROVIDER": coredata.VendorCategoryCloudProvider, - "COLLABORATION": coredata.VendorCategoryCollaboration, - "CUSTOMER_SUPPORT": coredata.VendorCategoryCustomerSupport, - "DATA_STORAGE_AND_PROCESSING": coredata.VendorCategoryDataStorageAndProcessing, - "DOCUMENT_MANAGEMENT": coredata.VendorCategoryDocumentManagement, - "EMPLOYEE_MANAGEMENT": coredata.VendorCategoryEmployeeManagement, - "ENGINEERING": coredata.VendorCategoryEngineering, - "FINANCE": coredata.VendorCategoryFinance, - "IDENTITY_PROVIDER": coredata.VendorCategoryIdentityProvider, - "IT": coredata.VendorCategoryIT, - "MARKETING": coredata.VendorCategoryMarketing, - "OFFICE_OPERATIONS": coredata.VendorCategoryOfficeOperations, - "OTHER": coredata.VendorCategoryOther, - "PASSWORD_MANAGEMENT": coredata.VendorCategoryPasswordManagement, - "PRODUCT_AND_DESIGN": coredata.VendorCategoryProductAndDesign, - "PROFESSIONAL_SERVICES": coredata.VendorCategoryProfessionalServices, - "RECRUITING": coredata.VendorCategoryRecruiting, - "SALES": coredata.VendorCategorySales, - "SECURITY": coredata.VendorCategorySecurity, - "VERSION_CONTROL": coredata.VendorCategoryVersionControl, - } - marshalNVendorCategory2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐVendorCategory = map[coredata.VendorCategory]string{ - coredata.VendorCategoryAnalytics: "ANALYTICS", - coredata.VendorCategoryCloudMonitoring: "CLOUD_MONITORING", - coredata.VendorCategoryCloudProvider: "CLOUD_PROVIDER", - coredata.VendorCategoryCollaboration: "COLLABORATION", - coredata.VendorCategoryCustomerSupport: "CUSTOMER_SUPPORT", - coredata.VendorCategoryDataStorageAndProcessing: "DATA_STORAGE_AND_PROCESSING", - coredata.VendorCategoryDocumentManagement: "DOCUMENT_MANAGEMENT", - coredata.VendorCategoryEmployeeManagement: "EMPLOYEE_MANAGEMENT", - coredata.VendorCategoryEngineering: "ENGINEERING", - coredata.VendorCategoryFinance: "FINANCE", - coredata.VendorCategoryIdentityProvider: "IDENTITY_PROVIDER", - coredata.VendorCategoryIT: "IT", - coredata.VendorCategoryMarketing: "MARKETING", - coredata.VendorCategoryOfficeOperations: "OFFICE_OPERATIONS", - coredata.VendorCategoryOther: "OTHER", - coredata.VendorCategoryPasswordManagement: "PASSWORD_MANAGEMENT", - coredata.VendorCategoryProductAndDesign: "PRODUCT_AND_DESIGN", - coredata.VendorCategoryProfessionalServices: "PROFESSIONAL_SERVICES", - coredata.VendorCategoryRecruiting: "RECRUITING", - coredata.VendorCategorySales: "SALES", - coredata.VendorCategorySecurity: "SECURITY", - coredata.VendorCategoryVersionControl: "VERSION_CONTROL", - } -) - -func (ec *executionContext) marshalNVendorConnection2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVendorConnection(ctx context.Context, sel ast.SelectionSet, v types.VendorConnection) graphql.Marshaler { - return ec._VendorConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNVendorConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVendorConnection(ctx context.Context, sel ast.SelectionSet, v *types.VendorConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNVendorEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVendorEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.VendorEdge) graphql.Marshaler { - ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalNVendorEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVendorEdge(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) marshalNVendorEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVendorEdge(ctx context.Context, sel ast.SelectionSet, v *types.VendorEdge) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._VendorEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNVerifyMagicLinkInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVerifyMagicLinkInput(ctx context.Context, v any) (types.VerifyMagicLinkInput, error) { - res, err := ec.unmarshalInputVerifyMagicLinkInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) - }) - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (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 { - _ = sel - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { - var vSlice []any - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - }) - - 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)) { - graphql.AddErrorf(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 any) (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 { - _ = sel - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalOAcceptElectronicSignaturePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAcceptElectronicSignaturePayload(ctx context.Context, sel ast.SelectionSet, v *types.AcceptElectronicSignaturePayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AcceptElectronicSignaturePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOAudit2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐAudit(ctx context.Context, sel ast.SelectionSet, v *types.Audit) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Audit(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (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 { - _ = sel - _ = ctx - res := graphql.MarshalBoolean(v) - return res -} - -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*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 - } - _ = sel - _ = ctx - res := graphql.MarshalBoolean(*v) - return res -} - -func (ec *executionContext) unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (*page.CursorKey, error) { - if v == nil { - return nil, nil - } - res, err := cursor.UnmarshalCursorKeyScalar(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, sel ast.SelectionSet, v *page.CursorKey) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := cursor.MarshalCursorKeyScalar(*v) - return res -} - -func (ec *executionContext) unmarshalODatetime2ᚖtimeᚐTime(ctx context.Context, v any) (*time.Time, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalTime(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalODatetime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := graphql.MarshalTime(*v) - return res -} - -func (ec *executionContext) marshalODocument2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocument(ctx context.Context, sel ast.SelectionSet, v *types.Document) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Document(ctx, sel, v) -} - -func (ec *executionContext) marshalODocumentAccess2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐDocumentAccess(ctx context.Context, sel ast.SelectionSet, v *types.DocumentAccess) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DocumentAccess(ctx, sel, v) -} - -func (ec *executionContext) marshalOElectronicSignature2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐElectronicSignature(ctx context.Context, sel ast.SelectionSet, v *types.ElectronicSignature) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ElectronicSignature(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (*gid.GID, error) { - if v == nil { - return nil, nil - } - res, err := gid1.UnmarshalGIDScalar(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, sel ast.SelectionSet, v *gid.GID) graphql.Marshaler { - if v == nil { - return graphql.Null - } - _ = sel - _ = ctx - res := gid1.MarshalGIDScalar(*v) - return res -} - -func (ec *executionContext) marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐIdentity(ctx context.Context, sel ast.SelectionSet, v *types.Identity) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Identity(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*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 - } - _ = sel - _ = ctx - res := graphql.MarshalInt(*v) - return res -} - -func (ec *executionContext) marshalOMailingListSubscriber2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐMailingListSubscriber(ctx context.Context, sel ast.SelectionSet, v *types.MailingListSubscriber) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._MailingListSubscriber(ctx, sel, v) -} - -func (ec *executionContext) marshalONonDisclosureAgreement2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐNonDisclosureAgreement(ctx context.Context, sel ast.SelectionSet, v *types.NonDisclosureAgreement) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._NonDisclosureAgreement(ctx, sel, v) -} - -func (ec *executionContext) marshalORecordSigningEventPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐRecordSigningEventPayload(ctx context.Context, sel ast.SelectionSet, v *types.RecordSigningEventPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._RecordSigningEventPayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOReport2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐReport(ctx context.Context, sel ast.SelectionSet, v *types.Report) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Report(ctx, sel, v) -} - -func (ec *executionContext) marshalOSendMagicLinkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐSendMagicLinkPayload(ctx context.Context, sel ast.SelectionSet, v *types.SendMagicLinkPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SendMagicLinkPayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) { - if v == nil { - return nil, nil - } - var vSlice []any - 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 any) (*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 - } - _ = sel - _ = ctx - res := graphql.MarshalString(*v) - return res -} - -func (ec *executionContext) marshalOTrustCenter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenter(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenter) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TrustCenter(ctx, sel, v) -} - -func (ec *executionContext) marshalOTrustCenterFile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐTrustCenterFile(ctx context.Context, sel ast.SelectionSet, v *types.TrustCenterFile) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TrustCenterFile(ctx, sel, v) -} - -func (ec *executionContext) marshalOUpdateFullNamePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐUpdateFullNamePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateFullNamePayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._UpdateFullNamePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalOVerifyMagicLinkPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋtrustᚋv1ᚋtypesᚐVerifyMagicLinkPayload(ctx context.Context, sel ast.SelectionSet, v *types.VerifyMagicLinkPayload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._VerifyMagicLinkPayload(ctx, sel, v) -} - -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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) - }) - - 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 := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { - fc := graphql.GetFieldContext(ctx) - fc.Result = &v[i] - return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) - }) - - 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/server/api/trust/v1/types/types.go b/pkg/server/api/trust/v1/types/types.go deleted file mode 100644 index 26e8f39d4..000000000 --- a/pkg/server/api/trust/v1/types/types.go +++ /dev/null @@ -1,379 +0,0 @@ -// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. - -package types - -import ( - "time" - - "go.probo.inc/probo/pkg/coredata" - "go.probo.inc/probo/pkg/gid" - "go.probo.inc/probo/pkg/mail" - "go.probo.inc/probo/pkg/page" -) - -type Node interface { - IsNode() - GetID() gid.GID -} - -type AcceptElectronicSignatureInput struct { - SignatureID gid.GID `json:"signatureId"` -} - -type AcceptElectronicSignaturePayload struct { - Signature *ElectronicSignature `json:"signature"` -} - -type Audit struct { - ID gid.GID `json:"id"` - Name *string `json:"name,omitempty"` - Framework *Framework `json:"framework"` - Report *Report `json:"report,omitempty"` -} - -func (Audit) IsNode() {} -func (this Audit) GetID() gid.GID { return this.ID } - -type AuditConnection struct { - Edges []*AuditEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type AuditEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Audit `json:"node"` -} - -type ComplianceExternalURL struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - URL string `json:"url"` - Rank int `json:"rank"` -} - -func (ComplianceExternalURL) IsNode() {} -func (this ComplianceExternalURL) GetID() gid.GID { return this.ID } - -type ComplianceExternalURLConnection struct { - Edges []*ComplianceExternalURLEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type ComplianceExternalURLEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *ComplianceExternalURL `json:"node"` -} - -type Document struct { - ID gid.GID `json:"id"` - Title string `json:"title"` - DocumentType coredata.DocumentType `json:"documentType"` - IsUserAuthorized bool `json:"isUserAuthorized"` - Access *DocumentAccess `json:"access,omitempty"` -} - -func (Document) IsNode() {} -func (this Document) GetID() gid.GID { return this.ID } - -type DocumentAccess struct { - ID gid.GID `json:"id"` - Status coredata.TrustCenterDocumentAccessStatus `json:"status"` -} - -func (DocumentAccess) IsNode() {} -func (this DocumentAccess) GetID() gid.GID { return this.ID } - -type DocumentConnection struct { - Edges []*DocumentEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type DocumentEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Document `json:"node"` -} - -type ElectronicSignature struct { - ID gid.GID `json:"id"` - Status coredata.ElectronicSignatureStatus `json:"status"` - DocumentType coredata.ElectronicSignatureDocumentType `json:"documentType"` - ConsentText string `json:"consentText"` - LastError *string `json:"lastError,omitempty"` - SignedAt *time.Time `json:"signedAt,omitempty"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` -} - -func (ElectronicSignature) IsNode() {} -func (this ElectronicSignature) GetID() gid.GID { return this.ID } - -type ExportDocumentPDFInput struct { - DocumentID gid.GID `json:"documentId"` -} - -type ExportDocumentPDFPayload struct { - Data string `json:"data"` -} - -type ExportReportPDFInput struct { - ReportID gid.GID `json:"reportId"` -} - -type ExportReportPDFPayload struct { - Data string `json:"data"` -} - -type ExportTrustCenterFileInput struct { - TrustCenterFileID gid.GID `json:"trustCenterFileId"` -} - -type ExportTrustCenterFilePayload struct { - Data string `json:"data"` -} - -type Framework struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - LightLogoURL *string `json:"lightLogoURL,omitempty"` - DarkLogoURL *string `json:"darkLogoURL,omitempty"` -} - -func (Framework) IsNode() {} -func (this Framework) GetID() gid.GID { return this.ID } - -type Identity struct { - ID gid.GID `json:"id"` - Email mail.Addr `json:"email"` - FullName string `json:"fullName"` - EmailVerified bool `json:"emailVerified"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` -} - -func (Identity) IsNode() {} -func (this Identity) GetID() gid.GID { return this.ID } - -type MailingListUpdate struct { - ID gid.GID `json:"id"` - Title string `json:"title"` - Body string `json:"body"` - UpdatedAt time.Time `json:"updatedAt"` -} - -func (MailingListUpdate) IsNode() {} -func (this MailingListUpdate) GetID() gid.GID { return this.ID } - -type MailingListUpdateConnection struct { - Edges []*MailingListUpdateEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type MailingListUpdateEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *MailingListUpdate `json:"node"` -} - -type Mutation struct { -} - -type NonDisclosureAgreement struct { - FileName string `json:"fileName"` - FileURL string `json:"fileUrl"` - ViewerSignature *ElectronicSignature `json:"viewerSignature,omitempty"` -} - -type Organization struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - LogoURL *string `json:"logoUrl,omitempty"` - Description *string `json:"description,omitempty"` - WebsiteURL *string `json:"websiteUrl,omitempty"` - Email *string `json:"email,omitempty"` - HeadquarterAddress *string `json:"headquarterAddress,omitempty"` -} - -func (Organization) IsNode() {} -func (this Organization) GetID() gid.GID { return this.ID } - -type PageInfo struct { - HasNextPage bool `json:"hasNextPage"` - HasPreviousPage bool `json:"hasPreviousPage"` - StartCursor *page.CursorKey `json:"startCursor,omitempty"` - EndCursor *page.CursorKey `json:"endCursor,omitempty"` -} - -type Query struct { -} - -type RecordSigningEventInput struct { - SignatureID gid.GID `json:"signatureId"` - EventType coredata.ElectronicSignatureEventType `json:"eventType"` -} - -type RecordSigningEventPayload struct { - Success bool `json:"success"` -} - -type Report struct { - ID gid.GID `json:"id"` - Filename string `json:"filename"` - IsUserAuthorized bool `json:"isUserAuthorized"` - Access *DocumentAccess `json:"access,omitempty"` -} - -func (Report) IsNode() {} -func (this Report) GetID() gid.GID { return this.ID } - -type RequestAccessesPayload struct { - TrustCenterAccess *TrustCenterAccess `json:"trustCenterAccess"` -} - -type RequestDocumentAccessInput struct { - DocumentID gid.GID `json:"documentId"` -} - -type RequestDocumentAccessPayload struct { - Document *Document `json:"document,omitempty"` -} - -type RequestFileAccessPayload struct { - File *TrustCenterFile `json:"file,omitempty"` -} - -type RequestReportAccessInput struct { - ReportID gid.GID `json:"reportId"` -} - -type RequestReportAccessPayload struct { - Audit *Audit `json:"audit,omitempty"` -} - -type RequestTrustCenterFileAccessInput struct { - TrustCenterFileID gid.GID `json:"trustCenterFileId"` -} - -type SendMagicLinkInput struct { - Email mail.Addr `json:"email"` - Continue *string `json:"continue,omitempty"` -} - -type SendMagicLinkPayload struct { - Success bool `json:"success"` -} - -type SubscribeToMailingListPayload struct { - Subscription *MailingListSubscriber `json:"subscription"` -} - -type TrustCenter struct { - ID gid.GID `json:"id"` - Active bool `json:"active"` - Slug string `json:"slug"` - LogoFileURL *string `json:"logoFileUrl,omitempty"` - DarkLogoFileURL *string `json:"darkLogoFileUrl,omitempty"` - NonDisclosureAgreement *NonDisclosureAgreement `json:"nonDisclosureAgreement,omitempty"` - ViewerSubscription *MailingListSubscriber `json:"viewerSubscription,omitempty"` - Organization *Organization `json:"organization"` - Documents *DocumentConnection `json:"documents"` - Audits *AuditConnection `json:"audits"` - Vendors *VendorConnection `json:"vendors"` - References *TrustCenterReferenceConnection `json:"references"` - TrustCenterFiles *TrustCenterFileConnection `json:"trustCenterFiles"` - ComplianceFrameworks *ComplianceFrameworkConnection `json:"complianceFrameworks"` - ExternalUrls *ComplianceExternalURLConnection `json:"externalUrls"` - Updates *MailingListUpdateConnection `json:"updates"` -} - -func (TrustCenter) IsNode() {} -func (this TrustCenter) GetID() gid.GID { return this.ID } - -type TrustCenterAccess struct { - ID gid.GID `json:"id"` - Email mail.Addr `json:"email"` - Name string `json:"name"` - CreatedAt time.Time `json:"createdAt"` - UpdatedAt time.Time `json:"updatedAt"` -} - -func (TrustCenterAccess) IsNode() {} -func (this TrustCenterAccess) GetID() gid.GID { return this.ID } - -type TrustCenterFile struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - Category string `json:"category"` - IsUserAuthorized bool `json:"isUserAuthorized"` - Access *DocumentAccess `json:"access,omitempty"` -} - -func (TrustCenterFile) IsNode() {} -func (this TrustCenterFile) GetID() gid.GID { return this.ID } - -type TrustCenterFileConnection struct { - Edges []*TrustCenterFileEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type TrustCenterFileEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *TrustCenterFile `json:"node"` -} - -type TrustCenterReference struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - WebsiteURL string `json:"websiteUrl"` - LogoURL string `json:"logoUrl"` -} - -func (TrustCenterReference) IsNode() {} -func (this TrustCenterReference) GetID() gid.GID { return this.ID } - -type TrustCenterReferenceConnection struct { - Edges []*TrustCenterReferenceEdge `json:"edges"` - PageInfo *PageInfo `json:"pageInfo"` -} - -type TrustCenterReferenceEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *TrustCenterReference `json:"node"` -} - -type UnsubscribeFromMailingListPayload struct { - DeletedMailingListSubscriberID *gid.GID `json:"deletedMailingListSubscriberId,omitempty"` -} - -type UpdateFullNameInput struct { - FullName string `json:"fullName"` -} - -type UpdateFullNamePayload struct { - Success bool `json:"success"` -} - -type Vendor struct { - ID gid.GID `json:"id"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Category coredata.VendorCategory `json:"category"` - WebsiteURL *string `json:"websiteUrl,omitempty"` - PrivacyPolicyURL *string `json:"privacyPolicyUrl,omitempty"` - Countries []coredata.CountryCode `json:"countries"` -} - -func (Vendor) IsNode() {} -func (this Vendor) GetID() gid.GID { return this.ID } - -type VendorEdge struct { - Cursor page.CursorKey `json:"cursor"` - Node *Vendor `json:"node"` -} - -type VerifyMagicLinkInput struct { - Token string `json:"token"` -} - -type VerifyMagicLinkPayload struct { - Continue *string `json:"continue,omitempty"` -} diff --git a/pkg/server/api/trust/v1/v1_resolver.go b/pkg/server/api/trust/v1/v1_resolver.go index 303cc45f5..2b4293fc9 100644 --- a/pkg/server/api/trust/v1/v1_resolver.go +++ b/pkg/server/api/trust/v1/v1_resolver.go @@ -28,7 +28,6 @@ import ( "go.probo.inc/probo/pkg/server/api/trust/v1/types" "go.probo.inc/probo/pkg/server/gqlutils" "go.probo.inc/probo/pkg/trust" - "go.probo.inc/probo/pkg/validator" ) // Framework is the resolver for the framework field. @@ -707,16 +706,11 @@ func (r *mutationResolver) SubscribeToMailingList(ctx context.Context) (*types.S subscriber, err := r.mailman.CreateSubscriber( ctx, - &mailman.CreateSubscriberRequest{ - MailingListID: *trustCenter.MailingListID, - Email: identity.EmailAddress, - FullName: identity.FullName, - }, + *trustCenter.MailingListID, + identity.EmailAddress, + identity.FullName, ) if err != nil { - if validationErrors, ok := errors.AsType[validator.ValidationErrors](err); ok { - return nil, gqlutils.InvalidValidationErrors(ctx, validationErrors) - } if errors.Is(err, mailman.ErrSubscriberAlreadyExist) { return nil, gqlutils.Conflictf(ctx, "already subscribed to this mailing list") } diff --git a/pkg/server/gqlutils/errors.go b/pkg/server/gqlutils/errors.go index 13e487a21..f4b74ee5a 100644 --- a/pkg/server/gqlutils/errors.go +++ b/pkg/server/gqlutils/errors.go @@ -170,14 +170,6 @@ func Invalidf(ctx context.Context, format string, a ...any) *gqlerror.Error { return Invalid(ctx, fmt.Errorf(format, a...)) } -func InvalidValidationErrors(ctx context.Context, errs validator.ValidationErrors) gqlerror.List { - gqlErrors := make(gqlerror.List, 0, len(errs)) - for _, ve := range errs { - gqlErrors = append(gqlErrors, Invalid(ctx, ve)) - } - return gqlErrors -} - func Internal(ctx context.Context) *gqlerror.Error { return &gqlerror.Error{ Message: "An internal server error occurred. Please try again later.",