github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/pkg/graphql/schema_gen.go (about) 1 // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. 2 3 package graphql 4 5 import ( 6 "bytes" 7 "context" 8 "errors" 9 "fmt" 10 "strconv" 11 "sync" 12 "sync/atomic" 13 14 "github.com/99designs/gqlgen/graphql" 15 "github.com/99designs/gqlgen/graphql/introspection" 16 gqlparser "github.com/vektah/gqlparser/v2" 17 "github.com/vektah/gqlparser/v2/ast" 18 ) 19 20 // region ************************** generated!.gotpl ************************** 21 22 // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface. 23 func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { 24 return &executableSchema{ 25 resolvers: cfg.Resolvers, 26 directives: cfg.Directives, 27 complexity: cfg.Complexity, 28 } 29 } 30 31 type Config struct { 32 Resolvers ResolverRoot 33 Directives DirectiveRoot 34 Complexity ComplexityRoot 35 } 36 37 type ResolverRoot interface { 38 APISpec() APISpecResolver 39 Application() ApplicationResolver 40 ApplicationTemplate() ApplicationTemplateResolver 41 Bundle() BundleResolver 42 Document() DocumentResolver 43 EventSpec() EventSpecResolver 44 Formation() FormationResolver 45 FormationTemplate() FormationTemplateResolver 46 IntegrationSystem() IntegrationSystemResolver 47 Mutation() MutationResolver 48 OneTimeTokenForApplication() OneTimeTokenForApplicationResolver 49 OneTimeTokenForRuntime() OneTimeTokenForRuntimeResolver 50 Query() QueryResolver 51 Runtime() RuntimeResolver 52 RuntimeContext() RuntimeContextResolver 53 Tenant() TenantResolver 54 } 55 56 type DirectiveRoot struct { 57 Async func(ctx context.Context, obj interface{}, next graphql.Resolver, operationType OperationType, webhookType *WebhookType, idField *string) (res interface{}, err error) 58 HasScenario func(ctx context.Context, obj interface{}, next graphql.Resolver, applicationProvider string, idField string) (res interface{}, err error) 59 HasScopes func(ctx context.Context, obj interface{}, next graphql.Resolver, path string) (res interface{}, err error) 60 Sanitize func(ctx context.Context, obj interface{}, next graphql.Resolver, path string) (res interface{}, err error) 61 SynchronizeApplicationTenancy func(ctx context.Context, obj interface{}, next graphql.Resolver, eventType EventType) (res interface{}, err error) 62 Validate func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) 63 } 64 65 type ComplexityRoot struct { 66 APIDefinition struct { 67 CreatedAt func(childComplexity int) int 68 DeletedAt func(childComplexity int) int 69 Description func(childComplexity int) int 70 Error func(childComplexity int) int 71 Group func(childComplexity int) int 72 ID func(childComplexity int) int 73 Name func(childComplexity int) int 74 Spec func(childComplexity int) int 75 TargetURL func(childComplexity int) int 76 UpdatedAt func(childComplexity int) int 77 Version func(childComplexity int) int 78 } 79 80 APIDefinitionPage struct { 81 Data func(childComplexity int) int 82 PageInfo func(childComplexity int) int 83 TotalCount func(childComplexity int) int 84 } 85 86 APISpec struct { 87 Data func(childComplexity int) int 88 FetchRequest func(childComplexity int) int 89 Format func(childComplexity int) int 90 ID func(childComplexity int) int 91 Type func(childComplexity int) int 92 } 93 94 AppSystemAuth struct { 95 Auth func(childComplexity int) int 96 ID func(childComplexity int) int 97 ReferenceObjectID func(childComplexity int) int 98 TenantID func(childComplexity int) int 99 Type func(childComplexity int) int 100 } 101 102 Application struct { 103 ApplicationNamespace func(childComplexity int) int 104 ApplicationTemplate func(childComplexity int) int 105 ApplicationTemplateID func(childComplexity int) int 106 Auths func(childComplexity int) int 107 BaseURL func(childComplexity int) int 108 Bundle func(childComplexity int, id string) int 109 Bundles func(childComplexity int, first *int, after *PageCursor) int 110 CreatedAt func(childComplexity int) int 111 DeletedAt func(childComplexity int) int 112 Description func(childComplexity int) int 113 Error func(childComplexity int) int 114 EventingConfiguration func(childComplexity int) int 115 HealthCheckURL func(childComplexity int) int 116 ID func(childComplexity int) int 117 IntegrationSystemID func(childComplexity int) int 118 Labels func(childComplexity int, key *string) int 119 LocalTenantID func(childComplexity int) int 120 Name func(childComplexity int) int 121 ProviderName func(childComplexity int) int 122 Status func(childComplexity int) int 123 SystemNumber func(childComplexity int) int 124 SystemStatus func(childComplexity int) int 125 TenantBusinessType func(childComplexity int) int 126 UpdatedAt func(childComplexity int) int 127 Webhooks func(childComplexity int) int 128 } 129 130 ApplicationEventingConfiguration struct { 131 DefaultURL func(childComplexity int) int 132 } 133 134 ApplicationPage struct { 135 Data func(childComplexity int) int 136 PageInfo func(childComplexity int) int 137 TotalCount func(childComplexity int) int 138 } 139 140 ApplicationStatus struct { 141 Condition func(childComplexity int) int 142 Timestamp func(childComplexity int) int 143 } 144 145 ApplicationTemplate struct { 146 AccessLevel func(childComplexity int) int 147 ApplicationInput func(childComplexity int) int 148 ApplicationNamespace func(childComplexity int) int 149 Description func(childComplexity int) int 150 ID func(childComplexity int) int 151 Labels func(childComplexity int, key *string) int 152 Name func(childComplexity int) int 153 Placeholders func(childComplexity int) int 154 Webhooks func(childComplexity int) int 155 } 156 157 ApplicationTemplatePage struct { 158 Data func(childComplexity int) int 159 PageInfo func(childComplexity int) int 160 TotalCount func(childComplexity int) int 161 } 162 163 Auth struct { 164 AccessStrategy func(childComplexity int) int 165 AdditionalHeaders func(childComplexity int) int 166 AdditionalHeadersSerialized func(childComplexity int) int 167 AdditionalQueryParams func(childComplexity int) int 168 AdditionalQueryParamsSerialized func(childComplexity int) int 169 CertCommonName func(childComplexity int) int 170 Credential func(childComplexity int) int 171 OneTimeToken func(childComplexity int) int 172 RequestAuth func(childComplexity int) int 173 } 174 175 AutomaticScenarioAssignment struct { 176 ScenarioName func(childComplexity int) int 177 Selector func(childComplexity int) int 178 } 179 180 AutomaticScenarioAssignmentPage struct { 181 Data func(childComplexity int) int 182 PageInfo func(childComplexity int) int 183 TotalCount func(childComplexity int) int 184 } 185 186 BasicCredentialData struct { 187 Password func(childComplexity int) int 188 Username func(childComplexity int) int 189 } 190 191 Bundle struct { 192 APIDefinition func(childComplexity int, id string) int 193 APIDefinitions func(childComplexity int, group *string, first *int, after *PageCursor) int 194 CorrelationIDs func(childComplexity int) int 195 CreatedAt func(childComplexity int) int 196 DefaultInstanceAuth func(childComplexity int) int 197 DeletedAt func(childComplexity int) int 198 Description func(childComplexity int) int 199 Document func(childComplexity int, id string) int 200 Documents func(childComplexity int, first *int, after *PageCursor) int 201 Error func(childComplexity int) int 202 EventDefinition func(childComplexity int, id string) int 203 EventDefinitions func(childComplexity int, group *string, first *int, after *PageCursor) int 204 ID func(childComplexity int) int 205 InstanceAuth func(childComplexity int, id string) int 206 InstanceAuthRequestInputSchema func(childComplexity int) int 207 InstanceAuths func(childComplexity int) int 208 Name func(childComplexity int) int 209 UpdatedAt func(childComplexity int) int 210 } 211 212 BundleInstanceAuth struct { 213 Auth func(childComplexity int) int 214 Context func(childComplexity int) int 215 ID func(childComplexity int) int 216 InputParams func(childComplexity int) int 217 RuntimeContextID func(childComplexity int) int 218 RuntimeID func(childComplexity int) int 219 Status func(childComplexity int) int 220 } 221 222 BundleInstanceAuthStatus struct { 223 Condition func(childComplexity int) int 224 Message func(childComplexity int) int 225 Reason func(childComplexity int) int 226 Timestamp func(childComplexity int) int 227 } 228 229 BundlePage struct { 230 Data func(childComplexity int) int 231 PageInfo func(childComplexity int) int 232 TotalCount func(childComplexity int) int 233 } 234 235 CSRFTokenCredentialRequestAuth struct { 236 AdditionalHeaders func(childComplexity int) int 237 AdditionalHeadersSerialized func(childComplexity int) int 238 AdditionalQueryParams func(childComplexity int) int 239 AdditionalQueryParamsSerialized func(childComplexity int) int 240 Credential func(childComplexity int) int 241 TokenEndpointURL func(childComplexity int) int 242 } 243 244 CertificateOAuthCredentialData struct { 245 Certificate func(childComplexity int) int 246 ClientID func(childComplexity int) int 247 URL func(childComplexity int) int 248 } 249 250 CertificateSubjectMapping struct { 251 ConsumerType func(childComplexity int) int 252 ID func(childComplexity int) int 253 InternalConsumerID func(childComplexity int) int 254 Subject func(childComplexity int) int 255 TenantAccessLevels func(childComplexity int) int 256 } 257 258 CertificateSubjectMappingPage struct { 259 Data func(childComplexity int) int 260 PageInfo func(childComplexity int) int 261 TotalCount func(childComplexity int) int 262 } 263 264 ConstraintReference struct { 265 ConstraintID func(childComplexity int) int 266 FormationTemplateID func(childComplexity int) int 267 } 268 269 CredentialRequestAuth struct { 270 Csrf func(childComplexity int) int 271 } 272 273 Document struct { 274 CreatedAt func(childComplexity int) int 275 Data func(childComplexity int) int 276 DeletedAt func(childComplexity int) int 277 Description func(childComplexity int) int 278 DisplayName func(childComplexity int) int 279 Error func(childComplexity int) int 280 FetchRequest func(childComplexity int) int 281 Format func(childComplexity int) int 282 ID func(childComplexity int) int 283 Kind func(childComplexity int) int 284 Title func(childComplexity int) int 285 UpdatedAt func(childComplexity int) int 286 } 287 288 DocumentPage struct { 289 Data func(childComplexity int) int 290 PageInfo func(childComplexity int) int 291 TotalCount func(childComplexity int) int 292 } 293 294 EventDefinition struct { 295 CreatedAt func(childComplexity int) int 296 DeletedAt func(childComplexity int) int 297 Description func(childComplexity int) int 298 Error func(childComplexity int) int 299 Group func(childComplexity int) int 300 ID func(childComplexity int) int 301 Name func(childComplexity int) int 302 Spec func(childComplexity int) int 303 UpdatedAt func(childComplexity int) int 304 Version func(childComplexity int) int 305 } 306 307 EventDefinitionPage struct { 308 Data func(childComplexity int) int 309 PageInfo func(childComplexity int) int 310 TotalCount func(childComplexity int) int 311 } 312 313 EventSpec struct { 314 Data func(childComplexity int) int 315 FetchRequest func(childComplexity int) int 316 Format func(childComplexity int) int 317 ID func(childComplexity int) int 318 Type func(childComplexity int) int 319 } 320 321 FetchRequest struct { 322 Auth func(childComplexity int) int 323 Filter func(childComplexity int) int 324 Mode func(childComplexity int) int 325 Status func(childComplexity int) int 326 URL func(childComplexity int) int 327 } 328 329 FetchRequestStatus struct { 330 Condition func(childComplexity int) int 331 Message func(childComplexity int) int 332 Timestamp func(childComplexity int) int 333 } 334 335 Formation struct { 336 Error func(childComplexity int) int 337 FormationAssignment func(childComplexity int, id string) int 338 FormationAssignments func(childComplexity int, first *int, after *PageCursor) int 339 FormationTemplateID func(childComplexity int) int 340 ID func(childComplexity int) int 341 Name func(childComplexity int) int 342 State func(childComplexity int) int 343 Status func(childComplexity int) int 344 } 345 346 FormationAssignment struct { 347 ID func(childComplexity int) int 348 Source func(childComplexity int) int 349 SourceType func(childComplexity int) int 350 State func(childComplexity int) int 351 Target func(childComplexity int) int 352 TargetType func(childComplexity int) int 353 Value func(childComplexity int) int 354 } 355 356 FormationAssignmentPage struct { 357 Data func(childComplexity int) int 358 PageInfo func(childComplexity int) int 359 TotalCount func(childComplexity int) int 360 } 361 362 FormationConstraint struct { 363 ConstraintScope func(childComplexity int) int 364 ConstraintType func(childComplexity int) int 365 ID func(childComplexity int) int 366 InputTemplate func(childComplexity int) int 367 Name func(childComplexity int) int 368 Operator func(childComplexity int) int 369 ResourceSubtype func(childComplexity int) int 370 ResourceType func(childComplexity int) int 371 TargetOperation func(childComplexity int) int 372 } 373 374 FormationError struct { 375 ErrorCode func(childComplexity int) int 376 Message func(childComplexity int) int 377 } 378 379 FormationPage struct { 380 Data func(childComplexity int) int 381 PageInfo func(childComplexity int) int 382 TotalCount func(childComplexity int) int 383 } 384 385 FormationStatus struct { 386 Condition func(childComplexity int) int 387 Errors func(childComplexity int) int 388 } 389 390 FormationStatusError struct { 391 AssignmentID func(childComplexity int) int 392 ErrorCode func(childComplexity int) int 393 Message func(childComplexity int) int 394 } 395 396 FormationTemplate struct { 397 ApplicationTypes func(childComplexity int) int 398 FormationConstraints func(childComplexity int) int 399 ID func(childComplexity int) int 400 LeadingProductIDs func(childComplexity int) int 401 Name func(childComplexity int) int 402 RuntimeArtifactKind func(childComplexity int) int 403 RuntimeTypeDisplayName func(childComplexity int) int 404 RuntimeTypes func(childComplexity int) int 405 Webhooks func(childComplexity int) int 406 } 407 408 FormationTemplatePage struct { 409 Data func(childComplexity int) int 410 PageInfo func(childComplexity int) int 411 TotalCount func(childComplexity int) int 412 } 413 414 HealthCheck struct { 415 Condition func(childComplexity int) int 416 Message func(childComplexity int) int 417 Origin func(childComplexity int) int 418 Timestamp func(childComplexity int) int 419 Type func(childComplexity int) int 420 } 421 422 HealthCheckPage struct { 423 Data func(childComplexity int) int 424 PageInfo func(childComplexity int) int 425 TotalCount func(childComplexity int) int 426 } 427 428 IntSysSystemAuth struct { 429 Auth func(childComplexity int) int 430 ID func(childComplexity int) int 431 ReferenceObjectID func(childComplexity int) int 432 TenantID func(childComplexity int) int 433 Type func(childComplexity int) int 434 } 435 436 IntegrationSystem struct { 437 Auths func(childComplexity int) int 438 Description func(childComplexity int) int 439 ID func(childComplexity int) int 440 Name func(childComplexity int) int 441 } 442 443 IntegrationSystemPage struct { 444 Data func(childComplexity int) int 445 PageInfo func(childComplexity int) int 446 TotalCount func(childComplexity int) int 447 } 448 449 Label struct { 450 Key func(childComplexity int) int 451 Value func(childComplexity int) int 452 } 453 454 LabelDefinition struct { 455 Key func(childComplexity int) int 456 Schema func(childComplexity int) int 457 } 458 459 Mutation struct { 460 AddAPIDefinitionToApplication func(childComplexity int, appID string, in APIDefinitionInput) int 461 AddAPIDefinitionToBundle func(childComplexity int, bundleID string, in APIDefinitionInput) int 462 AddBundle func(childComplexity int, applicationID string, in BundleCreateInput) int 463 AddDocumentToBundle func(childComplexity int, bundleID string, in DocumentInput) int 464 AddEventDefinitionToApplication func(childComplexity int, appID string, in EventDefinitionInput) int 465 AddEventDefinitionToBundle func(childComplexity int, bundleID string, in EventDefinitionInput) int 466 AddTenantAccess func(childComplexity int, in TenantAccessInput) int 467 AddWebhook func(childComplexity int, applicationID *string, applicationTemplateID *string, runtimeID *string, formationTemplateID *string, in WebhookInput) int 468 AssignFormation func(childComplexity int, objectID string, objectType FormationObjectType, formation FormationInput) int 469 AttachConstraintToFormationTemplate func(childComplexity int, constraintID string, formationTemplateID string) int 470 CreateApplicationTemplate func(childComplexity int, in ApplicationTemplateInput) int 471 CreateBundleInstanceAuth func(childComplexity int, bundleID string, in BundleInstanceAuthCreateInput) int 472 CreateCertificateSubjectMapping func(childComplexity int, in CertificateSubjectMappingInput) int 473 CreateFormation func(childComplexity int, formation FormationInput) int 474 CreateFormationConstraint func(childComplexity int, formationConstraint FormationConstraintInput) int 475 CreateFormationTemplate func(childComplexity int, in FormationTemplateInput) int 476 CreateLabelDefinition func(childComplexity int, in LabelDefinitionInput) int 477 DeleteAPIDefinition func(childComplexity int, id string) int 478 DeleteApplicationLabel func(childComplexity int, applicationID string, key string) int 479 DeleteApplicationTemplate func(childComplexity int, id string) int 480 DeleteBundle func(childComplexity int, id string) int 481 DeleteBundleInstanceAuth func(childComplexity int, authID string) int 482 DeleteCertificateSubjectMapping func(childComplexity int, id string) int 483 DeleteDefaultEventingForApplication func(childComplexity int, appID string) int 484 DeleteDocument func(childComplexity int, id string) int 485 DeleteEventDefinition func(childComplexity int, id string) int 486 DeleteFormation func(childComplexity int, formation FormationInput) int 487 DeleteFormationConstraint func(childComplexity int, id string) int 488 DeleteFormationTemplate func(childComplexity int, id string) int 489 DeleteRuntimeLabel func(childComplexity int, runtimeID string, key string) int 490 DeleteSystemAuthForApplication func(childComplexity int, authID string) int 491 DeleteSystemAuthForIntegrationSystem func(childComplexity int, authID string) int 492 DeleteSystemAuthForRuntime func(childComplexity int, authID string) int 493 DeleteTenants func(childComplexity int, in []string) int 494 DeleteWebhook func(childComplexity int, webhookID string) int 495 DetachConstraintFromFormationTemplate func(childComplexity int, constraintID string, formationTemplateID string) int 496 InvalidateSystemAuthOneTimeToken func(childComplexity int, authID string) int 497 MergeApplications func(childComplexity int, destinationID string, sourceID string) int 498 RefetchAPISpec func(childComplexity int, apiID string) int 499 RefetchEventDefinitionSpec func(childComplexity int, eventID string) int 500 RegisterApplication func(childComplexity int, in ApplicationRegisterInput, mode *OperationMode) int 501 RegisterApplicationFromTemplate func(childComplexity int, in ApplicationFromTemplateInput) int 502 RegisterIntegrationSystem func(childComplexity int, in IntegrationSystemInput) int 503 RegisterRuntime func(childComplexity int, in RuntimeRegisterInput) int 504 RegisterRuntimeContext func(childComplexity int, runtimeID string, in RuntimeContextInput) int 505 RemoveTenantAccess func(childComplexity int, tenantID string, resourceID string, resourceType TenantAccessObjectType) int 506 RequestBundleInstanceAuthCreation func(childComplexity int, bundleID string, in BundleInstanceAuthRequestInput) int 507 RequestBundleInstanceAuthDeletion func(childComplexity int, authID string) int 508 RequestClientCredentialsForApplication func(childComplexity int, id string) int 509 RequestClientCredentialsForIntegrationSystem func(childComplexity int, id string) int 510 RequestClientCredentialsForRuntime func(childComplexity int, id string) int 511 RequestOneTimeTokenForApplication func(childComplexity int, id string, systemAuthID *string) int 512 RequestOneTimeTokenForRuntime func(childComplexity int, id string, systemAuthID *string) int 513 ResynchronizeFormationNotifications func(childComplexity int, formationID string) int 514 SetApplicationLabel func(childComplexity int, applicationID string, key string, value interface{}) int 515 SetBundleInstanceAuth func(childComplexity int, authID string, in BundleInstanceAuthSetInput) int 516 SetDefaultEventingForApplication func(childComplexity int, appID string, runtimeID string) int 517 SetRuntimeLabel func(childComplexity int, runtimeID string, key string, value interface{}) int 518 SubscribeTenant func(childComplexity int, providerID string, subaccountID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionAppName string, subscriptionPayload string) int 519 UnassignFormation func(childComplexity int, objectID string, objectType FormationObjectType, formation FormationInput) int 520 UnpairApplication func(childComplexity int, id string, mode *OperationMode) int 521 UnregisterApplication func(childComplexity int, id string, mode *OperationMode) int 522 UnregisterIntegrationSystem func(childComplexity int, id string) int 523 UnregisterRuntime func(childComplexity int, id string) int 524 UnregisterRuntimeContext func(childComplexity int, id string) int 525 UnsubscribeTenant func(childComplexity int, providerID string, subaccountID string, providerSubaccountID string, consumerTenantID string, region string) int 526 UpdateAPIDefinition func(childComplexity int, id string, in APIDefinitionInput) int 527 UpdateAPIDefinitionForApplication func(childComplexity int, id string, in APIDefinitionInput) int 528 UpdateApplication func(childComplexity int, id string, in ApplicationUpdateInput) int 529 UpdateApplicationTemplate func(childComplexity int, id string, in ApplicationTemplateUpdateInput) int 530 UpdateBundle func(childComplexity int, id string, in BundleUpdateInput) int 531 UpdateBundleInstanceAuth func(childComplexity int, id string, bundleID string, in BundleInstanceAuthUpdateInput) int 532 UpdateCertificateSubjectMapping func(childComplexity int, id string, in CertificateSubjectMappingInput) int 533 UpdateEventDefinition func(childComplexity int, id string, in EventDefinitionInput) int 534 UpdateEventDefinitionForApplication func(childComplexity int, id string, in EventDefinitionInput) int 535 UpdateFormationConstraint func(childComplexity int, id string, in FormationConstraintUpdateInput) int 536 UpdateFormationTemplate func(childComplexity int, id string, in FormationTemplateInput) int 537 UpdateIntegrationSystem func(childComplexity int, id string, in IntegrationSystemInput) int 538 UpdateLabelDefinition func(childComplexity int, in LabelDefinitionInput) int 539 UpdateRuntime func(childComplexity int, id string, in RuntimeUpdateInput) int 540 UpdateRuntimeContext func(childComplexity int, id string, in RuntimeContextInput) int 541 UpdateSystemAuth func(childComplexity int, authID string, in AuthInput) int 542 UpdateTenant func(childComplexity int, id string, in BusinessTenantMappingInput) int 543 UpdateWebhook func(childComplexity int, webhookID string, in WebhookInput) int 544 WriteTenant func(childComplexity int, in BusinessTenantMappingInput) int 545 WriteTenants func(childComplexity int, in []*BusinessTenantMappingInput) int 546 } 547 548 OAuthCredentialData struct { 549 ClientID func(childComplexity int) int 550 ClientSecret func(childComplexity int) int 551 URL func(childComplexity int) int 552 } 553 554 OneTimeTokenForApplication struct { 555 ConnectorURL func(childComplexity int) int 556 CreatedAt func(childComplexity int) int 557 ExpiresAt func(childComplexity int) int 558 LegacyConnectorURL func(childComplexity int) int 559 Raw func(childComplexity int) int 560 RawEncoded func(childComplexity int) int 561 ScenarioGroups func(childComplexity int) int 562 Token func(childComplexity int) int 563 Type func(childComplexity int) int 564 Used func(childComplexity int) int 565 UsedAt func(childComplexity int) int 566 } 567 568 OneTimeTokenForRuntime struct { 569 ConnectorURL func(childComplexity int) int 570 CreatedAt func(childComplexity int) int 571 ExpiresAt func(childComplexity int) int 572 Raw func(childComplexity int) int 573 RawEncoded func(childComplexity int) int 574 Token func(childComplexity int) int 575 Type func(childComplexity int) int 576 Used func(childComplexity int) int 577 UsedAt func(childComplexity int) int 578 } 579 580 PageInfo struct { 581 EndCursor func(childComplexity int) int 582 HasNextPage func(childComplexity int) int 583 StartCursor func(childComplexity int) int 584 } 585 586 PlaceholderDefinition struct { 587 Description func(childComplexity int) int 588 JSONPath func(childComplexity int) int 589 Name func(childComplexity int) int 590 Optional func(childComplexity int) int 591 } 592 593 Query struct { 594 ApisForApplication func(childComplexity int, appID string, first *int, after *PageCursor) int 595 Application func(childComplexity int, id string) int 596 ApplicationBySystemNumber func(childComplexity int, systemNumber string) int 597 ApplicationTemplate func(childComplexity int, id string) int 598 ApplicationTemplates func(childComplexity int, filter []*LabelFilter, first *int, after *PageCursor) int 599 Applications func(childComplexity int, filter []*LabelFilter, first *int, after *PageCursor) int 600 ApplicationsForRuntime func(childComplexity int, runtimeID string, first *int, after *PageCursor) int 601 AutomaticScenarioAssignmentForScenario func(childComplexity int, scenarioName string) int 602 AutomaticScenarioAssignments func(childComplexity int, first *int, after *PageCursor) int 603 AutomaticScenarioAssignmentsForSelector func(childComplexity int, selector LabelSelectorInput) int 604 BundleByInstanceAuth func(childComplexity int, authID string) int 605 BundleInstanceAuth func(childComplexity int, id string) int 606 CertificateSubjectMapping func(childComplexity int, id string) int 607 CertificateSubjectMappings func(childComplexity int, first *int, after *PageCursor) int 608 EventsForApplication func(childComplexity int, appID string, first *int, after *PageCursor) int 609 Formation func(childComplexity int, id string) int 610 FormationByName func(childComplexity int, name string) int 611 FormationConstraint func(childComplexity int, id string) int 612 FormationConstraints func(childComplexity int) int 613 FormationConstraintsByFormationType func(childComplexity int, formationTemplateID string) int 614 FormationTemplate func(childComplexity int, id string) int 615 FormationTemplates func(childComplexity int, first *int, after *PageCursor) int 616 Formations func(childComplexity int, first *int, after *PageCursor) int 617 HealthChecks func(childComplexity int, types []HealthCheckType, origin *string, first *int, after *PageCursor) int 618 IntegrationSystem func(childComplexity int, id string) int 619 IntegrationSystems func(childComplexity int, first *int, after *PageCursor) int 620 LabelDefinition func(childComplexity int, key string) int 621 LabelDefinitions func(childComplexity int) int 622 Runtime func(childComplexity int, id string) int 623 RuntimeByTokenIssuer func(childComplexity int, issuer string) int 624 Runtimes func(childComplexity int, filter []*LabelFilter, first *int, after *PageCursor) int 625 SystemAuth func(childComplexity int, id string) int 626 SystemAuthByToken func(childComplexity int, token string) int 627 TenantByExternalID func(childComplexity int, id string) int 628 TenantByInternalID func(childComplexity int, id string) int 629 TenantByLowestOwnerForResource func(childComplexity int, id string, resource string) int 630 Tenants func(childComplexity int, first *int, after *PageCursor, searchTerm *string) int 631 Viewer func(childComplexity int) int 632 } 633 634 Runtime struct { 635 ApplicationNamespace func(childComplexity int) int 636 Auths func(childComplexity int) int 637 Description func(childComplexity int) int 638 EventingConfiguration func(childComplexity int) int 639 ID func(childComplexity int) int 640 Labels func(childComplexity int, key *string) int 641 Metadata func(childComplexity int) int 642 Name func(childComplexity int) int 643 RuntimeContext func(childComplexity int, id string) int 644 RuntimeContexts func(childComplexity int, first *int, after *PageCursor) int 645 Status func(childComplexity int) int 646 Webhooks func(childComplexity int) int 647 } 648 649 RuntimeContext struct { 650 ID func(childComplexity int) int 651 Key func(childComplexity int) int 652 Labels func(childComplexity int, key *string) int 653 Value func(childComplexity int) int 654 } 655 656 RuntimeContextPage struct { 657 Data func(childComplexity int) int 658 PageInfo func(childComplexity int) int 659 TotalCount func(childComplexity int) int 660 } 661 662 RuntimeEventingConfiguration struct { 663 DefaultURL func(childComplexity int) int 664 } 665 666 RuntimeMetadata struct { 667 CreationTimestamp func(childComplexity int) int 668 } 669 670 RuntimePage struct { 671 Data func(childComplexity int) int 672 PageInfo func(childComplexity int) int 673 TotalCount func(childComplexity int) int 674 } 675 676 RuntimeStatus struct { 677 Condition func(childComplexity int) int 678 Timestamp func(childComplexity int) int 679 } 680 681 RuntimeSystemAuth struct { 682 Auth func(childComplexity int) int 683 ID func(childComplexity int) int 684 ReferenceObjectID func(childComplexity int) int 685 TenantID func(childComplexity int) int 686 Type func(childComplexity int) int 687 } 688 689 Tenant struct { 690 ID func(childComplexity int) int 691 Initialized func(childComplexity int) int 692 InternalID func(childComplexity int) int 693 Labels func(childComplexity int, key *string) int 694 Name func(childComplexity int) int 695 ParentID func(childComplexity int) int 696 Provider func(childComplexity int) int 697 Type func(childComplexity int) int 698 } 699 700 TenantAccess struct { 701 Owner func(childComplexity int) int 702 ResourceID func(childComplexity int) int 703 ResourceType func(childComplexity int) int 704 TenantID func(childComplexity int) int 705 } 706 707 TenantBusinessType struct { 708 Code func(childComplexity int) int 709 ID func(childComplexity int) int 710 Name func(childComplexity int) int 711 } 712 713 TenantPage struct { 714 Data func(childComplexity int) int 715 PageInfo func(childComplexity int) int 716 TotalCount func(childComplexity int) int 717 } 718 719 Version struct { 720 Deprecated func(childComplexity int) int 721 DeprecatedSince func(childComplexity int) int 722 ForRemoval func(childComplexity int) int 723 Value func(childComplexity int) int 724 } 725 726 Viewer struct { 727 ID func(childComplexity int) int 728 Type func(childComplexity int) int 729 } 730 731 Webhook struct { 732 ApplicationID func(childComplexity int) int 733 ApplicationTemplateID func(childComplexity int) int 734 Auth func(childComplexity int) int 735 CorrelationIDKey func(childComplexity int) int 736 CreatedAt func(childComplexity int) int 737 FormationTemplateID func(childComplexity int) int 738 HeaderTemplate func(childComplexity int) int 739 ID func(childComplexity int) int 740 InputTemplate func(childComplexity int) int 741 IntegrationSystemID func(childComplexity int) int 742 Mode func(childComplexity int) int 743 OutputTemplate func(childComplexity int) int 744 RetryInterval func(childComplexity int) int 745 RuntimeID func(childComplexity int) int 746 StatusTemplate func(childComplexity int) int 747 Timeout func(childComplexity int) int 748 Type func(childComplexity int) int 749 URL func(childComplexity int) int 750 URLTemplate func(childComplexity int) int 751 } 752 } 753 754 type APISpecResolver interface { 755 FetchRequest(ctx context.Context, obj *APISpec) (*FetchRequest, error) 756 } 757 type ApplicationResolver interface { 758 ApplicationTemplate(ctx context.Context, obj *Application) (*ApplicationTemplate, error) 759 TenantBusinessType(ctx context.Context, obj *Application) (*TenantBusinessType, error) 760 Labels(ctx context.Context, obj *Application, key *string) (Labels, error) 761 762 Webhooks(ctx context.Context, obj *Application) ([]*Webhook, error) 763 764 Bundles(ctx context.Context, obj *Application, first *int, after *PageCursor) (*BundlePage, error) 765 Bundle(ctx context.Context, obj *Application, id string) (*Bundle, error) 766 Auths(ctx context.Context, obj *Application) ([]*AppSystemAuth, error) 767 EventingConfiguration(ctx context.Context, obj *Application) (*ApplicationEventingConfiguration, error) 768 } 769 type ApplicationTemplateResolver interface { 770 Webhooks(ctx context.Context, obj *ApplicationTemplate) ([]*Webhook, error) 771 772 Labels(ctx context.Context, obj *ApplicationTemplate, key *string) (Labels, error) 773 } 774 type BundleResolver interface { 775 InstanceAuth(ctx context.Context, obj *Bundle, id string) (*BundleInstanceAuth, error) 776 InstanceAuths(ctx context.Context, obj *Bundle) ([]*BundleInstanceAuth, error) 777 778 APIDefinitions(ctx context.Context, obj *Bundle, group *string, first *int, after *PageCursor) (*APIDefinitionPage, error) 779 EventDefinitions(ctx context.Context, obj *Bundle, group *string, first *int, after *PageCursor) (*EventDefinitionPage, error) 780 Documents(ctx context.Context, obj *Bundle, first *int, after *PageCursor) (*DocumentPage, error) 781 APIDefinition(ctx context.Context, obj *Bundle, id string) (*APIDefinition, error) 782 EventDefinition(ctx context.Context, obj *Bundle, id string) (*EventDefinition, error) 783 784 Document(ctx context.Context, obj *Bundle, id string) (*Document, error) 785 } 786 type DocumentResolver interface { 787 FetchRequest(ctx context.Context, obj *Document) (*FetchRequest, error) 788 } 789 type EventSpecResolver interface { 790 FetchRequest(ctx context.Context, obj *EventSpec) (*FetchRequest, error) 791 } 792 type FormationResolver interface { 793 FormationAssignment(ctx context.Context, obj *Formation, id string) (*FormationAssignment, error) 794 FormationAssignments(ctx context.Context, obj *Formation, first *int, after *PageCursor) (*FormationAssignmentPage, error) 795 Status(ctx context.Context, obj *Formation) (*FormationStatus, error) 796 } 797 type FormationTemplateResolver interface { 798 Webhooks(ctx context.Context, obj *FormationTemplate) ([]*Webhook, error) 799 800 FormationConstraints(ctx context.Context, obj *FormationTemplate) ([]*FormationConstraint, error) 801 } 802 type IntegrationSystemResolver interface { 803 Auths(ctx context.Context, obj *IntegrationSystem) ([]*IntSysSystemAuth, error) 804 } 805 type MutationResolver interface { 806 RegisterApplication(ctx context.Context, in ApplicationRegisterInput, mode *OperationMode) (*Application, error) 807 UpdateApplication(ctx context.Context, id string, in ApplicationUpdateInput) (*Application, error) 808 UnregisterApplication(ctx context.Context, id string, mode *OperationMode) (*Application, error) 809 UnpairApplication(ctx context.Context, id string, mode *OperationMode) (*Application, error) 810 CreateApplicationTemplate(ctx context.Context, in ApplicationTemplateInput) (*ApplicationTemplate, error) 811 RegisterApplicationFromTemplate(ctx context.Context, in ApplicationFromTemplateInput) (*Application, error) 812 UpdateApplicationTemplate(ctx context.Context, id string, in ApplicationTemplateUpdateInput) (*ApplicationTemplate, error) 813 DeleteApplicationTemplate(ctx context.Context, id string) (*ApplicationTemplate, error) 814 MergeApplications(ctx context.Context, destinationID string, sourceID string) (*Application, error) 815 RegisterRuntime(ctx context.Context, in RuntimeRegisterInput) (*Runtime, error) 816 UpdateRuntime(ctx context.Context, id string, in RuntimeUpdateInput) (*Runtime, error) 817 UnregisterRuntime(ctx context.Context, id string) (*Runtime, error) 818 RegisterRuntimeContext(ctx context.Context, runtimeID string, in RuntimeContextInput) (*RuntimeContext, error) 819 UpdateRuntimeContext(ctx context.Context, id string, in RuntimeContextInput) (*RuntimeContext, error) 820 UnregisterRuntimeContext(ctx context.Context, id string) (*RuntimeContext, error) 821 RegisterIntegrationSystem(ctx context.Context, in IntegrationSystemInput) (*IntegrationSystem, error) 822 UpdateIntegrationSystem(ctx context.Context, id string, in IntegrationSystemInput) (*IntegrationSystem, error) 823 UnregisterIntegrationSystem(ctx context.Context, id string) (*IntegrationSystem, error) 824 AddWebhook(ctx context.Context, applicationID *string, applicationTemplateID *string, runtimeID *string, formationTemplateID *string, in WebhookInput) (*Webhook, error) 825 UpdateWebhook(ctx context.Context, webhookID string, in WebhookInput) (*Webhook, error) 826 DeleteWebhook(ctx context.Context, webhookID string) (*Webhook, error) 827 AddAPIDefinitionToBundle(ctx context.Context, bundleID string, in APIDefinitionInput) (*APIDefinition, error) 828 AddAPIDefinitionToApplication(ctx context.Context, appID string, in APIDefinitionInput) (*APIDefinition, error) 829 UpdateAPIDefinition(ctx context.Context, id string, in APIDefinitionInput) (*APIDefinition, error) 830 UpdateAPIDefinitionForApplication(ctx context.Context, id string, in APIDefinitionInput) (*APIDefinition, error) 831 DeleteAPIDefinition(ctx context.Context, id string) (*APIDefinition, error) 832 RefetchAPISpec(ctx context.Context, apiID string) (*APISpec, error) 833 RequestOneTimeTokenForRuntime(ctx context.Context, id string, systemAuthID *string) (*OneTimeTokenForRuntime, error) 834 RequestOneTimeTokenForApplication(ctx context.Context, id string, systemAuthID *string) (*OneTimeTokenForApplication, error) 835 RequestClientCredentialsForRuntime(ctx context.Context, id string) (SystemAuth, error) 836 RequestClientCredentialsForApplication(ctx context.Context, id string) (SystemAuth, error) 837 RequestClientCredentialsForIntegrationSystem(ctx context.Context, id string) (SystemAuth, error) 838 DeleteSystemAuthForRuntime(ctx context.Context, authID string) (SystemAuth, error) 839 DeleteSystemAuthForApplication(ctx context.Context, authID string) (SystemAuth, error) 840 DeleteSystemAuthForIntegrationSystem(ctx context.Context, authID string) (SystemAuth, error) 841 UpdateSystemAuth(ctx context.Context, authID string, in AuthInput) (SystemAuth, error) 842 InvalidateSystemAuthOneTimeToken(ctx context.Context, authID string) (SystemAuth, error) 843 AddEventDefinitionToBundle(ctx context.Context, bundleID string, in EventDefinitionInput) (*EventDefinition, error) 844 AddEventDefinitionToApplication(ctx context.Context, appID string, in EventDefinitionInput) (*EventDefinition, error) 845 UpdateEventDefinition(ctx context.Context, id string, in EventDefinitionInput) (*EventDefinition, error) 846 UpdateEventDefinitionForApplication(ctx context.Context, id string, in EventDefinitionInput) (*EventDefinition, error) 847 DeleteEventDefinition(ctx context.Context, id string) (*EventDefinition, error) 848 RefetchEventDefinitionSpec(ctx context.Context, eventID string) (*EventSpec, error) 849 AddDocumentToBundle(ctx context.Context, bundleID string, in DocumentInput) (*Document, error) 850 DeleteDocument(ctx context.Context, id string) (*Document, error) 851 CreateFormation(ctx context.Context, formation FormationInput) (*Formation, error) 852 ResynchronizeFormationNotifications(ctx context.Context, formationID string) (*Formation, error) 853 DeleteFormation(ctx context.Context, formation FormationInput) (*Formation, error) 854 AssignFormation(ctx context.Context, objectID string, objectType FormationObjectType, formation FormationInput) (*Formation, error) 855 UnassignFormation(ctx context.Context, objectID string, objectType FormationObjectType, formation FormationInput) (*Formation, error) 856 CreateFormationConstraint(ctx context.Context, formationConstraint FormationConstraintInput) (*FormationConstraint, error) 857 DeleteFormationConstraint(ctx context.Context, id string) (*FormationConstraint, error) 858 UpdateFormationConstraint(ctx context.Context, id string, in FormationConstraintUpdateInput) (*FormationConstraint, error) 859 AttachConstraintToFormationTemplate(ctx context.Context, constraintID string, formationTemplateID string) (*ConstraintReference, error) 860 DetachConstraintFromFormationTemplate(ctx context.Context, constraintID string, formationTemplateID string) (*ConstraintReference, error) 861 CreateLabelDefinition(ctx context.Context, in LabelDefinitionInput) (*LabelDefinition, error) 862 UpdateLabelDefinition(ctx context.Context, in LabelDefinitionInput) (*LabelDefinition, error) 863 SetApplicationLabel(ctx context.Context, applicationID string, key string, value interface{}) (*Label, error) 864 DeleteApplicationLabel(ctx context.Context, applicationID string, key string) (*Label, error) 865 SetRuntimeLabel(ctx context.Context, runtimeID string, key string, value interface{}) (*Label, error) 866 DeleteRuntimeLabel(ctx context.Context, runtimeID string, key string) (*Label, error) 867 SetDefaultEventingForApplication(ctx context.Context, appID string, runtimeID string) (*ApplicationEventingConfiguration, error) 868 DeleteDefaultEventingForApplication(ctx context.Context, appID string) (*ApplicationEventingConfiguration, error) 869 SetBundleInstanceAuth(ctx context.Context, authID string, in BundleInstanceAuthSetInput) (*BundleInstanceAuth, error) 870 DeleteBundleInstanceAuth(ctx context.Context, authID string) (*BundleInstanceAuth, error) 871 RequestBundleInstanceAuthCreation(ctx context.Context, bundleID string, in BundleInstanceAuthRequestInput) (*BundleInstanceAuth, error) 872 RequestBundleInstanceAuthDeletion(ctx context.Context, authID string) (*BundleInstanceAuth, error) 873 CreateBundleInstanceAuth(ctx context.Context, bundleID string, in BundleInstanceAuthCreateInput) (*BundleInstanceAuth, error) 874 UpdateBundleInstanceAuth(ctx context.Context, id string, bundleID string, in BundleInstanceAuthUpdateInput) (*BundleInstanceAuth, error) 875 AddBundle(ctx context.Context, applicationID string, in BundleCreateInput) (*Bundle, error) 876 UpdateBundle(ctx context.Context, id string, in BundleUpdateInput) (*Bundle, error) 877 DeleteBundle(ctx context.Context, id string) (*Bundle, error) 878 WriteTenants(ctx context.Context, in []*BusinessTenantMappingInput) ([]string, error) 879 WriteTenant(ctx context.Context, in BusinessTenantMappingInput) (string, error) 880 DeleteTenants(ctx context.Context, in []string) (int, error) 881 UpdateTenant(ctx context.Context, id string, in BusinessTenantMappingInput) (*Tenant, error) 882 SubscribeTenant(ctx context.Context, providerID string, subaccountID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionAppName string, subscriptionPayload string) (bool, error) 883 UnsubscribeTenant(ctx context.Context, providerID string, subaccountID string, providerSubaccountID string, consumerTenantID string, region string) (bool, error) 884 CreateFormationTemplate(ctx context.Context, in FormationTemplateInput) (*FormationTemplate, error) 885 DeleteFormationTemplate(ctx context.Context, id string) (*FormationTemplate, error) 886 UpdateFormationTemplate(ctx context.Context, id string, in FormationTemplateInput) (*FormationTemplate, error) 887 CreateCertificateSubjectMapping(ctx context.Context, in CertificateSubjectMappingInput) (*CertificateSubjectMapping, error) 888 UpdateCertificateSubjectMapping(ctx context.Context, id string, in CertificateSubjectMappingInput) (*CertificateSubjectMapping, error) 889 DeleteCertificateSubjectMapping(ctx context.Context, id string) (*CertificateSubjectMapping, error) 890 AddTenantAccess(ctx context.Context, in TenantAccessInput) (*TenantAccess, error) 891 RemoveTenantAccess(ctx context.Context, tenantID string, resourceID string, resourceType TenantAccessObjectType) (*TenantAccess, error) 892 } 893 type OneTimeTokenForApplicationResolver interface { 894 Raw(ctx context.Context, obj *OneTimeTokenForApplication) (*string, error) 895 RawEncoded(ctx context.Context, obj *OneTimeTokenForApplication) (*string, error) 896 } 897 type OneTimeTokenForRuntimeResolver interface { 898 Raw(ctx context.Context, obj *OneTimeTokenForRuntime) (*string, error) 899 RawEncoded(ctx context.Context, obj *OneTimeTokenForRuntime) (*string, error) 900 } 901 type QueryResolver interface { 902 ApisForApplication(ctx context.Context, appID string, first *int, after *PageCursor) (*APIDefinitionPage, error) 903 EventsForApplication(ctx context.Context, appID string, first *int, after *PageCursor) (*EventDefinitionPage, error) 904 Applications(ctx context.Context, filter []*LabelFilter, first *int, after *PageCursor) (*ApplicationPage, error) 905 Application(ctx context.Context, id string) (*Application, error) 906 ApplicationBySystemNumber(ctx context.Context, systemNumber string) (*Application, error) 907 ApplicationsForRuntime(ctx context.Context, runtimeID string, first *int, after *PageCursor) (*ApplicationPage, error) 908 ApplicationTemplates(ctx context.Context, filter []*LabelFilter, first *int, after *PageCursor) (*ApplicationTemplatePage, error) 909 ApplicationTemplate(ctx context.Context, id string) (*ApplicationTemplate, error) 910 Runtimes(ctx context.Context, filter []*LabelFilter, first *int, after *PageCursor) (*RuntimePage, error) 911 Runtime(ctx context.Context, id string) (*Runtime, error) 912 RuntimeByTokenIssuer(ctx context.Context, issuer string) (*Runtime, error) 913 LabelDefinitions(ctx context.Context) ([]*LabelDefinition, error) 914 LabelDefinition(ctx context.Context, key string) (*LabelDefinition, error) 915 BundleByInstanceAuth(ctx context.Context, authID string) (*Bundle, error) 916 BundleInstanceAuth(ctx context.Context, id string) (*BundleInstanceAuth, error) 917 HealthChecks(ctx context.Context, types []HealthCheckType, origin *string, first *int, after *PageCursor) (*HealthCheckPage, error) 918 IntegrationSystems(ctx context.Context, first *int, after *PageCursor) (*IntegrationSystemPage, error) 919 IntegrationSystem(ctx context.Context, id string) (*IntegrationSystem, error) 920 Viewer(ctx context.Context) (*Viewer, error) 921 Tenants(ctx context.Context, first *int, after *PageCursor, searchTerm *string) (*TenantPage, error) 922 TenantByExternalID(ctx context.Context, id string) (*Tenant, error) 923 TenantByInternalID(ctx context.Context, id string) (*Tenant, error) 924 TenantByLowestOwnerForResource(ctx context.Context, id string, resource string) (string, error) 925 AutomaticScenarioAssignmentForScenario(ctx context.Context, scenarioName string) (*AutomaticScenarioAssignment, error) 926 AutomaticScenarioAssignmentsForSelector(ctx context.Context, selector LabelSelectorInput) ([]*AutomaticScenarioAssignment, error) 927 AutomaticScenarioAssignments(ctx context.Context, first *int, after *PageCursor) (*AutomaticScenarioAssignmentPage, error) 928 SystemAuth(ctx context.Context, id string) (SystemAuth, error) 929 SystemAuthByToken(ctx context.Context, token string) (SystemAuth, error) 930 Formation(ctx context.Context, id string) (*Formation, error) 931 FormationByName(ctx context.Context, name string) (*Formation, error) 932 Formations(ctx context.Context, first *int, after *PageCursor) (*FormationPage, error) 933 FormationConstraints(ctx context.Context) ([]*FormationConstraint, error) 934 FormationConstraint(ctx context.Context, id string) (*FormationConstraint, error) 935 FormationConstraintsByFormationType(ctx context.Context, formationTemplateID string) ([]*FormationConstraint, error) 936 FormationTemplate(ctx context.Context, id string) (*FormationTemplate, error) 937 FormationTemplates(ctx context.Context, first *int, after *PageCursor) (*FormationTemplatePage, error) 938 CertificateSubjectMapping(ctx context.Context, id string) (*CertificateSubjectMapping, error) 939 CertificateSubjectMappings(ctx context.Context, first *int, after *PageCursor) (*CertificateSubjectMappingPage, error) 940 } 941 type RuntimeResolver interface { 942 Labels(ctx context.Context, obj *Runtime, key *string) (Labels, error) 943 Webhooks(ctx context.Context, obj *Runtime) ([]*Webhook, error) 944 945 Auths(ctx context.Context, obj *Runtime) ([]*RuntimeSystemAuth, error) 946 EventingConfiguration(ctx context.Context, obj *Runtime) (*RuntimeEventingConfiguration, error) 947 RuntimeContext(ctx context.Context, obj *Runtime, id string) (*RuntimeContext, error) 948 RuntimeContexts(ctx context.Context, obj *Runtime, first *int, after *PageCursor) (*RuntimeContextPage, error) 949 } 950 type RuntimeContextResolver interface { 951 Labels(ctx context.Context, obj *RuntimeContext, key *string) (Labels, error) 952 } 953 type TenantResolver interface { 954 Labels(ctx context.Context, obj *Tenant, key *string) (Labels, error) 955 } 956 957 type executableSchema struct { 958 resolvers ResolverRoot 959 directives DirectiveRoot 960 complexity ComplexityRoot 961 } 962 963 func (e *executableSchema) Schema() *ast.Schema { 964 return parsedSchema 965 } 966 967 func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { 968 ec := executionContext{nil, e} 969 _ = ec 970 switch typeName + "." + field { 971 972 case "APIDefinition.created_at": 973 if e.complexity.APIDefinition.CreatedAt == nil { 974 break 975 } 976 977 return e.complexity.APIDefinition.CreatedAt(childComplexity), true 978 979 case "APIDefinition.deleted_at": 980 if e.complexity.APIDefinition.DeletedAt == nil { 981 break 982 } 983 984 return e.complexity.APIDefinition.DeletedAt(childComplexity), true 985 986 case "APIDefinition.description": 987 if e.complexity.APIDefinition.Description == nil { 988 break 989 } 990 991 return e.complexity.APIDefinition.Description(childComplexity), true 992 993 case "APIDefinition.error": 994 if e.complexity.APIDefinition.Error == nil { 995 break 996 } 997 998 return e.complexity.APIDefinition.Error(childComplexity), true 999 1000 case "APIDefinition.group": 1001 if e.complexity.APIDefinition.Group == nil { 1002 break 1003 } 1004 1005 return e.complexity.APIDefinition.Group(childComplexity), true 1006 1007 case "APIDefinition.id": 1008 if e.complexity.APIDefinition.ID == nil { 1009 break 1010 } 1011 1012 return e.complexity.APIDefinition.ID(childComplexity), true 1013 1014 case "APIDefinition.name": 1015 if e.complexity.APIDefinition.Name == nil { 1016 break 1017 } 1018 1019 return e.complexity.APIDefinition.Name(childComplexity), true 1020 1021 case "APIDefinition.spec": 1022 if e.complexity.APIDefinition.Spec == nil { 1023 break 1024 } 1025 1026 return e.complexity.APIDefinition.Spec(childComplexity), true 1027 1028 case "APIDefinition.targetURL": 1029 if e.complexity.APIDefinition.TargetURL == nil { 1030 break 1031 } 1032 1033 return e.complexity.APIDefinition.TargetURL(childComplexity), true 1034 1035 case "APIDefinition.updated_at": 1036 if e.complexity.APIDefinition.UpdatedAt == nil { 1037 break 1038 } 1039 1040 return e.complexity.APIDefinition.UpdatedAt(childComplexity), true 1041 1042 case "APIDefinition.version": 1043 if e.complexity.APIDefinition.Version == nil { 1044 break 1045 } 1046 1047 return e.complexity.APIDefinition.Version(childComplexity), true 1048 1049 case "APIDefinitionPage.data": 1050 if e.complexity.APIDefinitionPage.Data == nil { 1051 break 1052 } 1053 1054 return e.complexity.APIDefinitionPage.Data(childComplexity), true 1055 1056 case "APIDefinitionPage.pageInfo": 1057 if e.complexity.APIDefinitionPage.PageInfo == nil { 1058 break 1059 } 1060 1061 return e.complexity.APIDefinitionPage.PageInfo(childComplexity), true 1062 1063 case "APIDefinitionPage.totalCount": 1064 if e.complexity.APIDefinitionPage.TotalCount == nil { 1065 break 1066 } 1067 1068 return e.complexity.APIDefinitionPage.TotalCount(childComplexity), true 1069 1070 case "APISpec.data": 1071 if e.complexity.APISpec.Data == nil { 1072 break 1073 } 1074 1075 return e.complexity.APISpec.Data(childComplexity), true 1076 1077 case "APISpec.fetchRequest": 1078 if e.complexity.APISpec.FetchRequest == nil { 1079 break 1080 } 1081 1082 return e.complexity.APISpec.FetchRequest(childComplexity), true 1083 1084 case "APISpec.format": 1085 if e.complexity.APISpec.Format == nil { 1086 break 1087 } 1088 1089 return e.complexity.APISpec.Format(childComplexity), true 1090 1091 case "APISpec.id": 1092 if e.complexity.APISpec.ID == nil { 1093 break 1094 } 1095 1096 return e.complexity.APISpec.ID(childComplexity), true 1097 1098 case "APISpec.type": 1099 if e.complexity.APISpec.Type == nil { 1100 break 1101 } 1102 1103 return e.complexity.APISpec.Type(childComplexity), true 1104 1105 case "AppSystemAuth.auth": 1106 if e.complexity.AppSystemAuth.Auth == nil { 1107 break 1108 } 1109 1110 return e.complexity.AppSystemAuth.Auth(childComplexity), true 1111 1112 case "AppSystemAuth.id": 1113 if e.complexity.AppSystemAuth.ID == nil { 1114 break 1115 } 1116 1117 return e.complexity.AppSystemAuth.ID(childComplexity), true 1118 1119 case "AppSystemAuth.referenceObjectId": 1120 if e.complexity.AppSystemAuth.ReferenceObjectID == nil { 1121 break 1122 } 1123 1124 return e.complexity.AppSystemAuth.ReferenceObjectID(childComplexity), true 1125 1126 case "AppSystemAuth.tenantId": 1127 if e.complexity.AppSystemAuth.TenantID == nil { 1128 break 1129 } 1130 1131 return e.complexity.AppSystemAuth.TenantID(childComplexity), true 1132 1133 case "AppSystemAuth.type": 1134 if e.complexity.AppSystemAuth.Type == nil { 1135 break 1136 } 1137 1138 return e.complexity.AppSystemAuth.Type(childComplexity), true 1139 1140 case "Application.applicationNamespace": 1141 if e.complexity.Application.ApplicationNamespace == nil { 1142 break 1143 } 1144 1145 return e.complexity.Application.ApplicationNamespace(childComplexity), true 1146 1147 case "Application.applicationTemplate": 1148 if e.complexity.Application.ApplicationTemplate == nil { 1149 break 1150 } 1151 1152 return e.complexity.Application.ApplicationTemplate(childComplexity), true 1153 1154 case "Application.applicationTemplateID": 1155 if e.complexity.Application.ApplicationTemplateID == nil { 1156 break 1157 } 1158 1159 return e.complexity.Application.ApplicationTemplateID(childComplexity), true 1160 1161 case "Application.auths": 1162 if e.complexity.Application.Auths == nil { 1163 break 1164 } 1165 1166 return e.complexity.Application.Auths(childComplexity), true 1167 1168 case "Application.baseUrl": 1169 if e.complexity.Application.BaseURL == nil { 1170 break 1171 } 1172 1173 return e.complexity.Application.BaseURL(childComplexity), true 1174 1175 case "Application.bundle": 1176 if e.complexity.Application.Bundle == nil { 1177 break 1178 } 1179 1180 args, err := ec.field_Application_bundle_args(context.TODO(), rawArgs) 1181 if err != nil { 1182 return 0, false 1183 } 1184 1185 return e.complexity.Application.Bundle(childComplexity, args["id"].(string)), true 1186 1187 case "Application.bundles": 1188 if e.complexity.Application.Bundles == nil { 1189 break 1190 } 1191 1192 args, err := ec.field_Application_bundles_args(context.TODO(), rawArgs) 1193 if err != nil { 1194 return 0, false 1195 } 1196 1197 return e.complexity.Application.Bundles(childComplexity, args["first"].(*int), args["after"].(*PageCursor)), true 1198 1199 case "Application.createdAt": 1200 if e.complexity.Application.CreatedAt == nil { 1201 break 1202 } 1203 1204 return e.complexity.Application.CreatedAt(childComplexity), true 1205 1206 case "Application.deletedAt": 1207 if e.complexity.Application.DeletedAt == nil { 1208 break 1209 } 1210 1211 return e.complexity.Application.DeletedAt(childComplexity), true 1212 1213 case "Application.description": 1214 if e.complexity.Application.Description == nil { 1215 break 1216 } 1217 1218 return e.complexity.Application.Description(childComplexity), true 1219 1220 case "Application.error": 1221 if e.complexity.Application.Error == nil { 1222 break 1223 } 1224 1225 return e.complexity.Application.Error(childComplexity), true 1226 1227 case "Application.eventingConfiguration": 1228 if e.complexity.Application.EventingConfiguration == nil { 1229 break 1230 } 1231 1232 return e.complexity.Application.EventingConfiguration(childComplexity), true 1233 1234 case "Application.healthCheckURL": 1235 if e.complexity.Application.HealthCheckURL == nil { 1236 break 1237 } 1238 1239 return e.complexity.Application.HealthCheckURL(childComplexity), true 1240 1241 case "Application.id": 1242 if e.complexity.Application.ID == nil { 1243 break 1244 } 1245 1246 return e.complexity.Application.ID(childComplexity), true 1247 1248 case "Application.integrationSystemID": 1249 if e.complexity.Application.IntegrationSystemID == nil { 1250 break 1251 } 1252 1253 return e.complexity.Application.IntegrationSystemID(childComplexity), true 1254 1255 case "Application.labels": 1256 if e.complexity.Application.Labels == nil { 1257 break 1258 } 1259 1260 args, err := ec.field_Application_labels_args(context.TODO(), rawArgs) 1261 if err != nil { 1262 return 0, false 1263 } 1264 1265 return e.complexity.Application.Labels(childComplexity, args["key"].(*string)), true 1266 1267 case "Application.localTenantID": 1268 if e.complexity.Application.LocalTenantID == nil { 1269 break 1270 } 1271 1272 return e.complexity.Application.LocalTenantID(childComplexity), true 1273 1274 case "Application.name": 1275 if e.complexity.Application.Name == nil { 1276 break 1277 } 1278 1279 return e.complexity.Application.Name(childComplexity), true 1280 1281 case "Application.providerName": 1282 if e.complexity.Application.ProviderName == nil { 1283 break 1284 } 1285 1286 return e.complexity.Application.ProviderName(childComplexity), true 1287 1288 case "Application.status": 1289 if e.complexity.Application.Status == nil { 1290 break 1291 } 1292 1293 return e.complexity.Application.Status(childComplexity), true 1294 1295 case "Application.systemNumber": 1296 if e.complexity.Application.SystemNumber == nil { 1297 break 1298 } 1299 1300 return e.complexity.Application.SystemNumber(childComplexity), true 1301 1302 case "Application.systemStatus": 1303 if e.complexity.Application.SystemStatus == nil { 1304 break 1305 } 1306 1307 return e.complexity.Application.SystemStatus(childComplexity), true 1308 1309 case "Application.tenantBusinessType": 1310 if e.complexity.Application.TenantBusinessType == nil { 1311 break 1312 } 1313 1314 return e.complexity.Application.TenantBusinessType(childComplexity), true 1315 1316 case "Application.updatedAt": 1317 if e.complexity.Application.UpdatedAt == nil { 1318 break 1319 } 1320 1321 return e.complexity.Application.UpdatedAt(childComplexity), true 1322 1323 case "Application.webhooks": 1324 if e.complexity.Application.Webhooks == nil { 1325 break 1326 } 1327 1328 return e.complexity.Application.Webhooks(childComplexity), true 1329 1330 case "ApplicationEventingConfiguration.defaultURL": 1331 if e.complexity.ApplicationEventingConfiguration.DefaultURL == nil { 1332 break 1333 } 1334 1335 return e.complexity.ApplicationEventingConfiguration.DefaultURL(childComplexity), true 1336 1337 case "ApplicationPage.data": 1338 if e.complexity.ApplicationPage.Data == nil { 1339 break 1340 } 1341 1342 return e.complexity.ApplicationPage.Data(childComplexity), true 1343 1344 case "ApplicationPage.pageInfo": 1345 if e.complexity.ApplicationPage.PageInfo == nil { 1346 break 1347 } 1348 1349 return e.complexity.ApplicationPage.PageInfo(childComplexity), true 1350 1351 case "ApplicationPage.totalCount": 1352 if e.complexity.ApplicationPage.TotalCount == nil { 1353 break 1354 } 1355 1356 return e.complexity.ApplicationPage.TotalCount(childComplexity), true 1357 1358 case "ApplicationStatus.condition": 1359 if e.complexity.ApplicationStatus.Condition == nil { 1360 break 1361 } 1362 1363 return e.complexity.ApplicationStatus.Condition(childComplexity), true 1364 1365 case "ApplicationStatus.timestamp": 1366 if e.complexity.ApplicationStatus.Timestamp == nil { 1367 break 1368 } 1369 1370 return e.complexity.ApplicationStatus.Timestamp(childComplexity), true 1371 1372 case "ApplicationTemplate.accessLevel": 1373 if e.complexity.ApplicationTemplate.AccessLevel == nil { 1374 break 1375 } 1376 1377 return e.complexity.ApplicationTemplate.AccessLevel(childComplexity), true 1378 1379 case "ApplicationTemplate.applicationInput": 1380 if e.complexity.ApplicationTemplate.ApplicationInput == nil { 1381 break 1382 } 1383 1384 return e.complexity.ApplicationTemplate.ApplicationInput(childComplexity), true 1385 1386 case "ApplicationTemplate.applicationNamespace": 1387 if e.complexity.ApplicationTemplate.ApplicationNamespace == nil { 1388 break 1389 } 1390 1391 return e.complexity.ApplicationTemplate.ApplicationNamespace(childComplexity), true 1392 1393 case "ApplicationTemplate.description": 1394 if e.complexity.ApplicationTemplate.Description == nil { 1395 break 1396 } 1397 1398 return e.complexity.ApplicationTemplate.Description(childComplexity), true 1399 1400 case "ApplicationTemplate.id": 1401 if e.complexity.ApplicationTemplate.ID == nil { 1402 break 1403 } 1404 1405 return e.complexity.ApplicationTemplate.ID(childComplexity), true 1406 1407 case "ApplicationTemplate.labels": 1408 if e.complexity.ApplicationTemplate.Labels == nil { 1409 break 1410 } 1411 1412 args, err := ec.field_ApplicationTemplate_labels_args(context.TODO(), rawArgs) 1413 if err != nil { 1414 return 0, false 1415 } 1416 1417 return e.complexity.ApplicationTemplate.Labels(childComplexity, args["key"].(*string)), true 1418 1419 case "ApplicationTemplate.name": 1420 if e.complexity.ApplicationTemplate.Name == nil { 1421 break 1422 } 1423 1424 return e.complexity.ApplicationTemplate.Name(childComplexity), true 1425 1426 case "ApplicationTemplate.placeholders": 1427 if e.complexity.ApplicationTemplate.Placeholders == nil { 1428 break 1429 } 1430 1431 return e.complexity.ApplicationTemplate.Placeholders(childComplexity), true 1432 1433 case "ApplicationTemplate.webhooks": 1434 if e.complexity.ApplicationTemplate.Webhooks == nil { 1435 break 1436 } 1437 1438 return e.complexity.ApplicationTemplate.Webhooks(childComplexity), true 1439 1440 case "ApplicationTemplatePage.data": 1441 if e.complexity.ApplicationTemplatePage.Data == nil { 1442 break 1443 } 1444 1445 return e.complexity.ApplicationTemplatePage.Data(childComplexity), true 1446 1447 case "ApplicationTemplatePage.pageInfo": 1448 if e.complexity.ApplicationTemplatePage.PageInfo == nil { 1449 break 1450 } 1451 1452 return e.complexity.ApplicationTemplatePage.PageInfo(childComplexity), true 1453 1454 case "ApplicationTemplatePage.totalCount": 1455 if e.complexity.ApplicationTemplatePage.TotalCount == nil { 1456 break 1457 } 1458 1459 return e.complexity.ApplicationTemplatePage.TotalCount(childComplexity), true 1460 1461 case "Auth.accessStrategy": 1462 if e.complexity.Auth.AccessStrategy == nil { 1463 break 1464 } 1465 1466 return e.complexity.Auth.AccessStrategy(childComplexity), true 1467 1468 case "Auth.additionalHeaders": 1469 if e.complexity.Auth.AdditionalHeaders == nil { 1470 break 1471 } 1472 1473 return e.complexity.Auth.AdditionalHeaders(childComplexity), true 1474 1475 case "Auth.additionalHeadersSerialized": 1476 if e.complexity.Auth.AdditionalHeadersSerialized == nil { 1477 break 1478 } 1479 1480 return e.complexity.Auth.AdditionalHeadersSerialized(childComplexity), true 1481 1482 case "Auth.additionalQueryParams": 1483 if e.complexity.Auth.AdditionalQueryParams == nil { 1484 break 1485 } 1486 1487 return e.complexity.Auth.AdditionalQueryParams(childComplexity), true 1488 1489 case "Auth.additionalQueryParamsSerialized": 1490 if e.complexity.Auth.AdditionalQueryParamsSerialized == nil { 1491 break 1492 } 1493 1494 return e.complexity.Auth.AdditionalQueryParamsSerialized(childComplexity), true 1495 1496 case "Auth.certCommonName": 1497 if e.complexity.Auth.CertCommonName == nil { 1498 break 1499 } 1500 1501 return e.complexity.Auth.CertCommonName(childComplexity), true 1502 1503 case "Auth.credential": 1504 if e.complexity.Auth.Credential == nil { 1505 break 1506 } 1507 1508 return e.complexity.Auth.Credential(childComplexity), true 1509 1510 case "Auth.oneTimeToken": 1511 if e.complexity.Auth.OneTimeToken == nil { 1512 break 1513 } 1514 1515 return e.complexity.Auth.OneTimeToken(childComplexity), true 1516 1517 case "Auth.requestAuth": 1518 if e.complexity.Auth.RequestAuth == nil { 1519 break 1520 } 1521 1522 return e.complexity.Auth.RequestAuth(childComplexity), true 1523 1524 case "AutomaticScenarioAssignment.scenarioName": 1525 if e.complexity.AutomaticScenarioAssignment.ScenarioName == nil { 1526 break 1527 } 1528 1529 return e.complexity.AutomaticScenarioAssignment.ScenarioName(childComplexity), true 1530 1531 case "AutomaticScenarioAssignment.selector": 1532 if e.complexity.AutomaticScenarioAssignment.Selector == nil { 1533 break 1534 } 1535 1536 return e.complexity.AutomaticScenarioAssignment.Selector(childComplexity), true 1537 1538 case "AutomaticScenarioAssignmentPage.data": 1539 if e.complexity.AutomaticScenarioAssignmentPage.Data == nil { 1540 break 1541 } 1542 1543 return e.complexity.AutomaticScenarioAssignmentPage.Data(childComplexity), true 1544 1545 case "AutomaticScenarioAssignmentPage.pageInfo": 1546 if e.complexity.AutomaticScenarioAssignmentPage.PageInfo == nil { 1547 break 1548 } 1549 1550 return e.complexity.AutomaticScenarioAssignmentPage.PageInfo(childComplexity), true 1551 1552 case "AutomaticScenarioAssignmentPage.totalCount": 1553 if e.complexity.AutomaticScenarioAssignmentPage.TotalCount == nil { 1554 break 1555 } 1556 1557 return e.complexity.AutomaticScenarioAssignmentPage.TotalCount(childComplexity), true 1558 1559 case "BasicCredentialData.password": 1560 if e.complexity.BasicCredentialData.Password == nil { 1561 break 1562 } 1563 1564 return e.complexity.BasicCredentialData.Password(childComplexity), true 1565 1566 case "BasicCredentialData.username": 1567 if e.complexity.BasicCredentialData.Username == nil { 1568 break 1569 } 1570 1571 return e.complexity.BasicCredentialData.Username(childComplexity), true 1572 1573 case "Bundle.apiDefinition": 1574 if e.complexity.Bundle.APIDefinition == nil { 1575 break 1576 } 1577 1578 args, err := ec.field_Bundle_apiDefinition_args(context.TODO(), rawArgs) 1579 if err != nil { 1580 return 0, false 1581 } 1582 1583 return e.complexity.Bundle.APIDefinition(childComplexity, args["id"].(string)), true 1584 1585 case "Bundle.apiDefinitions": 1586 if e.complexity.Bundle.APIDefinitions == nil { 1587 break 1588 } 1589 1590 args, err := ec.field_Bundle_apiDefinitions_args(context.TODO(), rawArgs) 1591 if err != nil { 1592 return 0, false 1593 } 1594 1595 return e.complexity.Bundle.APIDefinitions(childComplexity, args["group"].(*string), args["first"].(*int), args["after"].(*PageCursor)), true 1596 1597 case "Bundle.correlationIDs": 1598 if e.complexity.Bundle.CorrelationIDs == nil { 1599 break 1600 } 1601 1602 return e.complexity.Bundle.CorrelationIDs(childComplexity), true 1603 1604 case "Bundle.createdAt": 1605 if e.complexity.Bundle.CreatedAt == nil { 1606 break 1607 } 1608 1609 return e.complexity.Bundle.CreatedAt(childComplexity), true 1610 1611 case "Bundle.defaultInstanceAuth": 1612 if e.complexity.Bundle.DefaultInstanceAuth == nil { 1613 break 1614 } 1615 1616 return e.complexity.Bundle.DefaultInstanceAuth(childComplexity), true 1617 1618 case "Bundle.deletedAt": 1619 if e.complexity.Bundle.DeletedAt == nil { 1620 break 1621 } 1622 1623 return e.complexity.Bundle.DeletedAt(childComplexity), true 1624 1625 case "Bundle.description": 1626 if e.complexity.Bundle.Description == nil { 1627 break 1628 } 1629 1630 return e.complexity.Bundle.Description(childComplexity), true 1631 1632 case "Bundle.document": 1633 if e.complexity.Bundle.Document == nil { 1634 break 1635 } 1636 1637 args, err := ec.field_Bundle_document_args(context.TODO(), rawArgs) 1638 if err != nil { 1639 return 0, false 1640 } 1641 1642 return e.complexity.Bundle.Document(childComplexity, args["id"].(string)), true 1643 1644 case "Bundle.documents": 1645 if e.complexity.Bundle.Documents == nil { 1646 break 1647 } 1648 1649 args, err := ec.field_Bundle_documents_args(context.TODO(), rawArgs) 1650 if err != nil { 1651 return 0, false 1652 } 1653 1654 return e.complexity.Bundle.Documents(childComplexity, args["first"].(*int), args["after"].(*PageCursor)), true 1655 1656 case "Bundle.error": 1657 if e.complexity.Bundle.Error == nil { 1658 break 1659 } 1660 1661 return e.complexity.Bundle.Error(childComplexity), true 1662 1663 case "Bundle.eventDefinition": 1664 if e.complexity.Bundle.EventDefinition == nil { 1665 break 1666 } 1667 1668 args, err := ec.field_Bundle_eventDefinition_args(context.TODO(), rawArgs) 1669 if err != nil { 1670 return 0, false 1671 } 1672 1673 return e.complexity.Bundle.EventDefinition(childComplexity, args["id"].(string)), true 1674 1675 case "Bundle.eventDefinitions": 1676 if e.complexity.Bundle.EventDefinitions == nil { 1677 break 1678 } 1679 1680 args, err := ec.field_Bundle_eventDefinitions_args(context.TODO(), rawArgs) 1681 if err != nil { 1682 return 0, false 1683 } 1684 1685 return e.complexity.Bundle.EventDefinitions(childComplexity, args["group"].(*string), args["first"].(*int), args["after"].(*PageCursor)), true 1686 1687 case "Bundle.id": 1688 if e.complexity.Bundle.ID == nil { 1689 break 1690 } 1691 1692 return e.complexity.Bundle.ID(childComplexity), true 1693 1694 case "Bundle.instanceAuth": 1695 if e.complexity.Bundle.InstanceAuth == nil { 1696 break 1697 } 1698 1699 args, err := ec.field_Bundle_instanceAuth_args(context.TODO(), rawArgs) 1700 if err != nil { 1701 return 0, false 1702 } 1703 1704 return e.complexity.Bundle.InstanceAuth(childComplexity, args["id"].(string)), true 1705 1706 case "Bundle.instanceAuthRequestInputSchema": 1707 if e.complexity.Bundle.InstanceAuthRequestInputSchema == nil { 1708 break 1709 } 1710 1711 return e.complexity.Bundle.InstanceAuthRequestInputSchema(childComplexity), true 1712 1713 case "Bundle.instanceAuths": 1714 if e.complexity.Bundle.InstanceAuths == nil { 1715 break 1716 } 1717 1718 return e.complexity.Bundle.InstanceAuths(childComplexity), true 1719 1720 case "Bundle.name": 1721 if e.complexity.Bundle.Name == nil { 1722 break 1723 } 1724 1725 return e.complexity.Bundle.Name(childComplexity), true 1726 1727 case "Bundle.updatedAt": 1728 if e.complexity.Bundle.UpdatedAt == nil { 1729 break 1730 } 1731 1732 return e.complexity.Bundle.UpdatedAt(childComplexity), true 1733 1734 case "BundleInstanceAuth.auth": 1735 if e.complexity.BundleInstanceAuth.Auth == nil { 1736 break 1737 } 1738 1739 return e.complexity.BundleInstanceAuth.Auth(childComplexity), true 1740 1741 case "BundleInstanceAuth.context": 1742 if e.complexity.BundleInstanceAuth.Context == nil { 1743 break 1744 } 1745 1746 return e.complexity.BundleInstanceAuth.Context(childComplexity), true 1747 1748 case "BundleInstanceAuth.id": 1749 if e.complexity.BundleInstanceAuth.ID == nil { 1750 break 1751 } 1752 1753 return e.complexity.BundleInstanceAuth.ID(childComplexity), true 1754 1755 case "BundleInstanceAuth.inputParams": 1756 if e.complexity.BundleInstanceAuth.InputParams == nil { 1757 break 1758 } 1759 1760 return e.complexity.BundleInstanceAuth.InputParams(childComplexity), true 1761 1762 case "BundleInstanceAuth.runtimeContextID": 1763 if e.complexity.BundleInstanceAuth.RuntimeContextID == nil { 1764 break 1765 } 1766 1767 return e.complexity.BundleInstanceAuth.RuntimeContextID(childComplexity), true 1768 1769 case "BundleInstanceAuth.runtimeID": 1770 if e.complexity.BundleInstanceAuth.RuntimeID == nil { 1771 break 1772 } 1773 1774 return e.complexity.BundleInstanceAuth.RuntimeID(childComplexity), true 1775 1776 case "BundleInstanceAuth.status": 1777 if e.complexity.BundleInstanceAuth.Status == nil { 1778 break 1779 } 1780 1781 return e.complexity.BundleInstanceAuth.Status(childComplexity), true 1782 1783 case "BundleInstanceAuthStatus.condition": 1784 if e.complexity.BundleInstanceAuthStatus.Condition == nil { 1785 break 1786 } 1787 1788 return e.complexity.BundleInstanceAuthStatus.Condition(childComplexity), true 1789 1790 case "BundleInstanceAuthStatus.message": 1791 if e.complexity.BundleInstanceAuthStatus.Message == nil { 1792 break 1793 } 1794 1795 return e.complexity.BundleInstanceAuthStatus.Message(childComplexity), true 1796 1797 case "BundleInstanceAuthStatus.reason": 1798 if e.complexity.BundleInstanceAuthStatus.Reason == nil { 1799 break 1800 } 1801 1802 return e.complexity.BundleInstanceAuthStatus.Reason(childComplexity), true 1803 1804 case "BundleInstanceAuthStatus.timestamp": 1805 if e.complexity.BundleInstanceAuthStatus.Timestamp == nil { 1806 break 1807 } 1808 1809 return e.complexity.BundleInstanceAuthStatus.Timestamp(childComplexity), true 1810 1811 case "BundlePage.data": 1812 if e.complexity.BundlePage.Data == nil { 1813 break 1814 } 1815 1816 return e.complexity.BundlePage.Data(childComplexity), true 1817 1818 case "BundlePage.pageInfo": 1819 if e.complexity.BundlePage.PageInfo == nil { 1820 break 1821 } 1822 1823 return e.complexity.BundlePage.PageInfo(childComplexity), true 1824 1825 case "BundlePage.totalCount": 1826 if e.complexity.BundlePage.TotalCount == nil { 1827 break 1828 } 1829 1830 return e.complexity.BundlePage.TotalCount(childComplexity), true 1831 1832 case "CSRFTokenCredentialRequestAuth.additionalHeaders": 1833 if e.complexity.CSRFTokenCredentialRequestAuth.AdditionalHeaders == nil { 1834 break 1835 } 1836 1837 return e.complexity.CSRFTokenCredentialRequestAuth.AdditionalHeaders(childComplexity), true 1838 1839 case "CSRFTokenCredentialRequestAuth.additionalHeadersSerialized": 1840 if e.complexity.CSRFTokenCredentialRequestAuth.AdditionalHeadersSerialized == nil { 1841 break 1842 } 1843 1844 return e.complexity.CSRFTokenCredentialRequestAuth.AdditionalHeadersSerialized(childComplexity), true 1845 1846 case "CSRFTokenCredentialRequestAuth.additionalQueryParams": 1847 if e.complexity.CSRFTokenCredentialRequestAuth.AdditionalQueryParams == nil { 1848 break 1849 } 1850 1851 return e.complexity.CSRFTokenCredentialRequestAuth.AdditionalQueryParams(childComplexity), true 1852 1853 case "CSRFTokenCredentialRequestAuth.additionalQueryParamsSerialized": 1854 if e.complexity.CSRFTokenCredentialRequestAuth.AdditionalQueryParamsSerialized == nil { 1855 break 1856 } 1857 1858 return e.complexity.CSRFTokenCredentialRequestAuth.AdditionalQueryParamsSerialized(childComplexity), true 1859 1860 case "CSRFTokenCredentialRequestAuth.credential": 1861 if e.complexity.CSRFTokenCredentialRequestAuth.Credential == nil { 1862 break 1863 } 1864 1865 return e.complexity.CSRFTokenCredentialRequestAuth.Credential(childComplexity), true 1866 1867 case "CSRFTokenCredentialRequestAuth.tokenEndpointURL": 1868 if e.complexity.CSRFTokenCredentialRequestAuth.TokenEndpointURL == nil { 1869 break 1870 } 1871 1872 return e.complexity.CSRFTokenCredentialRequestAuth.TokenEndpointURL(childComplexity), true 1873 1874 case "CertificateOAuthCredentialData.certificate": 1875 if e.complexity.CertificateOAuthCredentialData.Certificate == nil { 1876 break 1877 } 1878 1879 return e.complexity.CertificateOAuthCredentialData.Certificate(childComplexity), true 1880 1881 case "CertificateOAuthCredentialData.clientId": 1882 if e.complexity.CertificateOAuthCredentialData.ClientID == nil { 1883 break 1884 } 1885 1886 return e.complexity.CertificateOAuthCredentialData.ClientID(childComplexity), true 1887 1888 case "CertificateOAuthCredentialData.url": 1889 if e.complexity.CertificateOAuthCredentialData.URL == nil { 1890 break 1891 } 1892 1893 return e.complexity.CertificateOAuthCredentialData.URL(childComplexity), true 1894 1895 case "CertificateSubjectMapping.consumerType": 1896 if e.complexity.CertificateSubjectMapping.ConsumerType == nil { 1897 break 1898 } 1899 1900 return e.complexity.CertificateSubjectMapping.ConsumerType(childComplexity), true 1901 1902 case "CertificateSubjectMapping.id": 1903 if e.complexity.CertificateSubjectMapping.ID == nil { 1904 break 1905 } 1906 1907 return e.complexity.CertificateSubjectMapping.ID(childComplexity), true 1908 1909 case "CertificateSubjectMapping.internalConsumerID": 1910 if e.complexity.CertificateSubjectMapping.InternalConsumerID == nil { 1911 break 1912 } 1913 1914 return e.complexity.CertificateSubjectMapping.InternalConsumerID(childComplexity), true 1915 1916 case "CertificateSubjectMapping.subject": 1917 if e.complexity.CertificateSubjectMapping.Subject == nil { 1918 break 1919 } 1920 1921 return e.complexity.CertificateSubjectMapping.Subject(childComplexity), true 1922 1923 case "CertificateSubjectMapping.tenantAccessLevels": 1924 if e.complexity.CertificateSubjectMapping.TenantAccessLevels == nil { 1925 break 1926 } 1927 1928 return e.complexity.CertificateSubjectMapping.TenantAccessLevels(childComplexity), true 1929 1930 case "CertificateSubjectMappingPage.data": 1931 if e.complexity.CertificateSubjectMappingPage.Data == nil { 1932 break 1933 } 1934 1935 return e.complexity.CertificateSubjectMappingPage.Data(childComplexity), true 1936 1937 case "CertificateSubjectMappingPage.pageInfo": 1938 if e.complexity.CertificateSubjectMappingPage.PageInfo == nil { 1939 break 1940 } 1941 1942 return e.complexity.CertificateSubjectMappingPage.PageInfo(childComplexity), true 1943 1944 case "CertificateSubjectMappingPage.totalCount": 1945 if e.complexity.CertificateSubjectMappingPage.TotalCount == nil { 1946 break 1947 } 1948 1949 return e.complexity.CertificateSubjectMappingPage.TotalCount(childComplexity), true 1950 1951 case "ConstraintReference.constraintID": 1952 if e.complexity.ConstraintReference.ConstraintID == nil { 1953 break 1954 } 1955 1956 return e.complexity.ConstraintReference.ConstraintID(childComplexity), true 1957 1958 case "ConstraintReference.formationTemplateID": 1959 if e.complexity.ConstraintReference.FormationTemplateID == nil { 1960 break 1961 } 1962 1963 return e.complexity.ConstraintReference.FormationTemplateID(childComplexity), true 1964 1965 case "CredentialRequestAuth.csrf": 1966 if e.complexity.CredentialRequestAuth.Csrf == nil { 1967 break 1968 } 1969 1970 return e.complexity.CredentialRequestAuth.Csrf(childComplexity), true 1971 1972 case "Document.createdAt": 1973 if e.complexity.Document.CreatedAt == nil { 1974 break 1975 } 1976 1977 return e.complexity.Document.CreatedAt(childComplexity), true 1978 1979 case "Document.data": 1980 if e.complexity.Document.Data == nil { 1981 break 1982 } 1983 1984 return e.complexity.Document.Data(childComplexity), true 1985 1986 case "Document.deletedAt": 1987 if e.complexity.Document.DeletedAt == nil { 1988 break 1989 } 1990 1991 return e.complexity.Document.DeletedAt(childComplexity), true 1992 1993 case "Document.description": 1994 if e.complexity.Document.Description == nil { 1995 break 1996 } 1997 1998 return e.complexity.Document.Description(childComplexity), true 1999 2000 case "Document.displayName": 2001 if e.complexity.Document.DisplayName == nil { 2002 break 2003 } 2004 2005 return e.complexity.Document.DisplayName(childComplexity), true 2006 2007 case "Document.error": 2008 if e.complexity.Document.Error == nil { 2009 break 2010 } 2011 2012 return e.complexity.Document.Error(childComplexity), true 2013 2014 case "Document.fetchRequest": 2015 if e.complexity.Document.FetchRequest == nil { 2016 break 2017 } 2018 2019 return e.complexity.Document.FetchRequest(childComplexity), true 2020 2021 case "Document.format": 2022 if e.complexity.Document.Format == nil { 2023 break 2024 } 2025 2026 return e.complexity.Document.Format(childComplexity), true 2027 2028 case "Document.id": 2029 if e.complexity.Document.ID == nil { 2030 break 2031 } 2032 2033 return e.complexity.Document.ID(childComplexity), true 2034 2035 case "Document.kind": 2036 if e.complexity.Document.Kind == nil { 2037 break 2038 } 2039 2040 return e.complexity.Document.Kind(childComplexity), true 2041 2042 case "Document.title": 2043 if e.complexity.Document.Title == nil { 2044 break 2045 } 2046 2047 return e.complexity.Document.Title(childComplexity), true 2048 2049 case "Document.updatedAt": 2050 if e.complexity.Document.UpdatedAt == nil { 2051 break 2052 } 2053 2054 return e.complexity.Document.UpdatedAt(childComplexity), true 2055 2056 case "DocumentPage.data": 2057 if e.complexity.DocumentPage.Data == nil { 2058 break 2059 } 2060 2061 return e.complexity.DocumentPage.Data(childComplexity), true 2062 2063 case "DocumentPage.pageInfo": 2064 if e.complexity.DocumentPage.PageInfo == nil { 2065 break 2066 } 2067 2068 return e.complexity.DocumentPage.PageInfo(childComplexity), true 2069 2070 case "DocumentPage.totalCount": 2071 if e.complexity.DocumentPage.TotalCount == nil { 2072 break 2073 } 2074 2075 return e.complexity.DocumentPage.TotalCount(childComplexity), true 2076 2077 case "EventDefinition.createdAt": 2078 if e.complexity.EventDefinition.CreatedAt == nil { 2079 break 2080 } 2081 2082 return e.complexity.EventDefinition.CreatedAt(childComplexity), true 2083 2084 case "EventDefinition.deletedAt": 2085 if e.complexity.EventDefinition.DeletedAt == nil { 2086 break 2087 } 2088 2089 return e.complexity.EventDefinition.DeletedAt(childComplexity), true 2090 2091 case "EventDefinition.description": 2092 if e.complexity.EventDefinition.Description == nil { 2093 break 2094 } 2095 2096 return e.complexity.EventDefinition.Description(childComplexity), true 2097 2098 case "EventDefinition.error": 2099 if e.complexity.EventDefinition.Error == nil { 2100 break 2101 } 2102 2103 return e.complexity.EventDefinition.Error(childComplexity), true 2104 2105 case "EventDefinition.group": 2106 if e.complexity.EventDefinition.Group == nil { 2107 break 2108 } 2109 2110 return e.complexity.EventDefinition.Group(childComplexity), true 2111 2112 case "EventDefinition.id": 2113 if e.complexity.EventDefinition.ID == nil { 2114 break 2115 } 2116 2117 return e.complexity.EventDefinition.ID(childComplexity), true 2118 2119 case "EventDefinition.name": 2120 if e.complexity.EventDefinition.Name == nil { 2121 break 2122 } 2123 2124 return e.complexity.EventDefinition.Name(childComplexity), true 2125 2126 case "EventDefinition.spec": 2127 if e.complexity.EventDefinition.Spec == nil { 2128 break 2129 } 2130 2131 return e.complexity.EventDefinition.Spec(childComplexity), true 2132 2133 case "EventDefinition.updatedAt": 2134 if e.complexity.EventDefinition.UpdatedAt == nil { 2135 break 2136 } 2137 2138 return e.complexity.EventDefinition.UpdatedAt(childComplexity), true 2139 2140 case "EventDefinition.version": 2141 if e.complexity.EventDefinition.Version == nil { 2142 break 2143 } 2144 2145 return e.complexity.EventDefinition.Version(childComplexity), true 2146 2147 case "EventDefinitionPage.data": 2148 if e.complexity.EventDefinitionPage.Data == nil { 2149 break 2150 } 2151 2152 return e.complexity.EventDefinitionPage.Data(childComplexity), true 2153 2154 case "EventDefinitionPage.pageInfo": 2155 if e.complexity.EventDefinitionPage.PageInfo == nil { 2156 break 2157 } 2158 2159 return e.complexity.EventDefinitionPage.PageInfo(childComplexity), true 2160 2161 case "EventDefinitionPage.totalCount": 2162 if e.complexity.EventDefinitionPage.TotalCount == nil { 2163 break 2164 } 2165 2166 return e.complexity.EventDefinitionPage.TotalCount(childComplexity), true 2167 2168 case "EventSpec.data": 2169 if e.complexity.EventSpec.Data == nil { 2170 break 2171 } 2172 2173 return e.complexity.EventSpec.Data(childComplexity), true 2174 2175 case "EventSpec.fetchRequest": 2176 if e.complexity.EventSpec.FetchRequest == nil { 2177 break 2178 } 2179 2180 return e.complexity.EventSpec.FetchRequest(childComplexity), true 2181 2182 case "EventSpec.format": 2183 if e.complexity.EventSpec.Format == nil { 2184 break 2185 } 2186 2187 return e.complexity.EventSpec.Format(childComplexity), true 2188 2189 case "EventSpec.id": 2190 if e.complexity.EventSpec.ID == nil { 2191 break 2192 } 2193 2194 return e.complexity.EventSpec.ID(childComplexity), true 2195 2196 case "EventSpec.type": 2197 if e.complexity.EventSpec.Type == nil { 2198 break 2199 } 2200 2201 return e.complexity.EventSpec.Type(childComplexity), true 2202 2203 case "FetchRequest.auth": 2204 if e.complexity.FetchRequest.Auth == nil { 2205 break 2206 } 2207 2208 return e.complexity.FetchRequest.Auth(childComplexity), true 2209 2210 case "FetchRequest.filter": 2211 if e.complexity.FetchRequest.Filter == nil { 2212 break 2213 } 2214 2215 return e.complexity.FetchRequest.Filter(childComplexity), true 2216 2217 case "FetchRequest.mode": 2218 if e.complexity.FetchRequest.Mode == nil { 2219 break 2220 } 2221 2222 return e.complexity.FetchRequest.Mode(childComplexity), true 2223 2224 case "FetchRequest.status": 2225 if e.complexity.FetchRequest.Status == nil { 2226 break 2227 } 2228 2229 return e.complexity.FetchRequest.Status(childComplexity), true 2230 2231 case "FetchRequest.url": 2232 if e.complexity.FetchRequest.URL == nil { 2233 break 2234 } 2235 2236 return e.complexity.FetchRequest.URL(childComplexity), true 2237 2238 case "FetchRequestStatus.condition": 2239 if e.complexity.FetchRequestStatus.Condition == nil { 2240 break 2241 } 2242 2243 return e.complexity.FetchRequestStatus.Condition(childComplexity), true 2244 2245 case "FetchRequestStatus.message": 2246 if e.complexity.FetchRequestStatus.Message == nil { 2247 break 2248 } 2249 2250 return e.complexity.FetchRequestStatus.Message(childComplexity), true 2251 2252 case "FetchRequestStatus.timestamp": 2253 if e.complexity.FetchRequestStatus.Timestamp == nil { 2254 break 2255 } 2256 2257 return e.complexity.FetchRequestStatus.Timestamp(childComplexity), true 2258 2259 case "Formation.error": 2260 if e.complexity.Formation.Error == nil { 2261 break 2262 } 2263 2264 return e.complexity.Formation.Error(childComplexity), true 2265 2266 case "Formation.formationAssignment": 2267 if e.complexity.Formation.FormationAssignment == nil { 2268 break 2269 } 2270 2271 args, err := ec.field_Formation_formationAssignment_args(context.TODO(), rawArgs) 2272 if err != nil { 2273 return 0, false 2274 } 2275 2276 return e.complexity.Formation.FormationAssignment(childComplexity, args["id"].(string)), true 2277 2278 case "Formation.formationAssignments": 2279 if e.complexity.Formation.FormationAssignments == nil { 2280 break 2281 } 2282 2283 args, err := ec.field_Formation_formationAssignments_args(context.TODO(), rawArgs) 2284 if err != nil { 2285 return 0, false 2286 } 2287 2288 return e.complexity.Formation.FormationAssignments(childComplexity, args["first"].(*int), args["after"].(*PageCursor)), true 2289 2290 case "Formation.formationTemplateId": 2291 if e.complexity.Formation.FormationTemplateID == nil { 2292 break 2293 } 2294 2295 return e.complexity.Formation.FormationTemplateID(childComplexity), true 2296 2297 case "Formation.id": 2298 if e.complexity.Formation.ID == nil { 2299 break 2300 } 2301 2302 return e.complexity.Formation.ID(childComplexity), true 2303 2304 case "Formation.name": 2305 if e.complexity.Formation.Name == nil { 2306 break 2307 } 2308 2309 return e.complexity.Formation.Name(childComplexity), true 2310 2311 case "Formation.state": 2312 if e.complexity.Formation.State == nil { 2313 break 2314 } 2315 2316 return e.complexity.Formation.State(childComplexity), true 2317 2318 case "Formation.status": 2319 if e.complexity.Formation.Status == nil { 2320 break 2321 } 2322 2323 return e.complexity.Formation.Status(childComplexity), true 2324 2325 case "FormationAssignment.id": 2326 if e.complexity.FormationAssignment.ID == nil { 2327 break 2328 } 2329 2330 return e.complexity.FormationAssignment.ID(childComplexity), true 2331 2332 case "FormationAssignment.source": 2333 if e.complexity.FormationAssignment.Source == nil { 2334 break 2335 } 2336 2337 return e.complexity.FormationAssignment.Source(childComplexity), true 2338 2339 case "FormationAssignment.sourceType": 2340 if e.complexity.FormationAssignment.SourceType == nil { 2341 break 2342 } 2343 2344 return e.complexity.FormationAssignment.SourceType(childComplexity), true 2345 2346 case "FormationAssignment.state": 2347 if e.complexity.FormationAssignment.State == nil { 2348 break 2349 } 2350 2351 return e.complexity.FormationAssignment.State(childComplexity), true 2352 2353 case "FormationAssignment.target": 2354 if e.complexity.FormationAssignment.Target == nil { 2355 break 2356 } 2357 2358 return e.complexity.FormationAssignment.Target(childComplexity), true 2359 2360 case "FormationAssignment.targetType": 2361 if e.complexity.FormationAssignment.TargetType == nil { 2362 break 2363 } 2364 2365 return e.complexity.FormationAssignment.TargetType(childComplexity), true 2366 2367 case "FormationAssignment.value": 2368 if e.complexity.FormationAssignment.Value == nil { 2369 break 2370 } 2371 2372 return e.complexity.FormationAssignment.Value(childComplexity), true 2373 2374 case "FormationAssignmentPage.data": 2375 if e.complexity.FormationAssignmentPage.Data == nil { 2376 break 2377 } 2378 2379 return e.complexity.FormationAssignmentPage.Data(childComplexity), true 2380 2381 case "FormationAssignmentPage.pageInfo": 2382 if e.complexity.FormationAssignmentPage.PageInfo == nil { 2383 break 2384 } 2385 2386 return e.complexity.FormationAssignmentPage.PageInfo(childComplexity), true 2387 2388 case "FormationAssignmentPage.totalCount": 2389 if e.complexity.FormationAssignmentPage.TotalCount == nil { 2390 break 2391 } 2392 2393 return e.complexity.FormationAssignmentPage.TotalCount(childComplexity), true 2394 2395 case "FormationConstraint.constraintScope": 2396 if e.complexity.FormationConstraint.ConstraintScope == nil { 2397 break 2398 } 2399 2400 return e.complexity.FormationConstraint.ConstraintScope(childComplexity), true 2401 2402 case "FormationConstraint.constraintType": 2403 if e.complexity.FormationConstraint.ConstraintType == nil { 2404 break 2405 } 2406 2407 return e.complexity.FormationConstraint.ConstraintType(childComplexity), true 2408 2409 case "FormationConstraint.id": 2410 if e.complexity.FormationConstraint.ID == nil { 2411 break 2412 } 2413 2414 return e.complexity.FormationConstraint.ID(childComplexity), true 2415 2416 case "FormationConstraint.inputTemplate": 2417 if e.complexity.FormationConstraint.InputTemplate == nil { 2418 break 2419 } 2420 2421 return e.complexity.FormationConstraint.InputTemplate(childComplexity), true 2422 2423 case "FormationConstraint.name": 2424 if e.complexity.FormationConstraint.Name == nil { 2425 break 2426 } 2427 2428 return e.complexity.FormationConstraint.Name(childComplexity), true 2429 2430 case "FormationConstraint.operator": 2431 if e.complexity.FormationConstraint.Operator == nil { 2432 break 2433 } 2434 2435 return e.complexity.FormationConstraint.Operator(childComplexity), true 2436 2437 case "FormationConstraint.resourceSubtype": 2438 if e.complexity.FormationConstraint.ResourceSubtype == nil { 2439 break 2440 } 2441 2442 return e.complexity.FormationConstraint.ResourceSubtype(childComplexity), true 2443 2444 case "FormationConstraint.resourceType": 2445 if e.complexity.FormationConstraint.ResourceType == nil { 2446 break 2447 } 2448 2449 return e.complexity.FormationConstraint.ResourceType(childComplexity), true 2450 2451 case "FormationConstraint.targetOperation": 2452 if e.complexity.FormationConstraint.TargetOperation == nil { 2453 break 2454 } 2455 2456 return e.complexity.FormationConstraint.TargetOperation(childComplexity), true 2457 2458 case "FormationError.errorCode": 2459 if e.complexity.FormationError.ErrorCode == nil { 2460 break 2461 } 2462 2463 return e.complexity.FormationError.ErrorCode(childComplexity), true 2464 2465 case "FormationError.message": 2466 if e.complexity.FormationError.Message == nil { 2467 break 2468 } 2469 2470 return e.complexity.FormationError.Message(childComplexity), true 2471 2472 case "FormationPage.data": 2473 if e.complexity.FormationPage.Data == nil { 2474 break 2475 } 2476 2477 return e.complexity.FormationPage.Data(childComplexity), true 2478 2479 case "FormationPage.pageInfo": 2480 if e.complexity.FormationPage.PageInfo == nil { 2481 break 2482 } 2483 2484 return e.complexity.FormationPage.PageInfo(childComplexity), true 2485 2486 case "FormationPage.totalCount": 2487 if e.complexity.FormationPage.TotalCount == nil { 2488 break 2489 } 2490 2491 return e.complexity.FormationPage.TotalCount(childComplexity), true 2492 2493 case "FormationStatus.condition": 2494 if e.complexity.FormationStatus.Condition == nil { 2495 break 2496 } 2497 2498 return e.complexity.FormationStatus.Condition(childComplexity), true 2499 2500 case "FormationStatus.errors": 2501 if e.complexity.FormationStatus.Errors == nil { 2502 break 2503 } 2504 2505 return e.complexity.FormationStatus.Errors(childComplexity), true 2506 2507 case "FormationStatusError.assignmentID": 2508 if e.complexity.FormationStatusError.AssignmentID == nil { 2509 break 2510 } 2511 2512 return e.complexity.FormationStatusError.AssignmentID(childComplexity), true 2513 2514 case "FormationStatusError.errorCode": 2515 if e.complexity.FormationStatusError.ErrorCode == nil { 2516 break 2517 } 2518 2519 return e.complexity.FormationStatusError.ErrorCode(childComplexity), true 2520 2521 case "FormationStatusError.message": 2522 if e.complexity.FormationStatusError.Message == nil { 2523 break 2524 } 2525 2526 return e.complexity.FormationStatusError.Message(childComplexity), true 2527 2528 case "FormationTemplate.applicationTypes": 2529 if e.complexity.FormationTemplate.ApplicationTypes == nil { 2530 break 2531 } 2532 2533 return e.complexity.FormationTemplate.ApplicationTypes(childComplexity), true 2534 2535 case "FormationTemplate.formationConstraints": 2536 if e.complexity.FormationTemplate.FormationConstraints == nil { 2537 break 2538 } 2539 2540 return e.complexity.FormationTemplate.FormationConstraints(childComplexity), true 2541 2542 case "FormationTemplate.id": 2543 if e.complexity.FormationTemplate.ID == nil { 2544 break 2545 } 2546 2547 return e.complexity.FormationTemplate.ID(childComplexity), true 2548 2549 case "FormationTemplate.leadingProductIDs": 2550 if e.complexity.FormationTemplate.LeadingProductIDs == nil { 2551 break 2552 } 2553 2554 return e.complexity.FormationTemplate.LeadingProductIDs(childComplexity), true 2555 2556 case "FormationTemplate.name": 2557 if e.complexity.FormationTemplate.Name == nil { 2558 break 2559 } 2560 2561 return e.complexity.FormationTemplate.Name(childComplexity), true 2562 2563 case "FormationTemplate.runtimeArtifactKind": 2564 if e.complexity.FormationTemplate.RuntimeArtifactKind == nil { 2565 break 2566 } 2567 2568 return e.complexity.FormationTemplate.RuntimeArtifactKind(childComplexity), true 2569 2570 case "FormationTemplate.runtimeTypeDisplayName": 2571 if e.complexity.FormationTemplate.RuntimeTypeDisplayName == nil { 2572 break 2573 } 2574 2575 return e.complexity.FormationTemplate.RuntimeTypeDisplayName(childComplexity), true 2576 2577 case "FormationTemplate.runtimeTypes": 2578 if e.complexity.FormationTemplate.RuntimeTypes == nil { 2579 break 2580 } 2581 2582 return e.complexity.FormationTemplate.RuntimeTypes(childComplexity), true 2583 2584 case "FormationTemplate.webhooks": 2585 if e.complexity.FormationTemplate.Webhooks == nil { 2586 break 2587 } 2588 2589 return e.complexity.FormationTemplate.Webhooks(childComplexity), true 2590 2591 case "FormationTemplatePage.data": 2592 if e.complexity.FormationTemplatePage.Data == nil { 2593 break 2594 } 2595 2596 return e.complexity.FormationTemplatePage.Data(childComplexity), true 2597 2598 case "FormationTemplatePage.pageInfo": 2599 if e.complexity.FormationTemplatePage.PageInfo == nil { 2600 break 2601 } 2602 2603 return e.complexity.FormationTemplatePage.PageInfo(childComplexity), true 2604 2605 case "FormationTemplatePage.totalCount": 2606 if e.complexity.FormationTemplatePage.TotalCount == nil { 2607 break 2608 } 2609 2610 return e.complexity.FormationTemplatePage.TotalCount(childComplexity), true 2611 2612 case "HealthCheck.condition": 2613 if e.complexity.HealthCheck.Condition == nil { 2614 break 2615 } 2616 2617 return e.complexity.HealthCheck.Condition(childComplexity), true 2618 2619 case "HealthCheck.message": 2620 if e.complexity.HealthCheck.Message == nil { 2621 break 2622 } 2623 2624 return e.complexity.HealthCheck.Message(childComplexity), true 2625 2626 case "HealthCheck.origin": 2627 if e.complexity.HealthCheck.Origin == nil { 2628 break 2629 } 2630 2631 return e.complexity.HealthCheck.Origin(childComplexity), true 2632 2633 case "HealthCheck.timestamp": 2634 if e.complexity.HealthCheck.Timestamp == nil { 2635 break 2636 } 2637 2638 return e.complexity.HealthCheck.Timestamp(childComplexity), true 2639 2640 case "HealthCheck.type": 2641 if e.complexity.HealthCheck.Type == nil { 2642 break 2643 } 2644 2645 return e.complexity.HealthCheck.Type(childComplexity), true 2646 2647 case "HealthCheckPage.data": 2648 if e.complexity.HealthCheckPage.Data == nil { 2649 break 2650 } 2651 2652 return e.complexity.HealthCheckPage.Data(childComplexity), true 2653 2654 case "HealthCheckPage.pageInfo": 2655 if e.complexity.HealthCheckPage.PageInfo == nil { 2656 break 2657 } 2658 2659 return e.complexity.HealthCheckPage.PageInfo(childComplexity), true 2660 2661 case "HealthCheckPage.totalCount": 2662 if e.complexity.HealthCheckPage.TotalCount == nil { 2663 break 2664 } 2665 2666 return e.complexity.HealthCheckPage.TotalCount(childComplexity), true 2667 2668 case "IntSysSystemAuth.auth": 2669 if e.complexity.IntSysSystemAuth.Auth == nil { 2670 break 2671 } 2672 2673 return e.complexity.IntSysSystemAuth.Auth(childComplexity), true 2674 2675 case "IntSysSystemAuth.id": 2676 if e.complexity.IntSysSystemAuth.ID == nil { 2677 break 2678 } 2679 2680 return e.complexity.IntSysSystemAuth.ID(childComplexity), true 2681 2682 case "IntSysSystemAuth.referenceObjectId": 2683 if e.complexity.IntSysSystemAuth.ReferenceObjectID == nil { 2684 break 2685 } 2686 2687 return e.complexity.IntSysSystemAuth.ReferenceObjectID(childComplexity), true 2688 2689 case "IntSysSystemAuth.tenantId": 2690 if e.complexity.IntSysSystemAuth.TenantID == nil { 2691 break 2692 } 2693 2694 return e.complexity.IntSysSystemAuth.TenantID(childComplexity), true 2695 2696 case "IntSysSystemAuth.type": 2697 if e.complexity.IntSysSystemAuth.Type == nil { 2698 break 2699 } 2700 2701 return e.complexity.IntSysSystemAuth.Type(childComplexity), true 2702 2703 case "IntegrationSystem.auths": 2704 if e.complexity.IntegrationSystem.Auths == nil { 2705 break 2706 } 2707 2708 return e.complexity.IntegrationSystem.Auths(childComplexity), true 2709 2710 case "IntegrationSystem.description": 2711 if e.complexity.IntegrationSystem.Description == nil { 2712 break 2713 } 2714 2715 return e.complexity.IntegrationSystem.Description(childComplexity), true 2716 2717 case "IntegrationSystem.id": 2718 if e.complexity.IntegrationSystem.ID == nil { 2719 break 2720 } 2721 2722 return e.complexity.IntegrationSystem.ID(childComplexity), true 2723 2724 case "IntegrationSystem.name": 2725 if e.complexity.IntegrationSystem.Name == nil { 2726 break 2727 } 2728 2729 return e.complexity.IntegrationSystem.Name(childComplexity), true 2730 2731 case "IntegrationSystemPage.data": 2732 if e.complexity.IntegrationSystemPage.Data == nil { 2733 break 2734 } 2735 2736 return e.complexity.IntegrationSystemPage.Data(childComplexity), true 2737 2738 case "IntegrationSystemPage.pageInfo": 2739 if e.complexity.IntegrationSystemPage.PageInfo == nil { 2740 break 2741 } 2742 2743 return e.complexity.IntegrationSystemPage.PageInfo(childComplexity), true 2744 2745 case "IntegrationSystemPage.totalCount": 2746 if e.complexity.IntegrationSystemPage.TotalCount == nil { 2747 break 2748 } 2749 2750 return e.complexity.IntegrationSystemPage.TotalCount(childComplexity), true 2751 2752 case "Label.key": 2753 if e.complexity.Label.Key == nil { 2754 break 2755 } 2756 2757 return e.complexity.Label.Key(childComplexity), true 2758 2759 case "Label.value": 2760 if e.complexity.Label.Value == nil { 2761 break 2762 } 2763 2764 return e.complexity.Label.Value(childComplexity), true 2765 2766 case "LabelDefinition.key": 2767 if e.complexity.LabelDefinition.Key == nil { 2768 break 2769 } 2770 2771 return e.complexity.LabelDefinition.Key(childComplexity), true 2772 2773 case "LabelDefinition.schema": 2774 if e.complexity.LabelDefinition.Schema == nil { 2775 break 2776 } 2777 2778 return e.complexity.LabelDefinition.Schema(childComplexity), true 2779 2780 case "Mutation.addAPIDefinitionToApplication": 2781 if e.complexity.Mutation.AddAPIDefinitionToApplication == nil { 2782 break 2783 } 2784 2785 args, err := ec.field_Mutation_addAPIDefinitionToApplication_args(context.TODO(), rawArgs) 2786 if err != nil { 2787 return 0, false 2788 } 2789 2790 return e.complexity.Mutation.AddAPIDefinitionToApplication(childComplexity, args["appID"].(string), args["in"].(APIDefinitionInput)), true 2791 2792 case "Mutation.addAPIDefinitionToBundle": 2793 if e.complexity.Mutation.AddAPIDefinitionToBundle == nil { 2794 break 2795 } 2796 2797 args, err := ec.field_Mutation_addAPIDefinitionToBundle_args(context.TODO(), rawArgs) 2798 if err != nil { 2799 return 0, false 2800 } 2801 2802 return e.complexity.Mutation.AddAPIDefinitionToBundle(childComplexity, args["bundleID"].(string), args["in"].(APIDefinitionInput)), true 2803 2804 case "Mutation.addBundle": 2805 if e.complexity.Mutation.AddBundle == nil { 2806 break 2807 } 2808 2809 args, err := ec.field_Mutation_addBundle_args(context.TODO(), rawArgs) 2810 if err != nil { 2811 return 0, false 2812 } 2813 2814 return e.complexity.Mutation.AddBundle(childComplexity, args["applicationID"].(string), args["in"].(BundleCreateInput)), true 2815 2816 case "Mutation.addDocumentToBundle": 2817 if e.complexity.Mutation.AddDocumentToBundle == nil { 2818 break 2819 } 2820 2821 args, err := ec.field_Mutation_addDocumentToBundle_args(context.TODO(), rawArgs) 2822 if err != nil { 2823 return 0, false 2824 } 2825 2826 return e.complexity.Mutation.AddDocumentToBundle(childComplexity, args["bundleID"].(string), args["in"].(DocumentInput)), true 2827 2828 case "Mutation.addEventDefinitionToApplication": 2829 if e.complexity.Mutation.AddEventDefinitionToApplication == nil { 2830 break 2831 } 2832 2833 args, err := ec.field_Mutation_addEventDefinitionToApplication_args(context.TODO(), rawArgs) 2834 if err != nil { 2835 return 0, false 2836 } 2837 2838 return e.complexity.Mutation.AddEventDefinitionToApplication(childComplexity, args["appID"].(string), args["in"].(EventDefinitionInput)), true 2839 2840 case "Mutation.addEventDefinitionToBundle": 2841 if e.complexity.Mutation.AddEventDefinitionToBundle == nil { 2842 break 2843 } 2844 2845 args, err := ec.field_Mutation_addEventDefinitionToBundle_args(context.TODO(), rawArgs) 2846 if err != nil { 2847 return 0, false 2848 } 2849 2850 return e.complexity.Mutation.AddEventDefinitionToBundle(childComplexity, args["bundleID"].(string), args["in"].(EventDefinitionInput)), true 2851 2852 case "Mutation.addTenantAccess": 2853 if e.complexity.Mutation.AddTenantAccess == nil { 2854 break 2855 } 2856 2857 args, err := ec.field_Mutation_addTenantAccess_args(context.TODO(), rawArgs) 2858 if err != nil { 2859 return 0, false 2860 } 2861 2862 return e.complexity.Mutation.AddTenantAccess(childComplexity, args["in"].(TenantAccessInput)), true 2863 2864 case "Mutation.addWebhook": 2865 if e.complexity.Mutation.AddWebhook == nil { 2866 break 2867 } 2868 2869 args, err := ec.field_Mutation_addWebhook_args(context.TODO(), rawArgs) 2870 if err != nil { 2871 return 0, false 2872 } 2873 2874 return e.complexity.Mutation.AddWebhook(childComplexity, args["applicationID"].(*string), args["applicationTemplateID"].(*string), args["runtimeID"].(*string), args["formationTemplateID"].(*string), args["in"].(WebhookInput)), true 2875 2876 case "Mutation.assignFormation": 2877 if e.complexity.Mutation.AssignFormation == nil { 2878 break 2879 } 2880 2881 args, err := ec.field_Mutation_assignFormation_args(context.TODO(), rawArgs) 2882 if err != nil { 2883 return 0, false 2884 } 2885 2886 return e.complexity.Mutation.AssignFormation(childComplexity, args["objectID"].(string), args["objectType"].(FormationObjectType), args["formation"].(FormationInput)), true 2887 2888 case "Mutation.attachConstraintToFormationTemplate": 2889 if e.complexity.Mutation.AttachConstraintToFormationTemplate == nil { 2890 break 2891 } 2892 2893 args, err := ec.field_Mutation_attachConstraintToFormationTemplate_args(context.TODO(), rawArgs) 2894 if err != nil { 2895 return 0, false 2896 } 2897 2898 return e.complexity.Mutation.AttachConstraintToFormationTemplate(childComplexity, args["constraintID"].(string), args["formationTemplateID"].(string)), true 2899 2900 case "Mutation.createApplicationTemplate": 2901 if e.complexity.Mutation.CreateApplicationTemplate == nil { 2902 break 2903 } 2904 2905 args, err := ec.field_Mutation_createApplicationTemplate_args(context.TODO(), rawArgs) 2906 if err != nil { 2907 return 0, false 2908 } 2909 2910 return e.complexity.Mutation.CreateApplicationTemplate(childComplexity, args["in"].(ApplicationTemplateInput)), true 2911 2912 case "Mutation.createBundleInstanceAuth": 2913 if e.complexity.Mutation.CreateBundleInstanceAuth == nil { 2914 break 2915 } 2916 2917 args, err := ec.field_Mutation_createBundleInstanceAuth_args(context.TODO(), rawArgs) 2918 if err != nil { 2919 return 0, false 2920 } 2921 2922 return e.complexity.Mutation.CreateBundleInstanceAuth(childComplexity, args["bundleID"].(string), args["in"].(BundleInstanceAuthCreateInput)), true 2923 2924 case "Mutation.createCertificateSubjectMapping": 2925 if e.complexity.Mutation.CreateCertificateSubjectMapping == nil { 2926 break 2927 } 2928 2929 args, err := ec.field_Mutation_createCertificateSubjectMapping_args(context.TODO(), rawArgs) 2930 if err != nil { 2931 return 0, false 2932 } 2933 2934 return e.complexity.Mutation.CreateCertificateSubjectMapping(childComplexity, args["in"].(CertificateSubjectMappingInput)), true 2935 2936 case "Mutation.createFormation": 2937 if e.complexity.Mutation.CreateFormation == nil { 2938 break 2939 } 2940 2941 args, err := ec.field_Mutation_createFormation_args(context.TODO(), rawArgs) 2942 if err != nil { 2943 return 0, false 2944 } 2945 2946 return e.complexity.Mutation.CreateFormation(childComplexity, args["formation"].(FormationInput)), true 2947 2948 case "Mutation.createFormationConstraint": 2949 if e.complexity.Mutation.CreateFormationConstraint == nil { 2950 break 2951 } 2952 2953 args, err := ec.field_Mutation_createFormationConstraint_args(context.TODO(), rawArgs) 2954 if err != nil { 2955 return 0, false 2956 } 2957 2958 return e.complexity.Mutation.CreateFormationConstraint(childComplexity, args["formationConstraint"].(FormationConstraintInput)), true 2959 2960 case "Mutation.createFormationTemplate": 2961 if e.complexity.Mutation.CreateFormationTemplate == nil { 2962 break 2963 } 2964 2965 args, err := ec.field_Mutation_createFormationTemplate_args(context.TODO(), rawArgs) 2966 if err != nil { 2967 return 0, false 2968 } 2969 2970 return e.complexity.Mutation.CreateFormationTemplate(childComplexity, args["in"].(FormationTemplateInput)), true 2971 2972 case "Mutation.createLabelDefinition": 2973 if e.complexity.Mutation.CreateLabelDefinition == nil { 2974 break 2975 } 2976 2977 args, err := ec.field_Mutation_createLabelDefinition_args(context.TODO(), rawArgs) 2978 if err != nil { 2979 return 0, false 2980 } 2981 2982 return e.complexity.Mutation.CreateLabelDefinition(childComplexity, args["in"].(LabelDefinitionInput)), true 2983 2984 case "Mutation.deleteAPIDefinition": 2985 if e.complexity.Mutation.DeleteAPIDefinition == nil { 2986 break 2987 } 2988 2989 args, err := ec.field_Mutation_deleteAPIDefinition_args(context.TODO(), rawArgs) 2990 if err != nil { 2991 return 0, false 2992 } 2993 2994 return e.complexity.Mutation.DeleteAPIDefinition(childComplexity, args["id"].(string)), true 2995 2996 case "Mutation.deleteApplicationLabel": 2997 if e.complexity.Mutation.DeleteApplicationLabel == nil { 2998 break 2999 } 3000 3001 args, err := ec.field_Mutation_deleteApplicationLabel_args(context.TODO(), rawArgs) 3002 if err != nil { 3003 return 0, false 3004 } 3005 3006 return e.complexity.Mutation.DeleteApplicationLabel(childComplexity, args["applicationID"].(string), args["key"].(string)), true 3007 3008 case "Mutation.deleteApplicationTemplate": 3009 if e.complexity.Mutation.DeleteApplicationTemplate == nil { 3010 break 3011 } 3012 3013 args, err := ec.field_Mutation_deleteApplicationTemplate_args(context.TODO(), rawArgs) 3014 if err != nil { 3015 return 0, false 3016 } 3017 3018 return e.complexity.Mutation.DeleteApplicationTemplate(childComplexity, args["id"].(string)), true 3019 3020 case "Mutation.deleteBundle": 3021 if e.complexity.Mutation.DeleteBundle == nil { 3022 break 3023 } 3024 3025 args, err := ec.field_Mutation_deleteBundle_args(context.TODO(), rawArgs) 3026 if err != nil { 3027 return 0, false 3028 } 3029 3030 return e.complexity.Mutation.DeleteBundle(childComplexity, args["id"].(string)), true 3031 3032 case "Mutation.deleteBundleInstanceAuth": 3033 if e.complexity.Mutation.DeleteBundleInstanceAuth == nil { 3034 break 3035 } 3036 3037 args, err := ec.field_Mutation_deleteBundleInstanceAuth_args(context.TODO(), rawArgs) 3038 if err != nil { 3039 return 0, false 3040 } 3041 3042 return e.complexity.Mutation.DeleteBundleInstanceAuth(childComplexity, args["authID"].(string)), true 3043 3044 case "Mutation.deleteCertificateSubjectMapping": 3045 if e.complexity.Mutation.DeleteCertificateSubjectMapping == nil { 3046 break 3047 } 3048 3049 args, err := ec.field_Mutation_deleteCertificateSubjectMapping_args(context.TODO(), rawArgs) 3050 if err != nil { 3051 return 0, false 3052 } 3053 3054 return e.complexity.Mutation.DeleteCertificateSubjectMapping(childComplexity, args["id"].(string)), true 3055 3056 case "Mutation.deleteDefaultEventingForApplication": 3057 if e.complexity.Mutation.DeleteDefaultEventingForApplication == nil { 3058 break 3059 } 3060 3061 args, err := ec.field_Mutation_deleteDefaultEventingForApplication_args(context.TODO(), rawArgs) 3062 if err != nil { 3063 return 0, false 3064 } 3065 3066 return e.complexity.Mutation.DeleteDefaultEventingForApplication(childComplexity, args["appID"].(string)), true 3067 3068 case "Mutation.deleteDocument": 3069 if e.complexity.Mutation.DeleteDocument == nil { 3070 break 3071 } 3072 3073 args, err := ec.field_Mutation_deleteDocument_args(context.TODO(), rawArgs) 3074 if err != nil { 3075 return 0, false 3076 } 3077 3078 return e.complexity.Mutation.DeleteDocument(childComplexity, args["id"].(string)), true 3079 3080 case "Mutation.deleteEventDefinition": 3081 if e.complexity.Mutation.DeleteEventDefinition == nil { 3082 break 3083 } 3084 3085 args, err := ec.field_Mutation_deleteEventDefinition_args(context.TODO(), rawArgs) 3086 if err != nil { 3087 return 0, false 3088 } 3089 3090 return e.complexity.Mutation.DeleteEventDefinition(childComplexity, args["id"].(string)), true 3091 3092 case "Mutation.deleteFormation": 3093 if e.complexity.Mutation.DeleteFormation == nil { 3094 break 3095 } 3096 3097 args, err := ec.field_Mutation_deleteFormation_args(context.TODO(), rawArgs) 3098 if err != nil { 3099 return 0, false 3100 } 3101 3102 return e.complexity.Mutation.DeleteFormation(childComplexity, args["formation"].(FormationInput)), true 3103 3104 case "Mutation.deleteFormationConstraint": 3105 if e.complexity.Mutation.DeleteFormationConstraint == nil { 3106 break 3107 } 3108 3109 args, err := ec.field_Mutation_deleteFormationConstraint_args(context.TODO(), rawArgs) 3110 if err != nil { 3111 return 0, false 3112 } 3113 3114 return e.complexity.Mutation.DeleteFormationConstraint(childComplexity, args["id"].(string)), true 3115 3116 case "Mutation.deleteFormationTemplate": 3117 if e.complexity.Mutation.DeleteFormationTemplate == nil { 3118 break 3119 } 3120 3121 args, err := ec.field_Mutation_deleteFormationTemplate_args(context.TODO(), rawArgs) 3122 if err != nil { 3123 return 0, false 3124 } 3125 3126 return e.complexity.Mutation.DeleteFormationTemplate(childComplexity, args["id"].(string)), true 3127 3128 case "Mutation.deleteRuntimeLabel": 3129 if e.complexity.Mutation.DeleteRuntimeLabel == nil { 3130 break 3131 } 3132 3133 args, err := ec.field_Mutation_deleteRuntimeLabel_args(context.TODO(), rawArgs) 3134 if err != nil { 3135 return 0, false 3136 } 3137 3138 return e.complexity.Mutation.DeleteRuntimeLabel(childComplexity, args["runtimeID"].(string), args["key"].(string)), true 3139 3140 case "Mutation.deleteSystemAuthForApplication": 3141 if e.complexity.Mutation.DeleteSystemAuthForApplication == nil { 3142 break 3143 } 3144 3145 args, err := ec.field_Mutation_deleteSystemAuthForApplication_args(context.TODO(), rawArgs) 3146 if err != nil { 3147 return 0, false 3148 } 3149 3150 return e.complexity.Mutation.DeleteSystemAuthForApplication(childComplexity, args["authID"].(string)), true 3151 3152 case "Mutation.deleteSystemAuthForIntegrationSystem": 3153 if e.complexity.Mutation.DeleteSystemAuthForIntegrationSystem == nil { 3154 break 3155 } 3156 3157 args, err := ec.field_Mutation_deleteSystemAuthForIntegrationSystem_args(context.TODO(), rawArgs) 3158 if err != nil { 3159 return 0, false 3160 } 3161 3162 return e.complexity.Mutation.DeleteSystemAuthForIntegrationSystem(childComplexity, args["authID"].(string)), true 3163 3164 case "Mutation.deleteSystemAuthForRuntime": 3165 if e.complexity.Mutation.DeleteSystemAuthForRuntime == nil { 3166 break 3167 } 3168 3169 args, err := ec.field_Mutation_deleteSystemAuthForRuntime_args(context.TODO(), rawArgs) 3170 if err != nil { 3171 return 0, false 3172 } 3173 3174 return e.complexity.Mutation.DeleteSystemAuthForRuntime(childComplexity, args["authID"].(string)), true 3175 3176 case "Mutation.deleteTenants": 3177 if e.complexity.Mutation.DeleteTenants == nil { 3178 break 3179 } 3180 3181 args, err := ec.field_Mutation_deleteTenants_args(context.TODO(), rawArgs) 3182 if err != nil { 3183 return 0, false 3184 } 3185 3186 return e.complexity.Mutation.DeleteTenants(childComplexity, args["in"].([]string)), true 3187 3188 case "Mutation.deleteWebhook": 3189 if e.complexity.Mutation.DeleteWebhook == nil { 3190 break 3191 } 3192 3193 args, err := ec.field_Mutation_deleteWebhook_args(context.TODO(), rawArgs) 3194 if err != nil { 3195 return 0, false 3196 } 3197 3198 return e.complexity.Mutation.DeleteWebhook(childComplexity, args["webhookID"].(string)), true 3199 3200 case "Mutation.detachConstraintFromFormationTemplate": 3201 if e.complexity.Mutation.DetachConstraintFromFormationTemplate == nil { 3202 break 3203 } 3204 3205 args, err := ec.field_Mutation_detachConstraintFromFormationTemplate_args(context.TODO(), rawArgs) 3206 if err != nil { 3207 return 0, false 3208 } 3209 3210 return e.complexity.Mutation.DetachConstraintFromFormationTemplate(childComplexity, args["constraintID"].(string), args["formationTemplateID"].(string)), true 3211 3212 case "Mutation.invalidateSystemAuthOneTimeToken": 3213 if e.complexity.Mutation.InvalidateSystemAuthOneTimeToken == nil { 3214 break 3215 } 3216 3217 args, err := ec.field_Mutation_invalidateSystemAuthOneTimeToken_args(context.TODO(), rawArgs) 3218 if err != nil { 3219 return 0, false 3220 } 3221 3222 return e.complexity.Mutation.InvalidateSystemAuthOneTimeToken(childComplexity, args["authID"].(string)), true 3223 3224 case "Mutation.mergeApplications": 3225 if e.complexity.Mutation.MergeApplications == nil { 3226 break 3227 } 3228 3229 args, err := ec.field_Mutation_mergeApplications_args(context.TODO(), rawArgs) 3230 if err != nil { 3231 return 0, false 3232 } 3233 3234 return e.complexity.Mutation.MergeApplications(childComplexity, args["destinationID"].(string), args["sourceID"].(string)), true 3235 3236 case "Mutation.refetchAPISpec": 3237 if e.complexity.Mutation.RefetchAPISpec == nil { 3238 break 3239 } 3240 3241 args, err := ec.field_Mutation_refetchAPISpec_args(context.TODO(), rawArgs) 3242 if err != nil { 3243 return 0, false 3244 } 3245 3246 return e.complexity.Mutation.RefetchAPISpec(childComplexity, args["apiID"].(string)), true 3247 3248 case "Mutation.refetchEventDefinitionSpec": 3249 if e.complexity.Mutation.RefetchEventDefinitionSpec == nil { 3250 break 3251 } 3252 3253 args, err := ec.field_Mutation_refetchEventDefinitionSpec_args(context.TODO(), rawArgs) 3254 if err != nil { 3255 return 0, false 3256 } 3257 3258 return e.complexity.Mutation.RefetchEventDefinitionSpec(childComplexity, args["eventID"].(string)), true 3259 3260 case "Mutation.registerApplication": 3261 if e.complexity.Mutation.RegisterApplication == nil { 3262 break 3263 } 3264 3265 args, err := ec.field_Mutation_registerApplication_args(context.TODO(), rawArgs) 3266 if err != nil { 3267 return 0, false 3268 } 3269 3270 return e.complexity.Mutation.RegisterApplication(childComplexity, args["in"].(ApplicationRegisterInput), args["mode"].(*OperationMode)), true 3271 3272 case "Mutation.registerApplicationFromTemplate": 3273 if e.complexity.Mutation.RegisterApplicationFromTemplate == nil { 3274 break 3275 } 3276 3277 args, err := ec.field_Mutation_registerApplicationFromTemplate_args(context.TODO(), rawArgs) 3278 if err != nil { 3279 return 0, false 3280 } 3281 3282 return e.complexity.Mutation.RegisterApplicationFromTemplate(childComplexity, args["in"].(ApplicationFromTemplateInput)), true 3283 3284 case "Mutation.registerIntegrationSystem": 3285 if e.complexity.Mutation.RegisterIntegrationSystem == nil { 3286 break 3287 } 3288 3289 args, err := ec.field_Mutation_registerIntegrationSystem_args(context.TODO(), rawArgs) 3290 if err != nil { 3291 return 0, false 3292 } 3293 3294 return e.complexity.Mutation.RegisterIntegrationSystem(childComplexity, args["in"].(IntegrationSystemInput)), true 3295 3296 case "Mutation.registerRuntime": 3297 if e.complexity.Mutation.RegisterRuntime == nil { 3298 break 3299 } 3300 3301 args, err := ec.field_Mutation_registerRuntime_args(context.TODO(), rawArgs) 3302 if err != nil { 3303 return 0, false 3304 } 3305 3306 return e.complexity.Mutation.RegisterRuntime(childComplexity, args["in"].(RuntimeRegisterInput)), true 3307 3308 case "Mutation.registerRuntimeContext": 3309 if e.complexity.Mutation.RegisterRuntimeContext == nil { 3310 break 3311 } 3312 3313 args, err := ec.field_Mutation_registerRuntimeContext_args(context.TODO(), rawArgs) 3314 if err != nil { 3315 return 0, false 3316 } 3317 3318 return e.complexity.Mutation.RegisterRuntimeContext(childComplexity, args["runtimeID"].(string), args["in"].(RuntimeContextInput)), true 3319 3320 case "Mutation.removeTenantAccess": 3321 if e.complexity.Mutation.RemoveTenantAccess == nil { 3322 break 3323 } 3324 3325 args, err := ec.field_Mutation_removeTenantAccess_args(context.TODO(), rawArgs) 3326 if err != nil { 3327 return 0, false 3328 } 3329 3330 return e.complexity.Mutation.RemoveTenantAccess(childComplexity, args["tenantID"].(string), args["resourceID"].(string), args["resourceType"].(TenantAccessObjectType)), true 3331 3332 case "Mutation.requestBundleInstanceAuthCreation": 3333 if e.complexity.Mutation.RequestBundleInstanceAuthCreation == nil { 3334 break 3335 } 3336 3337 args, err := ec.field_Mutation_requestBundleInstanceAuthCreation_args(context.TODO(), rawArgs) 3338 if err != nil { 3339 return 0, false 3340 } 3341 3342 return e.complexity.Mutation.RequestBundleInstanceAuthCreation(childComplexity, args["bundleID"].(string), args["in"].(BundleInstanceAuthRequestInput)), true 3343 3344 case "Mutation.requestBundleInstanceAuthDeletion": 3345 if e.complexity.Mutation.RequestBundleInstanceAuthDeletion == nil { 3346 break 3347 } 3348 3349 args, err := ec.field_Mutation_requestBundleInstanceAuthDeletion_args(context.TODO(), rawArgs) 3350 if err != nil { 3351 return 0, false 3352 } 3353 3354 return e.complexity.Mutation.RequestBundleInstanceAuthDeletion(childComplexity, args["authID"].(string)), true 3355 3356 case "Mutation.requestClientCredentialsForApplication": 3357 if e.complexity.Mutation.RequestClientCredentialsForApplication == nil { 3358 break 3359 } 3360 3361 args, err := ec.field_Mutation_requestClientCredentialsForApplication_args(context.TODO(), rawArgs) 3362 if err != nil { 3363 return 0, false 3364 } 3365 3366 return e.complexity.Mutation.RequestClientCredentialsForApplication(childComplexity, args["id"].(string)), true 3367 3368 case "Mutation.requestClientCredentialsForIntegrationSystem": 3369 if e.complexity.Mutation.RequestClientCredentialsForIntegrationSystem == nil { 3370 break 3371 } 3372 3373 args, err := ec.field_Mutation_requestClientCredentialsForIntegrationSystem_args(context.TODO(), rawArgs) 3374 if err != nil { 3375 return 0, false 3376 } 3377 3378 return e.complexity.Mutation.RequestClientCredentialsForIntegrationSystem(childComplexity, args["id"].(string)), true 3379 3380 case "Mutation.requestClientCredentialsForRuntime": 3381 if e.complexity.Mutation.RequestClientCredentialsForRuntime == nil { 3382 break 3383 } 3384 3385 args, err := ec.field_Mutation_requestClientCredentialsForRuntime_args(context.TODO(), rawArgs) 3386 if err != nil { 3387 return 0, false 3388 } 3389 3390 return e.complexity.Mutation.RequestClientCredentialsForRuntime(childComplexity, args["id"].(string)), true 3391 3392 case "Mutation.requestOneTimeTokenForApplication": 3393 if e.complexity.Mutation.RequestOneTimeTokenForApplication == nil { 3394 break 3395 } 3396 3397 args, err := ec.field_Mutation_requestOneTimeTokenForApplication_args(context.TODO(), rawArgs) 3398 if err != nil { 3399 return 0, false 3400 } 3401 3402 return e.complexity.Mutation.RequestOneTimeTokenForApplication(childComplexity, args["id"].(string), args["systemAuthID"].(*string)), true 3403 3404 case "Mutation.requestOneTimeTokenForRuntime": 3405 if e.complexity.Mutation.RequestOneTimeTokenForRuntime == nil { 3406 break 3407 } 3408 3409 args, err := ec.field_Mutation_requestOneTimeTokenForRuntime_args(context.TODO(), rawArgs) 3410 if err != nil { 3411 return 0, false 3412 } 3413 3414 return e.complexity.Mutation.RequestOneTimeTokenForRuntime(childComplexity, args["id"].(string), args["systemAuthID"].(*string)), true 3415 3416 case "Mutation.resynchronizeFormationNotifications": 3417 if e.complexity.Mutation.ResynchronizeFormationNotifications == nil { 3418 break 3419 } 3420 3421 args, err := ec.field_Mutation_resynchronizeFormationNotifications_args(context.TODO(), rawArgs) 3422 if err != nil { 3423 return 0, false 3424 } 3425 3426 return e.complexity.Mutation.ResynchronizeFormationNotifications(childComplexity, args["formationID"].(string)), true 3427 3428 case "Mutation.setApplicationLabel": 3429 if e.complexity.Mutation.SetApplicationLabel == nil { 3430 break 3431 } 3432 3433 args, err := ec.field_Mutation_setApplicationLabel_args(context.TODO(), rawArgs) 3434 if err != nil { 3435 return 0, false 3436 } 3437 3438 return e.complexity.Mutation.SetApplicationLabel(childComplexity, args["applicationID"].(string), args["key"].(string), args["value"].(interface{})), true 3439 3440 case "Mutation.setBundleInstanceAuth": 3441 if e.complexity.Mutation.SetBundleInstanceAuth == nil { 3442 break 3443 } 3444 3445 args, err := ec.field_Mutation_setBundleInstanceAuth_args(context.TODO(), rawArgs) 3446 if err != nil { 3447 return 0, false 3448 } 3449 3450 return e.complexity.Mutation.SetBundleInstanceAuth(childComplexity, args["authID"].(string), args["in"].(BundleInstanceAuthSetInput)), true 3451 3452 case "Mutation.setDefaultEventingForApplication": 3453 if e.complexity.Mutation.SetDefaultEventingForApplication == nil { 3454 break 3455 } 3456 3457 args, err := ec.field_Mutation_setDefaultEventingForApplication_args(context.TODO(), rawArgs) 3458 if err != nil { 3459 return 0, false 3460 } 3461 3462 return e.complexity.Mutation.SetDefaultEventingForApplication(childComplexity, args["appID"].(string), args["runtimeID"].(string)), true 3463 3464 case "Mutation.setRuntimeLabel": 3465 if e.complexity.Mutation.SetRuntimeLabel == nil { 3466 break 3467 } 3468 3469 args, err := ec.field_Mutation_setRuntimeLabel_args(context.TODO(), rawArgs) 3470 if err != nil { 3471 return 0, false 3472 } 3473 3474 return e.complexity.Mutation.SetRuntimeLabel(childComplexity, args["runtimeID"].(string), args["key"].(string), args["value"].(interface{})), true 3475 3476 case "Mutation.subscribeTenant": 3477 if e.complexity.Mutation.SubscribeTenant == nil { 3478 break 3479 } 3480 3481 args, err := ec.field_Mutation_subscribeTenant_args(context.TODO(), rawArgs) 3482 if err != nil { 3483 return 0, false 3484 } 3485 3486 return e.complexity.Mutation.SubscribeTenant(childComplexity, args["providerID"].(string), args["subaccountID"].(string), args["providerSubaccountID"].(string), args["consumerTenantID"].(string), args["region"].(string), args["subscriptionAppName"].(string), args["subscriptionPayload"].(string)), true 3487 3488 case "Mutation.unassignFormation": 3489 if e.complexity.Mutation.UnassignFormation == nil { 3490 break 3491 } 3492 3493 args, err := ec.field_Mutation_unassignFormation_args(context.TODO(), rawArgs) 3494 if err != nil { 3495 return 0, false 3496 } 3497 3498 return e.complexity.Mutation.UnassignFormation(childComplexity, args["objectID"].(string), args["objectType"].(FormationObjectType), args["formation"].(FormationInput)), true 3499 3500 case "Mutation.unpairApplication": 3501 if e.complexity.Mutation.UnpairApplication == nil { 3502 break 3503 } 3504 3505 args, err := ec.field_Mutation_unpairApplication_args(context.TODO(), rawArgs) 3506 if err != nil { 3507 return 0, false 3508 } 3509 3510 return e.complexity.Mutation.UnpairApplication(childComplexity, args["id"].(string), args["mode"].(*OperationMode)), true 3511 3512 case "Mutation.unregisterApplication": 3513 if e.complexity.Mutation.UnregisterApplication == nil { 3514 break 3515 } 3516 3517 args, err := ec.field_Mutation_unregisterApplication_args(context.TODO(), rawArgs) 3518 if err != nil { 3519 return 0, false 3520 } 3521 3522 return e.complexity.Mutation.UnregisterApplication(childComplexity, args["id"].(string), args["mode"].(*OperationMode)), true 3523 3524 case "Mutation.unregisterIntegrationSystem": 3525 if e.complexity.Mutation.UnregisterIntegrationSystem == nil { 3526 break 3527 } 3528 3529 args, err := ec.field_Mutation_unregisterIntegrationSystem_args(context.TODO(), rawArgs) 3530 if err != nil { 3531 return 0, false 3532 } 3533 3534 return e.complexity.Mutation.UnregisterIntegrationSystem(childComplexity, args["id"].(string)), true 3535 3536 case "Mutation.unregisterRuntime": 3537 if e.complexity.Mutation.UnregisterRuntime == nil { 3538 break 3539 } 3540 3541 args, err := ec.field_Mutation_unregisterRuntime_args(context.TODO(), rawArgs) 3542 if err != nil { 3543 return 0, false 3544 } 3545 3546 return e.complexity.Mutation.UnregisterRuntime(childComplexity, args["id"].(string)), true 3547 3548 case "Mutation.unregisterRuntimeContext": 3549 if e.complexity.Mutation.UnregisterRuntimeContext == nil { 3550 break 3551 } 3552 3553 args, err := ec.field_Mutation_unregisterRuntimeContext_args(context.TODO(), rawArgs) 3554 if err != nil { 3555 return 0, false 3556 } 3557 3558 return e.complexity.Mutation.UnregisterRuntimeContext(childComplexity, args["id"].(string)), true 3559 3560 case "Mutation.unsubscribeTenant": 3561 if e.complexity.Mutation.UnsubscribeTenant == nil { 3562 break 3563 } 3564 3565 args, err := ec.field_Mutation_unsubscribeTenant_args(context.TODO(), rawArgs) 3566 if err != nil { 3567 return 0, false 3568 } 3569 3570 return e.complexity.Mutation.UnsubscribeTenant(childComplexity, args["providerID"].(string), args["subaccountID"].(string), args["providerSubaccountID"].(string), args["consumerTenantID"].(string), args["region"].(string)), true 3571 3572 case "Mutation.updateAPIDefinition": 3573 if e.complexity.Mutation.UpdateAPIDefinition == nil { 3574 break 3575 } 3576 3577 args, err := ec.field_Mutation_updateAPIDefinition_args(context.TODO(), rawArgs) 3578 if err != nil { 3579 return 0, false 3580 } 3581 3582 return e.complexity.Mutation.UpdateAPIDefinition(childComplexity, args["id"].(string), args["in"].(APIDefinitionInput)), true 3583 3584 case "Mutation.updateAPIDefinitionForApplication": 3585 if e.complexity.Mutation.UpdateAPIDefinitionForApplication == nil { 3586 break 3587 } 3588 3589 args, err := ec.field_Mutation_updateAPIDefinitionForApplication_args(context.TODO(), rawArgs) 3590 if err != nil { 3591 return 0, false 3592 } 3593 3594 return e.complexity.Mutation.UpdateAPIDefinitionForApplication(childComplexity, args["id"].(string), args["in"].(APIDefinitionInput)), true 3595 3596 case "Mutation.updateApplication": 3597 if e.complexity.Mutation.UpdateApplication == nil { 3598 break 3599 } 3600 3601 args, err := ec.field_Mutation_updateApplication_args(context.TODO(), rawArgs) 3602 if err != nil { 3603 return 0, false 3604 } 3605 3606 return e.complexity.Mutation.UpdateApplication(childComplexity, args["id"].(string), args["in"].(ApplicationUpdateInput)), true 3607 3608 case "Mutation.updateApplicationTemplate": 3609 if e.complexity.Mutation.UpdateApplicationTemplate == nil { 3610 break 3611 } 3612 3613 args, err := ec.field_Mutation_updateApplicationTemplate_args(context.TODO(), rawArgs) 3614 if err != nil { 3615 return 0, false 3616 } 3617 3618 return e.complexity.Mutation.UpdateApplicationTemplate(childComplexity, args["id"].(string), args["in"].(ApplicationTemplateUpdateInput)), true 3619 3620 case "Mutation.updateBundle": 3621 if e.complexity.Mutation.UpdateBundle == nil { 3622 break 3623 } 3624 3625 args, err := ec.field_Mutation_updateBundle_args(context.TODO(), rawArgs) 3626 if err != nil { 3627 return 0, false 3628 } 3629 3630 return e.complexity.Mutation.UpdateBundle(childComplexity, args["id"].(string), args["in"].(BundleUpdateInput)), true 3631 3632 case "Mutation.updateBundleInstanceAuth": 3633 if e.complexity.Mutation.UpdateBundleInstanceAuth == nil { 3634 break 3635 } 3636 3637 args, err := ec.field_Mutation_updateBundleInstanceAuth_args(context.TODO(), rawArgs) 3638 if err != nil { 3639 return 0, false 3640 } 3641 3642 return e.complexity.Mutation.UpdateBundleInstanceAuth(childComplexity, args["id"].(string), args["bundleID"].(string), args["in"].(BundleInstanceAuthUpdateInput)), true 3643 3644 case "Mutation.updateCertificateSubjectMapping": 3645 if e.complexity.Mutation.UpdateCertificateSubjectMapping == nil { 3646 break 3647 } 3648 3649 args, err := ec.field_Mutation_updateCertificateSubjectMapping_args(context.TODO(), rawArgs) 3650 if err != nil { 3651 return 0, false 3652 } 3653 3654 return e.complexity.Mutation.UpdateCertificateSubjectMapping(childComplexity, args["id"].(string), args["in"].(CertificateSubjectMappingInput)), true 3655 3656 case "Mutation.updateEventDefinition": 3657 if e.complexity.Mutation.UpdateEventDefinition == nil { 3658 break 3659 } 3660 3661 args, err := ec.field_Mutation_updateEventDefinition_args(context.TODO(), rawArgs) 3662 if err != nil { 3663 return 0, false 3664 } 3665 3666 return e.complexity.Mutation.UpdateEventDefinition(childComplexity, args["id"].(string), args["in"].(EventDefinitionInput)), true 3667 3668 case "Mutation.updateEventDefinitionForApplication": 3669 if e.complexity.Mutation.UpdateEventDefinitionForApplication == nil { 3670 break 3671 } 3672 3673 args, err := ec.field_Mutation_updateEventDefinitionForApplication_args(context.TODO(), rawArgs) 3674 if err != nil { 3675 return 0, false 3676 } 3677 3678 return e.complexity.Mutation.UpdateEventDefinitionForApplication(childComplexity, args["id"].(string), args["in"].(EventDefinitionInput)), true 3679 3680 case "Mutation.updateFormationConstraint": 3681 if e.complexity.Mutation.UpdateFormationConstraint == nil { 3682 break 3683 } 3684 3685 args, err := ec.field_Mutation_updateFormationConstraint_args(context.TODO(), rawArgs) 3686 if err != nil { 3687 return 0, false 3688 } 3689 3690 return e.complexity.Mutation.UpdateFormationConstraint(childComplexity, args["id"].(string), args["in"].(FormationConstraintUpdateInput)), true 3691 3692 case "Mutation.updateFormationTemplate": 3693 if e.complexity.Mutation.UpdateFormationTemplate == nil { 3694 break 3695 } 3696 3697 args, err := ec.field_Mutation_updateFormationTemplate_args(context.TODO(), rawArgs) 3698 if err != nil { 3699 return 0, false 3700 } 3701 3702 return e.complexity.Mutation.UpdateFormationTemplate(childComplexity, args["id"].(string), args["in"].(FormationTemplateInput)), true 3703 3704 case "Mutation.updateIntegrationSystem": 3705 if e.complexity.Mutation.UpdateIntegrationSystem == nil { 3706 break 3707 } 3708 3709 args, err := ec.field_Mutation_updateIntegrationSystem_args(context.TODO(), rawArgs) 3710 if err != nil { 3711 return 0, false 3712 } 3713 3714 return e.complexity.Mutation.UpdateIntegrationSystem(childComplexity, args["id"].(string), args["in"].(IntegrationSystemInput)), true 3715 3716 case "Mutation.updateLabelDefinition": 3717 if e.complexity.Mutation.UpdateLabelDefinition == nil { 3718 break 3719 } 3720 3721 args, err := ec.field_Mutation_updateLabelDefinition_args(context.TODO(), rawArgs) 3722 if err != nil { 3723 return 0, false 3724 } 3725 3726 return e.complexity.Mutation.UpdateLabelDefinition(childComplexity, args["in"].(LabelDefinitionInput)), true 3727 3728 case "Mutation.updateRuntime": 3729 if e.complexity.Mutation.UpdateRuntime == nil { 3730 break 3731 } 3732 3733 args, err := ec.field_Mutation_updateRuntime_args(context.TODO(), rawArgs) 3734 if err != nil { 3735 return 0, false 3736 } 3737 3738 return e.complexity.Mutation.UpdateRuntime(childComplexity, args["id"].(string), args["in"].(RuntimeUpdateInput)), true 3739 3740 case "Mutation.updateRuntimeContext": 3741 if e.complexity.Mutation.UpdateRuntimeContext == nil { 3742 break 3743 } 3744 3745 args, err := ec.field_Mutation_updateRuntimeContext_args(context.TODO(), rawArgs) 3746 if err != nil { 3747 return 0, false 3748 } 3749 3750 return e.complexity.Mutation.UpdateRuntimeContext(childComplexity, args["id"].(string), args["in"].(RuntimeContextInput)), true 3751 3752 case "Mutation.updateSystemAuth": 3753 if e.complexity.Mutation.UpdateSystemAuth == nil { 3754 break 3755 } 3756 3757 args, err := ec.field_Mutation_updateSystemAuth_args(context.TODO(), rawArgs) 3758 if err != nil { 3759 return 0, false 3760 } 3761 3762 return e.complexity.Mutation.UpdateSystemAuth(childComplexity, args["authID"].(string), args["in"].(AuthInput)), true 3763 3764 case "Mutation.updateTenant": 3765 if e.complexity.Mutation.UpdateTenant == nil { 3766 break 3767 } 3768 3769 args, err := ec.field_Mutation_updateTenant_args(context.TODO(), rawArgs) 3770 if err != nil { 3771 return 0, false 3772 } 3773 3774 return e.complexity.Mutation.UpdateTenant(childComplexity, args["id"].(string), args["in"].(BusinessTenantMappingInput)), true 3775 3776 case "Mutation.updateWebhook": 3777 if e.complexity.Mutation.UpdateWebhook == nil { 3778 break 3779 } 3780 3781 args, err := ec.field_Mutation_updateWebhook_args(context.TODO(), rawArgs) 3782 if err != nil { 3783 return 0, false 3784 } 3785 3786 return e.complexity.Mutation.UpdateWebhook(childComplexity, args["webhookID"].(string), args["in"].(WebhookInput)), true 3787 3788 case "Mutation.writeTenant": 3789 if e.complexity.Mutation.WriteTenant == nil { 3790 break 3791 } 3792 3793 args, err := ec.field_Mutation_writeTenant_args(context.TODO(), rawArgs) 3794 if err != nil { 3795 return 0, false 3796 } 3797 3798 return e.complexity.Mutation.WriteTenant(childComplexity, args["in"].(BusinessTenantMappingInput)), true 3799 3800 case "Mutation.writeTenants": 3801 if e.complexity.Mutation.WriteTenants == nil { 3802 break 3803 } 3804 3805 args, err := ec.field_Mutation_writeTenants_args(context.TODO(), rawArgs) 3806 if err != nil { 3807 return 0, false 3808 } 3809 3810 return e.complexity.Mutation.WriteTenants(childComplexity, args["in"].([]*BusinessTenantMappingInput)), true 3811 3812 case "OAuthCredentialData.clientId": 3813 if e.complexity.OAuthCredentialData.ClientID == nil { 3814 break 3815 } 3816 3817 return e.complexity.OAuthCredentialData.ClientID(childComplexity), true 3818 3819 case "OAuthCredentialData.clientSecret": 3820 if e.complexity.OAuthCredentialData.ClientSecret == nil { 3821 break 3822 } 3823 3824 return e.complexity.OAuthCredentialData.ClientSecret(childComplexity), true 3825 3826 case "OAuthCredentialData.url": 3827 if e.complexity.OAuthCredentialData.URL == nil { 3828 break 3829 } 3830 3831 return e.complexity.OAuthCredentialData.URL(childComplexity), true 3832 3833 case "OneTimeTokenForApplication.connectorURL": 3834 if e.complexity.OneTimeTokenForApplication.ConnectorURL == nil { 3835 break 3836 } 3837 3838 return e.complexity.OneTimeTokenForApplication.ConnectorURL(childComplexity), true 3839 3840 case "OneTimeTokenForApplication.createdAt": 3841 if e.complexity.OneTimeTokenForApplication.CreatedAt == nil { 3842 break 3843 } 3844 3845 return e.complexity.OneTimeTokenForApplication.CreatedAt(childComplexity), true 3846 3847 case "OneTimeTokenForApplication.expiresAt": 3848 if e.complexity.OneTimeTokenForApplication.ExpiresAt == nil { 3849 break 3850 } 3851 3852 return e.complexity.OneTimeTokenForApplication.ExpiresAt(childComplexity), true 3853 3854 case "OneTimeTokenForApplication.legacyConnectorURL": 3855 if e.complexity.OneTimeTokenForApplication.LegacyConnectorURL == nil { 3856 break 3857 } 3858 3859 return e.complexity.OneTimeTokenForApplication.LegacyConnectorURL(childComplexity), true 3860 3861 case "OneTimeTokenForApplication.raw": 3862 if e.complexity.OneTimeTokenForApplication.Raw == nil { 3863 break 3864 } 3865 3866 return e.complexity.OneTimeTokenForApplication.Raw(childComplexity), true 3867 3868 case "OneTimeTokenForApplication.rawEncoded": 3869 if e.complexity.OneTimeTokenForApplication.RawEncoded == nil { 3870 break 3871 } 3872 3873 return e.complexity.OneTimeTokenForApplication.RawEncoded(childComplexity), true 3874 3875 case "OneTimeTokenForApplication.scenarioGroups": 3876 if e.complexity.OneTimeTokenForApplication.ScenarioGroups == nil { 3877 break 3878 } 3879 3880 return e.complexity.OneTimeTokenForApplication.ScenarioGroups(childComplexity), true 3881 3882 case "OneTimeTokenForApplication.token": 3883 if e.complexity.OneTimeTokenForApplication.Token == nil { 3884 break 3885 } 3886 3887 return e.complexity.OneTimeTokenForApplication.Token(childComplexity), true 3888 3889 case "OneTimeTokenForApplication.type": 3890 if e.complexity.OneTimeTokenForApplication.Type == nil { 3891 break 3892 } 3893 3894 return e.complexity.OneTimeTokenForApplication.Type(childComplexity), true 3895 3896 case "OneTimeTokenForApplication.used": 3897 if e.complexity.OneTimeTokenForApplication.Used == nil { 3898 break 3899 } 3900 3901 return e.complexity.OneTimeTokenForApplication.Used(childComplexity), true 3902 3903 case "OneTimeTokenForApplication.usedAt": 3904 if e.complexity.OneTimeTokenForApplication.UsedAt == nil { 3905 break 3906 } 3907 3908 return e.complexity.OneTimeTokenForApplication.UsedAt(childComplexity), true 3909 3910 case "OneTimeTokenForRuntime.connectorURL": 3911 if e.complexity.OneTimeTokenForRuntime.ConnectorURL == nil { 3912 break 3913 } 3914 3915 return e.complexity.OneTimeTokenForRuntime.ConnectorURL(childComplexity), true 3916 3917 case "OneTimeTokenForRuntime.createdAt": 3918 if e.complexity.OneTimeTokenForRuntime.CreatedAt == nil { 3919 break 3920 } 3921 3922 return e.complexity.OneTimeTokenForRuntime.CreatedAt(childComplexity), true 3923 3924 case "OneTimeTokenForRuntime.expiresAt": 3925 if e.complexity.OneTimeTokenForRuntime.ExpiresAt == nil { 3926 break 3927 } 3928 3929 return e.complexity.OneTimeTokenForRuntime.ExpiresAt(childComplexity), true 3930 3931 case "OneTimeTokenForRuntime.raw": 3932 if e.complexity.OneTimeTokenForRuntime.Raw == nil { 3933 break 3934 } 3935 3936 return e.complexity.OneTimeTokenForRuntime.Raw(childComplexity), true 3937 3938 case "OneTimeTokenForRuntime.rawEncoded": 3939 if e.complexity.OneTimeTokenForRuntime.RawEncoded == nil { 3940 break 3941 } 3942 3943 return e.complexity.OneTimeTokenForRuntime.RawEncoded(childComplexity), true 3944 3945 case "OneTimeTokenForRuntime.token": 3946 if e.complexity.OneTimeTokenForRuntime.Token == nil { 3947 break 3948 } 3949 3950 return e.complexity.OneTimeTokenForRuntime.Token(childComplexity), true 3951 3952 case "OneTimeTokenForRuntime.type": 3953 if e.complexity.OneTimeTokenForRuntime.Type == nil { 3954 break 3955 } 3956 3957 return e.complexity.OneTimeTokenForRuntime.Type(childComplexity), true 3958 3959 case "OneTimeTokenForRuntime.used": 3960 if e.complexity.OneTimeTokenForRuntime.Used == nil { 3961 break 3962 } 3963 3964 return e.complexity.OneTimeTokenForRuntime.Used(childComplexity), true 3965 3966 case "OneTimeTokenForRuntime.usedAt": 3967 if e.complexity.OneTimeTokenForRuntime.UsedAt == nil { 3968 break 3969 } 3970 3971 return e.complexity.OneTimeTokenForRuntime.UsedAt(childComplexity), true 3972 3973 case "PageInfo.endCursor": 3974 if e.complexity.PageInfo.EndCursor == nil { 3975 break 3976 } 3977 3978 return e.complexity.PageInfo.EndCursor(childComplexity), true 3979 3980 case "PageInfo.hasNextPage": 3981 if e.complexity.PageInfo.HasNextPage == nil { 3982 break 3983 } 3984 3985 return e.complexity.PageInfo.HasNextPage(childComplexity), true 3986 3987 case "PageInfo.startCursor": 3988 if e.complexity.PageInfo.StartCursor == nil { 3989 break 3990 } 3991 3992 return e.complexity.PageInfo.StartCursor(childComplexity), true 3993 3994 case "PlaceholderDefinition.description": 3995 if e.complexity.PlaceholderDefinition.Description == nil { 3996 break 3997 } 3998 3999 return e.complexity.PlaceholderDefinition.Description(childComplexity), true 4000 4001 case "PlaceholderDefinition.jsonPath": 4002 if e.complexity.PlaceholderDefinition.JSONPath == nil { 4003 break 4004 } 4005 4006 return e.complexity.PlaceholderDefinition.JSONPath(childComplexity), true 4007 4008 case "PlaceholderDefinition.name": 4009 if e.complexity.PlaceholderDefinition.Name == nil { 4010 break 4011 } 4012 4013 return e.complexity.PlaceholderDefinition.Name(childComplexity), true 4014 4015 case "PlaceholderDefinition.optional": 4016 if e.complexity.PlaceholderDefinition.Optional == nil { 4017 break 4018 } 4019 4020 return e.complexity.PlaceholderDefinition.Optional(childComplexity), true 4021 4022 case "Query.apisForApplication": 4023 if e.complexity.Query.ApisForApplication == nil { 4024 break 4025 } 4026 4027 args, err := ec.field_Query_apisForApplication_args(context.TODO(), rawArgs) 4028 if err != nil { 4029 return 0, false 4030 } 4031 4032 return e.complexity.Query.ApisForApplication(childComplexity, args["appID"].(string), args["first"].(*int), args["after"].(*PageCursor)), true 4033 4034 case "Query.application": 4035 if e.complexity.Query.Application == nil { 4036 break 4037 } 4038 4039 args, err := ec.field_Query_application_args(context.TODO(), rawArgs) 4040 if err != nil { 4041 return 0, false 4042 } 4043 4044 return e.complexity.Query.Application(childComplexity, args["id"].(string)), true 4045 4046 case "Query.applicationBySystemNumber": 4047 if e.complexity.Query.ApplicationBySystemNumber == nil { 4048 break 4049 } 4050 4051 args, err := ec.field_Query_applicationBySystemNumber_args(context.TODO(), rawArgs) 4052 if err != nil { 4053 return 0, false 4054 } 4055 4056 return e.complexity.Query.ApplicationBySystemNumber(childComplexity, args["systemNumber"].(string)), true 4057 4058 case "Query.applicationTemplate": 4059 if e.complexity.Query.ApplicationTemplate == nil { 4060 break 4061 } 4062 4063 args, err := ec.field_Query_applicationTemplate_args(context.TODO(), rawArgs) 4064 if err != nil { 4065 return 0, false 4066 } 4067 4068 return e.complexity.Query.ApplicationTemplate(childComplexity, args["id"].(string)), true 4069 4070 case "Query.applicationTemplates": 4071 if e.complexity.Query.ApplicationTemplates == nil { 4072 break 4073 } 4074 4075 args, err := ec.field_Query_applicationTemplates_args(context.TODO(), rawArgs) 4076 if err != nil { 4077 return 0, false 4078 } 4079 4080 return e.complexity.Query.ApplicationTemplates(childComplexity, args["filter"].([]*LabelFilter), args["first"].(*int), args["after"].(*PageCursor)), true 4081 4082 case "Query.applications": 4083 if e.complexity.Query.Applications == nil { 4084 break 4085 } 4086 4087 args, err := ec.field_Query_applications_args(context.TODO(), rawArgs) 4088 if err != nil { 4089 return 0, false 4090 } 4091 4092 return e.complexity.Query.Applications(childComplexity, args["filter"].([]*LabelFilter), args["first"].(*int), args["after"].(*PageCursor)), true 4093 4094 case "Query.applicationsForRuntime": 4095 if e.complexity.Query.ApplicationsForRuntime == nil { 4096 break 4097 } 4098 4099 args, err := ec.field_Query_applicationsForRuntime_args(context.TODO(), rawArgs) 4100 if err != nil { 4101 return 0, false 4102 } 4103 4104 return e.complexity.Query.ApplicationsForRuntime(childComplexity, args["runtimeID"].(string), args["first"].(*int), args["after"].(*PageCursor)), true 4105 4106 case "Query.automaticScenarioAssignmentForScenario": 4107 if e.complexity.Query.AutomaticScenarioAssignmentForScenario == nil { 4108 break 4109 } 4110 4111 args, err := ec.field_Query_automaticScenarioAssignmentForScenario_args(context.TODO(), rawArgs) 4112 if err != nil { 4113 return 0, false 4114 } 4115 4116 return e.complexity.Query.AutomaticScenarioAssignmentForScenario(childComplexity, args["scenarioName"].(string)), true 4117 4118 case "Query.automaticScenarioAssignments": 4119 if e.complexity.Query.AutomaticScenarioAssignments == nil { 4120 break 4121 } 4122 4123 args, err := ec.field_Query_automaticScenarioAssignments_args(context.TODO(), rawArgs) 4124 if err != nil { 4125 return 0, false 4126 } 4127 4128 return e.complexity.Query.AutomaticScenarioAssignments(childComplexity, args["first"].(*int), args["after"].(*PageCursor)), true 4129 4130 case "Query.automaticScenarioAssignmentsForSelector": 4131 if e.complexity.Query.AutomaticScenarioAssignmentsForSelector == nil { 4132 break 4133 } 4134 4135 args, err := ec.field_Query_automaticScenarioAssignmentsForSelector_args(context.TODO(), rawArgs) 4136 if err != nil { 4137 return 0, false 4138 } 4139 4140 return e.complexity.Query.AutomaticScenarioAssignmentsForSelector(childComplexity, args["selector"].(LabelSelectorInput)), true 4141 4142 case "Query.bundleByInstanceAuth": 4143 if e.complexity.Query.BundleByInstanceAuth == nil { 4144 break 4145 } 4146 4147 args, err := ec.field_Query_bundleByInstanceAuth_args(context.TODO(), rawArgs) 4148 if err != nil { 4149 return 0, false 4150 } 4151 4152 return e.complexity.Query.BundleByInstanceAuth(childComplexity, args["authID"].(string)), true 4153 4154 case "Query.bundleInstanceAuth": 4155 if e.complexity.Query.BundleInstanceAuth == nil { 4156 break 4157 } 4158 4159 args, err := ec.field_Query_bundleInstanceAuth_args(context.TODO(), rawArgs) 4160 if err != nil { 4161 return 0, false 4162 } 4163 4164 return e.complexity.Query.BundleInstanceAuth(childComplexity, args["id"].(string)), true 4165 4166 case "Query.certificateSubjectMapping": 4167 if e.complexity.Query.CertificateSubjectMapping == nil { 4168 break 4169 } 4170 4171 args, err := ec.field_Query_certificateSubjectMapping_args(context.TODO(), rawArgs) 4172 if err != nil { 4173 return 0, false 4174 } 4175 4176 return e.complexity.Query.CertificateSubjectMapping(childComplexity, args["id"].(string)), true 4177 4178 case "Query.certificateSubjectMappings": 4179 if e.complexity.Query.CertificateSubjectMappings == nil { 4180 break 4181 } 4182 4183 args, err := ec.field_Query_certificateSubjectMappings_args(context.TODO(), rawArgs) 4184 if err != nil { 4185 return 0, false 4186 } 4187 4188 return e.complexity.Query.CertificateSubjectMappings(childComplexity, args["first"].(*int), args["after"].(*PageCursor)), true 4189 4190 case "Query.eventsForApplication": 4191 if e.complexity.Query.EventsForApplication == nil { 4192 break 4193 } 4194 4195 args, err := ec.field_Query_eventsForApplication_args(context.TODO(), rawArgs) 4196 if err != nil { 4197 return 0, false 4198 } 4199 4200 return e.complexity.Query.EventsForApplication(childComplexity, args["appID"].(string), args["first"].(*int), args["after"].(*PageCursor)), true 4201 4202 case "Query.formation": 4203 if e.complexity.Query.Formation == nil { 4204 break 4205 } 4206 4207 args, err := ec.field_Query_formation_args(context.TODO(), rawArgs) 4208 if err != nil { 4209 return 0, false 4210 } 4211 4212 return e.complexity.Query.Formation(childComplexity, args["id"].(string)), true 4213 4214 case "Query.formationByName": 4215 if e.complexity.Query.FormationByName == nil { 4216 break 4217 } 4218 4219 args, err := ec.field_Query_formationByName_args(context.TODO(), rawArgs) 4220 if err != nil { 4221 return 0, false 4222 } 4223 4224 return e.complexity.Query.FormationByName(childComplexity, args["name"].(string)), true 4225 4226 case "Query.formationConstraint": 4227 if e.complexity.Query.FormationConstraint == nil { 4228 break 4229 } 4230 4231 args, err := ec.field_Query_formationConstraint_args(context.TODO(), rawArgs) 4232 if err != nil { 4233 return 0, false 4234 } 4235 4236 return e.complexity.Query.FormationConstraint(childComplexity, args["id"].(string)), true 4237 4238 case "Query.formationConstraints": 4239 if e.complexity.Query.FormationConstraints == nil { 4240 break 4241 } 4242 4243 return e.complexity.Query.FormationConstraints(childComplexity), true 4244 4245 case "Query.formationConstraintsByFormationType": 4246 if e.complexity.Query.FormationConstraintsByFormationType == nil { 4247 break 4248 } 4249 4250 args, err := ec.field_Query_formationConstraintsByFormationType_args(context.TODO(), rawArgs) 4251 if err != nil { 4252 return 0, false 4253 } 4254 4255 return e.complexity.Query.FormationConstraintsByFormationType(childComplexity, args["formationTemplateID"].(string)), true 4256 4257 case "Query.formationTemplate": 4258 if e.complexity.Query.FormationTemplate == nil { 4259 break 4260 } 4261 4262 args, err := ec.field_Query_formationTemplate_args(context.TODO(), rawArgs) 4263 if err != nil { 4264 return 0, false 4265 } 4266 4267 return e.complexity.Query.FormationTemplate(childComplexity, args["id"].(string)), true 4268 4269 case "Query.formationTemplates": 4270 if e.complexity.Query.FormationTemplates == nil { 4271 break 4272 } 4273 4274 args, err := ec.field_Query_formationTemplates_args(context.TODO(), rawArgs) 4275 if err != nil { 4276 return 0, false 4277 } 4278 4279 return e.complexity.Query.FormationTemplates(childComplexity, args["first"].(*int), args["after"].(*PageCursor)), true 4280 4281 case "Query.formations": 4282 if e.complexity.Query.Formations == nil { 4283 break 4284 } 4285 4286 args, err := ec.field_Query_formations_args(context.TODO(), rawArgs) 4287 if err != nil { 4288 return 0, false 4289 } 4290 4291 return e.complexity.Query.Formations(childComplexity, args["first"].(*int), args["after"].(*PageCursor)), true 4292 4293 case "Query.healthChecks": 4294 if e.complexity.Query.HealthChecks == nil { 4295 break 4296 } 4297 4298 args, err := ec.field_Query_healthChecks_args(context.TODO(), rawArgs) 4299 if err != nil { 4300 return 0, false 4301 } 4302 4303 return e.complexity.Query.HealthChecks(childComplexity, args["types"].([]HealthCheckType), args["origin"].(*string), args["first"].(*int), args["after"].(*PageCursor)), true 4304 4305 case "Query.integrationSystem": 4306 if e.complexity.Query.IntegrationSystem == nil { 4307 break 4308 } 4309 4310 args, err := ec.field_Query_integrationSystem_args(context.TODO(), rawArgs) 4311 if err != nil { 4312 return 0, false 4313 } 4314 4315 return e.complexity.Query.IntegrationSystem(childComplexity, args["id"].(string)), true 4316 4317 case "Query.integrationSystems": 4318 if e.complexity.Query.IntegrationSystems == nil { 4319 break 4320 } 4321 4322 args, err := ec.field_Query_integrationSystems_args(context.TODO(), rawArgs) 4323 if err != nil { 4324 return 0, false 4325 } 4326 4327 return e.complexity.Query.IntegrationSystems(childComplexity, args["first"].(*int), args["after"].(*PageCursor)), true 4328 4329 case "Query.labelDefinition": 4330 if e.complexity.Query.LabelDefinition == nil { 4331 break 4332 } 4333 4334 args, err := ec.field_Query_labelDefinition_args(context.TODO(), rawArgs) 4335 if err != nil { 4336 return 0, false 4337 } 4338 4339 return e.complexity.Query.LabelDefinition(childComplexity, args["key"].(string)), true 4340 4341 case "Query.labelDefinitions": 4342 if e.complexity.Query.LabelDefinitions == nil { 4343 break 4344 } 4345 4346 return e.complexity.Query.LabelDefinitions(childComplexity), true 4347 4348 case "Query.runtime": 4349 if e.complexity.Query.Runtime == nil { 4350 break 4351 } 4352 4353 args, err := ec.field_Query_runtime_args(context.TODO(), rawArgs) 4354 if err != nil { 4355 return 0, false 4356 } 4357 4358 return e.complexity.Query.Runtime(childComplexity, args["id"].(string)), true 4359 4360 case "Query.runtimeByTokenIssuer": 4361 if e.complexity.Query.RuntimeByTokenIssuer == nil { 4362 break 4363 } 4364 4365 args, err := ec.field_Query_runtimeByTokenIssuer_args(context.TODO(), rawArgs) 4366 if err != nil { 4367 return 0, false 4368 } 4369 4370 return e.complexity.Query.RuntimeByTokenIssuer(childComplexity, args["issuer"].(string)), true 4371 4372 case "Query.runtimes": 4373 if e.complexity.Query.Runtimes == nil { 4374 break 4375 } 4376 4377 args, err := ec.field_Query_runtimes_args(context.TODO(), rawArgs) 4378 if err != nil { 4379 return 0, false 4380 } 4381 4382 return e.complexity.Query.Runtimes(childComplexity, args["filter"].([]*LabelFilter), args["first"].(*int), args["after"].(*PageCursor)), true 4383 4384 case "Query.systemAuth": 4385 if e.complexity.Query.SystemAuth == nil { 4386 break 4387 } 4388 4389 args, err := ec.field_Query_systemAuth_args(context.TODO(), rawArgs) 4390 if err != nil { 4391 return 0, false 4392 } 4393 4394 return e.complexity.Query.SystemAuth(childComplexity, args["id"].(string)), true 4395 4396 case "Query.systemAuthByToken": 4397 if e.complexity.Query.SystemAuthByToken == nil { 4398 break 4399 } 4400 4401 args, err := ec.field_Query_systemAuthByToken_args(context.TODO(), rawArgs) 4402 if err != nil { 4403 return 0, false 4404 } 4405 4406 return e.complexity.Query.SystemAuthByToken(childComplexity, args["token"].(string)), true 4407 4408 case "Query.tenantByExternalID": 4409 if e.complexity.Query.TenantByExternalID == nil { 4410 break 4411 } 4412 4413 args, err := ec.field_Query_tenantByExternalID_args(context.TODO(), rawArgs) 4414 if err != nil { 4415 return 0, false 4416 } 4417 4418 return e.complexity.Query.TenantByExternalID(childComplexity, args["id"].(string)), true 4419 4420 case "Query.tenantByInternalID": 4421 if e.complexity.Query.TenantByInternalID == nil { 4422 break 4423 } 4424 4425 args, err := ec.field_Query_tenantByInternalID_args(context.TODO(), rawArgs) 4426 if err != nil { 4427 return 0, false 4428 } 4429 4430 return e.complexity.Query.TenantByInternalID(childComplexity, args["id"].(string)), true 4431 4432 case "Query.tenantByLowestOwnerForResource": 4433 if e.complexity.Query.TenantByLowestOwnerForResource == nil { 4434 break 4435 } 4436 4437 args, err := ec.field_Query_tenantByLowestOwnerForResource_args(context.TODO(), rawArgs) 4438 if err != nil { 4439 return 0, false 4440 } 4441 4442 return e.complexity.Query.TenantByLowestOwnerForResource(childComplexity, args["id"].(string), args["resource"].(string)), true 4443 4444 case "Query.tenants": 4445 if e.complexity.Query.Tenants == nil { 4446 break 4447 } 4448 4449 args, err := ec.field_Query_tenants_args(context.TODO(), rawArgs) 4450 if err != nil { 4451 return 0, false 4452 } 4453 4454 return e.complexity.Query.Tenants(childComplexity, args["first"].(*int), args["after"].(*PageCursor), args["searchTerm"].(*string)), true 4455 4456 case "Query.viewer": 4457 if e.complexity.Query.Viewer == nil { 4458 break 4459 } 4460 4461 return e.complexity.Query.Viewer(childComplexity), true 4462 4463 case "Runtime.applicationNamespace": 4464 if e.complexity.Runtime.ApplicationNamespace == nil { 4465 break 4466 } 4467 4468 return e.complexity.Runtime.ApplicationNamespace(childComplexity), true 4469 4470 case "Runtime.auths": 4471 if e.complexity.Runtime.Auths == nil { 4472 break 4473 } 4474 4475 return e.complexity.Runtime.Auths(childComplexity), true 4476 4477 case "Runtime.description": 4478 if e.complexity.Runtime.Description == nil { 4479 break 4480 } 4481 4482 return e.complexity.Runtime.Description(childComplexity), true 4483 4484 case "Runtime.eventingConfiguration": 4485 if e.complexity.Runtime.EventingConfiguration == nil { 4486 break 4487 } 4488 4489 return e.complexity.Runtime.EventingConfiguration(childComplexity), true 4490 4491 case "Runtime.id": 4492 if e.complexity.Runtime.ID == nil { 4493 break 4494 } 4495 4496 return e.complexity.Runtime.ID(childComplexity), true 4497 4498 case "Runtime.labels": 4499 if e.complexity.Runtime.Labels == nil { 4500 break 4501 } 4502 4503 args, err := ec.field_Runtime_labels_args(context.TODO(), rawArgs) 4504 if err != nil { 4505 return 0, false 4506 } 4507 4508 return e.complexity.Runtime.Labels(childComplexity, args["key"].(*string)), true 4509 4510 case "Runtime.metadata": 4511 if e.complexity.Runtime.Metadata == nil { 4512 break 4513 } 4514 4515 return e.complexity.Runtime.Metadata(childComplexity), true 4516 4517 case "Runtime.name": 4518 if e.complexity.Runtime.Name == nil { 4519 break 4520 } 4521 4522 return e.complexity.Runtime.Name(childComplexity), true 4523 4524 case "Runtime.runtimeContext": 4525 if e.complexity.Runtime.RuntimeContext == nil { 4526 break 4527 } 4528 4529 args, err := ec.field_Runtime_runtimeContext_args(context.TODO(), rawArgs) 4530 if err != nil { 4531 return 0, false 4532 } 4533 4534 return e.complexity.Runtime.RuntimeContext(childComplexity, args["id"].(string)), true 4535 4536 case "Runtime.runtimeContexts": 4537 if e.complexity.Runtime.RuntimeContexts == nil { 4538 break 4539 } 4540 4541 args, err := ec.field_Runtime_runtimeContexts_args(context.TODO(), rawArgs) 4542 if err != nil { 4543 return 0, false 4544 } 4545 4546 return e.complexity.Runtime.RuntimeContexts(childComplexity, args["first"].(*int), args["after"].(*PageCursor)), true 4547 4548 case "Runtime.status": 4549 if e.complexity.Runtime.Status == nil { 4550 break 4551 } 4552 4553 return e.complexity.Runtime.Status(childComplexity), true 4554 4555 case "Runtime.webhooks": 4556 if e.complexity.Runtime.Webhooks == nil { 4557 break 4558 } 4559 4560 return e.complexity.Runtime.Webhooks(childComplexity), true 4561 4562 case "RuntimeContext.id": 4563 if e.complexity.RuntimeContext.ID == nil { 4564 break 4565 } 4566 4567 return e.complexity.RuntimeContext.ID(childComplexity), true 4568 4569 case "RuntimeContext.key": 4570 if e.complexity.RuntimeContext.Key == nil { 4571 break 4572 } 4573 4574 return e.complexity.RuntimeContext.Key(childComplexity), true 4575 4576 case "RuntimeContext.labels": 4577 if e.complexity.RuntimeContext.Labels == nil { 4578 break 4579 } 4580 4581 args, err := ec.field_RuntimeContext_labels_args(context.TODO(), rawArgs) 4582 if err != nil { 4583 return 0, false 4584 } 4585 4586 return e.complexity.RuntimeContext.Labels(childComplexity, args["key"].(*string)), true 4587 4588 case "RuntimeContext.value": 4589 if e.complexity.RuntimeContext.Value == nil { 4590 break 4591 } 4592 4593 return e.complexity.RuntimeContext.Value(childComplexity), true 4594 4595 case "RuntimeContextPage.data": 4596 if e.complexity.RuntimeContextPage.Data == nil { 4597 break 4598 } 4599 4600 return e.complexity.RuntimeContextPage.Data(childComplexity), true 4601 4602 case "RuntimeContextPage.pageInfo": 4603 if e.complexity.RuntimeContextPage.PageInfo == nil { 4604 break 4605 } 4606 4607 return e.complexity.RuntimeContextPage.PageInfo(childComplexity), true 4608 4609 case "RuntimeContextPage.totalCount": 4610 if e.complexity.RuntimeContextPage.TotalCount == nil { 4611 break 4612 } 4613 4614 return e.complexity.RuntimeContextPage.TotalCount(childComplexity), true 4615 4616 case "RuntimeEventingConfiguration.defaultURL": 4617 if e.complexity.RuntimeEventingConfiguration.DefaultURL == nil { 4618 break 4619 } 4620 4621 return e.complexity.RuntimeEventingConfiguration.DefaultURL(childComplexity), true 4622 4623 case "RuntimeMetadata.creationTimestamp": 4624 if e.complexity.RuntimeMetadata.CreationTimestamp == nil { 4625 break 4626 } 4627 4628 return e.complexity.RuntimeMetadata.CreationTimestamp(childComplexity), true 4629 4630 case "RuntimePage.data": 4631 if e.complexity.RuntimePage.Data == nil { 4632 break 4633 } 4634 4635 return e.complexity.RuntimePage.Data(childComplexity), true 4636 4637 case "RuntimePage.pageInfo": 4638 if e.complexity.RuntimePage.PageInfo == nil { 4639 break 4640 } 4641 4642 return e.complexity.RuntimePage.PageInfo(childComplexity), true 4643 4644 case "RuntimePage.totalCount": 4645 if e.complexity.RuntimePage.TotalCount == nil { 4646 break 4647 } 4648 4649 return e.complexity.RuntimePage.TotalCount(childComplexity), true 4650 4651 case "RuntimeStatus.condition": 4652 if e.complexity.RuntimeStatus.Condition == nil { 4653 break 4654 } 4655 4656 return e.complexity.RuntimeStatus.Condition(childComplexity), true 4657 4658 case "RuntimeStatus.timestamp": 4659 if e.complexity.RuntimeStatus.Timestamp == nil { 4660 break 4661 } 4662 4663 return e.complexity.RuntimeStatus.Timestamp(childComplexity), true 4664 4665 case "RuntimeSystemAuth.auth": 4666 if e.complexity.RuntimeSystemAuth.Auth == nil { 4667 break 4668 } 4669 4670 return e.complexity.RuntimeSystemAuth.Auth(childComplexity), true 4671 4672 case "RuntimeSystemAuth.id": 4673 if e.complexity.RuntimeSystemAuth.ID == nil { 4674 break 4675 } 4676 4677 return e.complexity.RuntimeSystemAuth.ID(childComplexity), true 4678 4679 case "RuntimeSystemAuth.referenceObjectId": 4680 if e.complexity.RuntimeSystemAuth.ReferenceObjectID == nil { 4681 break 4682 } 4683 4684 return e.complexity.RuntimeSystemAuth.ReferenceObjectID(childComplexity), true 4685 4686 case "RuntimeSystemAuth.tenantId": 4687 if e.complexity.RuntimeSystemAuth.TenantID == nil { 4688 break 4689 } 4690 4691 return e.complexity.RuntimeSystemAuth.TenantID(childComplexity), true 4692 4693 case "RuntimeSystemAuth.type": 4694 if e.complexity.RuntimeSystemAuth.Type == nil { 4695 break 4696 } 4697 4698 return e.complexity.RuntimeSystemAuth.Type(childComplexity), true 4699 4700 case "Tenant.id": 4701 if e.complexity.Tenant.ID == nil { 4702 break 4703 } 4704 4705 return e.complexity.Tenant.ID(childComplexity), true 4706 4707 case "Tenant.initialized": 4708 if e.complexity.Tenant.Initialized == nil { 4709 break 4710 } 4711 4712 return e.complexity.Tenant.Initialized(childComplexity), true 4713 4714 case "Tenant.internalID": 4715 if e.complexity.Tenant.InternalID == nil { 4716 break 4717 } 4718 4719 return e.complexity.Tenant.InternalID(childComplexity), true 4720 4721 case "Tenant.labels": 4722 if e.complexity.Tenant.Labels == nil { 4723 break 4724 } 4725 4726 args, err := ec.field_Tenant_labels_args(context.TODO(), rawArgs) 4727 if err != nil { 4728 return 0, false 4729 } 4730 4731 return e.complexity.Tenant.Labels(childComplexity, args["key"].(*string)), true 4732 4733 case "Tenant.name": 4734 if e.complexity.Tenant.Name == nil { 4735 break 4736 } 4737 4738 return e.complexity.Tenant.Name(childComplexity), true 4739 4740 case "Tenant.parentID": 4741 if e.complexity.Tenant.ParentID == nil { 4742 break 4743 } 4744 4745 return e.complexity.Tenant.ParentID(childComplexity), true 4746 4747 case "Tenant.provider": 4748 if e.complexity.Tenant.Provider == nil { 4749 break 4750 } 4751 4752 return e.complexity.Tenant.Provider(childComplexity), true 4753 4754 case "Tenant.type": 4755 if e.complexity.Tenant.Type == nil { 4756 break 4757 } 4758 4759 return e.complexity.Tenant.Type(childComplexity), true 4760 4761 case "TenantAccess.owner": 4762 if e.complexity.TenantAccess.Owner == nil { 4763 break 4764 } 4765 4766 return e.complexity.TenantAccess.Owner(childComplexity), true 4767 4768 case "TenantAccess.resourceID": 4769 if e.complexity.TenantAccess.ResourceID == nil { 4770 break 4771 } 4772 4773 return e.complexity.TenantAccess.ResourceID(childComplexity), true 4774 4775 case "TenantAccess.resourceType": 4776 if e.complexity.TenantAccess.ResourceType == nil { 4777 break 4778 } 4779 4780 return e.complexity.TenantAccess.ResourceType(childComplexity), true 4781 4782 case "TenantAccess.tenantID": 4783 if e.complexity.TenantAccess.TenantID == nil { 4784 break 4785 } 4786 4787 return e.complexity.TenantAccess.TenantID(childComplexity), true 4788 4789 case "TenantBusinessType.code": 4790 if e.complexity.TenantBusinessType.Code == nil { 4791 break 4792 } 4793 4794 return e.complexity.TenantBusinessType.Code(childComplexity), true 4795 4796 case "TenantBusinessType.id": 4797 if e.complexity.TenantBusinessType.ID == nil { 4798 break 4799 } 4800 4801 return e.complexity.TenantBusinessType.ID(childComplexity), true 4802 4803 case "TenantBusinessType.name": 4804 if e.complexity.TenantBusinessType.Name == nil { 4805 break 4806 } 4807 4808 return e.complexity.TenantBusinessType.Name(childComplexity), true 4809 4810 case "TenantPage.data": 4811 if e.complexity.TenantPage.Data == nil { 4812 break 4813 } 4814 4815 return e.complexity.TenantPage.Data(childComplexity), true 4816 4817 case "TenantPage.pageInfo": 4818 if e.complexity.TenantPage.PageInfo == nil { 4819 break 4820 } 4821 4822 return e.complexity.TenantPage.PageInfo(childComplexity), true 4823 4824 case "TenantPage.totalCount": 4825 if e.complexity.TenantPage.TotalCount == nil { 4826 break 4827 } 4828 4829 return e.complexity.TenantPage.TotalCount(childComplexity), true 4830 4831 case "Version.deprecated": 4832 if e.complexity.Version.Deprecated == nil { 4833 break 4834 } 4835 4836 return e.complexity.Version.Deprecated(childComplexity), true 4837 4838 case "Version.deprecatedSince": 4839 if e.complexity.Version.DeprecatedSince == nil { 4840 break 4841 } 4842 4843 return e.complexity.Version.DeprecatedSince(childComplexity), true 4844 4845 case "Version.forRemoval": 4846 if e.complexity.Version.ForRemoval == nil { 4847 break 4848 } 4849 4850 return e.complexity.Version.ForRemoval(childComplexity), true 4851 4852 case "Version.value": 4853 if e.complexity.Version.Value == nil { 4854 break 4855 } 4856 4857 return e.complexity.Version.Value(childComplexity), true 4858 4859 case "Viewer.id": 4860 if e.complexity.Viewer.ID == nil { 4861 break 4862 } 4863 4864 return e.complexity.Viewer.ID(childComplexity), true 4865 4866 case "Viewer.type": 4867 if e.complexity.Viewer.Type == nil { 4868 break 4869 } 4870 4871 return e.complexity.Viewer.Type(childComplexity), true 4872 4873 case "Webhook.applicationID": 4874 if e.complexity.Webhook.ApplicationID == nil { 4875 break 4876 } 4877 4878 return e.complexity.Webhook.ApplicationID(childComplexity), true 4879 4880 case "Webhook.applicationTemplateID": 4881 if e.complexity.Webhook.ApplicationTemplateID == nil { 4882 break 4883 } 4884 4885 return e.complexity.Webhook.ApplicationTemplateID(childComplexity), true 4886 4887 case "Webhook.auth": 4888 if e.complexity.Webhook.Auth == nil { 4889 break 4890 } 4891 4892 return e.complexity.Webhook.Auth(childComplexity), true 4893 4894 case "Webhook.correlationIdKey": 4895 if e.complexity.Webhook.CorrelationIDKey == nil { 4896 break 4897 } 4898 4899 return e.complexity.Webhook.CorrelationIDKey(childComplexity), true 4900 4901 case "Webhook.createdAt": 4902 if e.complexity.Webhook.CreatedAt == nil { 4903 break 4904 } 4905 4906 return e.complexity.Webhook.CreatedAt(childComplexity), true 4907 4908 case "Webhook.formationTemplateID": 4909 if e.complexity.Webhook.FormationTemplateID == nil { 4910 break 4911 } 4912 4913 return e.complexity.Webhook.FormationTemplateID(childComplexity), true 4914 4915 case "Webhook.headerTemplate": 4916 if e.complexity.Webhook.HeaderTemplate == nil { 4917 break 4918 } 4919 4920 return e.complexity.Webhook.HeaderTemplate(childComplexity), true 4921 4922 case "Webhook.id": 4923 if e.complexity.Webhook.ID == nil { 4924 break 4925 } 4926 4927 return e.complexity.Webhook.ID(childComplexity), true 4928 4929 case "Webhook.inputTemplate": 4930 if e.complexity.Webhook.InputTemplate == nil { 4931 break 4932 } 4933 4934 return e.complexity.Webhook.InputTemplate(childComplexity), true 4935 4936 case "Webhook.integrationSystemID": 4937 if e.complexity.Webhook.IntegrationSystemID == nil { 4938 break 4939 } 4940 4941 return e.complexity.Webhook.IntegrationSystemID(childComplexity), true 4942 4943 case "Webhook.mode": 4944 if e.complexity.Webhook.Mode == nil { 4945 break 4946 } 4947 4948 return e.complexity.Webhook.Mode(childComplexity), true 4949 4950 case "Webhook.outputTemplate": 4951 if e.complexity.Webhook.OutputTemplate == nil { 4952 break 4953 } 4954 4955 return e.complexity.Webhook.OutputTemplate(childComplexity), true 4956 4957 case "Webhook.retryInterval": 4958 if e.complexity.Webhook.RetryInterval == nil { 4959 break 4960 } 4961 4962 return e.complexity.Webhook.RetryInterval(childComplexity), true 4963 4964 case "Webhook.runtimeID": 4965 if e.complexity.Webhook.RuntimeID == nil { 4966 break 4967 } 4968 4969 return e.complexity.Webhook.RuntimeID(childComplexity), true 4970 4971 case "Webhook.statusTemplate": 4972 if e.complexity.Webhook.StatusTemplate == nil { 4973 break 4974 } 4975 4976 return e.complexity.Webhook.StatusTemplate(childComplexity), true 4977 4978 case "Webhook.timeout": 4979 if e.complexity.Webhook.Timeout == nil { 4980 break 4981 } 4982 4983 return e.complexity.Webhook.Timeout(childComplexity), true 4984 4985 case "Webhook.type": 4986 if e.complexity.Webhook.Type == nil { 4987 break 4988 } 4989 4990 return e.complexity.Webhook.Type(childComplexity), true 4991 4992 case "Webhook.url": 4993 if e.complexity.Webhook.URL == nil { 4994 break 4995 } 4996 4997 return e.complexity.Webhook.URL(childComplexity), true 4998 4999 case "Webhook.urlTemplate": 5000 if e.complexity.Webhook.URLTemplate == nil { 5001 break 5002 } 5003 5004 return e.complexity.Webhook.URLTemplate(childComplexity), true 5005 5006 } 5007 return 0, false 5008 } 5009 5010 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { 5011 rc := graphql.GetOperationContext(ctx) 5012 ec := executionContext{rc, e} 5013 first := true 5014 5015 switch rc.Operation.Operation { 5016 case ast.Query: 5017 return func(ctx context.Context) *graphql.Response { 5018 if !first { 5019 return nil 5020 } 5021 first = false 5022 data := ec._Query(ctx, rc.Operation.SelectionSet) 5023 var buf bytes.Buffer 5024 data.MarshalGQL(&buf) 5025 5026 return &graphql.Response{ 5027 Data: buf.Bytes(), 5028 } 5029 } 5030 case ast.Mutation: 5031 return func(ctx context.Context) *graphql.Response { 5032 if !first { 5033 return nil 5034 } 5035 first = false 5036 data := ec._Mutation(ctx, rc.Operation.SelectionSet) 5037 var buf bytes.Buffer 5038 data.MarshalGQL(&buf) 5039 5040 return &graphql.Response{ 5041 Data: buf.Bytes(), 5042 } 5043 } 5044 5045 default: 5046 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation")) 5047 } 5048 } 5049 5050 type executionContext struct { 5051 *graphql.OperationContext 5052 *executableSchema 5053 } 5054 5055 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) { 5056 if ec.DisableIntrospection { 5057 return nil, errors.New("introspection disabled") 5058 } 5059 return introspection.WrapSchema(parsedSchema), nil 5060 } 5061 5062 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) { 5063 if ec.DisableIntrospection { 5064 return nil, errors.New("introspection disabled") 5065 } 5066 return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil 5067 } 5068 5069 var sources = []*ast.Source{ 5070 &ast.Source{Name: "schema.graphql", Input: `""" 5071 Async directive is added to mutations which are capable of being executed in asynchronious matter 5072 """ 5073 directive @async(operationType: OperationType!, webhookType: WebhookType, idField: String) on FIELD_DEFINITION 5074 """ 5075 HasScenario directive is added to queries and mutations to ensure that runtimes can only access resources which are in the same scenario as them 5076 """ 5077 directive @hasScenario(applicationProvider: String!, idField: String!) on FIELD_DEFINITION 5078 """ 5079 HasScopes directive is added automatically to every query and mutation by scopesdecorator plugin that is triggerred by gqlgen.sh script. 5080 """ 5081 directive @hasScopes(path: String!) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION 5082 """ 5083 Sanitize directive marks mutation arguments that will be validated. 5084 """ 5085 directive @sanitize(path: String!) on FIELD_DEFINITION 5086 """ 5087 SynchronizeApplications directive is added to mutations that create applications or tenants in other to synchronise the tenant access. 5088 """ 5089 directive @synchronizeApplicationTenancy(eventType: EventType!) on FIELD_DEFINITION 5090 """ 5091 Validate directive marks mutation arguments that will be validated. 5092 """ 5093 directive @validate on ARGUMENT_DEFINITION 5094 scalar Any 5095 5096 scalar CLOB 5097 5098 scalar HttpHeaders 5099 5100 scalar HttpHeadersSerialized 5101 5102 """ 5103 Stringified JSON 5104 """ 5105 scalar JSON 5106 5107 """ 5108 Stringified JSON 5109 """ 5110 scalar JSONSchema 5111 5112 scalar Labels 5113 5114 scalar PageCursor 5115 5116 scalar QueryParams 5117 5118 scalar QueryParamsSerialized 5119 5120 scalar Timestamp 5121 5122 enum APISpecType { 5123 ODATA 5124 OPEN_API 5125 } 5126 5127 enum ApplicationStatusCondition { 5128 INITIAL 5129 CONNECTED 5130 FAILED 5131 CREATING 5132 CREATE_FAILED 5133 CREATE_SUCCEEDED 5134 UPDATING 5135 UPDATE_FAILED 5136 UPDATE_SUCCEEDED 5137 DELETING 5138 DELETE_FAILED 5139 DELETE_SUCCEEDED 5140 UNPAIRING 5141 UNPAIR_FAILED 5142 } 5143 5144 enum ApplicationTemplateAccessLevel { 5145 GLOBAL 5146 } 5147 5148 enum ArtifactType { 5149 SUBSCRIPTION 5150 SERVICE_INSTANCE 5151 ENVIRONMENT_INSTANCE 5152 } 5153 5154 enum BundleInstanceAuthSetStatusConditionInput { 5155 SUCCEEDED 5156 FAILED 5157 } 5158 5159 enum BundleInstanceAuthStatusCondition { 5160 """ 5161 When creating, before Application sets the credentials 5162 """ 5163 PENDING 5164 SUCCEEDED 5165 FAILED 5166 """ 5167 When Runtime requests deletion and Application has to revoke the credentials 5168 """ 5169 UNUSED 5170 } 5171 5172 enum ConstraintScope { 5173 GLOBAL 5174 FORMATION_TYPE 5175 } 5176 5177 enum ConstraintType { 5178 PRE 5179 POST 5180 UI 5181 } 5182 5183 enum DocumentFormat { 5184 MARKDOWN 5185 } 5186 5187 enum EventSpecType { 5188 ASYNC_API 5189 } 5190 5191 enum EventType { 5192 NEW_APPLICATION 5193 NEW_SINGLE_TENANT 5194 NEW_MULTIPLE_TENANTS 5195 } 5196 5197 enum FetchMode { 5198 SINGLE 5199 BUNDLE 5200 INDEX 5201 } 5202 5203 enum FetchRequestStatusCondition { 5204 INITIAL 5205 SUCCEEDED 5206 FAILED 5207 } 5208 5209 enum FormationAssignmentType { 5210 APPLICATION 5211 RUNTIME 5212 RUNTIME_CONTEXT 5213 } 5214 5215 enum FormationObjectType { 5216 APPLICATION 5217 TENANT 5218 RUNTIME 5219 RUNTIME_CONTEXT 5220 } 5221 5222 enum FormationStatusCondition { 5223 IN_PROGRESS 5224 ERROR 5225 READY 5226 } 5227 5228 enum HealthCheckStatusCondition { 5229 SUCCEEDED 5230 FAILED 5231 } 5232 5233 enum HealthCheckType { 5234 MANAGEMENT_PLANE_APPLICATION_HEALTHCHECK 5235 } 5236 5237 enum OneTimeTokenType { 5238 Runtime 5239 Application 5240 } 5241 5242 enum OperationMode { 5243 SYNC 5244 ASYNC 5245 } 5246 5247 enum OperationType { 5248 CREATE 5249 UPDATE 5250 DELETE 5251 } 5252 5253 enum ResourceType { 5254 APPLICATION 5255 RUNTIME 5256 RUNTIME_CONTEXT 5257 TENANT 5258 FORMATION 5259 } 5260 5261 enum RuntimeStatusCondition { 5262 INITIAL 5263 PROVISIONING 5264 CONNECTED 5265 FAILED 5266 } 5267 5268 enum SpecFormat { 5269 YAML 5270 JSON 5271 XML 5272 } 5273 5274 enum SystemAuthReferenceType { 5275 APPLICATION 5276 RUNTIME 5277 INTEGRATION_SYSTEM 5278 } 5279 5280 enum TargetOperation { 5281 ASSIGN_FORMATION 5282 UNASSIGN_FORMATION 5283 CREATE_FORMATION 5284 DELETE_FORMATION 5285 GENERATE_FORMATION_ASSIGNMENT_NOTIFICATION 5286 GENERATE_FORMATION_NOTIFICATION 5287 LOAD_FORMATIONS 5288 SELECT_SYSTEMS_FOR_FORMATION 5289 SEND_NOTIFICATION 5290 NOTIFICATION_STATUS_RETURNED 5291 } 5292 5293 enum TenantAccessObjectType { 5294 APPLICATION 5295 RUNTIME 5296 RUNTIME_CONTEXT 5297 } 5298 5299 enum ViewerType { 5300 RUNTIME 5301 APPLICATION 5302 INTEGRATION_SYSTEM 5303 USER 5304 } 5305 5306 enum WebhookMode { 5307 SYNC 5308 ASYNC 5309 ASYNC_CALLBACK 5310 } 5311 5312 enum WebhookType { 5313 CONFIGURATION_CHANGED 5314 APPLICATION_TENANT_MAPPING 5315 REGISTER_APPLICATION 5316 UNREGISTER_APPLICATION 5317 OPEN_RESOURCE_DISCOVERY 5318 FORMATION_LIFECYCLE 5319 } 5320 5321 interface OneTimeToken { 5322 token: String! 5323 connectorURL: String! 5324 used: Boolean! 5325 expiresAt: Timestamp! 5326 createdAt: Timestamp 5327 usedAt: Timestamp 5328 raw: String 5329 rawEncoded: String 5330 type: OneTimeTokenType 5331 } 5332 5333 """ 5334 Every query that implements pagination returns object that implements Pageable interface. 5335 To specify page details, query specify two parameters: ` + "`" + `first` + "`" + ` and ` + "`" + `after` + "`" + `. 5336 ` + "`" + `first` + "`" + ` specify page size, ` + "`" + `after` + "`" + ` is a cursor for the next page. When requesting first page, set ` + "`" + `after` + "`" + ` to empty value. 5337 For requesting next page, set ` + "`" + `after` + "`" + ` to ` + "`" + `pageInfo.endCursor` + "`" + ` returned from previous query. 5338 """ 5339 interface Pageable { 5340 pageInfo: PageInfo! 5341 totalCount: Int! 5342 } 5343 5344 interface SystemAuth { 5345 id: ID! 5346 auth: Auth 5347 type: SystemAuthReferenceType 5348 tenantId: String 5349 referenceObjectId: ID 5350 } 5351 5352 union CredentialData = BasicCredentialData | OAuthCredentialData | CertificateOAuthCredentialData 5353 5354 input APIDefinitionInput { 5355 """ 5356 **Validation:** ASCII printable characters, max=100 5357 """ 5358 name: String! 5359 """ 5360 **Validation:** max=2000 5361 """ 5362 description: String 5363 """ 5364 **Validation:** valid URL, max=256 5365 """ 5366 targetURL: String! 5367 """ 5368 **Validation:** max=100 5369 """ 5370 group: String 5371 spec: APISpecInput 5372 version: VersionInput 5373 } 5374 5375 """ 5376 **Validation:** 5377 - for ODATA type, accepted formats are XML and JSON, for OPEN_API accepted formats are YAML and JSON 5378 - data or fetchRequest required 5379 """ 5380 input APISpecInput { 5381 data: CLOB 5382 type: APISpecType! 5383 format: SpecFormat! 5384 fetchRequest: FetchRequestInput 5385 } 5386 5387 """ 5388 **Validation:** provided placeholders' names are unique 5389 """ 5390 input ApplicationFromTemplateInput { 5391 id: ID 5392 """ 5393 **Validation:** ASCII printable characters, max=100 5394 """ 5395 templateName: String! 5396 """ 5397 **Validation:** if provided, placeholdersPayload not required 5398 """ 5399 values: [TemplateValueInput] 5400 """ 5401 **Validation:** if provided, values not required 5402 """ 5403 placeholdersPayload: String 5404 labels: Labels 5405 } 5406 5407 input ApplicationJSONInput { 5408 """ 5409 **Validation:** Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and . 5410 """ 5411 name: String! 5412 """ 5413 **Validation:** max=256 5414 """ 5415 providerName: String 5416 """ 5417 **Validation:** max=2000 5418 """ 5419 description: String 5420 """ 5421 **Validation:** label key is alphanumeric with underscore 5422 """ 5423 labels: Labels 5424 webhooks: [WebhookInput!] 5425 """ 5426 **Validation:** valid URL, max=256 5427 """ 5428 healthCheckURL: String 5429 """ 5430 **Validation:** valid URL, max=256 5431 """ 5432 baseUrl: String 5433 applicationNamespace: String 5434 integrationSystemID: ID 5435 statusCondition: ApplicationStatusCondition 5436 localTenantID: String 5437 bundles: [BundleCreateInput!] 5438 } 5439 5440 input ApplicationRegisterInput { 5441 """ 5442 **Validation:** Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and . 5443 """ 5444 name: String! 5445 """ 5446 **Validation:** max=256 5447 """ 5448 providerName: String 5449 """ 5450 **Validation:** max=2000 5451 """ 5452 description: String 5453 """ 5454 **Validation:** label key is alphanumeric with underscore 5455 """ 5456 labels: Labels 5457 webhooks: [WebhookInput!] 5458 """ 5459 **Validation:** valid URL, max=256 5460 """ 5461 healthCheckURL: String 5462 """ 5463 **Validation:** valid URL, max=256 5464 """ 5465 baseUrl: String 5466 applicationNamespace: String 5467 integrationSystemID: ID 5468 statusCondition: ApplicationStatusCondition 5469 localTenantID: String @hasScopes(path: "graphql.input.application.localTenantID") 5470 bundles: [BundleCreateInput!] 5471 } 5472 5473 """ 5474 **Validation:** provided placeholders' names are unique and used in applicationInput 5475 """ 5476 input ApplicationTemplateInput { 5477 """ 5478 **Validation:** ASCII printable characters, max=100 5479 """ 5480 name: String! 5481 """ 5482 **Validation:** max=2000 5483 """ 5484 webhooks: [WebhookInput!] 5485 description: String 5486 """ 5487 **Validation:** label key is alphanumeric with underscore 5488 """ 5489 labels: Labels 5490 applicationInput: ApplicationJSONInput! 5491 placeholders: [PlaceholderDefinitionInput!] 5492 accessLevel: ApplicationTemplateAccessLevel! 5493 applicationNamespace: String 5494 } 5495 5496 input ApplicationTemplateUpdateInput { 5497 """ 5498 **Validation:** ASCII printable characters, max=100 5499 """ 5500 name: String! 5501 """ 5502 **Validation:** max=2000 5503 """ 5504 webhooks: [WebhookInput!] 5505 description: String 5506 applicationInput: ApplicationJSONInput! 5507 placeholders: [PlaceholderDefinitionInput!] 5508 labels: Labels @hasScopes(path: "graphql.input.application_template.labels") 5509 accessLevel: ApplicationTemplateAccessLevel! 5510 applicationNamespace: String 5511 } 5512 5513 input ApplicationUpdateInput { 5514 """ 5515 **Validation:** max=256 5516 """ 5517 providerName: String 5518 """ 5519 **Validation:** max=2000 5520 """ 5521 description: String 5522 """ 5523 **Validation:** valid URL, max=256 5524 """ 5525 healthCheckURL: String 5526 baseUrl: String 5527 applicationNamespace: String 5528 integrationSystemID: ID 5529 statusCondition: ApplicationStatusCondition 5530 localTenantID: String @hasScopes(path: "graphql.input.application.localTenantID") 5531 } 5532 5533 input AuthInput { 5534 credential: CredentialDataInput 5535 accessStrategy: String 5536 """ 5537 **Validation:** if provided, headers name and value required 5538 """ 5539 additionalHeaders: HttpHeaders @deprecated(reason: "Use ` + "`" + `additionalHeadersSerialized` + "`" + `.") 5540 additionalHeadersSerialized: HttpHeadersSerialized 5541 """ 5542 **Validation:** if provided, query parameters name and value required 5543 """ 5544 additionalQueryParams: QueryParams @deprecated(reason: "Use ` + "`" + `additionalHeadersSerialized` + "`" + `.") 5545 additionalQueryParamsSerialized: QueryParamsSerialized 5546 requestAuth: CredentialRequestAuthInput 5547 certCommonName: String 5548 oneTimeToken: OneTimeTokenInput 5549 } 5550 5551 input BasicCredentialDataInput { 5552 username: String! 5553 password: String! 5554 } 5555 5556 input BundleCreateInput { 5557 """ 5558 **Validation:** ASCII printable characters, max=100 5559 """ 5560 name: String! 5561 """ 5562 **Validation:** max=2000 5563 """ 5564 description: String 5565 instanceAuthRequestInputSchema: JSONSchema 5566 defaultInstanceAuth: AuthInput 5567 apiDefinitions: [APIDefinitionInput!] 5568 eventDefinitions: [EventDefinitionInput!] 5569 documents: [DocumentInput!] 5570 correlationIDs: [String!] 5571 } 5572 5573 input BundleInstanceAuthCreateInput { 5574 context: JSON 5575 inputParams: JSON 5576 auth: AuthInput! 5577 runtimeID: ID 5578 runtimeContextID: ID 5579 } 5580 5581 input BundleInstanceAuthRequestInput { 5582 id: ID 5583 """ 5584 Context of BundleInstanceAuth - such as Runtime ID, namespace, etc. 5585 """ 5586 context: JSON 5587 """ 5588 **Validation:** JSON validated against bundle.instanceAuthRequestInputSchema 5589 """ 5590 inputParams: JSON 5591 } 5592 5593 input BundleInstanceAuthSetInput { 5594 """ 5595 **Validation:** If not provided, the status has to be set. If provided, the status condition must be "SUCCEEDED". 5596 """ 5597 auth: AuthInput 5598 """ 5599 **Validation:** Optional if the auth is provided. 5600 If the status condition is "FAILED", auth must be empty. 5601 """ 5602 status: BundleInstanceAuthStatusInput 5603 } 5604 5605 input BundleInstanceAuthStatusInput { 5606 condition: BundleInstanceAuthSetStatusConditionInput! = SUCCEEDED 5607 """ 5608 **Validation:** required, if condition is FAILED 5609 """ 5610 message: String! 5611 """ 5612 Example reasons: 5613 - PendingNotification 5614 - NotificationSent 5615 - CredentialsProvided 5616 - CredentialsNotProvided 5617 - PendingDeletion 5618 5619 **Validation**: required, if condition is FAILED 5620 """ 5621 reason: String! 5622 } 5623 5624 input BundleInstanceAuthUpdateInput { 5625 context: JSON 5626 inputParams: JSON 5627 auth: AuthInput 5628 } 5629 5630 input BundleUpdateInput { 5631 """ 5632 **Validation:** ASCII printable characters, max=100 5633 """ 5634 name: String! 5635 """ 5636 **Validation:** max=2000 5637 """ 5638 description: String 5639 instanceAuthRequestInputSchema: JSONSchema 5640 """ 5641 While updating defaultInstanceAuth, existing BundleInstanceAuths are NOT updated. 5642 """ 5643 defaultInstanceAuth: AuthInput 5644 } 5645 5646 input BusinessTenantMappingInput { 5647 name: String! 5648 externalTenant: String! 5649 parent: String 5650 subdomain: String 5651 region: String 5652 type: String! 5653 provider: String! 5654 licenseType: String 5655 } 5656 5657 input CSRFTokenCredentialRequestAuthInput { 5658 """ 5659 **Validation:** valid URL 5660 """ 5661 tokenEndpointURL: String! 5662 credential: CredentialDataInput 5663 """ 5664 **Validation:** if provided, headers name and value required 5665 """ 5666 additionalHeaders: HttpHeaders @deprecated(reason: "Use ` + "`" + `additionalHeadersSerialized` + "`" + `.") 5667 additionalHeadersSerialized: HttpHeadersSerialized 5668 """ 5669 **Validation:** if provided, query parameters name and value required 5670 """ 5671 additionalQueryParams: QueryParams @deprecated(reason: "Use ` + "`" + `additionalQueryParamsSerialized` + "`" + `.") 5672 additionalQueryParamsSerialized: QueryParamsSerialized 5673 } 5674 5675 input CertificateOAuthCredentialDataInput { 5676 clientId: ID! 5677 certificate: String! 5678 """ 5679 **Validation:** valid URL 5680 """ 5681 url: String! 5682 } 5683 5684 input CertificateSubjectMappingInput { 5685 subject: String! 5686 consumerType: String! 5687 internalConsumerID: String 5688 tenantAccessLevels: [String!]! 5689 } 5690 5691 """ 5692 **Validation:** basic or oauth or certificateOAuth field required 5693 """ 5694 input CredentialDataInput { 5695 basic: BasicCredentialDataInput 5696 oauth: OAuthCredentialDataInput 5697 certificateOAuth: CertificateOAuthCredentialDataInput 5698 } 5699 5700 input CredentialRequestAuthInput { 5701 """ 5702 **Validation:** required 5703 """ 5704 csrf: CSRFTokenCredentialRequestAuthInput 5705 } 5706 5707 input DocumentInput { 5708 """ 5709 **Validation:** max=128 5710 """ 5711 title: String! 5712 """ 5713 **Validation:** max=128 5714 """ 5715 displayName: String! 5716 """ 5717 **Validation:** max=2000 5718 """ 5719 description: String! 5720 format: DocumentFormat! 5721 """ 5722 **Validation:** max=256 5723 """ 5724 kind: String 5725 data: CLOB 5726 fetchRequest: FetchRequestInput 5727 } 5728 5729 input EventDefinitionInput { 5730 """ 5731 **Validation:** ASCII printable characters, max=100 5732 """ 5733 name: String! 5734 """ 5735 **Validation:** max=2000 5736 """ 5737 description: String 5738 spec: EventSpecInput 5739 """ 5740 **Validation:** max=36 5741 """ 5742 group: String 5743 version: VersionInput 5744 } 5745 5746 """ 5747 **Validation:** 5748 - data or fetchRequest required 5749 - for ASYNC_API type, accepted formats are YAML and JSON 5750 """ 5751 input EventSpecInput { 5752 data: CLOB 5753 type: EventSpecType! 5754 format: SpecFormat! 5755 fetchRequest: FetchRequestInput 5756 } 5757 5758 input FetchRequestInput { 5759 """ 5760 **Validation:** valid URL, max=256 5761 """ 5762 url: String! 5763 """ 5764 Currently unsupported, providing it will result in a failure 5765 """ 5766 auth: AuthInput 5767 """ 5768 Currently unsupported, providing it will result in a failure 5769 """ 5770 mode: FetchMode = SINGLE 5771 """ 5772 **Validation:** max=256 5773 Currently unsupported, providing it will result in a failure 5774 """ 5775 filter: String 5776 } 5777 5778 input FormationConstraintInput { 5779 name: String! 5780 constraintType: ConstraintType! 5781 targetOperation: TargetOperation! 5782 operator: String! 5783 resourceType: ResourceType! 5784 resourceSubtype: String! 5785 inputTemplate: String! 5786 constraintScope: ConstraintScope! 5787 } 5788 5789 input FormationConstraintUpdateInput { 5790 inputTemplate: String! 5791 } 5792 5793 input FormationInput { 5794 name: String! 5795 templateName: String 5796 """ 5797 The initial state of the newly created formation. 5798 It is used in specific use-cases by internal components that need to manipulate the formation notification engine's logic and hold the tenant mapping notifications until a certain external event happens. 5799 """ 5800 state: String @hasScopes(path: "graphql.input.formation.state") 5801 } 5802 5803 input FormationTemplateInput { 5804 name: String! 5805 applicationTypes: [String!]! 5806 runtimeTypes: [String!] 5807 runtimeTypeDisplayName: String 5808 runtimeArtifactKind: ArtifactType 5809 webhooks: [WebhookInput!] 5810 leadingProductIDs: [String!] 5811 } 5812 5813 input IntegrationSystemInput { 5814 """ 5815 **Validation:** Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and . 5816 """ 5817 name: String! 5818 """ 5819 **Validation:** max=2000 5820 """ 5821 description: String 5822 } 5823 5824 input LabelDefinitionInput { 5825 """ 5826 **Validation:** max=256, alphanumeric chartacters and underscore 5827 """ 5828 key: String! 5829 schema: JSONSchema 5830 } 5831 5832 input LabelFilter { 5833 """ 5834 Label key. If query for the filter is not provided, returns every object with given label key regardless of its value. 5835 """ 5836 key: String! 5837 """ 5838 Optional SQL/JSON Path expression. If query is not provided, returns every object with given label key regardless of its value. 5839 Currently only a limited subset of expressions is supported. 5840 """ 5841 query: String 5842 } 5843 5844 input LabelInput { 5845 """ 5846 **Validation:** max=256, alphanumeric chartacters and underscore 5847 """ 5848 key: String! 5849 value: Any! 5850 } 5851 5852 input LabelSelectorInput { 5853 key: String! 5854 value: String! 5855 } 5856 5857 input OAuthCredentialDataInput { 5858 clientId: ID! 5859 clientSecret: String! 5860 """ 5861 **Validation:** valid URL 5862 """ 5863 url: String! 5864 } 5865 5866 input OneTimeTokenInput { 5867 token: String! 5868 connectorURL: String 5869 used: Boolean! 5870 expiresAt: Timestamp! 5871 createdAt: Timestamp! 5872 usedAt: Timestamp! 5873 raw: String 5874 rawEncoded: String 5875 type: OneTimeTokenType 5876 } 5877 5878 input PlaceholderDefinitionInput { 5879 """ 5880 **Validation:** Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and . 5881 """ 5882 name: String! 5883 """ 5884 **Validation:** max=2000 5885 """ 5886 description: String 5887 """ 5888 **Validation:** max=2000 5889 """ 5890 jsonPath: String 5891 optional: Boolean = false 5892 } 5893 5894 input RuntimeContextInput { 5895 """ 5896 **Validation:** required max=512, alphanumeric chartacters and underscore 5897 """ 5898 key: String! 5899 value: String! 5900 } 5901 5902 input RuntimeRegisterInput { 5903 """ 5904 **Validation:** Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and . 5905 """ 5906 name: String! 5907 """ 5908 **Validation:** max=2000 5909 """ 5910 description: String 5911 """ 5912 **Validation:** key: required, alphanumeric with underscore 5913 """ 5914 labels: Labels 5915 webhooks: [WebhookInput!] 5916 statusCondition: RuntimeStatusCondition 5917 applicationNamespace: String 5918 } 5919 5920 input RuntimeUpdateInput { 5921 """ 5922 **Validation:** Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and . 5923 """ 5924 name: String! 5925 """ 5926 **Validation:** max=2000 5927 """ 5928 description: String 5929 """ 5930 **Validation:** key: required, alphanumeric with underscore 5931 """ 5932 labels: Labels 5933 statusCondition: RuntimeStatusCondition 5934 applicationNamespace: String 5935 } 5936 5937 input SystemAuthUpdateInput { 5938 auth: AuthInput 5939 } 5940 5941 input TemplateValueInput { 5942 """ 5943 **Validation:** Up to 36 characters long. Cannot start with a digit. The characters allowed in names are: digits (0-9), lower case letters (a-z),-, and . 5944 """ 5945 placeholder: String! 5946 value: String! 5947 } 5948 5949 input TenantAccessInput { 5950 tenantID: ID! 5951 resourceType: TenantAccessObjectType! 5952 resourceID: ID! 5953 owner: Boolean! 5954 } 5955 5956 input VersionInput { 5957 """ 5958 **Validation:** max=256 5959 """ 5960 value: String! 5961 deprecated: Boolean = false 5962 """ 5963 **Validation:** max=256 5964 """ 5965 deprecatedSince: String 5966 forRemoval: Boolean = false 5967 } 5968 5969 input WebhookInput { 5970 type: WebhookType! 5971 """ 5972 **Validation:** valid URL, max=256 5973 """ 5974 url: String 5975 auth: AuthInput 5976 mode: WebhookMode 5977 version: String 5978 correlationIdKey: String 5979 retryInterval: Int 5980 timeout: Int 5981 urlTemplate: String 5982 inputTemplate: String 5983 headerTemplate: String 5984 outputTemplate: String 5985 statusTemplate: String 5986 } 5987 5988 type APIDefinition { 5989 id: ID! 5990 name: String! 5991 description: String 5992 spec: APISpec 5993 targetURL: String! 5994 """ 5995 group allows you to find the same API but in different version 5996 """ 5997 group: String 5998 version: Version 5999 created_at: Timestamp 6000 updated_at: Timestamp 6001 deleted_at: Timestamp 6002 error: String 6003 } 6004 6005 type APIDefinitionPage implements Pageable { 6006 data: [APIDefinition!]! 6007 pageInfo: PageInfo! 6008 totalCount: Int! 6009 } 6010 6011 type APISpec { 6012 """ 6013 when fetch request specified, data will be automatically populated 6014 """ 6015 id: ID! 6016 data: CLOB 6017 format: SpecFormat! 6018 type: APISpecType! 6019 fetchRequest: FetchRequest @sanitize(path: "graphql.field.api_spec.fetch_request") 6020 } 6021 6022 type AppSystemAuth implements SystemAuth { 6023 id: ID! 6024 auth: Auth @sanitize(path: "graphql.field.application.auths") 6025 type: SystemAuthReferenceType 6026 tenantId: String 6027 referenceObjectId: ID 6028 } 6029 6030 type Application { 6031 id: ID! 6032 name: String! 6033 systemNumber: String 6034 localTenantID: String 6035 baseUrl: String 6036 providerName: String 6037 description: String 6038 integrationSystemID: ID 6039 applicationTemplateID: ID 6040 applicationTemplate: ApplicationTemplate @hasScopes(path: "graphql.field.application.application_template") 6041 tenantBusinessType: TenantBusinessType 6042 labels(key: String): Labels 6043 status: ApplicationStatus! 6044 webhooks: [Webhook!] @sanitize(path: "graphql.field.application.webhooks") 6045 healthCheckURL: String 6046 bundles(first: Int = 200, after: PageCursor): BundlePage 6047 bundle(id: ID!): Bundle 6048 auths: [AppSystemAuth!] 6049 eventingConfiguration: ApplicationEventingConfiguration 6050 applicationNamespace: String 6051 createdAt: Timestamp 6052 updatedAt: Timestamp 6053 deletedAt: Timestamp 6054 systemStatus: String 6055 error: String 6056 } 6057 6058 type ApplicationEventingConfiguration { 6059 defaultURL: String! 6060 } 6061 6062 type ApplicationPage implements Pageable { 6063 data: [Application!]! 6064 pageInfo: PageInfo! 6065 totalCount: Int! 6066 } 6067 6068 type ApplicationStatus { 6069 condition: ApplicationStatusCondition! 6070 timestamp: Timestamp! 6071 } 6072 6073 type ApplicationTemplate { 6074 id: ID! 6075 name: String! 6076 description: String 6077 webhooks: [Webhook!] @sanitize(path: "graphql.field.application_template.webhooks") 6078 applicationInput: String! 6079 placeholders: [PlaceholderDefinition!]! 6080 labels(key: String): Labels 6081 accessLevel: ApplicationTemplateAccessLevel! 6082 applicationNamespace: String 6083 } 6084 6085 type ApplicationTemplatePage implements Pageable { 6086 data: [ApplicationTemplate!]! 6087 pageInfo: PageInfo! 6088 totalCount: Int! 6089 } 6090 6091 type Auth { 6092 credential: CredentialData 6093 accessStrategy: String 6094 additionalHeaders: HttpHeaders 6095 additionalHeadersSerialized: HttpHeadersSerialized 6096 additionalQueryParams: QueryParams 6097 additionalQueryParamsSerialized: QueryParamsSerialized 6098 requestAuth: CredentialRequestAuth 6099 oneTimeToken: OneTimeToken 6100 certCommonName: String 6101 } 6102 6103 type AutomaticScenarioAssignment { 6104 scenarioName: String! 6105 selector: Label! 6106 } 6107 6108 type AutomaticScenarioAssignmentPage implements Pageable { 6109 data: [AutomaticScenarioAssignment!]! 6110 pageInfo: PageInfo! 6111 totalCount: Int! 6112 } 6113 6114 type BasicCredentialData { 6115 username: String! 6116 password: String! 6117 } 6118 6119 type Bundle { 6120 id: ID! 6121 name: String! 6122 description: String 6123 instanceAuthRequestInputSchema: JSONSchema 6124 instanceAuth(id: ID!): BundleInstanceAuth @sanitize(path: "graphql.field.bundle.instance_auth") 6125 instanceAuths: [BundleInstanceAuth!] @sanitize(path: "graphql.field.bundle.instance_auths") 6126 """ 6127 When defined, all Auth requests fallback to defaultInstanceAuth. 6128 """ 6129 defaultInstanceAuth: Auth @sanitize(path: "graphql.field.bundle.default_instance_auth") 6130 apiDefinitions(group: String, first: Int = 200, after: PageCursor): APIDefinitionPage 6131 eventDefinitions(group: String, first: Int = 200, after: PageCursor): EventDefinitionPage 6132 documents(first: Int = 200, after: PageCursor): DocumentPage 6133 apiDefinition(id: ID!): APIDefinition 6134 eventDefinition(id: ID!): EventDefinition 6135 correlationIDs: [String!] 6136 document(id: ID!): Document 6137 createdAt: Timestamp 6138 updatedAt: Timestamp 6139 deletedAt: Timestamp 6140 error: String 6141 } 6142 6143 type BundleInstanceAuth { 6144 id: ID! 6145 """ 6146 Context of BundleInstanceAuth - such as Runtime ID, namespace 6147 """ 6148 context: JSON 6149 """ 6150 User input while requesting Bundle Instance Auth 6151 """ 6152 inputParams: JSON 6153 """ 6154 It may be empty if status is PENDING. 6155 Populated with ` + "`" + `bundle.defaultAuth` + "`" + ` value if ` + "`" + `bundle.defaultAuth` + "`" + ` is defined. If not, Compass notifies Application/Integration System about the Auth request. 6156 """ 6157 auth: Auth 6158 status: BundleInstanceAuthStatus! 6159 runtimeID: ID 6160 runtimeContextID: ID 6161 } 6162 6163 type BundleInstanceAuthStatus { 6164 condition: BundleInstanceAuthStatusCondition! 6165 timestamp: Timestamp! 6166 message: String! 6167 """ 6168 Possible reasons: 6169 - PendingNotification 6170 - NotificationSent 6171 - CredentialsProvided 6172 - CredentialsNotProvided 6173 - PendingDeletion 6174 """ 6175 reason: String! 6176 } 6177 6178 type BundlePage implements Pageable { 6179 data: [Bundle!]! 6180 pageInfo: PageInfo! 6181 totalCount: Int! 6182 } 6183 6184 type CSRFTokenCredentialRequestAuth { 6185 tokenEndpointURL: String! 6186 credential: CredentialData 6187 additionalHeaders: HttpHeaders 6188 additionalHeadersSerialized: HttpHeadersSerialized 6189 additionalQueryParams: QueryParams 6190 additionalQueryParamsSerialized: QueryParamsSerialized 6191 } 6192 6193 type CertificateOAuthCredentialData { 6194 clientId: ID! 6195 certificate: String! 6196 url: String! 6197 } 6198 6199 type CertificateSubjectMapping { 6200 id: ID! 6201 subject: String! 6202 consumerType: String! 6203 internalConsumerID: String 6204 tenantAccessLevels: [String!]! 6205 } 6206 6207 type CertificateSubjectMappingPage implements Pageable { 6208 data: [CertificateSubjectMapping!]! 6209 pageInfo: PageInfo! 6210 totalCount: Int! 6211 } 6212 6213 type ConstraintReference { 6214 constraintID: ID! 6215 formationTemplateID: ID! 6216 } 6217 6218 type CredentialRequestAuth { 6219 csrf: CSRFTokenCredentialRequestAuth 6220 } 6221 6222 type Document { 6223 id: ID! 6224 title: String! 6225 displayName: String! 6226 description: String! 6227 format: DocumentFormat! 6228 """ 6229 for example Service Class, API etc 6230 """ 6231 kind: String 6232 data: CLOB 6233 fetchRequest: FetchRequest @sanitize(path: "graphql.field.document.fetch_request") 6234 createdAt: Timestamp 6235 updatedAt: Timestamp 6236 deletedAt: Timestamp 6237 error: String 6238 } 6239 6240 type DocumentPage implements Pageable { 6241 data: [Document!]! 6242 pageInfo: PageInfo! 6243 totalCount: Int! 6244 } 6245 6246 type EventDefinition { 6247 id: ID! 6248 name: String! 6249 description: String 6250 """ 6251 group allows you to find the same API but in different version 6252 """ 6253 group: String 6254 spec: EventSpec 6255 version: Version 6256 createdAt: Timestamp 6257 updatedAt: Timestamp 6258 deletedAt: Timestamp 6259 error: String 6260 } 6261 6262 type EventDefinitionPage implements Pageable { 6263 data: [EventDefinition!]! 6264 pageInfo: PageInfo! 6265 totalCount: Int! 6266 } 6267 6268 type EventSpec { 6269 id: ID! 6270 data: CLOB 6271 type: EventSpecType! 6272 format: SpecFormat! 6273 fetchRequest: FetchRequest @sanitize(path: "graphql.field.event_spec.fetch_request") 6274 } 6275 6276 """ 6277 Compass performs fetch to validate if request is correct and stores a copy 6278 """ 6279 type FetchRequest { 6280 url: String! 6281 auth: Auth @sanitize(path: "graphql.field.fetch_request.auth") 6282 mode: FetchMode! 6283 filter: String 6284 status: FetchRequestStatus! 6285 } 6286 6287 type FetchRequestStatus { 6288 condition: FetchRequestStatusCondition! 6289 message: String 6290 timestamp: Timestamp! 6291 } 6292 6293 type Formation { 6294 id: ID! 6295 name: String! 6296 formationTemplateId: ID! 6297 """ 6298 Formation lifecycle notifications state 6299 """ 6300 state: String! 6301 """ 6302 Formation lifecycle notifications error 6303 """ 6304 error: FormationError 6305 formationAssignment(id: ID!): FormationAssignment 6306 formationAssignments(first: Int = 200, after: PageCursor): FormationAssignmentPage 6307 """ 6308 Aggregated formation status 6309 """ 6310 status: FormationStatus! 6311 } 6312 6313 type FormationAssignment { 6314 id: ID! 6315 source: ID! 6316 sourceType: FormationAssignmentType! 6317 target: ID! 6318 targetType: FormationAssignmentType! 6319 state: String! 6320 value: String 6321 } 6322 6323 type FormationAssignmentPage implements Pageable { 6324 data: [FormationAssignment!]! 6325 pageInfo: PageInfo! 6326 totalCount: Int! 6327 } 6328 6329 type FormationConstraint { 6330 id: ID! 6331 name: String! 6332 constraintType: String! 6333 targetOperation: String! 6334 operator: String! 6335 resourceType: String! 6336 resourceSubtype: String! 6337 inputTemplate: String! 6338 constraintScope: String! 6339 } 6340 6341 type FormationError { 6342 message: String! 6343 errorCode: Int! 6344 } 6345 6346 type FormationPage implements Pageable { 6347 data: [Formation!]! 6348 pageInfo: PageInfo! 6349 totalCount: Int! 6350 } 6351 6352 type FormationStatus { 6353 condition: FormationStatusCondition! 6354 errors: [FormationStatusError!] 6355 } 6356 6357 type FormationStatusError { 6358 assignmentID: ID 6359 message: String! 6360 errorCode: Int! 6361 } 6362 6363 type FormationTemplate { 6364 id: ID! 6365 name: String! 6366 applicationTypes: [String!]! 6367 runtimeTypes: [String!] 6368 runtimeTypeDisplayName: String 6369 runtimeArtifactKind: ArtifactType 6370 webhooks: [Webhook!] @sanitize(path: "graphql.field.formation_template.webhooks") 6371 leadingProductIDs: [String!] 6372 formationConstraints: [FormationConstraint!] 6373 } 6374 6375 type FormationTemplatePage implements Pageable { 6376 data: [FormationTemplate!]! 6377 pageInfo: PageInfo! 6378 totalCount: Int! 6379 } 6380 6381 type HealthCheck { 6382 type: HealthCheckType! 6383 condition: HealthCheckStatusCondition! 6384 origin: ID 6385 message: String 6386 timestamp: Timestamp! 6387 } 6388 6389 type HealthCheckPage implements Pageable { 6390 data: [HealthCheck!]! 6391 pageInfo: PageInfo! 6392 totalCount: Int! 6393 } 6394 6395 type IntSysSystemAuth implements SystemAuth { 6396 id: ID! 6397 auth: Auth @sanitize(path: "graphql.field.integration_system.auths") 6398 type: SystemAuthReferenceType 6399 tenantId: String 6400 referenceObjectId: ID 6401 } 6402 6403 type IntegrationSystem { 6404 id: ID! 6405 name: String! 6406 description: String 6407 auths: [IntSysSystemAuth!] 6408 } 6409 6410 type IntegrationSystemPage implements Pageable { 6411 data: [IntegrationSystem!]! 6412 pageInfo: PageInfo! 6413 totalCount: Int! 6414 } 6415 6416 type Label { 6417 key: String! 6418 value: Any! 6419 } 6420 6421 type LabelDefinition { 6422 key: String! 6423 schema: JSONSchema 6424 } 6425 6426 type OAuthCredentialData { 6427 clientId: ID! 6428 clientSecret: String! 6429 """ 6430 URL for getting access token 6431 """ 6432 url: String! 6433 } 6434 6435 type OneTimeTokenForApplication implements OneTimeToken { 6436 token: String! 6437 connectorURL: String! 6438 legacyConnectorURL: String! 6439 used: Boolean! 6440 expiresAt: Timestamp! 6441 createdAt: Timestamp 6442 usedAt: Timestamp 6443 raw: String 6444 rawEncoded: String 6445 type: OneTimeTokenType 6446 scenarioGroups: [String] 6447 } 6448 6449 type OneTimeTokenForRuntime implements OneTimeToken { 6450 token: String! 6451 connectorURL: String! 6452 used: Boolean! 6453 expiresAt: Timestamp! 6454 createdAt: Timestamp 6455 usedAt: Timestamp 6456 raw: String 6457 rawEncoded: String 6458 type: OneTimeTokenType 6459 } 6460 6461 type PageInfo { 6462 startCursor: PageCursor! 6463 endCursor: PageCursor! 6464 hasNextPage: Boolean! 6465 } 6466 6467 type PlaceholderDefinition { 6468 name: String! 6469 description: String 6470 jsonPath: String 6471 optional: Boolean 6472 } 6473 6474 type Runtime { 6475 id: ID! 6476 metadata: RuntimeMetadata! 6477 name: String! 6478 description: String 6479 labels(key: String): Labels 6480 webhooks: [Webhook!] @sanitize(path: "graphql.field.runtime.webhooks") 6481 status: RuntimeStatus! 6482 """ 6483 Returns array of authentication details for Runtime. For now at most one element in array will be returned. 6484 """ 6485 auths: [RuntimeSystemAuth!] 6486 eventingConfiguration: RuntimeEventingConfiguration 6487 runtimeContext(id: ID!): RuntimeContext 6488 runtimeContexts(first: Int = 200, after: PageCursor): RuntimeContextPage 6489 applicationNamespace: String 6490 } 6491 6492 type RuntimeContext { 6493 id: ID! 6494 key: String! 6495 value: String! 6496 labels(key: String): Labels 6497 } 6498 6499 type RuntimeContextPage implements Pageable { 6500 data: [RuntimeContext!]! 6501 pageInfo: PageInfo! 6502 totalCount: Int! 6503 } 6504 6505 type RuntimeEventingConfiguration { 6506 defaultURL: String! 6507 } 6508 6509 type RuntimeMetadata { 6510 creationTimestamp: Timestamp! 6511 } 6512 6513 type RuntimePage implements Pageable { 6514 data: [Runtime!]! 6515 pageInfo: PageInfo! 6516 totalCount: Int! 6517 } 6518 6519 type RuntimeStatus { 6520 condition: RuntimeStatusCondition! 6521 timestamp: Timestamp! 6522 } 6523 6524 type RuntimeSystemAuth implements SystemAuth { 6525 id: ID! 6526 auth: Auth @sanitize(path: "graphql.field.runtime.auths") 6527 type: SystemAuthReferenceType 6528 tenantId: String 6529 referenceObjectId: ID 6530 } 6531 6532 type Tenant { 6533 id: ID! 6534 internalID: ID! 6535 name: String 6536 type: String 6537 parentID: ID 6538 initialized: Boolean 6539 labels(key: String): Labels 6540 provider: String! 6541 } 6542 6543 type TenantAccess { 6544 tenantID: ID! 6545 resourceType: TenantAccessObjectType! 6546 resourceID: ID! 6547 owner: Boolean! 6548 } 6549 6550 type TenantBusinessType { 6551 id: ID! 6552 code: String! 6553 name: String! 6554 } 6555 6556 type TenantPage implements Pageable { 6557 data: [Tenant!]! 6558 pageInfo: PageInfo! 6559 totalCount: Int! 6560 } 6561 6562 type Version { 6563 """ 6564 for example 4.6 6565 """ 6566 value: String! 6567 deprecated: Boolean 6568 """ 6569 for example 4.5 6570 """ 6571 deprecatedSince: String 6572 """ 6573 if true, will be removed in the next version 6574 """ 6575 forRemoval: Boolean 6576 } 6577 6578 type Viewer { 6579 id: ID! 6580 type: ViewerType! 6581 } 6582 6583 type Webhook { 6584 id: ID! 6585 applicationID: ID 6586 applicationTemplateID: ID 6587 runtimeID: ID 6588 integrationSystemID: ID 6589 formationTemplateID: ID 6590 type: WebhookType! 6591 mode: WebhookMode 6592 correlationIdKey: String 6593 retryInterval: Int 6594 timeout: Int 6595 url: String 6596 auth: Auth @sanitize(path: "graphql.field.webhooks.auth") 6597 urlTemplate: String 6598 inputTemplate: String 6599 headerTemplate: String 6600 outputTemplate: String 6601 statusTemplate: String 6602 createdAt: Timestamp 6603 } 6604 6605 type Query { 6606 apisForApplication(appID: ID!, first: Int = 200, after: PageCursor): APIDefinitionPage @hasScopes(path: "graphql.query.apisForApplication") 6607 eventsForApplication(appID: ID!, first: Int = 200, after: PageCursor): EventDefinitionPage @hasScopes(path: "graphql.query.eventsForApplication") 6608 """ 6609 Maximum ` + "`" + `first` + "`" + ` parameter value is 10 6610 6611 **Examples** 6612 - [query applications with label filter](examples/query-applications/query-applications-with-label-filter.graphql) 6613 - [query applications](examples/query-applications/query-applications.graphql) 6614 """ 6615 applications(filter: [LabelFilter!], first: Int = 200, after: PageCursor): ApplicationPage! @hasScopes(path: "graphql.query.applications") 6616 """ 6617 **Examples** 6618 - [query application](examples/query-application/query-application.graphql) 6619 """ 6620 application(id: ID!): Application @hasScenario(applicationProvider: "GetApplicationID", idField: "id") @hasScopes(path: "graphql.query.application") 6621 applicationBySystemNumber(systemNumber: String!): Application @hasScopes(path: "graphql.query.applicationBySystemNumber") 6622 """ 6623 Maximum ` + "`" + `first` + "`" + ` parameter value is 100 6624 6625 **Examples** 6626 - [query applications for runtime](examples/query-applications-for-runtime/query-applications-for-runtime.graphql) 6627 """ 6628 applicationsForRuntime(runtimeID: ID!, first: Int = 200, after: PageCursor): ApplicationPage! @hasScopes(path: "graphql.query.applicationsForRuntime") 6629 """ 6630 Maximum ` + "`" + `first` + "`" + ` parameter value is 100 6631 6632 **Examples** 6633 - [query application templates](examples/query-application-templates/query-application-templates.graphql) 6634 """ 6635 applicationTemplates(filter: [LabelFilter!], first: Int = 200, after: PageCursor): ApplicationTemplatePage! @hasScopes(path: "graphql.query.applicationTemplates") 6636 """ 6637 **Examples** 6638 - [query application template](examples/query-application-template/query-application-template.graphql) 6639 """ 6640 applicationTemplate(id: ID!): ApplicationTemplate @hasScopes(path: "graphql.query.applicationTemplate") 6641 """ 6642 Maximum ` + "`" + `first` + "`" + ` parameter value is 100 6643 6644 **Examples** 6645 - [query runtimes with label filter](examples/query-runtimes/query-runtimes-with-label-filter.graphql) 6646 - [query runtimes with pagination](examples/query-runtimes/query-runtimes-with-pagination.graphql) 6647 - [query runtimes](examples/query-runtimes/query-runtimes.graphql) 6648 """ 6649 runtimes(filter: [LabelFilter!], first: Int = 200, after: PageCursor): RuntimePage! @hasScopes(path: "graphql.query.runtimes") 6650 """ 6651 **Examples** 6652 - [query runtime](examples/query-runtime/query-runtime.graphql) 6653 """ 6654 runtime(id: ID!): Runtime @hasScopes(path: "graphql.query.runtime") 6655 runtimeByTokenIssuer(issuer: String!): Runtime 6656 """ 6657 **Examples** 6658 - [query label definitions](examples/query-label-definitions/query-label-definitions.graphql) 6659 """ 6660 labelDefinitions: [LabelDefinition!]! @hasScopes(path: "graphql.query.labelDefinitions") 6661 labelDefinition(key: String!): LabelDefinition @hasScopes(path: "graphql.query.labelDefinition") 6662 bundleByInstanceAuth(authID: ID!): Bundle @hasScopes(path: "graphql.query.bundleByInstanceAuth") 6663 bundleInstanceAuth(id: ID!): BundleInstanceAuth @hasScopes(path: "graphql.query.bundleInstanceAuth") 6664 healthChecks(types: [HealthCheckType!], origin: ID, first: Int = 200, after: PageCursor): HealthCheckPage! @hasScopes(path: "graphql.query.healthChecks") 6665 """ 6666 Maximum ` + "`" + `first` + "`" + ` parameter value is 100 6667 6668 **Examples** 6669 - [query integration systems](examples/query-integration-systems/query-integration-systems.graphql) 6670 """ 6671 integrationSystems(first: Int = 200, after: PageCursor): IntegrationSystemPage! @hasScopes(path: "graphql.query.integrationSystems") 6672 """ 6673 **Examples** 6674 - [query integration system](examples/query-integration-system/query-integration-system.graphql) 6675 """ 6676 integrationSystem(id: ID!): IntegrationSystem @hasScopes(path: "graphql.query.integrationSystem") 6677 viewer: Viewer! @hasScopes(path: "graphql.query.viewer") 6678 """ 6679 **Examples** 6680 - [query tenants](examples/query-tenants/query-tenants.graphql) 6681 """ 6682 tenants(first: Int = 500, after: PageCursor, searchTerm: String): TenantPage! @hasScopes(path: "graphql.query.tenants") 6683 tenantByExternalID(id: ID!): Tenant @hasScopes(path: "graphql.query.tenants") 6684 tenantByInternalID(id: ID!): Tenant @hasScopes(path: "graphql.query.tenantByInternalID") 6685 tenantByLowestOwnerForResource(id: ID!, resource: String!): String! @hasScopes(path: "graphql.query.tenantByLowestOwnerForResource") 6686 """ 6687 **Examples** 6688 - [query automatic scenario assignment for scenario](examples/query-automatic-scenario-assignment-for-scenario/query-automatic-scenario-assignment-for-scenario.graphql) 6689 """ 6690 automaticScenarioAssignmentForScenario(scenarioName: String!): AutomaticScenarioAssignment @hasScopes(path: "graphql.query.automaticScenarioAssignmentForScenario") 6691 """ 6692 **Examples** 6693 - [query automatic scenario assignments for selector](examples/query-automatic-scenario-assignments-for-selector/query-automatic-scenario-assignments-for-selector.graphql) 6694 """ 6695 automaticScenarioAssignmentsForSelector(selector: LabelSelectorInput! @validate): [AutomaticScenarioAssignment!]! @hasScopes(path: "graphql.query.automaticScenarioAssignmentsForSelector") 6696 """ 6697 **Examples** 6698 - [query automatic scenario assignments](examples/query-automatic-scenario-assignments/query-automatic-scenario-assignments.graphql) 6699 """ 6700 automaticScenarioAssignments(first: Int = 200, after: PageCursor): AutomaticScenarioAssignmentPage @hasScopes(path: "graphql.query.automaticScenarioAssignments") 6701 systemAuth(id: ID!): SystemAuth @hasScopes(path: "graphql.query.systemAuth") 6702 systemAuthByToken(token: String!): SystemAuth @hasScopes(path: "graphql.query.systemAuthByToken") 6703 """ 6704 **Examples** 6705 - [query formation](examples/query-formation/query-formation.graphql) 6706 """ 6707 formation(id: ID!): Formation @hasScopes(path: "graphql.query.formation") 6708 """ 6709 **Examples** 6710 - [query formation by name](examples/query-formation-by-name/query-formation-by-name.graphql) 6711 """ 6712 formationByName(name: String!): Formation @hasScopes(path: "graphql.query.formationByName") 6713 """ 6714 **Examples** 6715 - [query formations](examples/query-formations/query-formations.graphql) 6716 """ 6717 formations(first: Int = 200, after: PageCursor): FormationPage! @hasScopes(path: "graphql.query.formations") 6718 formationConstraints: [FormationConstraint!]! @hasScopes(path: "graphql.query.formationConstraints") 6719 """ 6720 **Examples** 6721 - [query formation constraint](examples/query-formation-constraint/query-formation-constraint.graphql) 6722 """ 6723 formationConstraint(id: ID!): FormationConstraint! @hasScopes(path: "graphql.query.formationConstraint") 6724 formationConstraintsByFormationType(formationTemplateID: ID!): [FormationConstraint!]! @hasScopes(path: "graphql.query.formationConstraints") 6725 """ 6726 **Examples** 6727 - [query formation template](examples/query-formation-template/query-formation-template.graphql) 6728 """ 6729 formationTemplate(id: ID!): FormationTemplate @hasScopes(path: "graphql.query.formationTemplate") 6730 """ 6731 **Examples** 6732 - [query formation templates](examples/query-formation-templates/query-formation-templates.graphql) 6733 """ 6734 formationTemplates(first: Int = 200, after: PageCursor): FormationTemplatePage! @hasScopes(path: "graphql.query.formationTemplates") 6735 """ 6736 **Examples** 6737 - [query certificate subject mapping](examples/query-certificate-subject-mapping/query-certificate-subject-mapping.graphql) 6738 """ 6739 certificateSubjectMapping(id: ID!): CertificateSubjectMapping! @hasScopes(path: "graphql.query.certificateSubjectMapping") 6740 """ 6741 **Examples** 6742 - [query certificate subject mappings](examples/query-certificate-subject-mappings/query-certificate-subject-mappings.graphql) 6743 """ 6744 certificateSubjectMappings(first: Int = 300, after: PageCursor): CertificateSubjectMappingPage! @hasScopes(path: "graphql.query.certificateSubjectMappings") 6745 } 6746 6747 type Mutation { 6748 """ 6749 **Examples** 6750 - [register application with bundles](examples/register-application/register-application-with-bundles.graphql) 6751 - [register application with status](examples/register-application/register-application-with-status.graphql) 6752 - [register application with webhooks](examples/register-application/register-application-with-webhooks.graphql) 6753 - [register application](examples/register-application/register-application.graphql) 6754 """ 6755 registerApplication(in: ApplicationRegisterInput! @validate, mode: OperationMode = SYNC): Application! @hasScopes(path: "graphql.mutation.registerApplication") @async(operationType: CREATE, webhookType: REGISTER_APPLICATION) @synchronizeApplicationTenancy(eventType: NEW_APPLICATION) 6756 """ 6757 **Examples** 6758 - [update application](examples/update-application/update-application.graphql) 6759 """ 6760 updateApplication(id: ID!, in: ApplicationUpdateInput! @validate): Application! @hasScopes(path: "graphql.mutation.updateApplication") @async(operationType: UPDATE, idField: "id") 6761 """ 6762 **Examples** 6763 - [unregister application](examples/unregister-application/unregister-application.graphql) 6764 """ 6765 unregisterApplication(id: ID!, mode: OperationMode = SYNC): Application! @hasScopes(path: "graphql.mutation.unregisterApplication") @async(operationType: DELETE, idField: "id", webhookType: UNREGISTER_APPLICATION) 6766 """ 6767 **Examples** 6768 - [unpair application](examples/unpair-application/unpair-application.graphql) 6769 """ 6770 unpairApplication(id: ID!, mode: OperationMode = SYNC): Application! @hasScopes(path: "graphql.mutation.unpairApplication") @async(operationType: UPDATE, idField: "id", webhookType: UNREGISTER_APPLICATION) 6771 """ 6772 **Examples** 6773 - [create application template](examples/create-application-template/create-application-template.graphql) 6774 """ 6775 createApplicationTemplate(in: ApplicationTemplateInput! @validate): ApplicationTemplate! @hasScopes(path: "graphql.mutation.createApplicationTemplate") 6776 """ 6777 **Examples** 6778 - [register application from template](examples/register-application-from-template/register-application-from-template.graphql) 6779 """ 6780 registerApplicationFromTemplate(in: ApplicationFromTemplateInput! @validate): Application! @hasScopes(path: "graphql.mutation.registerApplicationFromTemplate") @synchronizeApplicationTenancy(eventType: NEW_APPLICATION) 6781 """ 6782 **Examples** 6783 - [update application template](examples/update-application-template/update-application-template.graphql) 6784 """ 6785 updateApplicationTemplate(id: ID!, in: ApplicationTemplateUpdateInput! @validate): ApplicationTemplate! @hasScopes(path: "graphql.mutation.updateApplicationTemplate") 6786 """ 6787 **Examples** 6788 - [delete application template](examples/delete-application-template/delete-application-template.graphql) 6789 """ 6790 deleteApplicationTemplate(id: ID!): ApplicationTemplate! @hasScopes(path: "graphql.mutation.deleteApplicationTemplate") 6791 """ 6792 **Examples** 6793 - [merge applications](examples/merge-applications/merge-applications.graphql) 6794 """ 6795 mergeApplications(destinationID: ID!, sourceID: ID!): Application! @hasScopes(path: "graphql.mutation.mergeApplications") 6796 """ 6797 **Examples** 6798 - [register runtime with webhooks](examples/register-runtime/register-runtime-with-webhooks.graphql) 6799 - [register runtime](examples/register-runtime/register-runtime.graphql) 6800 """ 6801 registerRuntime(in: RuntimeRegisterInput! @validate): Runtime! @hasScopes(path: "graphql.mutation.registerRuntime") 6802 """ 6803 **Examples** 6804 - [update runtime](examples/update-runtime/update-runtime.graphql) 6805 """ 6806 updateRuntime(id: ID!, in: RuntimeUpdateInput! @validate): Runtime! @hasScopes(path: "graphql.mutation.updateRuntime") 6807 """ 6808 **Examples** 6809 - [unregister runtime](examples/unregister-runtime/unregister-runtime.graphql) 6810 """ 6811 unregisterRuntime(id: ID!): Runtime! @hasScopes(path: "graphql.mutation.unregisterRuntime") 6812 """ 6813 **Examples** 6814 - [register runtime context](examples/register-runtime-context/register-runtime-context.graphql) 6815 """ 6816 registerRuntimeContext(runtimeID: ID!, in: RuntimeContextInput! @validate): RuntimeContext! @hasScopes(path: "graphql.mutation.registerRuntimeContext") 6817 """ 6818 **Examples** 6819 - [update runtime context](examples/update-runtime-context/update-runtime-context.graphql) 6820 """ 6821 updateRuntimeContext(id: ID!, in: RuntimeContextInput! @validate): RuntimeContext! @hasScopes(path: "graphql.mutation.updateRuntimeContext") 6822 unregisterRuntimeContext(id: ID!): RuntimeContext! @hasScopes(path: "graphql.mutation.unregisterRuntimeContext") 6823 """ 6824 **Examples** 6825 - [register integration system](examples/register-integration-system/register-integration-system.graphql) 6826 """ 6827 registerIntegrationSystem(in: IntegrationSystemInput! @validate): IntegrationSystem! @hasScopes(path: "graphql.mutation.registerIntegrationSystem") 6828 """ 6829 **Examples** 6830 - [update integration system](examples/update-integration-system/update-integration-system.graphql) 6831 """ 6832 updateIntegrationSystem(id: ID!, in: IntegrationSystemInput! @validate): IntegrationSystem! @hasScopes(path: "graphql.mutation.updateIntegrationSystem") 6833 """ 6834 **Examples** 6835 - [unregister integration system](examples/unregister-integration-system/unregister-integration-system.graphql) 6836 """ 6837 unregisterIntegrationSystem(id: ID!): IntegrationSystem! @hasScopes(path: "graphql.mutation.unregisterIntegrationSystem") 6838 """ 6839 **Examples** 6840 - [add application template webhook](examples/add-webhook/add-application-template-webhook.graphql) 6841 - [add application webhook](examples/add-webhook/add-application-webhook.graphql) 6842 - [add formation template webhook](examples/add-webhook/add-formation-template-webhook.graphql) 6843 - [add runtime webhook](examples/add-webhook/add-runtime-webhook.graphql) 6844 """ 6845 addWebhook(applicationID: ID, applicationTemplateID: ID, runtimeID: ID, formationTemplateID: ID, in: WebhookInput! @validate): Webhook! @hasScopes(path: "graphql.mutation.addWebhook") 6846 """ 6847 **Examples** 6848 - [update webhook](examples/update-webhook/update-webhook.graphql) 6849 """ 6850 updateWebhook(webhookID: ID!, in: WebhookInput! @validate): Webhook! @hasScopes(path: "graphql.mutation.updateWebhook") 6851 """ 6852 **Examples** 6853 - [delete webhook](examples/delete-webhook/delete-webhook.graphql) 6854 """ 6855 deleteWebhook(webhookID: ID!): Webhook! @hasScopes(path: "graphql.mutation.deleteWebhook") 6856 """ 6857 **Examples** 6858 - [add api definition to bundle](examples/add-api-definition-to-bundle/add-api-definition-to-bundle.graphql) 6859 """ 6860 addAPIDefinitionToBundle(bundleID: ID!, in: APIDefinitionInput! @validate): APIDefinition! @hasScopes(path: "graphql.mutation.addAPIDefinitionToBundle") 6861 """ 6862 **Examples** 6863 - [add api definition to application](examples/add-api-definition-to-application/add-api-definition-to-application.graphql) 6864 """ 6865 addAPIDefinitionToApplication(appID: ID!, in: APIDefinitionInput! @validate): APIDefinition! @hasScopes(path: "graphql.mutation.addAPIDefinitionToApplication") 6866 """ 6867 **Examples** 6868 - [update api definition](examples/update-api-definition/update-api-definition.graphql) 6869 """ 6870 updateAPIDefinition(id: ID!, in: APIDefinitionInput! @validate): APIDefinition! @hasScopes(path: "graphql.mutation.updateAPIDefinition") 6871 updateAPIDefinitionForApplication(id: ID!, in: APIDefinitionInput! @validate): APIDefinition! @hasScopes(path: "graphql.mutation.updateAPIDefinitionForApplication") 6872 """ 6873 **Examples** 6874 - [delete api definition](examples/delete-api-definition/delete-api-definition.graphql) 6875 """ 6876 deleteAPIDefinition(id: ID!): APIDefinition! @hasScopes(path: "graphql.mutation.deleteAPIDefinition") 6877 """ 6878 **Examples** 6879 - [refetch api spec](examples/refetch-api-spec/refetch-api-spec.graphql) 6880 """ 6881 refetchAPISpec(apiID: ID!): APISpec! @hasScopes(path: "graphql.mutation.refetchAPISpec") 6882 requestOneTimeTokenForRuntime(id: ID!, systemAuthID: ID): OneTimeTokenForRuntime! @hasScopes(path: "graphql.mutation.requestOneTimeTokenForRuntime") 6883 requestOneTimeTokenForApplication(id: ID!, systemAuthID: ID): OneTimeTokenForApplication! @hasScopes(path: "graphql.mutation.requestOneTimeTokenForApplication") 6884 requestClientCredentialsForRuntime(id: ID!): SystemAuth! @hasScopes(path: "graphql.mutation.requestClientCredentialsForRuntime") 6885 requestClientCredentialsForApplication(id: ID!): SystemAuth! @hasScopes(path: "graphql.mutation.requestClientCredentialsForApplication") 6886 requestClientCredentialsForIntegrationSystem(id: ID!): SystemAuth! @hasScopes(path: "graphql.mutation.requestClientCredentialsForIntegrationSystem") 6887 deleteSystemAuthForRuntime(authID: ID!): SystemAuth! @hasScopes(path: "graphql.mutation.deleteSystemAuthForRuntime") 6888 deleteSystemAuthForApplication(authID: ID!): SystemAuth! @hasScopes(path: "graphql.mutation.deleteSystemAuthForApplication") 6889 deleteSystemAuthForIntegrationSystem(authID: ID!): SystemAuth! @hasScopes(path: "graphql.mutation.deleteSystemAuthForIntegrationSystem") 6890 updateSystemAuth(authID: ID!, in: AuthInput!): SystemAuth! @hasScopes(path: "graphql.mutation.updateSystemAuth") 6891 invalidateSystemAuthOneTimeToken(authID: ID!): SystemAuth! @hasScopes(path: "graphql.mutation.invalidateSystemAuthOneTimeToken") 6892 """ 6893 **Examples** 6894 - [add event definition to bundle](examples/add-event-definition-to-bundle/add-event-definition-to-bundle.graphql) 6895 """ 6896 addEventDefinitionToBundle(bundleID: ID!, in: EventDefinitionInput! @validate): EventDefinition! @hasScopes(path: "graphql.mutation.addEventDefinitionToBundle") 6897 """ 6898 **Examples** 6899 - [add event definition to application](examples/add-event-definition-to-application/add-event-definition-to-application.graphql) 6900 """ 6901 addEventDefinitionToApplication(appID: ID!, in: EventDefinitionInput! @validate): EventDefinition! @hasScopes(path: "graphql.mutation.addEventDefinitionToApplication") 6902 """ 6903 **Examples** 6904 - [update event definition](examples/update-event-definition/update-event-definition.graphql) 6905 """ 6906 updateEventDefinition(id: ID!, in: EventDefinitionInput! @validate): EventDefinition! @hasScopes(path: "graphql.mutation.updateEventDefinition") 6907 updateEventDefinitionForApplication(id: ID!, in: EventDefinitionInput! @validate): EventDefinition! @hasScopes(path: "graphql.mutation.updateEventDefinitionForApplication") 6908 """ 6909 **Examples** 6910 - [delete event definition](examples/delete-event-definition/delete-event-definition.graphql) 6911 """ 6912 deleteEventDefinition(id: ID!): EventDefinition! @hasScopes(path: "graphql.mutation.deleteEventDefinition") 6913 refetchEventDefinitionSpec(eventID: ID!): EventSpec! @hasScopes(path: "graphql.mutation.refetchEventDefinitionSpec") 6914 """ 6915 **Examples** 6916 - [add document to bundle](examples/add-document-to-bundle/add-document-to-bundle.graphql) 6917 """ 6918 addDocumentToBundle(bundleID: ID!, in: DocumentInput! @validate): Document! @hasScopes(path: "graphql.mutation.addDocumentToBundle") 6919 """ 6920 **Examples** 6921 - [delete document](examples/delete-document/delete-document.graphql) 6922 """ 6923 deleteDocument(id: ID!): Document! @hasScopes(path: "graphql.mutation.deleteDocument") 6924 """ 6925 **Examples** 6926 - [create formation](examples/create-formation/create-formation.graphql) 6927 """ 6928 createFormation(formation: FormationInput!): Formation! @hasScopes(path: "graphql.mutation.createFormation") 6929 """ 6930 **Examples** 6931 - [resynchronize formation notifications](examples/resynchronize-formation-notifications/resynchronize-formation-notifications.graphql) 6932 """ 6933 resynchronizeFormationNotifications(formationID: ID!): Formation! @hasScopes(path: "graphql.mutation.resynchronizeFormationNotifications") 6934 """ 6935 **Examples** 6936 - [delete formation](examples/delete-formation/delete-formation.graphql) 6937 """ 6938 deleteFormation(formation: FormationInput!): Formation! @hasScopes(path: "graphql.mutation.deleteFormation") 6939 """ 6940 **Examples** 6941 - [assign application to formation](examples/assign-formation/assign-application-to-formation.graphql) 6942 - [assign runtime context to formation](examples/assign-formation/assign-runtime-context-to-formation.graphql) 6943 - [assign runtime to formation](examples/assign-formation/assign-runtime-to-formation.graphql) 6944 - [assign tenant to formation](examples/assign-formation/assign-tenant-to-formation.graphql) 6945 """ 6946 assignFormation(objectID: ID!, objectType: FormationObjectType!, formation: FormationInput!): Formation! @hasScopes(path: "graphql.mutation.assignFormation") 6947 """ 6948 **Examples** 6949 - [unassign application from formation](examples/unassign-formation/unassign-application-from-formation.graphql) 6950 - [unassign runtime context from formation](examples/unassign-formation/unassign-runtime-context-from-formation.graphql) 6951 - [unassign runtime from formation](examples/unassign-formation/unassign-runtime-from-formation.graphql) 6952 - [unassign tenant from formation](examples/unassign-formation/unassign-tenant-from-formation.graphql) 6953 """ 6954 unassignFormation(objectID: ID!, objectType: FormationObjectType!, formation: FormationInput!): Formation! @hasScopes(path: "graphql.mutation.unassignFormation") 6955 """ 6956 **Examples** 6957 - [create formation constraint](examples/create-formation-constraint/create-formation-constraint.graphql) 6958 """ 6959 createFormationConstraint(formationConstraint: FormationConstraintInput! @validate): FormationConstraint! @hasScopes(path: "graphql.mutation.createFormationConstraint") 6960 """ 6961 **Examples** 6962 - [delete formation constraint](examples/delete-formation-constraint/delete-formation-constraint.graphql) 6963 """ 6964 deleteFormationConstraint(id: ID!): FormationConstraint! @hasScopes(path: "graphql.mutation.deleteFormationConstraint") 6965 """ 6966 **Examples** 6967 - [update formation constraint](examples/update-formation-constraint/update-formation-constraint.graphql) 6968 """ 6969 updateFormationConstraint(id: ID!, in: FormationConstraintUpdateInput!): FormationConstraint! @hasScopes(path: "graphql.mutation.updateFormationConstraint") 6970 """ 6971 **Examples** 6972 - [attach constraint to formation template](examples/attach-constraint-to-formation-template/attach-constraint-to-formation-template.graphql) 6973 """ 6974 attachConstraintToFormationTemplate(constraintID: ID!, formationTemplateID: ID!): ConstraintReference! @hasScopes(path: "graphql.mutation.attachConstraintToFormationTemplate") 6975 """ 6976 **Examples** 6977 - [detach constraint from formation template](examples/detach-constraint-from-formation-template/detach-constraint-from-formation-template.graphql) 6978 """ 6979 detachConstraintFromFormationTemplate(constraintID: ID!, formationTemplateID: ID!): ConstraintReference! @hasScopes(path: "graphql.mutation.detachConstraintFromFormationTemplate") 6980 """ 6981 **Examples** 6982 - [create label definition](examples/create-label-definition/create-label-definition.graphql) 6983 """ 6984 createLabelDefinition(in: LabelDefinitionInput! @validate): LabelDefinition! @hasScopes(path: "graphql.mutation.createLabelDefinition") 6985 """ 6986 **Examples** 6987 - [update label definition](examples/update-label-definition/update-label-definition.graphql) 6988 """ 6989 updateLabelDefinition(in: LabelDefinitionInput! @validate): LabelDefinition! @hasScopes(path: "graphql.mutation.updateLabelDefinition") 6990 """ 6991 If a label with given key already exist, it will be replaced with provided value. 6992 6993 **Examples** 6994 - [set application label](examples/set-application-label/set-application-label.graphql) 6995 """ 6996 setApplicationLabel(applicationID: ID!, key: String!, value: Any!): Label! @hasScopes(path: "graphql.mutation.setApplicationLabel") 6997 """ 6998 If Application does not exist or the label key is not found, it returns an error. 6999 7000 **Examples** 7001 - [delete application label](examples/delete-application-label/delete-application-label.graphql) 7002 """ 7003 deleteApplicationLabel(applicationID: ID!, key: String!): Label! @hasScopes(path: "graphql.mutation.deleteApplicationLabel") 7004 """ 7005 If a label with given key already exist, it will be replaced with provided value. 7006 """ 7007 setRuntimeLabel(runtimeID: ID!, key: String!, value: Any!): Label! @hasScopes(path: "graphql.mutation.setRuntimeLabel") 7008 """ 7009 If Runtime does not exist or the label key is not found, it returns an error. 7010 """ 7011 deleteRuntimeLabel(runtimeID: ID!, key: String!): Label! @hasScopes(path: "graphql.mutation.deleteRuntimeLabel") 7012 setDefaultEventingForApplication(appID: String!, runtimeID: String!): ApplicationEventingConfiguration! @hasScopes(path: "graphql.mutation.setDefaultEventingForApplication") 7013 deleteDefaultEventingForApplication(appID: String!): ApplicationEventingConfiguration! @hasScopes(path: "graphql.mutation.deleteDefaultEventingForApplication") 7014 """ 7015 When BundleInstanceAuth is not in pending state, the operation returns error. 7016 7017 When used without error, the status of pending auth is set to success. 7018 7019 **Examples** 7020 - [set bundle instance auth](examples/set-bundle-instance-auth/set-bundle-instance-auth.graphql) 7021 """ 7022 setBundleInstanceAuth(authID: ID!, in: BundleInstanceAuthSetInput! @validate): BundleInstanceAuth! @hasScopes(path: "graphql.mutation.setBundleInstanceAuth") 7023 """ 7024 **Examples** 7025 - [delete bundle instance auth](examples/delete-bundle-instance-auth/delete-bundle-instance-auth.graphql) 7026 """ 7027 deleteBundleInstanceAuth(authID: ID!): BundleInstanceAuth! @hasScopes(path: "graphql.mutation.deleteBundleInstanceAuth") 7028 """ 7029 When defaultInstanceAuth is set, it fires "createBundleInstanceAuth" mutation. Otherwise, the status of the BundleInstanceAuth is set to PENDING. 7030 7031 **Examples** 7032 - [request bundle instance auth creation](examples/request-bundle-instance-auth-creation/request-bundle-instance-auth-creation.graphql) 7033 """ 7034 requestBundleInstanceAuthCreation(bundleID: ID!, in: BundleInstanceAuthRequestInput! @validate): BundleInstanceAuth! @hasScenario(applicationProvider: "GetApplicationIDByBundle", idField: "bundleID") @hasScopes(path: "graphql.mutation.requestBundleInstanceAuthCreation") 7035 """ 7036 When defaultInstanceAuth is set, it fires "deleteBundleInstanceAuth" mutation. Otherwise, the status of the BundleInstanceAuth is set to UNUSED. 7037 7038 **Examples** 7039 - [request bundle instance auth deletion](examples/request-bundle-instance-auth-deletion/request-bundle-instance-auth-deletion.graphql) 7040 """ 7041 requestBundleInstanceAuthDeletion(authID: ID!): BundleInstanceAuth! @hasScenario(applicationProvider: "GetApplicationIDByBundleInstanceAuth", idField: "authID") @hasScopes(path: "graphql.mutation.requestBundleInstanceAuthDeletion") 7042 """ 7043 **Examples** 7044 - [create bundle instance auth](examples/create-bundle-instance-auth/create-bundle-instance-auth.graphql) 7045 """ 7046 createBundleInstanceAuth(bundleID: ID!, in: BundleInstanceAuthCreateInput! @validate): BundleInstanceAuth! @hasScopes(path: "graphql.mutation.createBundleInstanceAuth") 7047 """ 7048 **Examples** 7049 - [update bundle instance auth](examples/update-bundle-instance-auth/update-bundle-instance-auth.graphql) 7050 """ 7051 updateBundleInstanceAuth(id: ID!, bundleID: ID!, in: BundleInstanceAuthUpdateInput!): BundleInstanceAuth! @hasScopes(path: "graphql.mutation.updateBundleInstanceAuth") 7052 """ 7053 **Examples** 7054 - [add bundle](examples/add-bundle/add-bundle.graphql) 7055 """ 7056 addBundle(applicationID: ID!, in: BundleCreateInput! @validate): Bundle! @hasScopes(path: "graphql.mutation.addBundle") 7057 """ 7058 **Examples** 7059 - [update bundle](examples/update-bundle/update-bundle.graphql) 7060 """ 7061 updateBundle(id: ID!, in: BundleUpdateInput! @validate): Bundle! @hasScopes(path: "graphql.mutation.updateBundle") 7062 """ 7063 **Examples** 7064 - [delete bundle](examples/delete-bundle/delete-bundle.graphql) 7065 """ 7066 deleteBundle(id: ID!): Bundle! @hasScopes(path: "graphql.mutation.deleteBundle") 7067 writeTenants(in: [BusinessTenantMappingInput!]): [String!] @hasScopes(path: "graphql.mutation.writeTenants") @synchronizeApplicationTenancy(eventType: NEW_MULTIPLE_TENANTS) 7068 writeTenant(in: BusinessTenantMappingInput!): String! @hasScopes(path: "graphql.mutation.writeTenants") @synchronizeApplicationTenancy(eventType: NEW_SINGLE_TENANT) 7069 deleteTenants(in: [String!]): Int! @hasScopes(path: "graphql.mutation.deleteTenants") 7070 updateTenant(id: ID!, in: BusinessTenantMappingInput!): Tenant! @hasScopes(path: "graphql.mutation.updateTenant") 7071 subscribeTenant(providerID: String!, subaccountID: String!, providerSubaccountID: String!, consumerTenantID: String!, region: String!, subscriptionAppName: String!, subscriptionPayload: String!): Boolean! @hasScopes(path: "graphql.mutation.subscribeTenant") 7072 unsubscribeTenant(providerID: String!, subaccountID: String!, providerSubaccountID: String!, consumerTenantID: String!, region: String!): Boolean! @hasScopes(path: "graphql.mutation.unsubscribeTenant") 7073 """ 7074 **Examples** 7075 - [create formation template with webhooks](examples/create-formation-template/create-formation-template-with-webhooks.graphql) 7076 - [create formation template](examples/create-formation-template/create-formation-template.graphql) 7077 """ 7078 createFormationTemplate(in: FormationTemplateInput! @validate): FormationTemplate @hasScopes(path: "graphql.mutation.createFormationTemplate") 7079 """ 7080 **Examples** 7081 - [delete formation template](examples/delete-formation-template/delete-formation-template.graphql) 7082 """ 7083 deleteFormationTemplate(id: ID!): FormationTemplate @hasScopes(path: "graphql.mutation.deleteFormationTemplate") 7084 """ 7085 **Examples** 7086 - [update formation template](examples/update-formation-template/update-formation-template.graphql) 7087 """ 7088 updateFormationTemplate(id: ID!, in: FormationTemplateInput! @validate): FormationTemplate @hasScopes(path: "graphql.mutation.updateFormationTemplate") 7089 """ 7090 **Examples** 7091 - [create certificate subject mapping](examples/create-certificate-subject-mapping/create-certificate-subject-mapping.graphql) 7092 """ 7093 createCertificateSubjectMapping(in: CertificateSubjectMappingInput! @validate): CertificateSubjectMapping @hasScopes(path: "graphql.mutation.createCertificateSubjectMapping") 7094 """ 7095 **Examples** 7096 - [update certificate subject mapping](examples/update-certificate-subject-mapping/update-certificate-subject-mapping.graphql) 7097 """ 7098 updateCertificateSubjectMapping(id: ID!, in: CertificateSubjectMappingInput! @validate): CertificateSubjectMapping @hasScopes(path: "graphql.mutation.updateCertificateSubjectMapping") 7099 """ 7100 **Examples** 7101 - [delete certificate subject mapping](examples/delete-certificate-subject-mapping/delete-certificate-subject-mapping.graphql) 7102 """ 7103 deleteCertificateSubjectMapping(id: ID!): CertificateSubjectMapping @hasScopes(path: "graphql.mutation.deleteCertificateSubjectMapping") 7104 """ 7105 **Examples** 7106 - [add tenant access](examples/add-tenant-access/add-tenant-access.graphql) 7107 """ 7108 addTenantAccess(in: TenantAccessInput!): TenantAccess @hasScopes(path: "graphql.mutation.addTenantAccess") 7109 """ 7110 **Examples** 7111 - [remove tenant access](examples/remove-tenant-access/remove-tenant-access.graphql) 7112 """ 7113 removeTenantAccess(tenantID: ID!, resourceID: ID!, resourceType: TenantAccessObjectType!): TenantAccess @hasScopes(path: "graphql.mutation.removeTenantAccess") 7114 } 7115 7116 `, BuiltIn: false}, 7117 } 7118 var parsedSchema = gqlparser.MustLoadSchema(sources...) 7119 7120 // endregion ************************** generated!.gotpl ************************** 7121 7122 // region ***************************** args.gotpl ***************************** 7123 7124 func (ec *executionContext) dir_async_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7125 var err error 7126 args := map[string]interface{}{} 7127 var arg0 OperationType 7128 if tmp, ok := rawArgs["operationType"]; ok { 7129 arg0, err = ec.unmarshalNOperationType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationType(ctx, tmp) 7130 if err != nil { 7131 return nil, err 7132 } 7133 } 7134 args["operationType"] = arg0 7135 var arg1 *WebhookType 7136 if tmp, ok := rawArgs["webhookType"]; ok { 7137 arg1, err = ec.unmarshalOWebhookType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx, tmp) 7138 if err != nil { 7139 return nil, err 7140 } 7141 } 7142 args["webhookType"] = arg1 7143 var arg2 *string 7144 if tmp, ok := rawArgs["idField"]; ok { 7145 arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 7146 if err != nil { 7147 return nil, err 7148 } 7149 } 7150 args["idField"] = arg2 7151 return args, nil 7152 } 7153 7154 func (ec *executionContext) dir_hasScenario_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7155 var err error 7156 args := map[string]interface{}{} 7157 var arg0 string 7158 if tmp, ok := rawArgs["applicationProvider"]; ok { 7159 arg0, err = ec.unmarshalNString2string(ctx, tmp) 7160 if err != nil { 7161 return nil, err 7162 } 7163 } 7164 args["applicationProvider"] = arg0 7165 var arg1 string 7166 if tmp, ok := rawArgs["idField"]; ok { 7167 arg1, err = ec.unmarshalNString2string(ctx, tmp) 7168 if err != nil { 7169 return nil, err 7170 } 7171 } 7172 args["idField"] = arg1 7173 return args, nil 7174 } 7175 7176 func (ec *executionContext) dir_hasScopes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7177 var err error 7178 args := map[string]interface{}{} 7179 var arg0 string 7180 if tmp, ok := rawArgs["path"]; ok { 7181 arg0, err = ec.unmarshalNString2string(ctx, tmp) 7182 if err != nil { 7183 return nil, err 7184 } 7185 } 7186 args["path"] = arg0 7187 return args, nil 7188 } 7189 7190 func (ec *executionContext) dir_sanitize_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7191 var err error 7192 args := map[string]interface{}{} 7193 var arg0 string 7194 if tmp, ok := rawArgs["path"]; ok { 7195 arg0, err = ec.unmarshalNString2string(ctx, tmp) 7196 if err != nil { 7197 return nil, err 7198 } 7199 } 7200 args["path"] = arg0 7201 return args, nil 7202 } 7203 7204 func (ec *executionContext) dir_synchronizeApplicationTenancy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7205 var err error 7206 args := map[string]interface{}{} 7207 var arg0 EventType 7208 if tmp, ok := rawArgs["eventType"]; ok { 7209 arg0, err = ec.unmarshalNEventType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventType(ctx, tmp) 7210 if err != nil { 7211 return nil, err 7212 } 7213 } 7214 args["eventType"] = arg0 7215 return args, nil 7216 } 7217 7218 func (ec *executionContext) field_ApplicationTemplate_labels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7219 var err error 7220 args := map[string]interface{}{} 7221 var arg0 *string 7222 if tmp, ok := rawArgs["key"]; ok { 7223 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 7224 if err != nil { 7225 return nil, err 7226 } 7227 } 7228 args["key"] = arg0 7229 return args, nil 7230 } 7231 7232 func (ec *executionContext) field_Application_bundle_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7233 var err error 7234 args := map[string]interface{}{} 7235 var arg0 string 7236 if tmp, ok := rawArgs["id"]; ok { 7237 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7238 if err != nil { 7239 return nil, err 7240 } 7241 } 7242 args["id"] = arg0 7243 return args, nil 7244 } 7245 7246 func (ec *executionContext) field_Application_bundles_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7247 var err error 7248 args := map[string]interface{}{} 7249 var arg0 *int 7250 if tmp, ok := rawArgs["first"]; ok { 7251 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 7252 if err != nil { 7253 return nil, err 7254 } 7255 } 7256 args["first"] = arg0 7257 var arg1 *PageCursor 7258 if tmp, ok := rawArgs["after"]; ok { 7259 arg1, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 7260 if err != nil { 7261 return nil, err 7262 } 7263 } 7264 args["after"] = arg1 7265 return args, nil 7266 } 7267 7268 func (ec *executionContext) field_Application_labels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7269 var err error 7270 args := map[string]interface{}{} 7271 var arg0 *string 7272 if tmp, ok := rawArgs["key"]; ok { 7273 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 7274 if err != nil { 7275 return nil, err 7276 } 7277 } 7278 args["key"] = arg0 7279 return args, nil 7280 } 7281 7282 func (ec *executionContext) field_Bundle_apiDefinition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7283 var err error 7284 args := map[string]interface{}{} 7285 var arg0 string 7286 if tmp, ok := rawArgs["id"]; ok { 7287 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7288 if err != nil { 7289 return nil, err 7290 } 7291 } 7292 args["id"] = arg0 7293 return args, nil 7294 } 7295 7296 func (ec *executionContext) field_Bundle_apiDefinitions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7297 var err error 7298 args := map[string]interface{}{} 7299 var arg0 *string 7300 if tmp, ok := rawArgs["group"]; ok { 7301 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 7302 if err != nil { 7303 return nil, err 7304 } 7305 } 7306 args["group"] = arg0 7307 var arg1 *int 7308 if tmp, ok := rawArgs["first"]; ok { 7309 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 7310 if err != nil { 7311 return nil, err 7312 } 7313 } 7314 args["first"] = arg1 7315 var arg2 *PageCursor 7316 if tmp, ok := rawArgs["after"]; ok { 7317 arg2, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 7318 if err != nil { 7319 return nil, err 7320 } 7321 } 7322 args["after"] = arg2 7323 return args, nil 7324 } 7325 7326 func (ec *executionContext) field_Bundle_document_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7327 var err error 7328 args := map[string]interface{}{} 7329 var arg0 string 7330 if tmp, ok := rawArgs["id"]; ok { 7331 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7332 if err != nil { 7333 return nil, err 7334 } 7335 } 7336 args["id"] = arg0 7337 return args, nil 7338 } 7339 7340 func (ec *executionContext) field_Bundle_documents_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7341 var err error 7342 args := map[string]interface{}{} 7343 var arg0 *int 7344 if tmp, ok := rawArgs["first"]; ok { 7345 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 7346 if err != nil { 7347 return nil, err 7348 } 7349 } 7350 args["first"] = arg0 7351 var arg1 *PageCursor 7352 if tmp, ok := rawArgs["after"]; ok { 7353 arg1, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 7354 if err != nil { 7355 return nil, err 7356 } 7357 } 7358 args["after"] = arg1 7359 return args, nil 7360 } 7361 7362 func (ec *executionContext) field_Bundle_eventDefinition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7363 var err error 7364 args := map[string]interface{}{} 7365 var arg0 string 7366 if tmp, ok := rawArgs["id"]; ok { 7367 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7368 if err != nil { 7369 return nil, err 7370 } 7371 } 7372 args["id"] = arg0 7373 return args, nil 7374 } 7375 7376 func (ec *executionContext) field_Bundle_eventDefinitions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7377 var err error 7378 args := map[string]interface{}{} 7379 var arg0 *string 7380 if tmp, ok := rawArgs["group"]; ok { 7381 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 7382 if err != nil { 7383 return nil, err 7384 } 7385 } 7386 args["group"] = arg0 7387 var arg1 *int 7388 if tmp, ok := rawArgs["first"]; ok { 7389 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 7390 if err != nil { 7391 return nil, err 7392 } 7393 } 7394 args["first"] = arg1 7395 var arg2 *PageCursor 7396 if tmp, ok := rawArgs["after"]; ok { 7397 arg2, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 7398 if err != nil { 7399 return nil, err 7400 } 7401 } 7402 args["after"] = arg2 7403 return args, nil 7404 } 7405 7406 func (ec *executionContext) field_Bundle_instanceAuth_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7407 var err error 7408 args := map[string]interface{}{} 7409 var arg0 string 7410 if tmp, ok := rawArgs["id"]; ok { 7411 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7412 if err != nil { 7413 return nil, err 7414 } 7415 } 7416 args["id"] = arg0 7417 return args, nil 7418 } 7419 7420 func (ec *executionContext) field_Formation_formationAssignment_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7421 var err error 7422 args := map[string]interface{}{} 7423 var arg0 string 7424 if tmp, ok := rawArgs["id"]; ok { 7425 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7426 if err != nil { 7427 return nil, err 7428 } 7429 } 7430 args["id"] = arg0 7431 return args, nil 7432 } 7433 7434 func (ec *executionContext) field_Formation_formationAssignments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7435 var err error 7436 args := map[string]interface{}{} 7437 var arg0 *int 7438 if tmp, ok := rawArgs["first"]; ok { 7439 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 7440 if err != nil { 7441 return nil, err 7442 } 7443 } 7444 args["first"] = arg0 7445 var arg1 *PageCursor 7446 if tmp, ok := rawArgs["after"]; ok { 7447 arg1, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 7448 if err != nil { 7449 return nil, err 7450 } 7451 } 7452 args["after"] = arg1 7453 return args, nil 7454 } 7455 7456 func (ec *executionContext) field_Mutation_addAPIDefinitionToApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7457 var err error 7458 args := map[string]interface{}{} 7459 var arg0 string 7460 if tmp, ok := rawArgs["appID"]; ok { 7461 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7462 if err != nil { 7463 return nil, err 7464 } 7465 } 7466 args["appID"] = arg0 7467 var arg1 APIDefinitionInput 7468 if tmp, ok := rawArgs["in"]; ok { 7469 directive0 := func(ctx context.Context) (interface{}, error) { 7470 return ec.unmarshalNAPIDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionInput(ctx, tmp) 7471 } 7472 directive1 := func(ctx context.Context) (interface{}, error) { 7473 if ec.directives.Validate == nil { 7474 return nil, errors.New("directive validate is not implemented") 7475 } 7476 return ec.directives.Validate(ctx, rawArgs, directive0) 7477 } 7478 7479 tmp, err = directive1(ctx) 7480 if err != nil { 7481 return nil, err 7482 } 7483 if data, ok := tmp.(APIDefinitionInput); ok { 7484 arg1 = data 7485 } else { 7486 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.APIDefinitionInput`, tmp) 7487 } 7488 } 7489 args["in"] = arg1 7490 return args, nil 7491 } 7492 7493 func (ec *executionContext) field_Mutation_addAPIDefinitionToBundle_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7494 var err error 7495 args := map[string]interface{}{} 7496 var arg0 string 7497 if tmp, ok := rawArgs["bundleID"]; ok { 7498 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7499 if err != nil { 7500 return nil, err 7501 } 7502 } 7503 args["bundleID"] = arg0 7504 var arg1 APIDefinitionInput 7505 if tmp, ok := rawArgs["in"]; ok { 7506 directive0 := func(ctx context.Context) (interface{}, error) { 7507 return ec.unmarshalNAPIDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionInput(ctx, tmp) 7508 } 7509 directive1 := func(ctx context.Context) (interface{}, error) { 7510 if ec.directives.Validate == nil { 7511 return nil, errors.New("directive validate is not implemented") 7512 } 7513 return ec.directives.Validate(ctx, rawArgs, directive0) 7514 } 7515 7516 tmp, err = directive1(ctx) 7517 if err != nil { 7518 return nil, err 7519 } 7520 if data, ok := tmp.(APIDefinitionInput); ok { 7521 arg1 = data 7522 } else { 7523 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.APIDefinitionInput`, tmp) 7524 } 7525 } 7526 args["in"] = arg1 7527 return args, nil 7528 } 7529 7530 func (ec *executionContext) field_Mutation_addBundle_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7531 var err error 7532 args := map[string]interface{}{} 7533 var arg0 string 7534 if tmp, ok := rawArgs["applicationID"]; ok { 7535 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7536 if err != nil { 7537 return nil, err 7538 } 7539 } 7540 args["applicationID"] = arg0 7541 var arg1 BundleCreateInput 7542 if tmp, ok := rawArgs["in"]; ok { 7543 directive0 := func(ctx context.Context) (interface{}, error) { 7544 return ec.unmarshalNBundleCreateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleCreateInput(ctx, tmp) 7545 } 7546 directive1 := func(ctx context.Context) (interface{}, error) { 7547 if ec.directives.Validate == nil { 7548 return nil, errors.New("directive validate is not implemented") 7549 } 7550 return ec.directives.Validate(ctx, rawArgs, directive0) 7551 } 7552 7553 tmp, err = directive1(ctx) 7554 if err != nil { 7555 return nil, err 7556 } 7557 if data, ok := tmp.(BundleCreateInput); ok { 7558 arg1 = data 7559 } else { 7560 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleCreateInput`, tmp) 7561 } 7562 } 7563 args["in"] = arg1 7564 return args, nil 7565 } 7566 7567 func (ec *executionContext) field_Mutation_addDocumentToBundle_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7568 var err error 7569 args := map[string]interface{}{} 7570 var arg0 string 7571 if tmp, ok := rawArgs["bundleID"]; ok { 7572 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7573 if err != nil { 7574 return nil, err 7575 } 7576 } 7577 args["bundleID"] = arg0 7578 var arg1 DocumentInput 7579 if tmp, ok := rawArgs["in"]; ok { 7580 directive0 := func(ctx context.Context) (interface{}, error) { 7581 return ec.unmarshalNDocumentInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentInput(ctx, tmp) 7582 } 7583 directive1 := func(ctx context.Context) (interface{}, error) { 7584 if ec.directives.Validate == nil { 7585 return nil, errors.New("directive validate is not implemented") 7586 } 7587 return ec.directives.Validate(ctx, rawArgs, directive0) 7588 } 7589 7590 tmp, err = directive1(ctx) 7591 if err != nil { 7592 return nil, err 7593 } 7594 if data, ok := tmp.(DocumentInput); ok { 7595 arg1 = data 7596 } else { 7597 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.DocumentInput`, tmp) 7598 } 7599 } 7600 args["in"] = arg1 7601 return args, nil 7602 } 7603 7604 func (ec *executionContext) field_Mutation_addEventDefinitionToApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7605 var err error 7606 args := map[string]interface{}{} 7607 var arg0 string 7608 if tmp, ok := rawArgs["appID"]; ok { 7609 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7610 if err != nil { 7611 return nil, err 7612 } 7613 } 7614 args["appID"] = arg0 7615 var arg1 EventDefinitionInput 7616 if tmp, ok := rawArgs["in"]; ok { 7617 directive0 := func(ctx context.Context) (interface{}, error) { 7618 return ec.unmarshalNEventDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionInput(ctx, tmp) 7619 } 7620 directive1 := func(ctx context.Context) (interface{}, error) { 7621 if ec.directives.Validate == nil { 7622 return nil, errors.New("directive validate is not implemented") 7623 } 7624 return ec.directives.Validate(ctx, rawArgs, directive0) 7625 } 7626 7627 tmp, err = directive1(ctx) 7628 if err != nil { 7629 return nil, err 7630 } 7631 if data, ok := tmp.(EventDefinitionInput); ok { 7632 arg1 = data 7633 } else { 7634 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.EventDefinitionInput`, tmp) 7635 } 7636 } 7637 args["in"] = arg1 7638 return args, nil 7639 } 7640 7641 func (ec *executionContext) field_Mutation_addEventDefinitionToBundle_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7642 var err error 7643 args := map[string]interface{}{} 7644 var arg0 string 7645 if tmp, ok := rawArgs["bundleID"]; ok { 7646 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7647 if err != nil { 7648 return nil, err 7649 } 7650 } 7651 args["bundleID"] = arg0 7652 var arg1 EventDefinitionInput 7653 if tmp, ok := rawArgs["in"]; ok { 7654 directive0 := func(ctx context.Context) (interface{}, error) { 7655 return ec.unmarshalNEventDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionInput(ctx, tmp) 7656 } 7657 directive1 := func(ctx context.Context) (interface{}, error) { 7658 if ec.directives.Validate == nil { 7659 return nil, errors.New("directive validate is not implemented") 7660 } 7661 return ec.directives.Validate(ctx, rawArgs, directive0) 7662 } 7663 7664 tmp, err = directive1(ctx) 7665 if err != nil { 7666 return nil, err 7667 } 7668 if data, ok := tmp.(EventDefinitionInput); ok { 7669 arg1 = data 7670 } else { 7671 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.EventDefinitionInput`, tmp) 7672 } 7673 } 7674 args["in"] = arg1 7675 return args, nil 7676 } 7677 7678 func (ec *executionContext) field_Mutation_addTenantAccess_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7679 var err error 7680 args := map[string]interface{}{} 7681 var arg0 TenantAccessInput 7682 if tmp, ok := rawArgs["in"]; ok { 7683 arg0, err = ec.unmarshalNTenantAccessInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccessInput(ctx, tmp) 7684 if err != nil { 7685 return nil, err 7686 } 7687 } 7688 args["in"] = arg0 7689 return args, nil 7690 } 7691 7692 func (ec *executionContext) field_Mutation_addWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7693 var err error 7694 args := map[string]interface{}{} 7695 var arg0 *string 7696 if tmp, ok := rawArgs["applicationID"]; ok { 7697 arg0, err = ec.unmarshalOID2ᚖstring(ctx, tmp) 7698 if err != nil { 7699 return nil, err 7700 } 7701 } 7702 args["applicationID"] = arg0 7703 var arg1 *string 7704 if tmp, ok := rawArgs["applicationTemplateID"]; ok { 7705 arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp) 7706 if err != nil { 7707 return nil, err 7708 } 7709 } 7710 args["applicationTemplateID"] = arg1 7711 var arg2 *string 7712 if tmp, ok := rawArgs["runtimeID"]; ok { 7713 arg2, err = ec.unmarshalOID2ᚖstring(ctx, tmp) 7714 if err != nil { 7715 return nil, err 7716 } 7717 } 7718 args["runtimeID"] = arg2 7719 var arg3 *string 7720 if tmp, ok := rawArgs["formationTemplateID"]; ok { 7721 arg3, err = ec.unmarshalOID2ᚖstring(ctx, tmp) 7722 if err != nil { 7723 return nil, err 7724 } 7725 } 7726 args["formationTemplateID"] = arg3 7727 var arg4 WebhookInput 7728 if tmp, ok := rawArgs["in"]; ok { 7729 directive0 := func(ctx context.Context) (interface{}, error) { 7730 return ec.unmarshalNWebhookInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInput(ctx, tmp) 7731 } 7732 directive1 := func(ctx context.Context) (interface{}, error) { 7733 if ec.directives.Validate == nil { 7734 return nil, errors.New("directive validate is not implemented") 7735 } 7736 return ec.directives.Validate(ctx, rawArgs, directive0) 7737 } 7738 7739 tmp, err = directive1(ctx) 7740 if err != nil { 7741 return nil, err 7742 } 7743 if data, ok := tmp.(WebhookInput); ok { 7744 arg4 = data 7745 } else { 7746 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.WebhookInput`, tmp) 7747 } 7748 } 7749 args["in"] = arg4 7750 return args, nil 7751 } 7752 7753 func (ec *executionContext) field_Mutation_assignFormation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7754 var err error 7755 args := map[string]interface{}{} 7756 var arg0 string 7757 if tmp, ok := rawArgs["objectID"]; ok { 7758 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7759 if err != nil { 7760 return nil, err 7761 } 7762 } 7763 args["objectID"] = arg0 7764 var arg1 FormationObjectType 7765 if tmp, ok := rawArgs["objectType"]; ok { 7766 arg1, err = ec.unmarshalNFormationObjectType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationObjectType(ctx, tmp) 7767 if err != nil { 7768 return nil, err 7769 } 7770 } 7771 args["objectType"] = arg1 7772 var arg2 FormationInput 7773 if tmp, ok := rawArgs["formation"]; ok { 7774 arg2, err = ec.unmarshalNFormationInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationInput(ctx, tmp) 7775 if err != nil { 7776 return nil, err 7777 } 7778 } 7779 args["formation"] = arg2 7780 return args, nil 7781 } 7782 7783 func (ec *executionContext) field_Mutation_attachConstraintToFormationTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7784 var err error 7785 args := map[string]interface{}{} 7786 var arg0 string 7787 if tmp, ok := rawArgs["constraintID"]; ok { 7788 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7789 if err != nil { 7790 return nil, err 7791 } 7792 } 7793 args["constraintID"] = arg0 7794 var arg1 string 7795 if tmp, ok := rawArgs["formationTemplateID"]; ok { 7796 arg1, err = ec.unmarshalNID2string(ctx, tmp) 7797 if err != nil { 7798 return nil, err 7799 } 7800 } 7801 args["formationTemplateID"] = arg1 7802 return args, nil 7803 } 7804 7805 func (ec *executionContext) field_Mutation_createApplicationTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7806 var err error 7807 args := map[string]interface{}{} 7808 var arg0 ApplicationTemplateInput 7809 if tmp, ok := rawArgs["in"]; ok { 7810 directive0 := func(ctx context.Context) (interface{}, error) { 7811 return ec.unmarshalNApplicationTemplateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateInput(ctx, tmp) 7812 } 7813 directive1 := func(ctx context.Context) (interface{}, error) { 7814 if ec.directives.Validate == nil { 7815 return nil, errors.New("directive validate is not implemented") 7816 } 7817 return ec.directives.Validate(ctx, rawArgs, directive0) 7818 } 7819 7820 tmp, err = directive1(ctx) 7821 if err != nil { 7822 return nil, err 7823 } 7824 if data, ok := tmp.(ApplicationTemplateInput); ok { 7825 arg0 = data 7826 } else { 7827 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationTemplateInput`, tmp) 7828 } 7829 } 7830 args["in"] = arg0 7831 return args, nil 7832 } 7833 7834 func (ec *executionContext) field_Mutation_createBundleInstanceAuth_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7835 var err error 7836 args := map[string]interface{}{} 7837 var arg0 string 7838 if tmp, ok := rawArgs["bundleID"]; ok { 7839 arg0, err = ec.unmarshalNID2string(ctx, tmp) 7840 if err != nil { 7841 return nil, err 7842 } 7843 } 7844 args["bundleID"] = arg0 7845 var arg1 BundleInstanceAuthCreateInput 7846 if tmp, ok := rawArgs["in"]; ok { 7847 directive0 := func(ctx context.Context) (interface{}, error) { 7848 return ec.unmarshalNBundleInstanceAuthCreateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthCreateInput(ctx, tmp) 7849 } 7850 directive1 := func(ctx context.Context) (interface{}, error) { 7851 if ec.directives.Validate == nil { 7852 return nil, errors.New("directive validate is not implemented") 7853 } 7854 return ec.directives.Validate(ctx, rawArgs, directive0) 7855 } 7856 7857 tmp, err = directive1(ctx) 7858 if err != nil { 7859 return nil, err 7860 } 7861 if data, ok := tmp.(BundleInstanceAuthCreateInput); ok { 7862 arg1 = data 7863 } else { 7864 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuthCreateInput`, tmp) 7865 } 7866 } 7867 args["in"] = arg1 7868 return args, nil 7869 } 7870 7871 func (ec *executionContext) field_Mutation_createCertificateSubjectMapping_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7872 var err error 7873 args := map[string]interface{}{} 7874 var arg0 CertificateSubjectMappingInput 7875 if tmp, ok := rawArgs["in"]; ok { 7876 directive0 := func(ctx context.Context) (interface{}, error) { 7877 return ec.unmarshalNCertificateSubjectMappingInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMappingInput(ctx, tmp) 7878 } 7879 directive1 := func(ctx context.Context) (interface{}, error) { 7880 if ec.directives.Validate == nil { 7881 return nil, errors.New("directive validate is not implemented") 7882 } 7883 return ec.directives.Validate(ctx, rawArgs, directive0) 7884 } 7885 7886 tmp, err = directive1(ctx) 7887 if err != nil { 7888 return nil, err 7889 } 7890 if data, ok := tmp.(CertificateSubjectMappingInput); ok { 7891 arg0 = data 7892 } else { 7893 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.CertificateSubjectMappingInput`, tmp) 7894 } 7895 } 7896 args["in"] = arg0 7897 return args, nil 7898 } 7899 7900 func (ec *executionContext) field_Mutation_createFormationConstraint_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7901 var err error 7902 args := map[string]interface{}{} 7903 var arg0 FormationConstraintInput 7904 if tmp, ok := rawArgs["formationConstraint"]; ok { 7905 directive0 := func(ctx context.Context) (interface{}, error) { 7906 return ec.unmarshalNFormationConstraintInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraintInput(ctx, tmp) 7907 } 7908 directive1 := func(ctx context.Context) (interface{}, error) { 7909 if ec.directives.Validate == nil { 7910 return nil, errors.New("directive validate is not implemented") 7911 } 7912 return ec.directives.Validate(ctx, rawArgs, directive0) 7913 } 7914 7915 tmp, err = directive1(ctx) 7916 if err != nil { 7917 return nil, err 7918 } 7919 if data, ok := tmp.(FormationConstraintInput); ok { 7920 arg0 = data 7921 } else { 7922 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationConstraintInput`, tmp) 7923 } 7924 } 7925 args["formationConstraint"] = arg0 7926 return args, nil 7927 } 7928 7929 func (ec *executionContext) field_Mutation_createFormationTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7930 var err error 7931 args := map[string]interface{}{} 7932 var arg0 FormationTemplateInput 7933 if tmp, ok := rawArgs["in"]; ok { 7934 directive0 := func(ctx context.Context) (interface{}, error) { 7935 return ec.unmarshalNFormationTemplateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplateInput(ctx, tmp) 7936 } 7937 directive1 := func(ctx context.Context) (interface{}, error) { 7938 if ec.directives.Validate == nil { 7939 return nil, errors.New("directive validate is not implemented") 7940 } 7941 return ec.directives.Validate(ctx, rawArgs, directive0) 7942 } 7943 7944 tmp, err = directive1(ctx) 7945 if err != nil { 7946 return nil, err 7947 } 7948 if data, ok := tmp.(FormationTemplateInput); ok { 7949 arg0 = data 7950 } else { 7951 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationTemplateInput`, tmp) 7952 } 7953 } 7954 args["in"] = arg0 7955 return args, nil 7956 } 7957 7958 func (ec *executionContext) field_Mutation_createFormation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7959 var err error 7960 args := map[string]interface{}{} 7961 var arg0 FormationInput 7962 if tmp, ok := rawArgs["formation"]; ok { 7963 arg0, err = ec.unmarshalNFormationInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationInput(ctx, tmp) 7964 if err != nil { 7965 return nil, err 7966 } 7967 } 7968 args["formation"] = arg0 7969 return args, nil 7970 } 7971 7972 func (ec *executionContext) field_Mutation_createLabelDefinition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 7973 var err error 7974 args := map[string]interface{}{} 7975 var arg0 LabelDefinitionInput 7976 if tmp, ok := rawArgs["in"]; ok { 7977 directive0 := func(ctx context.Context) (interface{}, error) { 7978 return ec.unmarshalNLabelDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinitionInput(ctx, tmp) 7979 } 7980 directive1 := func(ctx context.Context) (interface{}, error) { 7981 if ec.directives.Validate == nil { 7982 return nil, errors.New("directive validate is not implemented") 7983 } 7984 return ec.directives.Validate(ctx, rawArgs, directive0) 7985 } 7986 7987 tmp, err = directive1(ctx) 7988 if err != nil { 7989 return nil, err 7990 } 7991 if data, ok := tmp.(LabelDefinitionInput); ok { 7992 arg0 = data 7993 } else { 7994 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.LabelDefinitionInput`, tmp) 7995 } 7996 } 7997 args["in"] = arg0 7998 return args, nil 7999 } 8000 8001 func (ec *executionContext) field_Mutation_deleteAPIDefinition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8002 var err error 8003 args := map[string]interface{}{} 8004 var arg0 string 8005 if tmp, ok := rawArgs["id"]; ok { 8006 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8007 if err != nil { 8008 return nil, err 8009 } 8010 } 8011 args["id"] = arg0 8012 return args, nil 8013 } 8014 8015 func (ec *executionContext) field_Mutation_deleteApplicationLabel_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8016 var err error 8017 args := map[string]interface{}{} 8018 var arg0 string 8019 if tmp, ok := rawArgs["applicationID"]; ok { 8020 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8021 if err != nil { 8022 return nil, err 8023 } 8024 } 8025 args["applicationID"] = arg0 8026 var arg1 string 8027 if tmp, ok := rawArgs["key"]; ok { 8028 arg1, err = ec.unmarshalNString2string(ctx, tmp) 8029 if err != nil { 8030 return nil, err 8031 } 8032 } 8033 args["key"] = arg1 8034 return args, nil 8035 } 8036 8037 func (ec *executionContext) field_Mutation_deleteApplicationTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8038 var err error 8039 args := map[string]interface{}{} 8040 var arg0 string 8041 if tmp, ok := rawArgs["id"]; ok { 8042 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8043 if err != nil { 8044 return nil, err 8045 } 8046 } 8047 args["id"] = arg0 8048 return args, nil 8049 } 8050 8051 func (ec *executionContext) field_Mutation_deleteBundleInstanceAuth_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8052 var err error 8053 args := map[string]interface{}{} 8054 var arg0 string 8055 if tmp, ok := rawArgs["authID"]; ok { 8056 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8057 if err != nil { 8058 return nil, err 8059 } 8060 } 8061 args["authID"] = arg0 8062 return args, nil 8063 } 8064 8065 func (ec *executionContext) field_Mutation_deleteBundle_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8066 var err error 8067 args := map[string]interface{}{} 8068 var arg0 string 8069 if tmp, ok := rawArgs["id"]; ok { 8070 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8071 if err != nil { 8072 return nil, err 8073 } 8074 } 8075 args["id"] = arg0 8076 return args, nil 8077 } 8078 8079 func (ec *executionContext) field_Mutation_deleteCertificateSubjectMapping_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8080 var err error 8081 args := map[string]interface{}{} 8082 var arg0 string 8083 if tmp, ok := rawArgs["id"]; ok { 8084 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8085 if err != nil { 8086 return nil, err 8087 } 8088 } 8089 args["id"] = arg0 8090 return args, nil 8091 } 8092 8093 func (ec *executionContext) field_Mutation_deleteDefaultEventingForApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8094 var err error 8095 args := map[string]interface{}{} 8096 var arg0 string 8097 if tmp, ok := rawArgs["appID"]; ok { 8098 arg0, err = ec.unmarshalNString2string(ctx, tmp) 8099 if err != nil { 8100 return nil, err 8101 } 8102 } 8103 args["appID"] = arg0 8104 return args, nil 8105 } 8106 8107 func (ec *executionContext) field_Mutation_deleteDocument_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8108 var err error 8109 args := map[string]interface{}{} 8110 var arg0 string 8111 if tmp, ok := rawArgs["id"]; ok { 8112 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8113 if err != nil { 8114 return nil, err 8115 } 8116 } 8117 args["id"] = arg0 8118 return args, nil 8119 } 8120 8121 func (ec *executionContext) field_Mutation_deleteEventDefinition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8122 var err error 8123 args := map[string]interface{}{} 8124 var arg0 string 8125 if tmp, ok := rawArgs["id"]; ok { 8126 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8127 if err != nil { 8128 return nil, err 8129 } 8130 } 8131 args["id"] = arg0 8132 return args, nil 8133 } 8134 8135 func (ec *executionContext) field_Mutation_deleteFormationConstraint_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8136 var err error 8137 args := map[string]interface{}{} 8138 var arg0 string 8139 if tmp, ok := rawArgs["id"]; ok { 8140 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8141 if err != nil { 8142 return nil, err 8143 } 8144 } 8145 args["id"] = arg0 8146 return args, nil 8147 } 8148 8149 func (ec *executionContext) field_Mutation_deleteFormationTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8150 var err error 8151 args := map[string]interface{}{} 8152 var arg0 string 8153 if tmp, ok := rawArgs["id"]; ok { 8154 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8155 if err != nil { 8156 return nil, err 8157 } 8158 } 8159 args["id"] = arg0 8160 return args, nil 8161 } 8162 8163 func (ec *executionContext) field_Mutation_deleteFormation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8164 var err error 8165 args := map[string]interface{}{} 8166 var arg0 FormationInput 8167 if tmp, ok := rawArgs["formation"]; ok { 8168 arg0, err = ec.unmarshalNFormationInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationInput(ctx, tmp) 8169 if err != nil { 8170 return nil, err 8171 } 8172 } 8173 args["formation"] = arg0 8174 return args, nil 8175 } 8176 8177 func (ec *executionContext) field_Mutation_deleteRuntimeLabel_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8178 var err error 8179 args := map[string]interface{}{} 8180 var arg0 string 8181 if tmp, ok := rawArgs["runtimeID"]; ok { 8182 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8183 if err != nil { 8184 return nil, err 8185 } 8186 } 8187 args["runtimeID"] = arg0 8188 var arg1 string 8189 if tmp, ok := rawArgs["key"]; ok { 8190 arg1, err = ec.unmarshalNString2string(ctx, tmp) 8191 if err != nil { 8192 return nil, err 8193 } 8194 } 8195 args["key"] = arg1 8196 return args, nil 8197 } 8198 8199 func (ec *executionContext) field_Mutation_deleteSystemAuthForApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8200 var err error 8201 args := map[string]interface{}{} 8202 var arg0 string 8203 if tmp, ok := rawArgs["authID"]; ok { 8204 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8205 if err != nil { 8206 return nil, err 8207 } 8208 } 8209 args["authID"] = arg0 8210 return args, nil 8211 } 8212 8213 func (ec *executionContext) field_Mutation_deleteSystemAuthForIntegrationSystem_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8214 var err error 8215 args := map[string]interface{}{} 8216 var arg0 string 8217 if tmp, ok := rawArgs["authID"]; ok { 8218 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8219 if err != nil { 8220 return nil, err 8221 } 8222 } 8223 args["authID"] = arg0 8224 return args, nil 8225 } 8226 8227 func (ec *executionContext) field_Mutation_deleteSystemAuthForRuntime_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8228 var err error 8229 args := map[string]interface{}{} 8230 var arg0 string 8231 if tmp, ok := rawArgs["authID"]; ok { 8232 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8233 if err != nil { 8234 return nil, err 8235 } 8236 } 8237 args["authID"] = arg0 8238 return args, nil 8239 } 8240 8241 func (ec *executionContext) field_Mutation_deleteTenants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8242 var err error 8243 args := map[string]interface{}{} 8244 var arg0 []string 8245 if tmp, ok := rawArgs["in"]; ok { 8246 arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) 8247 if err != nil { 8248 return nil, err 8249 } 8250 } 8251 args["in"] = arg0 8252 return args, nil 8253 } 8254 8255 func (ec *executionContext) field_Mutation_deleteWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8256 var err error 8257 args := map[string]interface{}{} 8258 var arg0 string 8259 if tmp, ok := rawArgs["webhookID"]; ok { 8260 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8261 if err != nil { 8262 return nil, err 8263 } 8264 } 8265 args["webhookID"] = arg0 8266 return args, nil 8267 } 8268 8269 func (ec *executionContext) field_Mutation_detachConstraintFromFormationTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8270 var err error 8271 args := map[string]interface{}{} 8272 var arg0 string 8273 if tmp, ok := rawArgs["constraintID"]; ok { 8274 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8275 if err != nil { 8276 return nil, err 8277 } 8278 } 8279 args["constraintID"] = arg0 8280 var arg1 string 8281 if tmp, ok := rawArgs["formationTemplateID"]; ok { 8282 arg1, err = ec.unmarshalNID2string(ctx, tmp) 8283 if err != nil { 8284 return nil, err 8285 } 8286 } 8287 args["formationTemplateID"] = arg1 8288 return args, nil 8289 } 8290 8291 func (ec *executionContext) field_Mutation_invalidateSystemAuthOneTimeToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8292 var err error 8293 args := map[string]interface{}{} 8294 var arg0 string 8295 if tmp, ok := rawArgs["authID"]; ok { 8296 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8297 if err != nil { 8298 return nil, err 8299 } 8300 } 8301 args["authID"] = arg0 8302 return args, nil 8303 } 8304 8305 func (ec *executionContext) field_Mutation_mergeApplications_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8306 var err error 8307 args := map[string]interface{}{} 8308 var arg0 string 8309 if tmp, ok := rawArgs["destinationID"]; ok { 8310 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8311 if err != nil { 8312 return nil, err 8313 } 8314 } 8315 args["destinationID"] = arg0 8316 var arg1 string 8317 if tmp, ok := rawArgs["sourceID"]; ok { 8318 arg1, err = ec.unmarshalNID2string(ctx, tmp) 8319 if err != nil { 8320 return nil, err 8321 } 8322 } 8323 args["sourceID"] = arg1 8324 return args, nil 8325 } 8326 8327 func (ec *executionContext) field_Mutation_refetchAPISpec_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8328 var err error 8329 args := map[string]interface{}{} 8330 var arg0 string 8331 if tmp, ok := rawArgs["apiID"]; ok { 8332 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8333 if err != nil { 8334 return nil, err 8335 } 8336 } 8337 args["apiID"] = arg0 8338 return args, nil 8339 } 8340 8341 func (ec *executionContext) field_Mutation_refetchEventDefinitionSpec_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8342 var err error 8343 args := map[string]interface{}{} 8344 var arg0 string 8345 if tmp, ok := rawArgs["eventID"]; ok { 8346 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8347 if err != nil { 8348 return nil, err 8349 } 8350 } 8351 args["eventID"] = arg0 8352 return args, nil 8353 } 8354 8355 func (ec *executionContext) field_Mutation_registerApplicationFromTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8356 var err error 8357 args := map[string]interface{}{} 8358 var arg0 ApplicationFromTemplateInput 8359 if tmp, ok := rawArgs["in"]; ok { 8360 directive0 := func(ctx context.Context) (interface{}, error) { 8361 return ec.unmarshalNApplicationFromTemplateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationFromTemplateInput(ctx, tmp) 8362 } 8363 directive1 := func(ctx context.Context) (interface{}, error) { 8364 if ec.directives.Validate == nil { 8365 return nil, errors.New("directive validate is not implemented") 8366 } 8367 return ec.directives.Validate(ctx, rawArgs, directive0) 8368 } 8369 8370 tmp, err = directive1(ctx) 8371 if err != nil { 8372 return nil, err 8373 } 8374 if data, ok := tmp.(ApplicationFromTemplateInput); ok { 8375 arg0 = data 8376 } else { 8377 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationFromTemplateInput`, tmp) 8378 } 8379 } 8380 args["in"] = arg0 8381 return args, nil 8382 } 8383 8384 func (ec *executionContext) field_Mutation_registerApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8385 var err error 8386 args := map[string]interface{}{} 8387 var arg0 ApplicationRegisterInput 8388 if tmp, ok := rawArgs["in"]; ok { 8389 directive0 := func(ctx context.Context) (interface{}, error) { 8390 return ec.unmarshalNApplicationRegisterInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationRegisterInput(ctx, tmp) 8391 } 8392 directive1 := func(ctx context.Context) (interface{}, error) { 8393 if ec.directives.Validate == nil { 8394 return nil, errors.New("directive validate is not implemented") 8395 } 8396 return ec.directives.Validate(ctx, rawArgs, directive0) 8397 } 8398 8399 tmp, err = directive1(ctx) 8400 if err != nil { 8401 return nil, err 8402 } 8403 if data, ok := tmp.(ApplicationRegisterInput); ok { 8404 arg0 = data 8405 } else { 8406 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationRegisterInput`, tmp) 8407 } 8408 } 8409 args["in"] = arg0 8410 var arg1 *OperationMode 8411 if tmp, ok := rawArgs["mode"]; ok { 8412 arg1, err = ec.unmarshalOOperationMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationMode(ctx, tmp) 8413 if err != nil { 8414 return nil, err 8415 } 8416 } 8417 args["mode"] = arg1 8418 return args, nil 8419 } 8420 8421 func (ec *executionContext) field_Mutation_registerIntegrationSystem_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8422 var err error 8423 args := map[string]interface{}{} 8424 var arg0 IntegrationSystemInput 8425 if tmp, ok := rawArgs["in"]; ok { 8426 directive0 := func(ctx context.Context) (interface{}, error) { 8427 return ec.unmarshalNIntegrationSystemInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystemInput(ctx, tmp) 8428 } 8429 directive1 := func(ctx context.Context) (interface{}, error) { 8430 if ec.directives.Validate == nil { 8431 return nil, errors.New("directive validate is not implemented") 8432 } 8433 return ec.directives.Validate(ctx, rawArgs, directive0) 8434 } 8435 8436 tmp, err = directive1(ctx) 8437 if err != nil { 8438 return nil, err 8439 } 8440 if data, ok := tmp.(IntegrationSystemInput); ok { 8441 arg0 = data 8442 } else { 8443 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.IntegrationSystemInput`, tmp) 8444 } 8445 } 8446 args["in"] = arg0 8447 return args, nil 8448 } 8449 8450 func (ec *executionContext) field_Mutation_registerRuntimeContext_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8451 var err error 8452 args := map[string]interface{}{} 8453 var arg0 string 8454 if tmp, ok := rawArgs["runtimeID"]; ok { 8455 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8456 if err != nil { 8457 return nil, err 8458 } 8459 } 8460 args["runtimeID"] = arg0 8461 var arg1 RuntimeContextInput 8462 if tmp, ok := rawArgs["in"]; ok { 8463 directive0 := func(ctx context.Context) (interface{}, error) { 8464 return ec.unmarshalNRuntimeContextInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContextInput(ctx, tmp) 8465 } 8466 directive1 := func(ctx context.Context) (interface{}, error) { 8467 if ec.directives.Validate == nil { 8468 return nil, errors.New("directive validate is not implemented") 8469 } 8470 return ec.directives.Validate(ctx, rawArgs, directive0) 8471 } 8472 8473 tmp, err = directive1(ctx) 8474 if err != nil { 8475 return nil, err 8476 } 8477 if data, ok := tmp.(RuntimeContextInput); ok { 8478 arg1 = data 8479 } else { 8480 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.RuntimeContextInput`, tmp) 8481 } 8482 } 8483 args["in"] = arg1 8484 return args, nil 8485 } 8486 8487 func (ec *executionContext) field_Mutation_registerRuntime_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8488 var err error 8489 args := map[string]interface{}{} 8490 var arg0 RuntimeRegisterInput 8491 if tmp, ok := rawArgs["in"]; ok { 8492 directive0 := func(ctx context.Context) (interface{}, error) { 8493 return ec.unmarshalNRuntimeRegisterInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeRegisterInput(ctx, tmp) 8494 } 8495 directive1 := func(ctx context.Context) (interface{}, error) { 8496 if ec.directives.Validate == nil { 8497 return nil, errors.New("directive validate is not implemented") 8498 } 8499 return ec.directives.Validate(ctx, rawArgs, directive0) 8500 } 8501 8502 tmp, err = directive1(ctx) 8503 if err != nil { 8504 return nil, err 8505 } 8506 if data, ok := tmp.(RuntimeRegisterInput); ok { 8507 arg0 = data 8508 } else { 8509 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.RuntimeRegisterInput`, tmp) 8510 } 8511 } 8512 args["in"] = arg0 8513 return args, nil 8514 } 8515 8516 func (ec *executionContext) field_Mutation_removeTenantAccess_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8517 var err error 8518 args := map[string]interface{}{} 8519 var arg0 string 8520 if tmp, ok := rawArgs["tenantID"]; ok { 8521 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8522 if err != nil { 8523 return nil, err 8524 } 8525 } 8526 args["tenantID"] = arg0 8527 var arg1 string 8528 if tmp, ok := rawArgs["resourceID"]; ok { 8529 arg1, err = ec.unmarshalNID2string(ctx, tmp) 8530 if err != nil { 8531 return nil, err 8532 } 8533 } 8534 args["resourceID"] = arg1 8535 var arg2 TenantAccessObjectType 8536 if tmp, ok := rawArgs["resourceType"]; ok { 8537 arg2, err = ec.unmarshalNTenantAccessObjectType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccessObjectType(ctx, tmp) 8538 if err != nil { 8539 return nil, err 8540 } 8541 } 8542 args["resourceType"] = arg2 8543 return args, nil 8544 } 8545 8546 func (ec *executionContext) field_Mutation_requestBundleInstanceAuthCreation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8547 var err error 8548 args := map[string]interface{}{} 8549 var arg0 string 8550 if tmp, ok := rawArgs["bundleID"]; ok { 8551 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8552 if err != nil { 8553 return nil, err 8554 } 8555 } 8556 args["bundleID"] = arg0 8557 var arg1 BundleInstanceAuthRequestInput 8558 if tmp, ok := rawArgs["in"]; ok { 8559 directive0 := func(ctx context.Context) (interface{}, error) { 8560 return ec.unmarshalNBundleInstanceAuthRequestInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthRequestInput(ctx, tmp) 8561 } 8562 directive1 := func(ctx context.Context) (interface{}, error) { 8563 if ec.directives.Validate == nil { 8564 return nil, errors.New("directive validate is not implemented") 8565 } 8566 return ec.directives.Validate(ctx, rawArgs, directive0) 8567 } 8568 8569 tmp, err = directive1(ctx) 8570 if err != nil { 8571 return nil, err 8572 } 8573 if data, ok := tmp.(BundleInstanceAuthRequestInput); ok { 8574 arg1 = data 8575 } else { 8576 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuthRequestInput`, tmp) 8577 } 8578 } 8579 args["in"] = arg1 8580 return args, nil 8581 } 8582 8583 func (ec *executionContext) field_Mutation_requestBundleInstanceAuthDeletion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8584 var err error 8585 args := map[string]interface{}{} 8586 var arg0 string 8587 if tmp, ok := rawArgs["authID"]; ok { 8588 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8589 if err != nil { 8590 return nil, err 8591 } 8592 } 8593 args["authID"] = arg0 8594 return args, nil 8595 } 8596 8597 func (ec *executionContext) field_Mutation_requestClientCredentialsForApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8598 var err error 8599 args := map[string]interface{}{} 8600 var arg0 string 8601 if tmp, ok := rawArgs["id"]; ok { 8602 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8603 if err != nil { 8604 return nil, err 8605 } 8606 } 8607 args["id"] = arg0 8608 return args, nil 8609 } 8610 8611 func (ec *executionContext) field_Mutation_requestClientCredentialsForIntegrationSystem_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8612 var err error 8613 args := map[string]interface{}{} 8614 var arg0 string 8615 if tmp, ok := rawArgs["id"]; ok { 8616 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8617 if err != nil { 8618 return nil, err 8619 } 8620 } 8621 args["id"] = arg0 8622 return args, nil 8623 } 8624 8625 func (ec *executionContext) field_Mutation_requestClientCredentialsForRuntime_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8626 var err error 8627 args := map[string]interface{}{} 8628 var arg0 string 8629 if tmp, ok := rawArgs["id"]; ok { 8630 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8631 if err != nil { 8632 return nil, err 8633 } 8634 } 8635 args["id"] = arg0 8636 return args, nil 8637 } 8638 8639 func (ec *executionContext) field_Mutation_requestOneTimeTokenForApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8640 var err error 8641 args := map[string]interface{}{} 8642 var arg0 string 8643 if tmp, ok := rawArgs["id"]; ok { 8644 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8645 if err != nil { 8646 return nil, err 8647 } 8648 } 8649 args["id"] = arg0 8650 var arg1 *string 8651 if tmp, ok := rawArgs["systemAuthID"]; ok { 8652 arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp) 8653 if err != nil { 8654 return nil, err 8655 } 8656 } 8657 args["systemAuthID"] = arg1 8658 return args, nil 8659 } 8660 8661 func (ec *executionContext) field_Mutation_requestOneTimeTokenForRuntime_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8662 var err error 8663 args := map[string]interface{}{} 8664 var arg0 string 8665 if tmp, ok := rawArgs["id"]; ok { 8666 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8667 if err != nil { 8668 return nil, err 8669 } 8670 } 8671 args["id"] = arg0 8672 var arg1 *string 8673 if tmp, ok := rawArgs["systemAuthID"]; ok { 8674 arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp) 8675 if err != nil { 8676 return nil, err 8677 } 8678 } 8679 args["systemAuthID"] = arg1 8680 return args, nil 8681 } 8682 8683 func (ec *executionContext) field_Mutation_resynchronizeFormationNotifications_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8684 var err error 8685 args := map[string]interface{}{} 8686 var arg0 string 8687 if tmp, ok := rawArgs["formationID"]; ok { 8688 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8689 if err != nil { 8690 return nil, err 8691 } 8692 } 8693 args["formationID"] = arg0 8694 return args, nil 8695 } 8696 8697 func (ec *executionContext) field_Mutation_setApplicationLabel_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8698 var err error 8699 args := map[string]interface{}{} 8700 var arg0 string 8701 if tmp, ok := rawArgs["applicationID"]; ok { 8702 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8703 if err != nil { 8704 return nil, err 8705 } 8706 } 8707 args["applicationID"] = arg0 8708 var arg1 string 8709 if tmp, ok := rawArgs["key"]; ok { 8710 arg1, err = ec.unmarshalNString2string(ctx, tmp) 8711 if err != nil { 8712 return nil, err 8713 } 8714 } 8715 args["key"] = arg1 8716 var arg2 interface{} 8717 if tmp, ok := rawArgs["value"]; ok { 8718 arg2, err = ec.unmarshalNAny2interface(ctx, tmp) 8719 if err != nil { 8720 return nil, err 8721 } 8722 } 8723 args["value"] = arg2 8724 return args, nil 8725 } 8726 8727 func (ec *executionContext) field_Mutation_setBundleInstanceAuth_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8728 var err error 8729 args := map[string]interface{}{} 8730 var arg0 string 8731 if tmp, ok := rawArgs["authID"]; ok { 8732 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8733 if err != nil { 8734 return nil, err 8735 } 8736 } 8737 args["authID"] = arg0 8738 var arg1 BundleInstanceAuthSetInput 8739 if tmp, ok := rawArgs["in"]; ok { 8740 directive0 := func(ctx context.Context) (interface{}, error) { 8741 return ec.unmarshalNBundleInstanceAuthSetInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthSetInput(ctx, tmp) 8742 } 8743 directive1 := func(ctx context.Context) (interface{}, error) { 8744 if ec.directives.Validate == nil { 8745 return nil, errors.New("directive validate is not implemented") 8746 } 8747 return ec.directives.Validate(ctx, rawArgs, directive0) 8748 } 8749 8750 tmp, err = directive1(ctx) 8751 if err != nil { 8752 return nil, err 8753 } 8754 if data, ok := tmp.(BundleInstanceAuthSetInput); ok { 8755 arg1 = data 8756 } else { 8757 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuthSetInput`, tmp) 8758 } 8759 } 8760 args["in"] = arg1 8761 return args, nil 8762 } 8763 8764 func (ec *executionContext) field_Mutation_setDefaultEventingForApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8765 var err error 8766 args := map[string]interface{}{} 8767 var arg0 string 8768 if tmp, ok := rawArgs["appID"]; ok { 8769 arg0, err = ec.unmarshalNString2string(ctx, tmp) 8770 if err != nil { 8771 return nil, err 8772 } 8773 } 8774 args["appID"] = arg0 8775 var arg1 string 8776 if tmp, ok := rawArgs["runtimeID"]; ok { 8777 arg1, err = ec.unmarshalNString2string(ctx, tmp) 8778 if err != nil { 8779 return nil, err 8780 } 8781 } 8782 args["runtimeID"] = arg1 8783 return args, nil 8784 } 8785 8786 func (ec *executionContext) field_Mutation_setRuntimeLabel_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8787 var err error 8788 args := map[string]interface{}{} 8789 var arg0 string 8790 if tmp, ok := rawArgs["runtimeID"]; ok { 8791 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8792 if err != nil { 8793 return nil, err 8794 } 8795 } 8796 args["runtimeID"] = arg0 8797 var arg1 string 8798 if tmp, ok := rawArgs["key"]; ok { 8799 arg1, err = ec.unmarshalNString2string(ctx, tmp) 8800 if err != nil { 8801 return nil, err 8802 } 8803 } 8804 args["key"] = arg1 8805 var arg2 interface{} 8806 if tmp, ok := rawArgs["value"]; ok { 8807 arg2, err = ec.unmarshalNAny2interface(ctx, tmp) 8808 if err != nil { 8809 return nil, err 8810 } 8811 } 8812 args["value"] = arg2 8813 return args, nil 8814 } 8815 8816 func (ec *executionContext) field_Mutation_subscribeTenant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8817 var err error 8818 args := map[string]interface{}{} 8819 var arg0 string 8820 if tmp, ok := rawArgs["providerID"]; ok { 8821 arg0, err = ec.unmarshalNString2string(ctx, tmp) 8822 if err != nil { 8823 return nil, err 8824 } 8825 } 8826 args["providerID"] = arg0 8827 var arg1 string 8828 if tmp, ok := rawArgs["subaccountID"]; ok { 8829 arg1, err = ec.unmarshalNString2string(ctx, tmp) 8830 if err != nil { 8831 return nil, err 8832 } 8833 } 8834 args["subaccountID"] = arg1 8835 var arg2 string 8836 if tmp, ok := rawArgs["providerSubaccountID"]; ok { 8837 arg2, err = ec.unmarshalNString2string(ctx, tmp) 8838 if err != nil { 8839 return nil, err 8840 } 8841 } 8842 args["providerSubaccountID"] = arg2 8843 var arg3 string 8844 if tmp, ok := rawArgs["consumerTenantID"]; ok { 8845 arg3, err = ec.unmarshalNString2string(ctx, tmp) 8846 if err != nil { 8847 return nil, err 8848 } 8849 } 8850 args["consumerTenantID"] = arg3 8851 var arg4 string 8852 if tmp, ok := rawArgs["region"]; ok { 8853 arg4, err = ec.unmarshalNString2string(ctx, tmp) 8854 if err != nil { 8855 return nil, err 8856 } 8857 } 8858 args["region"] = arg4 8859 var arg5 string 8860 if tmp, ok := rawArgs["subscriptionAppName"]; ok { 8861 arg5, err = ec.unmarshalNString2string(ctx, tmp) 8862 if err != nil { 8863 return nil, err 8864 } 8865 } 8866 args["subscriptionAppName"] = arg5 8867 var arg6 string 8868 if tmp, ok := rawArgs["subscriptionPayload"]; ok { 8869 arg6, err = ec.unmarshalNString2string(ctx, tmp) 8870 if err != nil { 8871 return nil, err 8872 } 8873 } 8874 args["subscriptionPayload"] = arg6 8875 return args, nil 8876 } 8877 8878 func (ec *executionContext) field_Mutation_unassignFormation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8879 var err error 8880 args := map[string]interface{}{} 8881 var arg0 string 8882 if tmp, ok := rawArgs["objectID"]; ok { 8883 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8884 if err != nil { 8885 return nil, err 8886 } 8887 } 8888 args["objectID"] = arg0 8889 var arg1 FormationObjectType 8890 if tmp, ok := rawArgs["objectType"]; ok { 8891 arg1, err = ec.unmarshalNFormationObjectType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationObjectType(ctx, tmp) 8892 if err != nil { 8893 return nil, err 8894 } 8895 } 8896 args["objectType"] = arg1 8897 var arg2 FormationInput 8898 if tmp, ok := rawArgs["formation"]; ok { 8899 arg2, err = ec.unmarshalNFormationInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationInput(ctx, tmp) 8900 if err != nil { 8901 return nil, err 8902 } 8903 } 8904 args["formation"] = arg2 8905 return args, nil 8906 } 8907 8908 func (ec *executionContext) field_Mutation_unpairApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8909 var err error 8910 args := map[string]interface{}{} 8911 var arg0 string 8912 if tmp, ok := rawArgs["id"]; ok { 8913 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8914 if err != nil { 8915 return nil, err 8916 } 8917 } 8918 args["id"] = arg0 8919 var arg1 *OperationMode 8920 if tmp, ok := rawArgs["mode"]; ok { 8921 arg1, err = ec.unmarshalOOperationMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationMode(ctx, tmp) 8922 if err != nil { 8923 return nil, err 8924 } 8925 } 8926 args["mode"] = arg1 8927 return args, nil 8928 } 8929 8930 func (ec *executionContext) field_Mutation_unregisterApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8931 var err error 8932 args := map[string]interface{}{} 8933 var arg0 string 8934 if tmp, ok := rawArgs["id"]; ok { 8935 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8936 if err != nil { 8937 return nil, err 8938 } 8939 } 8940 args["id"] = arg0 8941 var arg1 *OperationMode 8942 if tmp, ok := rawArgs["mode"]; ok { 8943 arg1, err = ec.unmarshalOOperationMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationMode(ctx, tmp) 8944 if err != nil { 8945 return nil, err 8946 } 8947 } 8948 args["mode"] = arg1 8949 return args, nil 8950 } 8951 8952 func (ec *executionContext) field_Mutation_unregisterIntegrationSystem_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8953 var err error 8954 args := map[string]interface{}{} 8955 var arg0 string 8956 if tmp, ok := rawArgs["id"]; ok { 8957 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8958 if err != nil { 8959 return nil, err 8960 } 8961 } 8962 args["id"] = arg0 8963 return args, nil 8964 } 8965 8966 func (ec *executionContext) field_Mutation_unregisterRuntimeContext_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8967 var err error 8968 args := map[string]interface{}{} 8969 var arg0 string 8970 if tmp, ok := rawArgs["id"]; ok { 8971 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8972 if err != nil { 8973 return nil, err 8974 } 8975 } 8976 args["id"] = arg0 8977 return args, nil 8978 } 8979 8980 func (ec *executionContext) field_Mutation_unregisterRuntime_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8981 var err error 8982 args := map[string]interface{}{} 8983 var arg0 string 8984 if tmp, ok := rawArgs["id"]; ok { 8985 arg0, err = ec.unmarshalNID2string(ctx, tmp) 8986 if err != nil { 8987 return nil, err 8988 } 8989 } 8990 args["id"] = arg0 8991 return args, nil 8992 } 8993 8994 func (ec *executionContext) field_Mutation_unsubscribeTenant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 8995 var err error 8996 args := map[string]interface{}{} 8997 var arg0 string 8998 if tmp, ok := rawArgs["providerID"]; ok { 8999 arg0, err = ec.unmarshalNString2string(ctx, tmp) 9000 if err != nil { 9001 return nil, err 9002 } 9003 } 9004 args["providerID"] = arg0 9005 var arg1 string 9006 if tmp, ok := rawArgs["subaccountID"]; ok { 9007 arg1, err = ec.unmarshalNString2string(ctx, tmp) 9008 if err != nil { 9009 return nil, err 9010 } 9011 } 9012 args["subaccountID"] = arg1 9013 var arg2 string 9014 if tmp, ok := rawArgs["providerSubaccountID"]; ok { 9015 arg2, err = ec.unmarshalNString2string(ctx, tmp) 9016 if err != nil { 9017 return nil, err 9018 } 9019 } 9020 args["providerSubaccountID"] = arg2 9021 var arg3 string 9022 if tmp, ok := rawArgs["consumerTenantID"]; ok { 9023 arg3, err = ec.unmarshalNString2string(ctx, tmp) 9024 if err != nil { 9025 return nil, err 9026 } 9027 } 9028 args["consumerTenantID"] = arg3 9029 var arg4 string 9030 if tmp, ok := rawArgs["region"]; ok { 9031 arg4, err = ec.unmarshalNString2string(ctx, tmp) 9032 if err != nil { 9033 return nil, err 9034 } 9035 } 9036 args["region"] = arg4 9037 return args, nil 9038 } 9039 9040 func (ec *executionContext) field_Mutation_updateAPIDefinitionForApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9041 var err error 9042 args := map[string]interface{}{} 9043 var arg0 string 9044 if tmp, ok := rawArgs["id"]; ok { 9045 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9046 if err != nil { 9047 return nil, err 9048 } 9049 } 9050 args["id"] = arg0 9051 var arg1 APIDefinitionInput 9052 if tmp, ok := rawArgs["in"]; ok { 9053 directive0 := func(ctx context.Context) (interface{}, error) { 9054 return ec.unmarshalNAPIDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionInput(ctx, tmp) 9055 } 9056 directive1 := func(ctx context.Context) (interface{}, error) { 9057 if ec.directives.Validate == nil { 9058 return nil, errors.New("directive validate is not implemented") 9059 } 9060 return ec.directives.Validate(ctx, rawArgs, directive0) 9061 } 9062 9063 tmp, err = directive1(ctx) 9064 if err != nil { 9065 return nil, err 9066 } 9067 if data, ok := tmp.(APIDefinitionInput); ok { 9068 arg1 = data 9069 } else { 9070 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.APIDefinitionInput`, tmp) 9071 } 9072 } 9073 args["in"] = arg1 9074 return args, nil 9075 } 9076 9077 func (ec *executionContext) field_Mutation_updateAPIDefinition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9078 var err error 9079 args := map[string]interface{}{} 9080 var arg0 string 9081 if tmp, ok := rawArgs["id"]; ok { 9082 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9083 if err != nil { 9084 return nil, err 9085 } 9086 } 9087 args["id"] = arg0 9088 var arg1 APIDefinitionInput 9089 if tmp, ok := rawArgs["in"]; ok { 9090 directive0 := func(ctx context.Context) (interface{}, error) { 9091 return ec.unmarshalNAPIDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionInput(ctx, tmp) 9092 } 9093 directive1 := func(ctx context.Context) (interface{}, error) { 9094 if ec.directives.Validate == nil { 9095 return nil, errors.New("directive validate is not implemented") 9096 } 9097 return ec.directives.Validate(ctx, rawArgs, directive0) 9098 } 9099 9100 tmp, err = directive1(ctx) 9101 if err != nil { 9102 return nil, err 9103 } 9104 if data, ok := tmp.(APIDefinitionInput); ok { 9105 arg1 = data 9106 } else { 9107 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.APIDefinitionInput`, tmp) 9108 } 9109 } 9110 args["in"] = arg1 9111 return args, nil 9112 } 9113 9114 func (ec *executionContext) field_Mutation_updateApplicationTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9115 var err error 9116 args := map[string]interface{}{} 9117 var arg0 string 9118 if tmp, ok := rawArgs["id"]; ok { 9119 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9120 if err != nil { 9121 return nil, err 9122 } 9123 } 9124 args["id"] = arg0 9125 var arg1 ApplicationTemplateUpdateInput 9126 if tmp, ok := rawArgs["in"]; ok { 9127 directive0 := func(ctx context.Context) (interface{}, error) { 9128 return ec.unmarshalNApplicationTemplateUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateUpdateInput(ctx, tmp) 9129 } 9130 directive1 := func(ctx context.Context) (interface{}, error) { 9131 if ec.directives.Validate == nil { 9132 return nil, errors.New("directive validate is not implemented") 9133 } 9134 return ec.directives.Validate(ctx, rawArgs, directive0) 9135 } 9136 9137 tmp, err = directive1(ctx) 9138 if err != nil { 9139 return nil, err 9140 } 9141 if data, ok := tmp.(ApplicationTemplateUpdateInput); ok { 9142 arg1 = data 9143 } else { 9144 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationTemplateUpdateInput`, tmp) 9145 } 9146 } 9147 args["in"] = arg1 9148 return args, nil 9149 } 9150 9151 func (ec *executionContext) field_Mutation_updateApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9152 var err error 9153 args := map[string]interface{}{} 9154 var arg0 string 9155 if tmp, ok := rawArgs["id"]; ok { 9156 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9157 if err != nil { 9158 return nil, err 9159 } 9160 } 9161 args["id"] = arg0 9162 var arg1 ApplicationUpdateInput 9163 if tmp, ok := rawArgs["in"]; ok { 9164 directive0 := func(ctx context.Context) (interface{}, error) { 9165 return ec.unmarshalNApplicationUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationUpdateInput(ctx, tmp) 9166 } 9167 directive1 := func(ctx context.Context) (interface{}, error) { 9168 if ec.directives.Validate == nil { 9169 return nil, errors.New("directive validate is not implemented") 9170 } 9171 return ec.directives.Validate(ctx, rawArgs, directive0) 9172 } 9173 9174 tmp, err = directive1(ctx) 9175 if err != nil { 9176 return nil, err 9177 } 9178 if data, ok := tmp.(ApplicationUpdateInput); ok { 9179 arg1 = data 9180 } else { 9181 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationUpdateInput`, tmp) 9182 } 9183 } 9184 args["in"] = arg1 9185 return args, nil 9186 } 9187 9188 func (ec *executionContext) field_Mutation_updateBundleInstanceAuth_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9189 var err error 9190 args := map[string]interface{}{} 9191 var arg0 string 9192 if tmp, ok := rawArgs["id"]; ok { 9193 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9194 if err != nil { 9195 return nil, err 9196 } 9197 } 9198 args["id"] = arg0 9199 var arg1 string 9200 if tmp, ok := rawArgs["bundleID"]; ok { 9201 arg1, err = ec.unmarshalNID2string(ctx, tmp) 9202 if err != nil { 9203 return nil, err 9204 } 9205 } 9206 args["bundleID"] = arg1 9207 var arg2 BundleInstanceAuthUpdateInput 9208 if tmp, ok := rawArgs["in"]; ok { 9209 arg2, err = ec.unmarshalNBundleInstanceAuthUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthUpdateInput(ctx, tmp) 9210 if err != nil { 9211 return nil, err 9212 } 9213 } 9214 args["in"] = arg2 9215 return args, nil 9216 } 9217 9218 func (ec *executionContext) field_Mutation_updateBundle_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9219 var err error 9220 args := map[string]interface{}{} 9221 var arg0 string 9222 if tmp, ok := rawArgs["id"]; ok { 9223 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9224 if err != nil { 9225 return nil, err 9226 } 9227 } 9228 args["id"] = arg0 9229 var arg1 BundleUpdateInput 9230 if tmp, ok := rawArgs["in"]; ok { 9231 directive0 := func(ctx context.Context) (interface{}, error) { 9232 return ec.unmarshalNBundleUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleUpdateInput(ctx, tmp) 9233 } 9234 directive1 := func(ctx context.Context) (interface{}, error) { 9235 if ec.directives.Validate == nil { 9236 return nil, errors.New("directive validate is not implemented") 9237 } 9238 return ec.directives.Validate(ctx, rawArgs, directive0) 9239 } 9240 9241 tmp, err = directive1(ctx) 9242 if err != nil { 9243 return nil, err 9244 } 9245 if data, ok := tmp.(BundleUpdateInput); ok { 9246 arg1 = data 9247 } else { 9248 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleUpdateInput`, tmp) 9249 } 9250 } 9251 args["in"] = arg1 9252 return args, nil 9253 } 9254 9255 func (ec *executionContext) field_Mutation_updateCertificateSubjectMapping_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9256 var err error 9257 args := map[string]interface{}{} 9258 var arg0 string 9259 if tmp, ok := rawArgs["id"]; ok { 9260 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9261 if err != nil { 9262 return nil, err 9263 } 9264 } 9265 args["id"] = arg0 9266 var arg1 CertificateSubjectMappingInput 9267 if tmp, ok := rawArgs["in"]; ok { 9268 directive0 := func(ctx context.Context) (interface{}, error) { 9269 return ec.unmarshalNCertificateSubjectMappingInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMappingInput(ctx, tmp) 9270 } 9271 directive1 := func(ctx context.Context) (interface{}, error) { 9272 if ec.directives.Validate == nil { 9273 return nil, errors.New("directive validate is not implemented") 9274 } 9275 return ec.directives.Validate(ctx, rawArgs, directive0) 9276 } 9277 9278 tmp, err = directive1(ctx) 9279 if err != nil { 9280 return nil, err 9281 } 9282 if data, ok := tmp.(CertificateSubjectMappingInput); ok { 9283 arg1 = data 9284 } else { 9285 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.CertificateSubjectMappingInput`, tmp) 9286 } 9287 } 9288 args["in"] = arg1 9289 return args, nil 9290 } 9291 9292 func (ec *executionContext) field_Mutation_updateEventDefinitionForApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9293 var err error 9294 args := map[string]interface{}{} 9295 var arg0 string 9296 if tmp, ok := rawArgs["id"]; ok { 9297 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9298 if err != nil { 9299 return nil, err 9300 } 9301 } 9302 args["id"] = arg0 9303 var arg1 EventDefinitionInput 9304 if tmp, ok := rawArgs["in"]; ok { 9305 directive0 := func(ctx context.Context) (interface{}, error) { 9306 return ec.unmarshalNEventDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionInput(ctx, tmp) 9307 } 9308 directive1 := func(ctx context.Context) (interface{}, error) { 9309 if ec.directives.Validate == nil { 9310 return nil, errors.New("directive validate is not implemented") 9311 } 9312 return ec.directives.Validate(ctx, rawArgs, directive0) 9313 } 9314 9315 tmp, err = directive1(ctx) 9316 if err != nil { 9317 return nil, err 9318 } 9319 if data, ok := tmp.(EventDefinitionInput); ok { 9320 arg1 = data 9321 } else { 9322 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.EventDefinitionInput`, tmp) 9323 } 9324 } 9325 args["in"] = arg1 9326 return args, nil 9327 } 9328 9329 func (ec *executionContext) field_Mutation_updateEventDefinition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9330 var err error 9331 args := map[string]interface{}{} 9332 var arg0 string 9333 if tmp, ok := rawArgs["id"]; ok { 9334 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9335 if err != nil { 9336 return nil, err 9337 } 9338 } 9339 args["id"] = arg0 9340 var arg1 EventDefinitionInput 9341 if tmp, ok := rawArgs["in"]; ok { 9342 directive0 := func(ctx context.Context) (interface{}, error) { 9343 return ec.unmarshalNEventDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionInput(ctx, tmp) 9344 } 9345 directive1 := func(ctx context.Context) (interface{}, error) { 9346 if ec.directives.Validate == nil { 9347 return nil, errors.New("directive validate is not implemented") 9348 } 9349 return ec.directives.Validate(ctx, rawArgs, directive0) 9350 } 9351 9352 tmp, err = directive1(ctx) 9353 if err != nil { 9354 return nil, err 9355 } 9356 if data, ok := tmp.(EventDefinitionInput); ok { 9357 arg1 = data 9358 } else { 9359 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.EventDefinitionInput`, tmp) 9360 } 9361 } 9362 args["in"] = arg1 9363 return args, nil 9364 } 9365 9366 func (ec *executionContext) field_Mutation_updateFormationConstraint_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9367 var err error 9368 args := map[string]interface{}{} 9369 var arg0 string 9370 if tmp, ok := rawArgs["id"]; ok { 9371 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9372 if err != nil { 9373 return nil, err 9374 } 9375 } 9376 args["id"] = arg0 9377 var arg1 FormationConstraintUpdateInput 9378 if tmp, ok := rawArgs["in"]; ok { 9379 arg1, err = ec.unmarshalNFormationConstraintUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraintUpdateInput(ctx, tmp) 9380 if err != nil { 9381 return nil, err 9382 } 9383 } 9384 args["in"] = arg1 9385 return args, nil 9386 } 9387 9388 func (ec *executionContext) field_Mutation_updateFormationTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9389 var err error 9390 args := map[string]interface{}{} 9391 var arg0 string 9392 if tmp, ok := rawArgs["id"]; ok { 9393 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9394 if err != nil { 9395 return nil, err 9396 } 9397 } 9398 args["id"] = arg0 9399 var arg1 FormationTemplateInput 9400 if tmp, ok := rawArgs["in"]; ok { 9401 directive0 := func(ctx context.Context) (interface{}, error) { 9402 return ec.unmarshalNFormationTemplateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplateInput(ctx, tmp) 9403 } 9404 directive1 := func(ctx context.Context) (interface{}, error) { 9405 if ec.directives.Validate == nil { 9406 return nil, errors.New("directive validate is not implemented") 9407 } 9408 return ec.directives.Validate(ctx, rawArgs, directive0) 9409 } 9410 9411 tmp, err = directive1(ctx) 9412 if err != nil { 9413 return nil, err 9414 } 9415 if data, ok := tmp.(FormationTemplateInput); ok { 9416 arg1 = data 9417 } else { 9418 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationTemplateInput`, tmp) 9419 } 9420 } 9421 args["in"] = arg1 9422 return args, nil 9423 } 9424 9425 func (ec *executionContext) field_Mutation_updateIntegrationSystem_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9426 var err error 9427 args := map[string]interface{}{} 9428 var arg0 string 9429 if tmp, ok := rawArgs["id"]; ok { 9430 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9431 if err != nil { 9432 return nil, err 9433 } 9434 } 9435 args["id"] = arg0 9436 var arg1 IntegrationSystemInput 9437 if tmp, ok := rawArgs["in"]; ok { 9438 directive0 := func(ctx context.Context) (interface{}, error) { 9439 return ec.unmarshalNIntegrationSystemInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystemInput(ctx, tmp) 9440 } 9441 directive1 := func(ctx context.Context) (interface{}, error) { 9442 if ec.directives.Validate == nil { 9443 return nil, errors.New("directive validate is not implemented") 9444 } 9445 return ec.directives.Validate(ctx, rawArgs, directive0) 9446 } 9447 9448 tmp, err = directive1(ctx) 9449 if err != nil { 9450 return nil, err 9451 } 9452 if data, ok := tmp.(IntegrationSystemInput); ok { 9453 arg1 = data 9454 } else { 9455 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.IntegrationSystemInput`, tmp) 9456 } 9457 } 9458 args["in"] = arg1 9459 return args, nil 9460 } 9461 9462 func (ec *executionContext) field_Mutation_updateLabelDefinition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9463 var err error 9464 args := map[string]interface{}{} 9465 var arg0 LabelDefinitionInput 9466 if tmp, ok := rawArgs["in"]; ok { 9467 directive0 := func(ctx context.Context) (interface{}, error) { 9468 return ec.unmarshalNLabelDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinitionInput(ctx, tmp) 9469 } 9470 directive1 := func(ctx context.Context) (interface{}, error) { 9471 if ec.directives.Validate == nil { 9472 return nil, errors.New("directive validate is not implemented") 9473 } 9474 return ec.directives.Validate(ctx, rawArgs, directive0) 9475 } 9476 9477 tmp, err = directive1(ctx) 9478 if err != nil { 9479 return nil, err 9480 } 9481 if data, ok := tmp.(LabelDefinitionInput); ok { 9482 arg0 = data 9483 } else { 9484 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.LabelDefinitionInput`, tmp) 9485 } 9486 } 9487 args["in"] = arg0 9488 return args, nil 9489 } 9490 9491 func (ec *executionContext) field_Mutation_updateRuntimeContext_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9492 var err error 9493 args := map[string]interface{}{} 9494 var arg0 string 9495 if tmp, ok := rawArgs["id"]; ok { 9496 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9497 if err != nil { 9498 return nil, err 9499 } 9500 } 9501 args["id"] = arg0 9502 var arg1 RuntimeContextInput 9503 if tmp, ok := rawArgs["in"]; ok { 9504 directive0 := func(ctx context.Context) (interface{}, error) { 9505 return ec.unmarshalNRuntimeContextInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContextInput(ctx, tmp) 9506 } 9507 directive1 := func(ctx context.Context) (interface{}, error) { 9508 if ec.directives.Validate == nil { 9509 return nil, errors.New("directive validate is not implemented") 9510 } 9511 return ec.directives.Validate(ctx, rawArgs, directive0) 9512 } 9513 9514 tmp, err = directive1(ctx) 9515 if err != nil { 9516 return nil, err 9517 } 9518 if data, ok := tmp.(RuntimeContextInput); ok { 9519 arg1 = data 9520 } else { 9521 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.RuntimeContextInput`, tmp) 9522 } 9523 } 9524 args["in"] = arg1 9525 return args, nil 9526 } 9527 9528 func (ec *executionContext) field_Mutation_updateRuntime_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9529 var err error 9530 args := map[string]interface{}{} 9531 var arg0 string 9532 if tmp, ok := rawArgs["id"]; ok { 9533 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9534 if err != nil { 9535 return nil, err 9536 } 9537 } 9538 args["id"] = arg0 9539 var arg1 RuntimeUpdateInput 9540 if tmp, ok := rawArgs["in"]; ok { 9541 directive0 := func(ctx context.Context) (interface{}, error) { 9542 return ec.unmarshalNRuntimeUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeUpdateInput(ctx, tmp) 9543 } 9544 directive1 := func(ctx context.Context) (interface{}, error) { 9545 if ec.directives.Validate == nil { 9546 return nil, errors.New("directive validate is not implemented") 9547 } 9548 return ec.directives.Validate(ctx, rawArgs, directive0) 9549 } 9550 9551 tmp, err = directive1(ctx) 9552 if err != nil { 9553 return nil, err 9554 } 9555 if data, ok := tmp.(RuntimeUpdateInput); ok { 9556 arg1 = data 9557 } else { 9558 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.RuntimeUpdateInput`, tmp) 9559 } 9560 } 9561 args["in"] = arg1 9562 return args, nil 9563 } 9564 9565 func (ec *executionContext) field_Mutation_updateSystemAuth_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9566 var err error 9567 args := map[string]interface{}{} 9568 var arg0 string 9569 if tmp, ok := rawArgs["authID"]; ok { 9570 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9571 if err != nil { 9572 return nil, err 9573 } 9574 } 9575 args["authID"] = arg0 9576 var arg1 AuthInput 9577 if tmp, ok := rawArgs["in"]; ok { 9578 arg1, err = ec.unmarshalNAuthInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, tmp) 9579 if err != nil { 9580 return nil, err 9581 } 9582 } 9583 args["in"] = arg1 9584 return args, nil 9585 } 9586 9587 func (ec *executionContext) field_Mutation_updateTenant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9588 var err error 9589 args := map[string]interface{}{} 9590 var arg0 string 9591 if tmp, ok := rawArgs["id"]; ok { 9592 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9593 if err != nil { 9594 return nil, err 9595 } 9596 } 9597 args["id"] = arg0 9598 var arg1 BusinessTenantMappingInput 9599 if tmp, ok := rawArgs["in"]; ok { 9600 arg1, err = ec.unmarshalNBusinessTenantMappingInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBusinessTenantMappingInput(ctx, tmp) 9601 if err != nil { 9602 return nil, err 9603 } 9604 } 9605 args["in"] = arg1 9606 return args, nil 9607 } 9608 9609 func (ec *executionContext) field_Mutation_updateWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9610 var err error 9611 args := map[string]interface{}{} 9612 var arg0 string 9613 if tmp, ok := rawArgs["webhookID"]; ok { 9614 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9615 if err != nil { 9616 return nil, err 9617 } 9618 } 9619 args["webhookID"] = arg0 9620 var arg1 WebhookInput 9621 if tmp, ok := rawArgs["in"]; ok { 9622 directive0 := func(ctx context.Context) (interface{}, error) { 9623 return ec.unmarshalNWebhookInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInput(ctx, tmp) 9624 } 9625 directive1 := func(ctx context.Context) (interface{}, error) { 9626 if ec.directives.Validate == nil { 9627 return nil, errors.New("directive validate is not implemented") 9628 } 9629 return ec.directives.Validate(ctx, rawArgs, directive0) 9630 } 9631 9632 tmp, err = directive1(ctx) 9633 if err != nil { 9634 return nil, err 9635 } 9636 if data, ok := tmp.(WebhookInput); ok { 9637 arg1 = data 9638 } else { 9639 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.WebhookInput`, tmp) 9640 } 9641 } 9642 args["in"] = arg1 9643 return args, nil 9644 } 9645 9646 func (ec *executionContext) field_Mutation_writeTenant_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9647 var err error 9648 args := map[string]interface{}{} 9649 var arg0 BusinessTenantMappingInput 9650 if tmp, ok := rawArgs["in"]; ok { 9651 arg0, err = ec.unmarshalNBusinessTenantMappingInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBusinessTenantMappingInput(ctx, tmp) 9652 if err != nil { 9653 return nil, err 9654 } 9655 } 9656 args["in"] = arg0 9657 return args, nil 9658 } 9659 9660 func (ec *executionContext) field_Mutation_writeTenants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9661 var err error 9662 args := map[string]interface{}{} 9663 var arg0 []*BusinessTenantMappingInput 9664 if tmp, ok := rawArgs["in"]; ok { 9665 arg0, err = ec.unmarshalOBusinessTenantMappingInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBusinessTenantMappingInputᚄ(ctx, tmp) 9666 if err != nil { 9667 return nil, err 9668 } 9669 } 9670 args["in"] = arg0 9671 return args, nil 9672 } 9673 9674 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9675 var err error 9676 args := map[string]interface{}{} 9677 var arg0 string 9678 if tmp, ok := rawArgs["name"]; ok { 9679 arg0, err = ec.unmarshalNString2string(ctx, tmp) 9680 if err != nil { 9681 return nil, err 9682 } 9683 } 9684 args["name"] = arg0 9685 return args, nil 9686 } 9687 9688 func (ec *executionContext) field_Query_apisForApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9689 var err error 9690 args := map[string]interface{}{} 9691 var arg0 string 9692 if tmp, ok := rawArgs["appID"]; ok { 9693 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9694 if err != nil { 9695 return nil, err 9696 } 9697 } 9698 args["appID"] = arg0 9699 var arg1 *int 9700 if tmp, ok := rawArgs["first"]; ok { 9701 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 9702 if err != nil { 9703 return nil, err 9704 } 9705 } 9706 args["first"] = arg1 9707 var arg2 *PageCursor 9708 if tmp, ok := rawArgs["after"]; ok { 9709 arg2, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 9710 if err != nil { 9711 return nil, err 9712 } 9713 } 9714 args["after"] = arg2 9715 return args, nil 9716 } 9717 9718 func (ec *executionContext) field_Query_applicationBySystemNumber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9719 var err error 9720 args := map[string]interface{}{} 9721 var arg0 string 9722 if tmp, ok := rawArgs["systemNumber"]; ok { 9723 arg0, err = ec.unmarshalNString2string(ctx, tmp) 9724 if err != nil { 9725 return nil, err 9726 } 9727 } 9728 args["systemNumber"] = arg0 9729 return args, nil 9730 } 9731 9732 func (ec *executionContext) field_Query_applicationTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9733 var err error 9734 args := map[string]interface{}{} 9735 var arg0 string 9736 if tmp, ok := rawArgs["id"]; ok { 9737 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9738 if err != nil { 9739 return nil, err 9740 } 9741 } 9742 args["id"] = arg0 9743 return args, nil 9744 } 9745 9746 func (ec *executionContext) field_Query_applicationTemplates_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9747 var err error 9748 args := map[string]interface{}{} 9749 var arg0 []*LabelFilter 9750 if tmp, ok := rawArgs["filter"]; ok { 9751 arg0, err = ec.unmarshalOLabelFilter2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelFilterᚄ(ctx, tmp) 9752 if err != nil { 9753 return nil, err 9754 } 9755 } 9756 args["filter"] = arg0 9757 var arg1 *int 9758 if tmp, ok := rawArgs["first"]; ok { 9759 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 9760 if err != nil { 9761 return nil, err 9762 } 9763 } 9764 args["first"] = arg1 9765 var arg2 *PageCursor 9766 if tmp, ok := rawArgs["after"]; ok { 9767 arg2, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 9768 if err != nil { 9769 return nil, err 9770 } 9771 } 9772 args["after"] = arg2 9773 return args, nil 9774 } 9775 9776 func (ec *executionContext) field_Query_application_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9777 var err error 9778 args := map[string]interface{}{} 9779 var arg0 string 9780 if tmp, ok := rawArgs["id"]; ok { 9781 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9782 if err != nil { 9783 return nil, err 9784 } 9785 } 9786 args["id"] = arg0 9787 return args, nil 9788 } 9789 9790 func (ec *executionContext) field_Query_applicationsForRuntime_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9791 var err error 9792 args := map[string]interface{}{} 9793 var arg0 string 9794 if tmp, ok := rawArgs["runtimeID"]; ok { 9795 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9796 if err != nil { 9797 return nil, err 9798 } 9799 } 9800 args["runtimeID"] = arg0 9801 var arg1 *int 9802 if tmp, ok := rawArgs["first"]; ok { 9803 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 9804 if err != nil { 9805 return nil, err 9806 } 9807 } 9808 args["first"] = arg1 9809 var arg2 *PageCursor 9810 if tmp, ok := rawArgs["after"]; ok { 9811 arg2, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 9812 if err != nil { 9813 return nil, err 9814 } 9815 } 9816 args["after"] = arg2 9817 return args, nil 9818 } 9819 9820 func (ec *executionContext) field_Query_applications_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9821 var err error 9822 args := map[string]interface{}{} 9823 var arg0 []*LabelFilter 9824 if tmp, ok := rawArgs["filter"]; ok { 9825 arg0, err = ec.unmarshalOLabelFilter2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelFilterᚄ(ctx, tmp) 9826 if err != nil { 9827 return nil, err 9828 } 9829 } 9830 args["filter"] = arg0 9831 var arg1 *int 9832 if tmp, ok := rawArgs["first"]; ok { 9833 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 9834 if err != nil { 9835 return nil, err 9836 } 9837 } 9838 args["first"] = arg1 9839 var arg2 *PageCursor 9840 if tmp, ok := rawArgs["after"]; ok { 9841 arg2, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 9842 if err != nil { 9843 return nil, err 9844 } 9845 } 9846 args["after"] = arg2 9847 return args, nil 9848 } 9849 9850 func (ec *executionContext) field_Query_automaticScenarioAssignmentForScenario_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9851 var err error 9852 args := map[string]interface{}{} 9853 var arg0 string 9854 if tmp, ok := rawArgs["scenarioName"]; ok { 9855 arg0, err = ec.unmarshalNString2string(ctx, tmp) 9856 if err != nil { 9857 return nil, err 9858 } 9859 } 9860 args["scenarioName"] = arg0 9861 return args, nil 9862 } 9863 9864 func (ec *executionContext) field_Query_automaticScenarioAssignmentsForSelector_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9865 var err error 9866 args := map[string]interface{}{} 9867 var arg0 LabelSelectorInput 9868 if tmp, ok := rawArgs["selector"]; ok { 9869 directive0 := func(ctx context.Context) (interface{}, error) { 9870 return ec.unmarshalNLabelSelectorInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelSelectorInput(ctx, tmp) 9871 } 9872 directive1 := func(ctx context.Context) (interface{}, error) { 9873 if ec.directives.Validate == nil { 9874 return nil, errors.New("directive validate is not implemented") 9875 } 9876 return ec.directives.Validate(ctx, rawArgs, directive0) 9877 } 9878 9879 tmp, err = directive1(ctx) 9880 if err != nil { 9881 return nil, err 9882 } 9883 if data, ok := tmp.(LabelSelectorInput); ok { 9884 arg0 = data 9885 } else { 9886 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.LabelSelectorInput`, tmp) 9887 } 9888 } 9889 args["selector"] = arg0 9890 return args, nil 9891 } 9892 9893 func (ec *executionContext) field_Query_automaticScenarioAssignments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9894 var err error 9895 args := map[string]interface{}{} 9896 var arg0 *int 9897 if tmp, ok := rawArgs["first"]; ok { 9898 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 9899 if err != nil { 9900 return nil, err 9901 } 9902 } 9903 args["first"] = arg0 9904 var arg1 *PageCursor 9905 if tmp, ok := rawArgs["after"]; ok { 9906 arg1, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 9907 if err != nil { 9908 return nil, err 9909 } 9910 } 9911 args["after"] = arg1 9912 return args, nil 9913 } 9914 9915 func (ec *executionContext) field_Query_bundleByInstanceAuth_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9916 var err error 9917 args := map[string]interface{}{} 9918 var arg0 string 9919 if tmp, ok := rawArgs["authID"]; ok { 9920 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9921 if err != nil { 9922 return nil, err 9923 } 9924 } 9925 args["authID"] = arg0 9926 return args, nil 9927 } 9928 9929 func (ec *executionContext) field_Query_bundleInstanceAuth_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9930 var err error 9931 args := map[string]interface{}{} 9932 var arg0 string 9933 if tmp, ok := rawArgs["id"]; ok { 9934 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9935 if err != nil { 9936 return nil, err 9937 } 9938 } 9939 args["id"] = arg0 9940 return args, nil 9941 } 9942 9943 func (ec *executionContext) field_Query_certificateSubjectMapping_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9944 var err error 9945 args := map[string]interface{}{} 9946 var arg0 string 9947 if tmp, ok := rawArgs["id"]; ok { 9948 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9949 if err != nil { 9950 return nil, err 9951 } 9952 } 9953 args["id"] = arg0 9954 return args, nil 9955 } 9956 9957 func (ec *executionContext) field_Query_certificateSubjectMappings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9958 var err error 9959 args := map[string]interface{}{} 9960 var arg0 *int 9961 if tmp, ok := rawArgs["first"]; ok { 9962 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 9963 if err != nil { 9964 return nil, err 9965 } 9966 } 9967 args["first"] = arg0 9968 var arg1 *PageCursor 9969 if tmp, ok := rawArgs["after"]; ok { 9970 arg1, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 9971 if err != nil { 9972 return nil, err 9973 } 9974 } 9975 args["after"] = arg1 9976 return args, nil 9977 } 9978 9979 func (ec *executionContext) field_Query_eventsForApplication_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 9980 var err error 9981 args := map[string]interface{}{} 9982 var arg0 string 9983 if tmp, ok := rawArgs["appID"]; ok { 9984 arg0, err = ec.unmarshalNID2string(ctx, tmp) 9985 if err != nil { 9986 return nil, err 9987 } 9988 } 9989 args["appID"] = arg0 9990 var arg1 *int 9991 if tmp, ok := rawArgs["first"]; ok { 9992 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 9993 if err != nil { 9994 return nil, err 9995 } 9996 } 9997 args["first"] = arg1 9998 var arg2 *PageCursor 9999 if tmp, ok := rawArgs["after"]; ok { 10000 arg2, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 10001 if err != nil { 10002 return nil, err 10003 } 10004 } 10005 args["after"] = arg2 10006 return args, nil 10007 } 10008 10009 func (ec *executionContext) field_Query_formationByName_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10010 var err error 10011 args := map[string]interface{}{} 10012 var arg0 string 10013 if tmp, ok := rawArgs["name"]; ok { 10014 arg0, err = ec.unmarshalNString2string(ctx, tmp) 10015 if err != nil { 10016 return nil, err 10017 } 10018 } 10019 args["name"] = arg0 10020 return args, nil 10021 } 10022 10023 func (ec *executionContext) field_Query_formationConstraint_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10024 var err error 10025 args := map[string]interface{}{} 10026 var arg0 string 10027 if tmp, ok := rawArgs["id"]; ok { 10028 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10029 if err != nil { 10030 return nil, err 10031 } 10032 } 10033 args["id"] = arg0 10034 return args, nil 10035 } 10036 10037 func (ec *executionContext) field_Query_formationConstraintsByFormationType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10038 var err error 10039 args := map[string]interface{}{} 10040 var arg0 string 10041 if tmp, ok := rawArgs["formationTemplateID"]; ok { 10042 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10043 if err != nil { 10044 return nil, err 10045 } 10046 } 10047 args["formationTemplateID"] = arg0 10048 return args, nil 10049 } 10050 10051 func (ec *executionContext) field_Query_formationTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10052 var err error 10053 args := map[string]interface{}{} 10054 var arg0 string 10055 if tmp, ok := rawArgs["id"]; ok { 10056 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10057 if err != nil { 10058 return nil, err 10059 } 10060 } 10061 args["id"] = arg0 10062 return args, nil 10063 } 10064 10065 func (ec *executionContext) field_Query_formationTemplates_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10066 var err error 10067 args := map[string]interface{}{} 10068 var arg0 *int 10069 if tmp, ok := rawArgs["first"]; ok { 10070 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 10071 if err != nil { 10072 return nil, err 10073 } 10074 } 10075 args["first"] = arg0 10076 var arg1 *PageCursor 10077 if tmp, ok := rawArgs["after"]; ok { 10078 arg1, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 10079 if err != nil { 10080 return nil, err 10081 } 10082 } 10083 args["after"] = arg1 10084 return args, nil 10085 } 10086 10087 func (ec *executionContext) field_Query_formation_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10088 var err error 10089 args := map[string]interface{}{} 10090 var arg0 string 10091 if tmp, ok := rawArgs["id"]; ok { 10092 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10093 if err != nil { 10094 return nil, err 10095 } 10096 } 10097 args["id"] = arg0 10098 return args, nil 10099 } 10100 10101 func (ec *executionContext) field_Query_formations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10102 var err error 10103 args := map[string]interface{}{} 10104 var arg0 *int 10105 if tmp, ok := rawArgs["first"]; ok { 10106 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 10107 if err != nil { 10108 return nil, err 10109 } 10110 } 10111 args["first"] = arg0 10112 var arg1 *PageCursor 10113 if tmp, ok := rawArgs["after"]; ok { 10114 arg1, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 10115 if err != nil { 10116 return nil, err 10117 } 10118 } 10119 args["after"] = arg1 10120 return args, nil 10121 } 10122 10123 func (ec *executionContext) field_Query_healthChecks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10124 var err error 10125 args := map[string]interface{}{} 10126 var arg0 []HealthCheckType 10127 if tmp, ok := rawArgs["types"]; ok { 10128 arg0, err = ec.unmarshalOHealthCheckType2ᚕgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckTypeᚄ(ctx, tmp) 10129 if err != nil { 10130 return nil, err 10131 } 10132 } 10133 args["types"] = arg0 10134 var arg1 *string 10135 if tmp, ok := rawArgs["origin"]; ok { 10136 arg1, err = ec.unmarshalOID2ᚖstring(ctx, tmp) 10137 if err != nil { 10138 return nil, err 10139 } 10140 } 10141 args["origin"] = arg1 10142 var arg2 *int 10143 if tmp, ok := rawArgs["first"]; ok { 10144 arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 10145 if err != nil { 10146 return nil, err 10147 } 10148 } 10149 args["first"] = arg2 10150 var arg3 *PageCursor 10151 if tmp, ok := rawArgs["after"]; ok { 10152 arg3, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 10153 if err != nil { 10154 return nil, err 10155 } 10156 } 10157 args["after"] = arg3 10158 return args, nil 10159 } 10160 10161 func (ec *executionContext) field_Query_integrationSystem_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10162 var err error 10163 args := map[string]interface{}{} 10164 var arg0 string 10165 if tmp, ok := rawArgs["id"]; ok { 10166 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10167 if err != nil { 10168 return nil, err 10169 } 10170 } 10171 args["id"] = arg0 10172 return args, nil 10173 } 10174 10175 func (ec *executionContext) field_Query_integrationSystems_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10176 var err error 10177 args := map[string]interface{}{} 10178 var arg0 *int 10179 if tmp, ok := rawArgs["first"]; ok { 10180 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 10181 if err != nil { 10182 return nil, err 10183 } 10184 } 10185 args["first"] = arg0 10186 var arg1 *PageCursor 10187 if tmp, ok := rawArgs["after"]; ok { 10188 arg1, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 10189 if err != nil { 10190 return nil, err 10191 } 10192 } 10193 args["after"] = arg1 10194 return args, nil 10195 } 10196 10197 func (ec *executionContext) field_Query_labelDefinition_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10198 var err error 10199 args := map[string]interface{}{} 10200 var arg0 string 10201 if tmp, ok := rawArgs["key"]; ok { 10202 arg0, err = ec.unmarshalNString2string(ctx, tmp) 10203 if err != nil { 10204 return nil, err 10205 } 10206 } 10207 args["key"] = arg0 10208 return args, nil 10209 } 10210 10211 func (ec *executionContext) field_Query_runtimeByTokenIssuer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10212 var err error 10213 args := map[string]interface{}{} 10214 var arg0 string 10215 if tmp, ok := rawArgs["issuer"]; ok { 10216 arg0, err = ec.unmarshalNString2string(ctx, tmp) 10217 if err != nil { 10218 return nil, err 10219 } 10220 } 10221 args["issuer"] = arg0 10222 return args, nil 10223 } 10224 10225 func (ec *executionContext) field_Query_runtime_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10226 var err error 10227 args := map[string]interface{}{} 10228 var arg0 string 10229 if tmp, ok := rawArgs["id"]; ok { 10230 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10231 if err != nil { 10232 return nil, err 10233 } 10234 } 10235 args["id"] = arg0 10236 return args, nil 10237 } 10238 10239 func (ec *executionContext) field_Query_runtimes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10240 var err error 10241 args := map[string]interface{}{} 10242 var arg0 []*LabelFilter 10243 if tmp, ok := rawArgs["filter"]; ok { 10244 arg0, err = ec.unmarshalOLabelFilter2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelFilterᚄ(ctx, tmp) 10245 if err != nil { 10246 return nil, err 10247 } 10248 } 10249 args["filter"] = arg0 10250 var arg1 *int 10251 if tmp, ok := rawArgs["first"]; ok { 10252 arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 10253 if err != nil { 10254 return nil, err 10255 } 10256 } 10257 args["first"] = arg1 10258 var arg2 *PageCursor 10259 if tmp, ok := rawArgs["after"]; ok { 10260 arg2, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 10261 if err != nil { 10262 return nil, err 10263 } 10264 } 10265 args["after"] = arg2 10266 return args, nil 10267 } 10268 10269 func (ec *executionContext) field_Query_systemAuthByToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10270 var err error 10271 args := map[string]interface{}{} 10272 var arg0 string 10273 if tmp, ok := rawArgs["token"]; ok { 10274 arg0, err = ec.unmarshalNString2string(ctx, tmp) 10275 if err != nil { 10276 return nil, err 10277 } 10278 } 10279 args["token"] = arg0 10280 return args, nil 10281 } 10282 10283 func (ec *executionContext) field_Query_systemAuth_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10284 var err error 10285 args := map[string]interface{}{} 10286 var arg0 string 10287 if tmp, ok := rawArgs["id"]; ok { 10288 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10289 if err != nil { 10290 return nil, err 10291 } 10292 } 10293 args["id"] = arg0 10294 return args, nil 10295 } 10296 10297 func (ec *executionContext) field_Query_tenantByExternalID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10298 var err error 10299 args := map[string]interface{}{} 10300 var arg0 string 10301 if tmp, ok := rawArgs["id"]; ok { 10302 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10303 if err != nil { 10304 return nil, err 10305 } 10306 } 10307 args["id"] = arg0 10308 return args, nil 10309 } 10310 10311 func (ec *executionContext) field_Query_tenantByInternalID_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10312 var err error 10313 args := map[string]interface{}{} 10314 var arg0 string 10315 if tmp, ok := rawArgs["id"]; ok { 10316 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10317 if err != nil { 10318 return nil, err 10319 } 10320 } 10321 args["id"] = arg0 10322 return args, nil 10323 } 10324 10325 func (ec *executionContext) field_Query_tenantByLowestOwnerForResource_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10326 var err error 10327 args := map[string]interface{}{} 10328 var arg0 string 10329 if tmp, ok := rawArgs["id"]; ok { 10330 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10331 if err != nil { 10332 return nil, err 10333 } 10334 } 10335 args["id"] = arg0 10336 var arg1 string 10337 if tmp, ok := rawArgs["resource"]; ok { 10338 arg1, err = ec.unmarshalNString2string(ctx, tmp) 10339 if err != nil { 10340 return nil, err 10341 } 10342 } 10343 args["resource"] = arg1 10344 return args, nil 10345 } 10346 10347 func (ec *executionContext) field_Query_tenants_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10348 var err error 10349 args := map[string]interface{}{} 10350 var arg0 *int 10351 if tmp, ok := rawArgs["first"]; ok { 10352 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 10353 if err != nil { 10354 return nil, err 10355 } 10356 } 10357 args["first"] = arg0 10358 var arg1 *PageCursor 10359 if tmp, ok := rawArgs["after"]; ok { 10360 arg1, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 10361 if err != nil { 10362 return nil, err 10363 } 10364 } 10365 args["after"] = arg1 10366 var arg2 *string 10367 if tmp, ok := rawArgs["searchTerm"]; ok { 10368 arg2, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 10369 if err != nil { 10370 return nil, err 10371 } 10372 } 10373 args["searchTerm"] = arg2 10374 return args, nil 10375 } 10376 10377 func (ec *executionContext) field_RuntimeContext_labels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10378 var err error 10379 args := map[string]interface{}{} 10380 var arg0 *string 10381 if tmp, ok := rawArgs["key"]; ok { 10382 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 10383 if err != nil { 10384 return nil, err 10385 } 10386 } 10387 args["key"] = arg0 10388 return args, nil 10389 } 10390 10391 func (ec *executionContext) field_Runtime_labels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10392 var err error 10393 args := map[string]interface{}{} 10394 var arg0 *string 10395 if tmp, ok := rawArgs["key"]; ok { 10396 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 10397 if err != nil { 10398 return nil, err 10399 } 10400 } 10401 args["key"] = arg0 10402 return args, nil 10403 } 10404 10405 func (ec *executionContext) field_Runtime_runtimeContext_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10406 var err error 10407 args := map[string]interface{}{} 10408 var arg0 string 10409 if tmp, ok := rawArgs["id"]; ok { 10410 arg0, err = ec.unmarshalNID2string(ctx, tmp) 10411 if err != nil { 10412 return nil, err 10413 } 10414 } 10415 args["id"] = arg0 10416 return args, nil 10417 } 10418 10419 func (ec *executionContext) field_Runtime_runtimeContexts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10420 var err error 10421 args := map[string]interface{}{} 10422 var arg0 *int 10423 if tmp, ok := rawArgs["first"]; ok { 10424 arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) 10425 if err != nil { 10426 return nil, err 10427 } 10428 } 10429 args["first"] = arg0 10430 var arg1 *PageCursor 10431 if tmp, ok := rawArgs["after"]; ok { 10432 arg1, err = ec.unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, tmp) 10433 if err != nil { 10434 return nil, err 10435 } 10436 } 10437 args["after"] = arg1 10438 return args, nil 10439 } 10440 10441 func (ec *executionContext) field_Tenant_labels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10442 var err error 10443 args := map[string]interface{}{} 10444 var arg0 *string 10445 if tmp, ok := rawArgs["key"]; ok { 10446 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp) 10447 if err != nil { 10448 return nil, err 10449 } 10450 } 10451 args["key"] = arg0 10452 return args, nil 10453 } 10454 10455 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10456 var err error 10457 args := map[string]interface{}{} 10458 var arg0 bool 10459 if tmp, ok := rawArgs["includeDeprecated"]; ok { 10460 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 10461 if err != nil { 10462 return nil, err 10463 } 10464 } 10465 args["includeDeprecated"] = arg0 10466 return args, nil 10467 } 10468 10469 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { 10470 var err error 10471 args := map[string]interface{}{} 10472 var arg0 bool 10473 if tmp, ok := rawArgs["includeDeprecated"]; ok { 10474 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) 10475 if err != nil { 10476 return nil, err 10477 } 10478 } 10479 args["includeDeprecated"] = arg0 10480 return args, nil 10481 } 10482 10483 // endregion ***************************** args.gotpl ***************************** 10484 10485 // region ************************** directives.gotpl ************************** 10486 10487 // endregion ************************** directives.gotpl ************************** 10488 10489 // region **************************** field.gotpl ***************************** 10490 10491 func (ec *executionContext) _APIDefinition_id(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10492 defer func() { 10493 if r := recover(); r != nil { 10494 ec.Error(ctx, ec.Recover(ctx, r)) 10495 ret = graphql.Null 10496 } 10497 }() 10498 fc := &graphql.FieldContext{ 10499 Object: "APIDefinition", 10500 Field: field, 10501 Args: nil, 10502 IsMethod: false, 10503 } 10504 10505 ctx = graphql.WithFieldContext(ctx, fc) 10506 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10507 ctx = rctx // use context from middleware stack in children 10508 return obj.ID, nil 10509 }) 10510 if err != nil { 10511 ec.Error(ctx, err) 10512 return graphql.Null 10513 } 10514 if resTmp == nil { 10515 if !graphql.HasFieldError(ctx, fc) { 10516 ec.Errorf(ctx, "must not be null") 10517 } 10518 return graphql.Null 10519 } 10520 res := resTmp.(string) 10521 fc.Result = res 10522 return ec.marshalNID2string(ctx, field.Selections, res) 10523 } 10524 10525 func (ec *executionContext) _APIDefinition_name(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10526 defer func() { 10527 if r := recover(); r != nil { 10528 ec.Error(ctx, ec.Recover(ctx, r)) 10529 ret = graphql.Null 10530 } 10531 }() 10532 fc := &graphql.FieldContext{ 10533 Object: "APIDefinition", 10534 Field: field, 10535 Args: nil, 10536 IsMethod: false, 10537 } 10538 10539 ctx = graphql.WithFieldContext(ctx, fc) 10540 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10541 ctx = rctx // use context from middleware stack in children 10542 return obj.Name, nil 10543 }) 10544 if err != nil { 10545 ec.Error(ctx, err) 10546 return graphql.Null 10547 } 10548 if resTmp == nil { 10549 if !graphql.HasFieldError(ctx, fc) { 10550 ec.Errorf(ctx, "must not be null") 10551 } 10552 return graphql.Null 10553 } 10554 res := resTmp.(string) 10555 fc.Result = res 10556 return ec.marshalNString2string(ctx, field.Selections, res) 10557 } 10558 10559 func (ec *executionContext) _APIDefinition_description(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10560 defer func() { 10561 if r := recover(); r != nil { 10562 ec.Error(ctx, ec.Recover(ctx, r)) 10563 ret = graphql.Null 10564 } 10565 }() 10566 fc := &graphql.FieldContext{ 10567 Object: "APIDefinition", 10568 Field: field, 10569 Args: nil, 10570 IsMethod: false, 10571 } 10572 10573 ctx = graphql.WithFieldContext(ctx, fc) 10574 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10575 ctx = rctx // use context from middleware stack in children 10576 return obj.Description, nil 10577 }) 10578 if err != nil { 10579 ec.Error(ctx, err) 10580 return graphql.Null 10581 } 10582 if resTmp == nil { 10583 return graphql.Null 10584 } 10585 res := resTmp.(*string) 10586 fc.Result = res 10587 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 10588 } 10589 10590 func (ec *executionContext) _APIDefinition_spec(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10591 defer func() { 10592 if r := recover(); r != nil { 10593 ec.Error(ctx, ec.Recover(ctx, r)) 10594 ret = graphql.Null 10595 } 10596 }() 10597 fc := &graphql.FieldContext{ 10598 Object: "APIDefinition", 10599 Field: field, 10600 Args: nil, 10601 IsMethod: false, 10602 } 10603 10604 ctx = graphql.WithFieldContext(ctx, fc) 10605 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10606 ctx = rctx // use context from middleware stack in children 10607 return obj.Spec, nil 10608 }) 10609 if err != nil { 10610 ec.Error(ctx, err) 10611 return graphql.Null 10612 } 10613 if resTmp == nil { 10614 return graphql.Null 10615 } 10616 res := resTmp.(*APISpec) 10617 fc.Result = res 10618 return ec.marshalOAPISpec2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpec(ctx, field.Selections, res) 10619 } 10620 10621 func (ec *executionContext) _APIDefinition_targetURL(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10622 defer func() { 10623 if r := recover(); r != nil { 10624 ec.Error(ctx, ec.Recover(ctx, r)) 10625 ret = graphql.Null 10626 } 10627 }() 10628 fc := &graphql.FieldContext{ 10629 Object: "APIDefinition", 10630 Field: field, 10631 Args: nil, 10632 IsMethod: false, 10633 } 10634 10635 ctx = graphql.WithFieldContext(ctx, fc) 10636 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10637 ctx = rctx // use context from middleware stack in children 10638 return obj.TargetURL, nil 10639 }) 10640 if err != nil { 10641 ec.Error(ctx, err) 10642 return graphql.Null 10643 } 10644 if resTmp == nil { 10645 if !graphql.HasFieldError(ctx, fc) { 10646 ec.Errorf(ctx, "must not be null") 10647 } 10648 return graphql.Null 10649 } 10650 res := resTmp.(string) 10651 fc.Result = res 10652 return ec.marshalNString2string(ctx, field.Selections, res) 10653 } 10654 10655 func (ec *executionContext) _APIDefinition_group(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10656 defer func() { 10657 if r := recover(); r != nil { 10658 ec.Error(ctx, ec.Recover(ctx, r)) 10659 ret = graphql.Null 10660 } 10661 }() 10662 fc := &graphql.FieldContext{ 10663 Object: "APIDefinition", 10664 Field: field, 10665 Args: nil, 10666 IsMethod: false, 10667 } 10668 10669 ctx = graphql.WithFieldContext(ctx, fc) 10670 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10671 ctx = rctx // use context from middleware stack in children 10672 return obj.Group, nil 10673 }) 10674 if err != nil { 10675 ec.Error(ctx, err) 10676 return graphql.Null 10677 } 10678 if resTmp == nil { 10679 return graphql.Null 10680 } 10681 res := resTmp.(*string) 10682 fc.Result = res 10683 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 10684 } 10685 10686 func (ec *executionContext) _APIDefinition_version(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10687 defer func() { 10688 if r := recover(); r != nil { 10689 ec.Error(ctx, ec.Recover(ctx, r)) 10690 ret = graphql.Null 10691 } 10692 }() 10693 fc := &graphql.FieldContext{ 10694 Object: "APIDefinition", 10695 Field: field, 10696 Args: nil, 10697 IsMethod: false, 10698 } 10699 10700 ctx = graphql.WithFieldContext(ctx, fc) 10701 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10702 ctx = rctx // use context from middleware stack in children 10703 return obj.Version, nil 10704 }) 10705 if err != nil { 10706 ec.Error(ctx, err) 10707 return graphql.Null 10708 } 10709 if resTmp == nil { 10710 return graphql.Null 10711 } 10712 res := resTmp.(*Version) 10713 fc.Result = res 10714 return ec.marshalOVersion2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐVersion(ctx, field.Selections, res) 10715 } 10716 10717 func (ec *executionContext) _APIDefinition_created_at(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10718 defer func() { 10719 if r := recover(); r != nil { 10720 ec.Error(ctx, ec.Recover(ctx, r)) 10721 ret = graphql.Null 10722 } 10723 }() 10724 fc := &graphql.FieldContext{ 10725 Object: "APIDefinition", 10726 Field: field, 10727 Args: nil, 10728 IsMethod: false, 10729 } 10730 10731 ctx = graphql.WithFieldContext(ctx, fc) 10732 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10733 ctx = rctx // use context from middleware stack in children 10734 return obj.CreatedAt, nil 10735 }) 10736 if err != nil { 10737 ec.Error(ctx, err) 10738 return graphql.Null 10739 } 10740 if resTmp == nil { 10741 return graphql.Null 10742 } 10743 res := resTmp.(*Timestamp) 10744 fc.Result = res 10745 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 10746 } 10747 10748 func (ec *executionContext) _APIDefinition_updated_at(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10749 defer func() { 10750 if r := recover(); r != nil { 10751 ec.Error(ctx, ec.Recover(ctx, r)) 10752 ret = graphql.Null 10753 } 10754 }() 10755 fc := &graphql.FieldContext{ 10756 Object: "APIDefinition", 10757 Field: field, 10758 Args: nil, 10759 IsMethod: false, 10760 } 10761 10762 ctx = graphql.WithFieldContext(ctx, fc) 10763 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10764 ctx = rctx // use context from middleware stack in children 10765 return obj.UpdatedAt, nil 10766 }) 10767 if err != nil { 10768 ec.Error(ctx, err) 10769 return graphql.Null 10770 } 10771 if resTmp == nil { 10772 return graphql.Null 10773 } 10774 res := resTmp.(*Timestamp) 10775 fc.Result = res 10776 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 10777 } 10778 10779 func (ec *executionContext) _APIDefinition_deleted_at(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10780 defer func() { 10781 if r := recover(); r != nil { 10782 ec.Error(ctx, ec.Recover(ctx, r)) 10783 ret = graphql.Null 10784 } 10785 }() 10786 fc := &graphql.FieldContext{ 10787 Object: "APIDefinition", 10788 Field: field, 10789 Args: nil, 10790 IsMethod: false, 10791 } 10792 10793 ctx = graphql.WithFieldContext(ctx, fc) 10794 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10795 ctx = rctx // use context from middleware stack in children 10796 return obj.DeletedAt, nil 10797 }) 10798 if err != nil { 10799 ec.Error(ctx, err) 10800 return graphql.Null 10801 } 10802 if resTmp == nil { 10803 return graphql.Null 10804 } 10805 res := resTmp.(*Timestamp) 10806 fc.Result = res 10807 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 10808 } 10809 10810 func (ec *executionContext) _APIDefinition_error(ctx context.Context, field graphql.CollectedField, obj *APIDefinition) (ret graphql.Marshaler) { 10811 defer func() { 10812 if r := recover(); r != nil { 10813 ec.Error(ctx, ec.Recover(ctx, r)) 10814 ret = graphql.Null 10815 } 10816 }() 10817 fc := &graphql.FieldContext{ 10818 Object: "APIDefinition", 10819 Field: field, 10820 Args: nil, 10821 IsMethod: false, 10822 } 10823 10824 ctx = graphql.WithFieldContext(ctx, fc) 10825 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10826 ctx = rctx // use context from middleware stack in children 10827 return obj.Error, nil 10828 }) 10829 if err != nil { 10830 ec.Error(ctx, err) 10831 return graphql.Null 10832 } 10833 if resTmp == nil { 10834 return graphql.Null 10835 } 10836 res := resTmp.(*string) 10837 fc.Result = res 10838 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 10839 } 10840 10841 func (ec *executionContext) _APIDefinitionPage_data(ctx context.Context, field graphql.CollectedField, obj *APIDefinitionPage) (ret graphql.Marshaler) { 10842 defer func() { 10843 if r := recover(); r != nil { 10844 ec.Error(ctx, ec.Recover(ctx, r)) 10845 ret = graphql.Null 10846 } 10847 }() 10848 fc := &graphql.FieldContext{ 10849 Object: "APIDefinitionPage", 10850 Field: field, 10851 Args: nil, 10852 IsMethod: false, 10853 } 10854 10855 ctx = graphql.WithFieldContext(ctx, fc) 10856 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10857 ctx = rctx // use context from middleware stack in children 10858 return obj.Data, nil 10859 }) 10860 if err != nil { 10861 ec.Error(ctx, err) 10862 return graphql.Null 10863 } 10864 if resTmp == nil { 10865 if !graphql.HasFieldError(ctx, fc) { 10866 ec.Errorf(ctx, "must not be null") 10867 } 10868 return graphql.Null 10869 } 10870 res := resTmp.([]*APIDefinition) 10871 fc.Result = res 10872 return ec.marshalNAPIDefinition2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionᚄ(ctx, field.Selections, res) 10873 } 10874 10875 func (ec *executionContext) _APIDefinitionPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *APIDefinitionPage) (ret graphql.Marshaler) { 10876 defer func() { 10877 if r := recover(); r != nil { 10878 ec.Error(ctx, ec.Recover(ctx, r)) 10879 ret = graphql.Null 10880 } 10881 }() 10882 fc := &graphql.FieldContext{ 10883 Object: "APIDefinitionPage", 10884 Field: field, 10885 Args: nil, 10886 IsMethod: false, 10887 } 10888 10889 ctx = graphql.WithFieldContext(ctx, fc) 10890 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10891 ctx = rctx // use context from middleware stack in children 10892 return obj.PageInfo, nil 10893 }) 10894 if err != nil { 10895 ec.Error(ctx, err) 10896 return graphql.Null 10897 } 10898 if resTmp == nil { 10899 if !graphql.HasFieldError(ctx, fc) { 10900 ec.Errorf(ctx, "must not be null") 10901 } 10902 return graphql.Null 10903 } 10904 res := resTmp.(*PageInfo) 10905 fc.Result = res 10906 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 10907 } 10908 10909 func (ec *executionContext) _APIDefinitionPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *APIDefinitionPage) (ret graphql.Marshaler) { 10910 defer func() { 10911 if r := recover(); r != nil { 10912 ec.Error(ctx, ec.Recover(ctx, r)) 10913 ret = graphql.Null 10914 } 10915 }() 10916 fc := &graphql.FieldContext{ 10917 Object: "APIDefinitionPage", 10918 Field: field, 10919 Args: nil, 10920 IsMethod: false, 10921 } 10922 10923 ctx = graphql.WithFieldContext(ctx, fc) 10924 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10925 ctx = rctx // use context from middleware stack in children 10926 return obj.TotalCount, nil 10927 }) 10928 if err != nil { 10929 ec.Error(ctx, err) 10930 return graphql.Null 10931 } 10932 if resTmp == nil { 10933 if !graphql.HasFieldError(ctx, fc) { 10934 ec.Errorf(ctx, "must not be null") 10935 } 10936 return graphql.Null 10937 } 10938 res := resTmp.(int) 10939 fc.Result = res 10940 return ec.marshalNInt2int(ctx, field.Selections, res) 10941 } 10942 10943 func (ec *executionContext) _APISpec_id(ctx context.Context, field graphql.CollectedField, obj *APISpec) (ret graphql.Marshaler) { 10944 defer func() { 10945 if r := recover(); r != nil { 10946 ec.Error(ctx, ec.Recover(ctx, r)) 10947 ret = graphql.Null 10948 } 10949 }() 10950 fc := &graphql.FieldContext{ 10951 Object: "APISpec", 10952 Field: field, 10953 Args: nil, 10954 IsMethod: false, 10955 } 10956 10957 ctx = graphql.WithFieldContext(ctx, fc) 10958 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10959 ctx = rctx // use context from middleware stack in children 10960 return obj.ID, nil 10961 }) 10962 if err != nil { 10963 ec.Error(ctx, err) 10964 return graphql.Null 10965 } 10966 if resTmp == nil { 10967 if !graphql.HasFieldError(ctx, fc) { 10968 ec.Errorf(ctx, "must not be null") 10969 } 10970 return graphql.Null 10971 } 10972 res := resTmp.(string) 10973 fc.Result = res 10974 return ec.marshalNID2string(ctx, field.Selections, res) 10975 } 10976 10977 func (ec *executionContext) _APISpec_data(ctx context.Context, field graphql.CollectedField, obj *APISpec) (ret graphql.Marshaler) { 10978 defer func() { 10979 if r := recover(); r != nil { 10980 ec.Error(ctx, ec.Recover(ctx, r)) 10981 ret = graphql.Null 10982 } 10983 }() 10984 fc := &graphql.FieldContext{ 10985 Object: "APISpec", 10986 Field: field, 10987 Args: nil, 10988 IsMethod: false, 10989 } 10990 10991 ctx = graphql.WithFieldContext(ctx, fc) 10992 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 10993 ctx = rctx // use context from middleware stack in children 10994 return obj.Data, nil 10995 }) 10996 if err != nil { 10997 ec.Error(ctx, err) 10998 return graphql.Null 10999 } 11000 if resTmp == nil { 11001 return graphql.Null 11002 } 11003 res := resTmp.(*CLOB) 11004 fc.Result = res 11005 return ec.marshalOCLOB2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx, field.Selections, res) 11006 } 11007 11008 func (ec *executionContext) _APISpec_format(ctx context.Context, field graphql.CollectedField, obj *APISpec) (ret graphql.Marshaler) { 11009 defer func() { 11010 if r := recover(); r != nil { 11011 ec.Error(ctx, ec.Recover(ctx, r)) 11012 ret = graphql.Null 11013 } 11014 }() 11015 fc := &graphql.FieldContext{ 11016 Object: "APISpec", 11017 Field: field, 11018 Args: nil, 11019 IsMethod: false, 11020 } 11021 11022 ctx = graphql.WithFieldContext(ctx, fc) 11023 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11024 ctx = rctx // use context from middleware stack in children 11025 return obj.Format, nil 11026 }) 11027 if err != nil { 11028 ec.Error(ctx, err) 11029 return graphql.Null 11030 } 11031 if resTmp == nil { 11032 if !graphql.HasFieldError(ctx, fc) { 11033 ec.Errorf(ctx, "must not be null") 11034 } 11035 return graphql.Null 11036 } 11037 res := resTmp.(SpecFormat) 11038 fc.Result = res 11039 return ec.marshalNSpecFormat2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSpecFormat(ctx, field.Selections, res) 11040 } 11041 11042 func (ec *executionContext) _APISpec_type(ctx context.Context, field graphql.CollectedField, obj *APISpec) (ret graphql.Marshaler) { 11043 defer func() { 11044 if r := recover(); r != nil { 11045 ec.Error(ctx, ec.Recover(ctx, r)) 11046 ret = graphql.Null 11047 } 11048 }() 11049 fc := &graphql.FieldContext{ 11050 Object: "APISpec", 11051 Field: field, 11052 Args: nil, 11053 IsMethod: false, 11054 } 11055 11056 ctx = graphql.WithFieldContext(ctx, fc) 11057 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11058 ctx = rctx // use context from middleware stack in children 11059 return obj.Type, nil 11060 }) 11061 if err != nil { 11062 ec.Error(ctx, err) 11063 return graphql.Null 11064 } 11065 if resTmp == nil { 11066 if !graphql.HasFieldError(ctx, fc) { 11067 ec.Errorf(ctx, "must not be null") 11068 } 11069 return graphql.Null 11070 } 11071 res := resTmp.(APISpecType) 11072 fc.Result = res 11073 return ec.marshalNAPISpecType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpecType(ctx, field.Selections, res) 11074 } 11075 11076 func (ec *executionContext) _APISpec_fetchRequest(ctx context.Context, field graphql.CollectedField, obj *APISpec) (ret graphql.Marshaler) { 11077 defer func() { 11078 if r := recover(); r != nil { 11079 ec.Error(ctx, ec.Recover(ctx, r)) 11080 ret = graphql.Null 11081 } 11082 }() 11083 fc := &graphql.FieldContext{ 11084 Object: "APISpec", 11085 Field: field, 11086 Args: nil, 11087 IsMethod: true, 11088 } 11089 11090 ctx = graphql.WithFieldContext(ctx, fc) 11091 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11092 directive0 := func(rctx context.Context) (interface{}, error) { 11093 ctx = rctx // use context from middleware stack in children 11094 return ec.resolvers.APISpec().FetchRequest(rctx, obj) 11095 } 11096 directive1 := func(ctx context.Context) (interface{}, error) { 11097 path, err := ec.unmarshalNString2string(ctx, "graphql.field.api_spec.fetch_request") 11098 if err != nil { 11099 return nil, err 11100 } 11101 if ec.directives.Sanitize == nil { 11102 return nil, errors.New("directive sanitize is not implemented") 11103 } 11104 return ec.directives.Sanitize(ctx, obj, directive0, path) 11105 } 11106 11107 tmp, err := directive1(rctx) 11108 if err != nil { 11109 return nil, err 11110 } 11111 if tmp == nil { 11112 return nil, nil 11113 } 11114 if data, ok := tmp.(*FetchRequest); ok { 11115 return data, nil 11116 } 11117 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FetchRequest`, tmp) 11118 }) 11119 if err != nil { 11120 ec.Error(ctx, err) 11121 return graphql.Null 11122 } 11123 if resTmp == nil { 11124 return graphql.Null 11125 } 11126 res := resTmp.(*FetchRequest) 11127 fc.Result = res 11128 return ec.marshalOFetchRequest2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequest(ctx, field.Selections, res) 11129 } 11130 11131 func (ec *executionContext) _AppSystemAuth_id(ctx context.Context, field graphql.CollectedField, obj *AppSystemAuth) (ret graphql.Marshaler) { 11132 defer func() { 11133 if r := recover(); r != nil { 11134 ec.Error(ctx, ec.Recover(ctx, r)) 11135 ret = graphql.Null 11136 } 11137 }() 11138 fc := &graphql.FieldContext{ 11139 Object: "AppSystemAuth", 11140 Field: field, 11141 Args: nil, 11142 IsMethod: false, 11143 } 11144 11145 ctx = graphql.WithFieldContext(ctx, fc) 11146 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11147 ctx = rctx // use context from middleware stack in children 11148 return obj.ID, nil 11149 }) 11150 if err != nil { 11151 ec.Error(ctx, err) 11152 return graphql.Null 11153 } 11154 if resTmp == nil { 11155 if !graphql.HasFieldError(ctx, fc) { 11156 ec.Errorf(ctx, "must not be null") 11157 } 11158 return graphql.Null 11159 } 11160 res := resTmp.(string) 11161 fc.Result = res 11162 return ec.marshalNID2string(ctx, field.Selections, res) 11163 } 11164 11165 func (ec *executionContext) _AppSystemAuth_auth(ctx context.Context, field graphql.CollectedField, obj *AppSystemAuth) (ret graphql.Marshaler) { 11166 defer func() { 11167 if r := recover(); r != nil { 11168 ec.Error(ctx, ec.Recover(ctx, r)) 11169 ret = graphql.Null 11170 } 11171 }() 11172 fc := &graphql.FieldContext{ 11173 Object: "AppSystemAuth", 11174 Field: field, 11175 Args: nil, 11176 IsMethod: false, 11177 } 11178 11179 ctx = graphql.WithFieldContext(ctx, fc) 11180 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11181 directive0 := func(rctx context.Context) (interface{}, error) { 11182 ctx = rctx // use context from middleware stack in children 11183 return obj.Auth, nil 11184 } 11185 directive1 := func(ctx context.Context) (interface{}, error) { 11186 path, err := ec.unmarshalNString2string(ctx, "graphql.field.application.auths") 11187 if err != nil { 11188 return nil, err 11189 } 11190 if ec.directives.Sanitize == nil { 11191 return nil, errors.New("directive sanitize is not implemented") 11192 } 11193 return ec.directives.Sanitize(ctx, obj, directive0, path) 11194 } 11195 11196 tmp, err := directive1(rctx) 11197 if err != nil { 11198 return nil, err 11199 } 11200 if tmp == nil { 11201 return nil, nil 11202 } 11203 if data, ok := tmp.(*Auth); ok { 11204 return data, nil 11205 } 11206 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Auth`, tmp) 11207 }) 11208 if err != nil { 11209 ec.Error(ctx, err) 11210 return graphql.Null 11211 } 11212 if resTmp == nil { 11213 return graphql.Null 11214 } 11215 res := resTmp.(*Auth) 11216 fc.Result = res 11217 return ec.marshalOAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuth(ctx, field.Selections, res) 11218 } 11219 11220 func (ec *executionContext) _AppSystemAuth_type(ctx context.Context, field graphql.CollectedField, obj *AppSystemAuth) (ret graphql.Marshaler) { 11221 defer func() { 11222 if r := recover(); r != nil { 11223 ec.Error(ctx, ec.Recover(ctx, r)) 11224 ret = graphql.Null 11225 } 11226 }() 11227 fc := &graphql.FieldContext{ 11228 Object: "AppSystemAuth", 11229 Field: field, 11230 Args: nil, 11231 IsMethod: false, 11232 } 11233 11234 ctx = graphql.WithFieldContext(ctx, fc) 11235 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11236 ctx = rctx // use context from middleware stack in children 11237 return obj.Type, nil 11238 }) 11239 if err != nil { 11240 ec.Error(ctx, err) 11241 return graphql.Null 11242 } 11243 if resTmp == nil { 11244 return graphql.Null 11245 } 11246 res := resTmp.(*SystemAuthReferenceType) 11247 fc.Result = res 11248 return ec.marshalOSystemAuthReferenceType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuthReferenceType(ctx, field.Selections, res) 11249 } 11250 11251 func (ec *executionContext) _AppSystemAuth_tenantId(ctx context.Context, field graphql.CollectedField, obj *AppSystemAuth) (ret graphql.Marshaler) { 11252 defer func() { 11253 if r := recover(); r != nil { 11254 ec.Error(ctx, ec.Recover(ctx, r)) 11255 ret = graphql.Null 11256 } 11257 }() 11258 fc := &graphql.FieldContext{ 11259 Object: "AppSystemAuth", 11260 Field: field, 11261 Args: nil, 11262 IsMethod: false, 11263 } 11264 11265 ctx = graphql.WithFieldContext(ctx, fc) 11266 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11267 ctx = rctx // use context from middleware stack in children 11268 return obj.TenantID, nil 11269 }) 11270 if err != nil { 11271 ec.Error(ctx, err) 11272 return graphql.Null 11273 } 11274 if resTmp == nil { 11275 return graphql.Null 11276 } 11277 res := resTmp.(*string) 11278 fc.Result = res 11279 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 11280 } 11281 11282 func (ec *executionContext) _AppSystemAuth_referenceObjectId(ctx context.Context, field graphql.CollectedField, obj *AppSystemAuth) (ret graphql.Marshaler) { 11283 defer func() { 11284 if r := recover(); r != nil { 11285 ec.Error(ctx, ec.Recover(ctx, r)) 11286 ret = graphql.Null 11287 } 11288 }() 11289 fc := &graphql.FieldContext{ 11290 Object: "AppSystemAuth", 11291 Field: field, 11292 Args: nil, 11293 IsMethod: false, 11294 } 11295 11296 ctx = graphql.WithFieldContext(ctx, fc) 11297 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11298 ctx = rctx // use context from middleware stack in children 11299 return obj.ReferenceObjectID, nil 11300 }) 11301 if err != nil { 11302 ec.Error(ctx, err) 11303 return graphql.Null 11304 } 11305 if resTmp == nil { 11306 return graphql.Null 11307 } 11308 res := resTmp.(*string) 11309 fc.Result = res 11310 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 11311 } 11312 11313 func (ec *executionContext) _Application_id(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11314 defer func() { 11315 if r := recover(); r != nil { 11316 ec.Error(ctx, ec.Recover(ctx, r)) 11317 ret = graphql.Null 11318 } 11319 }() 11320 fc := &graphql.FieldContext{ 11321 Object: "Application", 11322 Field: field, 11323 Args: nil, 11324 IsMethod: false, 11325 } 11326 11327 ctx = graphql.WithFieldContext(ctx, fc) 11328 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11329 ctx = rctx // use context from middleware stack in children 11330 return obj.ID, nil 11331 }) 11332 if err != nil { 11333 ec.Error(ctx, err) 11334 return graphql.Null 11335 } 11336 if resTmp == nil { 11337 if !graphql.HasFieldError(ctx, fc) { 11338 ec.Errorf(ctx, "must not be null") 11339 } 11340 return graphql.Null 11341 } 11342 res := resTmp.(string) 11343 fc.Result = res 11344 return ec.marshalNID2string(ctx, field.Selections, res) 11345 } 11346 11347 func (ec *executionContext) _Application_name(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11348 defer func() { 11349 if r := recover(); r != nil { 11350 ec.Error(ctx, ec.Recover(ctx, r)) 11351 ret = graphql.Null 11352 } 11353 }() 11354 fc := &graphql.FieldContext{ 11355 Object: "Application", 11356 Field: field, 11357 Args: nil, 11358 IsMethod: false, 11359 } 11360 11361 ctx = graphql.WithFieldContext(ctx, fc) 11362 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11363 ctx = rctx // use context from middleware stack in children 11364 return obj.Name, nil 11365 }) 11366 if err != nil { 11367 ec.Error(ctx, err) 11368 return graphql.Null 11369 } 11370 if resTmp == nil { 11371 if !graphql.HasFieldError(ctx, fc) { 11372 ec.Errorf(ctx, "must not be null") 11373 } 11374 return graphql.Null 11375 } 11376 res := resTmp.(string) 11377 fc.Result = res 11378 return ec.marshalNString2string(ctx, field.Selections, res) 11379 } 11380 11381 func (ec *executionContext) _Application_systemNumber(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11382 defer func() { 11383 if r := recover(); r != nil { 11384 ec.Error(ctx, ec.Recover(ctx, r)) 11385 ret = graphql.Null 11386 } 11387 }() 11388 fc := &graphql.FieldContext{ 11389 Object: "Application", 11390 Field: field, 11391 Args: nil, 11392 IsMethod: false, 11393 } 11394 11395 ctx = graphql.WithFieldContext(ctx, fc) 11396 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11397 ctx = rctx // use context from middleware stack in children 11398 return obj.SystemNumber, nil 11399 }) 11400 if err != nil { 11401 ec.Error(ctx, err) 11402 return graphql.Null 11403 } 11404 if resTmp == nil { 11405 return graphql.Null 11406 } 11407 res := resTmp.(*string) 11408 fc.Result = res 11409 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 11410 } 11411 11412 func (ec *executionContext) _Application_localTenantID(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11413 defer func() { 11414 if r := recover(); r != nil { 11415 ec.Error(ctx, ec.Recover(ctx, r)) 11416 ret = graphql.Null 11417 } 11418 }() 11419 fc := &graphql.FieldContext{ 11420 Object: "Application", 11421 Field: field, 11422 Args: nil, 11423 IsMethod: false, 11424 } 11425 11426 ctx = graphql.WithFieldContext(ctx, fc) 11427 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11428 ctx = rctx // use context from middleware stack in children 11429 return obj.LocalTenantID, nil 11430 }) 11431 if err != nil { 11432 ec.Error(ctx, err) 11433 return graphql.Null 11434 } 11435 if resTmp == nil { 11436 return graphql.Null 11437 } 11438 res := resTmp.(*string) 11439 fc.Result = res 11440 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 11441 } 11442 11443 func (ec *executionContext) _Application_baseUrl(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11444 defer func() { 11445 if r := recover(); r != nil { 11446 ec.Error(ctx, ec.Recover(ctx, r)) 11447 ret = graphql.Null 11448 } 11449 }() 11450 fc := &graphql.FieldContext{ 11451 Object: "Application", 11452 Field: field, 11453 Args: nil, 11454 IsMethod: false, 11455 } 11456 11457 ctx = graphql.WithFieldContext(ctx, fc) 11458 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11459 ctx = rctx // use context from middleware stack in children 11460 return obj.BaseURL, nil 11461 }) 11462 if err != nil { 11463 ec.Error(ctx, err) 11464 return graphql.Null 11465 } 11466 if resTmp == nil { 11467 return graphql.Null 11468 } 11469 res := resTmp.(*string) 11470 fc.Result = res 11471 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 11472 } 11473 11474 func (ec *executionContext) _Application_providerName(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11475 defer func() { 11476 if r := recover(); r != nil { 11477 ec.Error(ctx, ec.Recover(ctx, r)) 11478 ret = graphql.Null 11479 } 11480 }() 11481 fc := &graphql.FieldContext{ 11482 Object: "Application", 11483 Field: field, 11484 Args: nil, 11485 IsMethod: false, 11486 } 11487 11488 ctx = graphql.WithFieldContext(ctx, fc) 11489 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11490 ctx = rctx // use context from middleware stack in children 11491 return obj.ProviderName, nil 11492 }) 11493 if err != nil { 11494 ec.Error(ctx, err) 11495 return graphql.Null 11496 } 11497 if resTmp == nil { 11498 return graphql.Null 11499 } 11500 res := resTmp.(*string) 11501 fc.Result = res 11502 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 11503 } 11504 11505 func (ec *executionContext) _Application_description(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11506 defer func() { 11507 if r := recover(); r != nil { 11508 ec.Error(ctx, ec.Recover(ctx, r)) 11509 ret = graphql.Null 11510 } 11511 }() 11512 fc := &graphql.FieldContext{ 11513 Object: "Application", 11514 Field: field, 11515 Args: nil, 11516 IsMethod: false, 11517 } 11518 11519 ctx = graphql.WithFieldContext(ctx, fc) 11520 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11521 ctx = rctx // use context from middleware stack in children 11522 return obj.Description, nil 11523 }) 11524 if err != nil { 11525 ec.Error(ctx, err) 11526 return graphql.Null 11527 } 11528 if resTmp == nil { 11529 return graphql.Null 11530 } 11531 res := resTmp.(*string) 11532 fc.Result = res 11533 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 11534 } 11535 11536 func (ec *executionContext) _Application_integrationSystemID(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11537 defer func() { 11538 if r := recover(); r != nil { 11539 ec.Error(ctx, ec.Recover(ctx, r)) 11540 ret = graphql.Null 11541 } 11542 }() 11543 fc := &graphql.FieldContext{ 11544 Object: "Application", 11545 Field: field, 11546 Args: nil, 11547 IsMethod: false, 11548 } 11549 11550 ctx = graphql.WithFieldContext(ctx, fc) 11551 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11552 ctx = rctx // use context from middleware stack in children 11553 return obj.IntegrationSystemID, nil 11554 }) 11555 if err != nil { 11556 ec.Error(ctx, err) 11557 return graphql.Null 11558 } 11559 if resTmp == nil { 11560 return graphql.Null 11561 } 11562 res := resTmp.(*string) 11563 fc.Result = res 11564 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 11565 } 11566 11567 func (ec *executionContext) _Application_applicationTemplateID(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11568 defer func() { 11569 if r := recover(); r != nil { 11570 ec.Error(ctx, ec.Recover(ctx, r)) 11571 ret = graphql.Null 11572 } 11573 }() 11574 fc := &graphql.FieldContext{ 11575 Object: "Application", 11576 Field: field, 11577 Args: nil, 11578 IsMethod: false, 11579 } 11580 11581 ctx = graphql.WithFieldContext(ctx, fc) 11582 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11583 ctx = rctx // use context from middleware stack in children 11584 return obj.ApplicationTemplateID, nil 11585 }) 11586 if err != nil { 11587 ec.Error(ctx, err) 11588 return graphql.Null 11589 } 11590 if resTmp == nil { 11591 return graphql.Null 11592 } 11593 res := resTmp.(*string) 11594 fc.Result = res 11595 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 11596 } 11597 11598 func (ec *executionContext) _Application_applicationTemplate(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11599 defer func() { 11600 if r := recover(); r != nil { 11601 ec.Error(ctx, ec.Recover(ctx, r)) 11602 ret = graphql.Null 11603 } 11604 }() 11605 fc := &graphql.FieldContext{ 11606 Object: "Application", 11607 Field: field, 11608 Args: nil, 11609 IsMethod: true, 11610 } 11611 11612 ctx = graphql.WithFieldContext(ctx, fc) 11613 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11614 directive0 := func(rctx context.Context) (interface{}, error) { 11615 ctx = rctx // use context from middleware stack in children 11616 return ec.resolvers.Application().ApplicationTemplate(rctx, obj) 11617 } 11618 directive1 := func(ctx context.Context) (interface{}, error) { 11619 path, err := ec.unmarshalNString2string(ctx, "graphql.field.application.application_template") 11620 if err != nil { 11621 return nil, err 11622 } 11623 if ec.directives.HasScopes == nil { 11624 return nil, errors.New("directive hasScopes is not implemented") 11625 } 11626 return ec.directives.HasScopes(ctx, obj, directive0, path) 11627 } 11628 11629 tmp, err := directive1(rctx) 11630 if err != nil { 11631 return nil, err 11632 } 11633 if tmp == nil { 11634 return nil, nil 11635 } 11636 if data, ok := tmp.(*ApplicationTemplate); ok { 11637 return data, nil 11638 } 11639 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationTemplate`, tmp) 11640 }) 11641 if err != nil { 11642 ec.Error(ctx, err) 11643 return graphql.Null 11644 } 11645 if resTmp == nil { 11646 return graphql.Null 11647 } 11648 res := resTmp.(*ApplicationTemplate) 11649 fc.Result = res 11650 return ec.marshalOApplicationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplate(ctx, field.Selections, res) 11651 } 11652 11653 func (ec *executionContext) _Application_tenantBusinessType(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11654 defer func() { 11655 if r := recover(); r != nil { 11656 ec.Error(ctx, ec.Recover(ctx, r)) 11657 ret = graphql.Null 11658 } 11659 }() 11660 fc := &graphql.FieldContext{ 11661 Object: "Application", 11662 Field: field, 11663 Args: nil, 11664 IsMethod: true, 11665 } 11666 11667 ctx = graphql.WithFieldContext(ctx, fc) 11668 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11669 ctx = rctx // use context from middleware stack in children 11670 return ec.resolvers.Application().TenantBusinessType(rctx, obj) 11671 }) 11672 if err != nil { 11673 ec.Error(ctx, err) 11674 return graphql.Null 11675 } 11676 if resTmp == nil { 11677 return graphql.Null 11678 } 11679 res := resTmp.(*TenantBusinessType) 11680 fc.Result = res 11681 return ec.marshalOTenantBusinessType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantBusinessType(ctx, field.Selections, res) 11682 } 11683 11684 func (ec *executionContext) _Application_labels(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11685 defer func() { 11686 if r := recover(); r != nil { 11687 ec.Error(ctx, ec.Recover(ctx, r)) 11688 ret = graphql.Null 11689 } 11690 }() 11691 fc := &graphql.FieldContext{ 11692 Object: "Application", 11693 Field: field, 11694 Args: nil, 11695 IsMethod: true, 11696 } 11697 11698 ctx = graphql.WithFieldContext(ctx, fc) 11699 rawArgs := field.ArgumentMap(ec.Variables) 11700 args, err := ec.field_Application_labels_args(ctx, rawArgs) 11701 if err != nil { 11702 ec.Error(ctx, err) 11703 return graphql.Null 11704 } 11705 fc.Args = args 11706 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11707 ctx = rctx // use context from middleware stack in children 11708 return ec.resolvers.Application().Labels(rctx, obj, args["key"].(*string)) 11709 }) 11710 if err != nil { 11711 ec.Error(ctx, err) 11712 return graphql.Null 11713 } 11714 if resTmp == nil { 11715 return graphql.Null 11716 } 11717 res := resTmp.(Labels) 11718 fc.Result = res 11719 return ec.marshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, field.Selections, res) 11720 } 11721 11722 func (ec *executionContext) _Application_status(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11723 defer func() { 11724 if r := recover(); r != nil { 11725 ec.Error(ctx, ec.Recover(ctx, r)) 11726 ret = graphql.Null 11727 } 11728 }() 11729 fc := &graphql.FieldContext{ 11730 Object: "Application", 11731 Field: field, 11732 Args: nil, 11733 IsMethod: false, 11734 } 11735 11736 ctx = graphql.WithFieldContext(ctx, fc) 11737 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11738 ctx = rctx // use context from middleware stack in children 11739 return obj.Status, nil 11740 }) 11741 if err != nil { 11742 ec.Error(ctx, err) 11743 return graphql.Null 11744 } 11745 if resTmp == nil { 11746 if !graphql.HasFieldError(ctx, fc) { 11747 ec.Errorf(ctx, "must not be null") 11748 } 11749 return graphql.Null 11750 } 11751 res := resTmp.(*ApplicationStatus) 11752 fc.Result = res 11753 return ec.marshalNApplicationStatus2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatus(ctx, field.Selections, res) 11754 } 11755 11756 func (ec *executionContext) _Application_webhooks(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11757 defer func() { 11758 if r := recover(); r != nil { 11759 ec.Error(ctx, ec.Recover(ctx, r)) 11760 ret = graphql.Null 11761 } 11762 }() 11763 fc := &graphql.FieldContext{ 11764 Object: "Application", 11765 Field: field, 11766 Args: nil, 11767 IsMethod: true, 11768 } 11769 11770 ctx = graphql.WithFieldContext(ctx, fc) 11771 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11772 directive0 := func(rctx context.Context) (interface{}, error) { 11773 ctx = rctx // use context from middleware stack in children 11774 return ec.resolvers.Application().Webhooks(rctx, obj) 11775 } 11776 directive1 := func(ctx context.Context) (interface{}, error) { 11777 path, err := ec.unmarshalNString2string(ctx, "graphql.field.application.webhooks") 11778 if err != nil { 11779 return nil, err 11780 } 11781 if ec.directives.Sanitize == nil { 11782 return nil, errors.New("directive sanitize is not implemented") 11783 } 11784 return ec.directives.Sanitize(ctx, obj, directive0, path) 11785 } 11786 11787 tmp, err := directive1(rctx) 11788 if err != nil { 11789 return nil, err 11790 } 11791 if tmp == nil { 11792 return nil, nil 11793 } 11794 if data, ok := tmp.([]*Webhook); ok { 11795 return data, nil 11796 } 11797 return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kyma-incubator/compass/components/director/pkg/graphql.Webhook`, tmp) 11798 }) 11799 if err != nil { 11800 ec.Error(ctx, err) 11801 return graphql.Null 11802 } 11803 if resTmp == nil { 11804 return graphql.Null 11805 } 11806 res := resTmp.([]*Webhook) 11807 fc.Result = res 11808 return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookᚄ(ctx, field.Selections, res) 11809 } 11810 11811 func (ec *executionContext) _Application_healthCheckURL(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11812 defer func() { 11813 if r := recover(); r != nil { 11814 ec.Error(ctx, ec.Recover(ctx, r)) 11815 ret = graphql.Null 11816 } 11817 }() 11818 fc := &graphql.FieldContext{ 11819 Object: "Application", 11820 Field: field, 11821 Args: nil, 11822 IsMethod: false, 11823 } 11824 11825 ctx = graphql.WithFieldContext(ctx, fc) 11826 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11827 ctx = rctx // use context from middleware stack in children 11828 return obj.HealthCheckURL, nil 11829 }) 11830 if err != nil { 11831 ec.Error(ctx, err) 11832 return graphql.Null 11833 } 11834 if resTmp == nil { 11835 return graphql.Null 11836 } 11837 res := resTmp.(*string) 11838 fc.Result = res 11839 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 11840 } 11841 11842 func (ec *executionContext) _Application_bundles(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11843 defer func() { 11844 if r := recover(); r != nil { 11845 ec.Error(ctx, ec.Recover(ctx, r)) 11846 ret = graphql.Null 11847 } 11848 }() 11849 fc := &graphql.FieldContext{ 11850 Object: "Application", 11851 Field: field, 11852 Args: nil, 11853 IsMethod: true, 11854 } 11855 11856 ctx = graphql.WithFieldContext(ctx, fc) 11857 rawArgs := field.ArgumentMap(ec.Variables) 11858 args, err := ec.field_Application_bundles_args(ctx, rawArgs) 11859 if err != nil { 11860 ec.Error(ctx, err) 11861 return graphql.Null 11862 } 11863 fc.Args = args 11864 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11865 ctx = rctx // use context from middleware stack in children 11866 return ec.resolvers.Application().Bundles(rctx, obj, args["first"].(*int), args["after"].(*PageCursor)) 11867 }) 11868 if err != nil { 11869 ec.Error(ctx, err) 11870 return graphql.Null 11871 } 11872 if resTmp == nil { 11873 return graphql.Null 11874 } 11875 res := resTmp.(*BundlePage) 11876 fc.Result = res 11877 return ec.marshalOBundlePage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundlePage(ctx, field.Selections, res) 11878 } 11879 11880 func (ec *executionContext) _Application_bundle(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11881 defer func() { 11882 if r := recover(); r != nil { 11883 ec.Error(ctx, ec.Recover(ctx, r)) 11884 ret = graphql.Null 11885 } 11886 }() 11887 fc := &graphql.FieldContext{ 11888 Object: "Application", 11889 Field: field, 11890 Args: nil, 11891 IsMethod: true, 11892 } 11893 11894 ctx = graphql.WithFieldContext(ctx, fc) 11895 rawArgs := field.ArgumentMap(ec.Variables) 11896 args, err := ec.field_Application_bundle_args(ctx, rawArgs) 11897 if err != nil { 11898 ec.Error(ctx, err) 11899 return graphql.Null 11900 } 11901 fc.Args = args 11902 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11903 ctx = rctx // use context from middleware stack in children 11904 return ec.resolvers.Application().Bundle(rctx, obj, args["id"].(string)) 11905 }) 11906 if err != nil { 11907 ec.Error(ctx, err) 11908 return graphql.Null 11909 } 11910 if resTmp == nil { 11911 return graphql.Null 11912 } 11913 res := resTmp.(*Bundle) 11914 fc.Result = res 11915 return ec.marshalOBundle2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundle(ctx, field.Selections, res) 11916 } 11917 11918 func (ec *executionContext) _Application_auths(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11919 defer func() { 11920 if r := recover(); r != nil { 11921 ec.Error(ctx, ec.Recover(ctx, r)) 11922 ret = graphql.Null 11923 } 11924 }() 11925 fc := &graphql.FieldContext{ 11926 Object: "Application", 11927 Field: field, 11928 Args: nil, 11929 IsMethod: true, 11930 } 11931 11932 ctx = graphql.WithFieldContext(ctx, fc) 11933 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11934 ctx = rctx // use context from middleware stack in children 11935 return ec.resolvers.Application().Auths(rctx, obj) 11936 }) 11937 if err != nil { 11938 ec.Error(ctx, err) 11939 return graphql.Null 11940 } 11941 if resTmp == nil { 11942 return graphql.Null 11943 } 11944 res := resTmp.([]*AppSystemAuth) 11945 fc.Result = res 11946 return ec.marshalOAppSystemAuth2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAppSystemAuthᚄ(ctx, field.Selections, res) 11947 } 11948 11949 func (ec *executionContext) _Application_eventingConfiguration(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11950 defer func() { 11951 if r := recover(); r != nil { 11952 ec.Error(ctx, ec.Recover(ctx, r)) 11953 ret = graphql.Null 11954 } 11955 }() 11956 fc := &graphql.FieldContext{ 11957 Object: "Application", 11958 Field: field, 11959 Args: nil, 11960 IsMethod: true, 11961 } 11962 11963 ctx = graphql.WithFieldContext(ctx, fc) 11964 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11965 ctx = rctx // use context from middleware stack in children 11966 return ec.resolvers.Application().EventingConfiguration(rctx, obj) 11967 }) 11968 if err != nil { 11969 ec.Error(ctx, err) 11970 return graphql.Null 11971 } 11972 if resTmp == nil { 11973 return graphql.Null 11974 } 11975 res := resTmp.(*ApplicationEventingConfiguration) 11976 fc.Result = res 11977 return ec.marshalOApplicationEventingConfiguration2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationEventingConfiguration(ctx, field.Selections, res) 11978 } 11979 11980 func (ec *executionContext) _Application_applicationNamespace(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 11981 defer func() { 11982 if r := recover(); r != nil { 11983 ec.Error(ctx, ec.Recover(ctx, r)) 11984 ret = graphql.Null 11985 } 11986 }() 11987 fc := &graphql.FieldContext{ 11988 Object: "Application", 11989 Field: field, 11990 Args: nil, 11991 IsMethod: false, 11992 } 11993 11994 ctx = graphql.WithFieldContext(ctx, fc) 11995 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 11996 ctx = rctx // use context from middleware stack in children 11997 return obj.ApplicationNamespace, nil 11998 }) 11999 if err != nil { 12000 ec.Error(ctx, err) 12001 return graphql.Null 12002 } 12003 if resTmp == nil { 12004 return graphql.Null 12005 } 12006 res := resTmp.(*string) 12007 fc.Result = res 12008 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12009 } 12010 12011 func (ec *executionContext) _Application_createdAt(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 12012 defer func() { 12013 if r := recover(); r != nil { 12014 ec.Error(ctx, ec.Recover(ctx, r)) 12015 ret = graphql.Null 12016 } 12017 }() 12018 fc := &graphql.FieldContext{ 12019 Object: "Application", 12020 Field: field, 12021 Args: nil, 12022 IsMethod: false, 12023 } 12024 12025 ctx = graphql.WithFieldContext(ctx, fc) 12026 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12027 ctx = rctx // use context from middleware stack in children 12028 return obj.CreatedAt, nil 12029 }) 12030 if err != nil { 12031 ec.Error(ctx, err) 12032 return graphql.Null 12033 } 12034 if resTmp == nil { 12035 return graphql.Null 12036 } 12037 res := resTmp.(*Timestamp) 12038 fc.Result = res 12039 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 12040 } 12041 12042 func (ec *executionContext) _Application_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 12043 defer func() { 12044 if r := recover(); r != nil { 12045 ec.Error(ctx, ec.Recover(ctx, r)) 12046 ret = graphql.Null 12047 } 12048 }() 12049 fc := &graphql.FieldContext{ 12050 Object: "Application", 12051 Field: field, 12052 Args: nil, 12053 IsMethod: false, 12054 } 12055 12056 ctx = graphql.WithFieldContext(ctx, fc) 12057 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12058 ctx = rctx // use context from middleware stack in children 12059 return obj.UpdatedAt, nil 12060 }) 12061 if err != nil { 12062 ec.Error(ctx, err) 12063 return graphql.Null 12064 } 12065 if resTmp == nil { 12066 return graphql.Null 12067 } 12068 res := resTmp.(*Timestamp) 12069 fc.Result = res 12070 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 12071 } 12072 12073 func (ec *executionContext) _Application_deletedAt(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 12074 defer func() { 12075 if r := recover(); r != nil { 12076 ec.Error(ctx, ec.Recover(ctx, r)) 12077 ret = graphql.Null 12078 } 12079 }() 12080 fc := &graphql.FieldContext{ 12081 Object: "Application", 12082 Field: field, 12083 Args: nil, 12084 IsMethod: false, 12085 } 12086 12087 ctx = graphql.WithFieldContext(ctx, fc) 12088 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12089 ctx = rctx // use context from middleware stack in children 12090 return obj.DeletedAt, nil 12091 }) 12092 if err != nil { 12093 ec.Error(ctx, err) 12094 return graphql.Null 12095 } 12096 if resTmp == nil { 12097 return graphql.Null 12098 } 12099 res := resTmp.(*Timestamp) 12100 fc.Result = res 12101 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 12102 } 12103 12104 func (ec *executionContext) _Application_systemStatus(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 12105 defer func() { 12106 if r := recover(); r != nil { 12107 ec.Error(ctx, ec.Recover(ctx, r)) 12108 ret = graphql.Null 12109 } 12110 }() 12111 fc := &graphql.FieldContext{ 12112 Object: "Application", 12113 Field: field, 12114 Args: nil, 12115 IsMethod: false, 12116 } 12117 12118 ctx = graphql.WithFieldContext(ctx, fc) 12119 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12120 ctx = rctx // use context from middleware stack in children 12121 return obj.SystemStatus, nil 12122 }) 12123 if err != nil { 12124 ec.Error(ctx, err) 12125 return graphql.Null 12126 } 12127 if resTmp == nil { 12128 return graphql.Null 12129 } 12130 res := resTmp.(*string) 12131 fc.Result = res 12132 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12133 } 12134 12135 func (ec *executionContext) _Application_error(ctx context.Context, field graphql.CollectedField, obj *Application) (ret graphql.Marshaler) { 12136 defer func() { 12137 if r := recover(); r != nil { 12138 ec.Error(ctx, ec.Recover(ctx, r)) 12139 ret = graphql.Null 12140 } 12141 }() 12142 fc := &graphql.FieldContext{ 12143 Object: "Application", 12144 Field: field, 12145 Args: nil, 12146 IsMethod: false, 12147 } 12148 12149 ctx = graphql.WithFieldContext(ctx, fc) 12150 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12151 ctx = rctx // use context from middleware stack in children 12152 return obj.Error, nil 12153 }) 12154 if err != nil { 12155 ec.Error(ctx, err) 12156 return graphql.Null 12157 } 12158 if resTmp == nil { 12159 return graphql.Null 12160 } 12161 res := resTmp.(*string) 12162 fc.Result = res 12163 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12164 } 12165 12166 func (ec *executionContext) _ApplicationEventingConfiguration_defaultURL(ctx context.Context, field graphql.CollectedField, obj *ApplicationEventingConfiguration) (ret graphql.Marshaler) { 12167 defer func() { 12168 if r := recover(); r != nil { 12169 ec.Error(ctx, ec.Recover(ctx, r)) 12170 ret = graphql.Null 12171 } 12172 }() 12173 fc := &graphql.FieldContext{ 12174 Object: "ApplicationEventingConfiguration", 12175 Field: field, 12176 Args: nil, 12177 IsMethod: false, 12178 } 12179 12180 ctx = graphql.WithFieldContext(ctx, fc) 12181 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12182 ctx = rctx // use context from middleware stack in children 12183 return obj.DefaultURL, nil 12184 }) 12185 if err != nil { 12186 ec.Error(ctx, err) 12187 return graphql.Null 12188 } 12189 if resTmp == nil { 12190 if !graphql.HasFieldError(ctx, fc) { 12191 ec.Errorf(ctx, "must not be null") 12192 } 12193 return graphql.Null 12194 } 12195 res := resTmp.(string) 12196 fc.Result = res 12197 return ec.marshalNString2string(ctx, field.Selections, res) 12198 } 12199 12200 func (ec *executionContext) _ApplicationPage_data(ctx context.Context, field graphql.CollectedField, obj *ApplicationPage) (ret graphql.Marshaler) { 12201 defer func() { 12202 if r := recover(); r != nil { 12203 ec.Error(ctx, ec.Recover(ctx, r)) 12204 ret = graphql.Null 12205 } 12206 }() 12207 fc := &graphql.FieldContext{ 12208 Object: "ApplicationPage", 12209 Field: field, 12210 Args: nil, 12211 IsMethod: false, 12212 } 12213 12214 ctx = graphql.WithFieldContext(ctx, fc) 12215 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12216 ctx = rctx // use context from middleware stack in children 12217 return obj.Data, nil 12218 }) 12219 if err != nil { 12220 ec.Error(ctx, err) 12221 return graphql.Null 12222 } 12223 if resTmp == nil { 12224 if !graphql.HasFieldError(ctx, fc) { 12225 ec.Errorf(ctx, "must not be null") 12226 } 12227 return graphql.Null 12228 } 12229 res := resTmp.([]*Application) 12230 fc.Result = res 12231 return ec.marshalNApplication2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationᚄ(ctx, field.Selections, res) 12232 } 12233 12234 func (ec *executionContext) _ApplicationPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ApplicationPage) (ret graphql.Marshaler) { 12235 defer func() { 12236 if r := recover(); r != nil { 12237 ec.Error(ctx, ec.Recover(ctx, r)) 12238 ret = graphql.Null 12239 } 12240 }() 12241 fc := &graphql.FieldContext{ 12242 Object: "ApplicationPage", 12243 Field: field, 12244 Args: nil, 12245 IsMethod: false, 12246 } 12247 12248 ctx = graphql.WithFieldContext(ctx, fc) 12249 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12250 ctx = rctx // use context from middleware stack in children 12251 return obj.PageInfo, nil 12252 }) 12253 if err != nil { 12254 ec.Error(ctx, err) 12255 return graphql.Null 12256 } 12257 if resTmp == nil { 12258 if !graphql.HasFieldError(ctx, fc) { 12259 ec.Errorf(ctx, "must not be null") 12260 } 12261 return graphql.Null 12262 } 12263 res := resTmp.(*PageInfo) 12264 fc.Result = res 12265 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 12266 } 12267 12268 func (ec *executionContext) _ApplicationPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *ApplicationPage) (ret graphql.Marshaler) { 12269 defer func() { 12270 if r := recover(); r != nil { 12271 ec.Error(ctx, ec.Recover(ctx, r)) 12272 ret = graphql.Null 12273 } 12274 }() 12275 fc := &graphql.FieldContext{ 12276 Object: "ApplicationPage", 12277 Field: field, 12278 Args: nil, 12279 IsMethod: false, 12280 } 12281 12282 ctx = graphql.WithFieldContext(ctx, fc) 12283 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12284 ctx = rctx // use context from middleware stack in children 12285 return obj.TotalCount, nil 12286 }) 12287 if err != nil { 12288 ec.Error(ctx, err) 12289 return graphql.Null 12290 } 12291 if resTmp == nil { 12292 if !graphql.HasFieldError(ctx, fc) { 12293 ec.Errorf(ctx, "must not be null") 12294 } 12295 return graphql.Null 12296 } 12297 res := resTmp.(int) 12298 fc.Result = res 12299 return ec.marshalNInt2int(ctx, field.Selections, res) 12300 } 12301 12302 func (ec *executionContext) _ApplicationStatus_condition(ctx context.Context, field graphql.CollectedField, obj *ApplicationStatus) (ret graphql.Marshaler) { 12303 defer func() { 12304 if r := recover(); r != nil { 12305 ec.Error(ctx, ec.Recover(ctx, r)) 12306 ret = graphql.Null 12307 } 12308 }() 12309 fc := &graphql.FieldContext{ 12310 Object: "ApplicationStatus", 12311 Field: field, 12312 Args: nil, 12313 IsMethod: false, 12314 } 12315 12316 ctx = graphql.WithFieldContext(ctx, fc) 12317 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12318 ctx = rctx // use context from middleware stack in children 12319 return obj.Condition, nil 12320 }) 12321 if err != nil { 12322 ec.Error(ctx, err) 12323 return graphql.Null 12324 } 12325 if resTmp == nil { 12326 if !graphql.HasFieldError(ctx, fc) { 12327 ec.Errorf(ctx, "must not be null") 12328 } 12329 return graphql.Null 12330 } 12331 res := resTmp.(ApplicationStatusCondition) 12332 fc.Result = res 12333 return ec.marshalNApplicationStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx, field.Selections, res) 12334 } 12335 12336 func (ec *executionContext) _ApplicationStatus_timestamp(ctx context.Context, field graphql.CollectedField, obj *ApplicationStatus) (ret graphql.Marshaler) { 12337 defer func() { 12338 if r := recover(); r != nil { 12339 ec.Error(ctx, ec.Recover(ctx, r)) 12340 ret = graphql.Null 12341 } 12342 }() 12343 fc := &graphql.FieldContext{ 12344 Object: "ApplicationStatus", 12345 Field: field, 12346 Args: nil, 12347 IsMethod: false, 12348 } 12349 12350 ctx = graphql.WithFieldContext(ctx, fc) 12351 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12352 ctx = rctx // use context from middleware stack in children 12353 return obj.Timestamp, nil 12354 }) 12355 if err != nil { 12356 ec.Error(ctx, err) 12357 return graphql.Null 12358 } 12359 if resTmp == nil { 12360 if !graphql.HasFieldError(ctx, fc) { 12361 ec.Errorf(ctx, "must not be null") 12362 } 12363 return graphql.Null 12364 } 12365 res := resTmp.(Timestamp) 12366 fc.Result = res 12367 return ec.marshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 12368 } 12369 12370 func (ec *executionContext) _ApplicationTemplate_id(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplate) (ret graphql.Marshaler) { 12371 defer func() { 12372 if r := recover(); r != nil { 12373 ec.Error(ctx, ec.Recover(ctx, r)) 12374 ret = graphql.Null 12375 } 12376 }() 12377 fc := &graphql.FieldContext{ 12378 Object: "ApplicationTemplate", 12379 Field: field, 12380 Args: nil, 12381 IsMethod: false, 12382 } 12383 12384 ctx = graphql.WithFieldContext(ctx, fc) 12385 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12386 ctx = rctx // use context from middleware stack in children 12387 return obj.ID, nil 12388 }) 12389 if err != nil { 12390 ec.Error(ctx, err) 12391 return graphql.Null 12392 } 12393 if resTmp == nil { 12394 if !graphql.HasFieldError(ctx, fc) { 12395 ec.Errorf(ctx, "must not be null") 12396 } 12397 return graphql.Null 12398 } 12399 res := resTmp.(string) 12400 fc.Result = res 12401 return ec.marshalNID2string(ctx, field.Selections, res) 12402 } 12403 12404 func (ec *executionContext) _ApplicationTemplate_name(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplate) (ret graphql.Marshaler) { 12405 defer func() { 12406 if r := recover(); r != nil { 12407 ec.Error(ctx, ec.Recover(ctx, r)) 12408 ret = graphql.Null 12409 } 12410 }() 12411 fc := &graphql.FieldContext{ 12412 Object: "ApplicationTemplate", 12413 Field: field, 12414 Args: nil, 12415 IsMethod: false, 12416 } 12417 12418 ctx = graphql.WithFieldContext(ctx, fc) 12419 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12420 ctx = rctx // use context from middleware stack in children 12421 return obj.Name, nil 12422 }) 12423 if err != nil { 12424 ec.Error(ctx, err) 12425 return graphql.Null 12426 } 12427 if resTmp == nil { 12428 if !graphql.HasFieldError(ctx, fc) { 12429 ec.Errorf(ctx, "must not be null") 12430 } 12431 return graphql.Null 12432 } 12433 res := resTmp.(string) 12434 fc.Result = res 12435 return ec.marshalNString2string(ctx, field.Selections, res) 12436 } 12437 12438 func (ec *executionContext) _ApplicationTemplate_description(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplate) (ret graphql.Marshaler) { 12439 defer func() { 12440 if r := recover(); r != nil { 12441 ec.Error(ctx, ec.Recover(ctx, r)) 12442 ret = graphql.Null 12443 } 12444 }() 12445 fc := &graphql.FieldContext{ 12446 Object: "ApplicationTemplate", 12447 Field: field, 12448 Args: nil, 12449 IsMethod: false, 12450 } 12451 12452 ctx = graphql.WithFieldContext(ctx, fc) 12453 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12454 ctx = rctx // use context from middleware stack in children 12455 return obj.Description, nil 12456 }) 12457 if err != nil { 12458 ec.Error(ctx, err) 12459 return graphql.Null 12460 } 12461 if resTmp == nil { 12462 return graphql.Null 12463 } 12464 res := resTmp.(*string) 12465 fc.Result = res 12466 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12467 } 12468 12469 func (ec *executionContext) _ApplicationTemplate_webhooks(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplate) (ret graphql.Marshaler) { 12470 defer func() { 12471 if r := recover(); r != nil { 12472 ec.Error(ctx, ec.Recover(ctx, r)) 12473 ret = graphql.Null 12474 } 12475 }() 12476 fc := &graphql.FieldContext{ 12477 Object: "ApplicationTemplate", 12478 Field: field, 12479 Args: nil, 12480 IsMethod: true, 12481 } 12482 12483 ctx = graphql.WithFieldContext(ctx, fc) 12484 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12485 directive0 := func(rctx context.Context) (interface{}, error) { 12486 ctx = rctx // use context from middleware stack in children 12487 return ec.resolvers.ApplicationTemplate().Webhooks(rctx, obj) 12488 } 12489 directive1 := func(ctx context.Context) (interface{}, error) { 12490 path, err := ec.unmarshalNString2string(ctx, "graphql.field.application_template.webhooks") 12491 if err != nil { 12492 return nil, err 12493 } 12494 if ec.directives.Sanitize == nil { 12495 return nil, errors.New("directive sanitize is not implemented") 12496 } 12497 return ec.directives.Sanitize(ctx, obj, directive0, path) 12498 } 12499 12500 tmp, err := directive1(rctx) 12501 if err != nil { 12502 return nil, err 12503 } 12504 if tmp == nil { 12505 return nil, nil 12506 } 12507 if data, ok := tmp.([]*Webhook); ok { 12508 return data, nil 12509 } 12510 return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kyma-incubator/compass/components/director/pkg/graphql.Webhook`, tmp) 12511 }) 12512 if err != nil { 12513 ec.Error(ctx, err) 12514 return graphql.Null 12515 } 12516 if resTmp == nil { 12517 return graphql.Null 12518 } 12519 res := resTmp.([]*Webhook) 12520 fc.Result = res 12521 return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookᚄ(ctx, field.Selections, res) 12522 } 12523 12524 func (ec *executionContext) _ApplicationTemplate_applicationInput(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplate) (ret graphql.Marshaler) { 12525 defer func() { 12526 if r := recover(); r != nil { 12527 ec.Error(ctx, ec.Recover(ctx, r)) 12528 ret = graphql.Null 12529 } 12530 }() 12531 fc := &graphql.FieldContext{ 12532 Object: "ApplicationTemplate", 12533 Field: field, 12534 Args: nil, 12535 IsMethod: false, 12536 } 12537 12538 ctx = graphql.WithFieldContext(ctx, fc) 12539 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12540 ctx = rctx // use context from middleware stack in children 12541 return obj.ApplicationInput, nil 12542 }) 12543 if err != nil { 12544 ec.Error(ctx, err) 12545 return graphql.Null 12546 } 12547 if resTmp == nil { 12548 if !graphql.HasFieldError(ctx, fc) { 12549 ec.Errorf(ctx, "must not be null") 12550 } 12551 return graphql.Null 12552 } 12553 res := resTmp.(string) 12554 fc.Result = res 12555 return ec.marshalNString2string(ctx, field.Selections, res) 12556 } 12557 12558 func (ec *executionContext) _ApplicationTemplate_placeholders(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplate) (ret graphql.Marshaler) { 12559 defer func() { 12560 if r := recover(); r != nil { 12561 ec.Error(ctx, ec.Recover(ctx, r)) 12562 ret = graphql.Null 12563 } 12564 }() 12565 fc := &graphql.FieldContext{ 12566 Object: "ApplicationTemplate", 12567 Field: field, 12568 Args: nil, 12569 IsMethod: false, 12570 } 12571 12572 ctx = graphql.WithFieldContext(ctx, fc) 12573 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12574 ctx = rctx // use context from middleware stack in children 12575 return obj.Placeholders, nil 12576 }) 12577 if err != nil { 12578 ec.Error(ctx, err) 12579 return graphql.Null 12580 } 12581 if resTmp == nil { 12582 if !graphql.HasFieldError(ctx, fc) { 12583 ec.Errorf(ctx, "must not be null") 12584 } 12585 return graphql.Null 12586 } 12587 res := resTmp.([]*PlaceholderDefinition) 12588 fc.Result = res 12589 return ec.marshalNPlaceholderDefinition2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinitionᚄ(ctx, field.Selections, res) 12590 } 12591 12592 func (ec *executionContext) _ApplicationTemplate_labels(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplate) (ret graphql.Marshaler) { 12593 defer func() { 12594 if r := recover(); r != nil { 12595 ec.Error(ctx, ec.Recover(ctx, r)) 12596 ret = graphql.Null 12597 } 12598 }() 12599 fc := &graphql.FieldContext{ 12600 Object: "ApplicationTemplate", 12601 Field: field, 12602 Args: nil, 12603 IsMethod: true, 12604 } 12605 12606 ctx = graphql.WithFieldContext(ctx, fc) 12607 rawArgs := field.ArgumentMap(ec.Variables) 12608 args, err := ec.field_ApplicationTemplate_labels_args(ctx, rawArgs) 12609 if err != nil { 12610 ec.Error(ctx, err) 12611 return graphql.Null 12612 } 12613 fc.Args = args 12614 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12615 ctx = rctx // use context from middleware stack in children 12616 return ec.resolvers.ApplicationTemplate().Labels(rctx, obj, args["key"].(*string)) 12617 }) 12618 if err != nil { 12619 ec.Error(ctx, err) 12620 return graphql.Null 12621 } 12622 if resTmp == nil { 12623 return graphql.Null 12624 } 12625 res := resTmp.(Labels) 12626 fc.Result = res 12627 return ec.marshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, field.Selections, res) 12628 } 12629 12630 func (ec *executionContext) _ApplicationTemplate_accessLevel(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplate) (ret graphql.Marshaler) { 12631 defer func() { 12632 if r := recover(); r != nil { 12633 ec.Error(ctx, ec.Recover(ctx, r)) 12634 ret = graphql.Null 12635 } 12636 }() 12637 fc := &graphql.FieldContext{ 12638 Object: "ApplicationTemplate", 12639 Field: field, 12640 Args: nil, 12641 IsMethod: false, 12642 } 12643 12644 ctx = graphql.WithFieldContext(ctx, fc) 12645 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12646 ctx = rctx // use context from middleware stack in children 12647 return obj.AccessLevel, nil 12648 }) 12649 if err != nil { 12650 ec.Error(ctx, err) 12651 return graphql.Null 12652 } 12653 if resTmp == nil { 12654 if !graphql.HasFieldError(ctx, fc) { 12655 ec.Errorf(ctx, "must not be null") 12656 } 12657 return graphql.Null 12658 } 12659 res := resTmp.(ApplicationTemplateAccessLevel) 12660 fc.Result = res 12661 return ec.marshalNApplicationTemplateAccessLevel2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateAccessLevel(ctx, field.Selections, res) 12662 } 12663 12664 func (ec *executionContext) _ApplicationTemplate_applicationNamespace(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplate) (ret graphql.Marshaler) { 12665 defer func() { 12666 if r := recover(); r != nil { 12667 ec.Error(ctx, ec.Recover(ctx, r)) 12668 ret = graphql.Null 12669 } 12670 }() 12671 fc := &graphql.FieldContext{ 12672 Object: "ApplicationTemplate", 12673 Field: field, 12674 Args: nil, 12675 IsMethod: false, 12676 } 12677 12678 ctx = graphql.WithFieldContext(ctx, fc) 12679 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12680 ctx = rctx // use context from middleware stack in children 12681 return obj.ApplicationNamespace, nil 12682 }) 12683 if err != nil { 12684 ec.Error(ctx, err) 12685 return graphql.Null 12686 } 12687 if resTmp == nil { 12688 return graphql.Null 12689 } 12690 res := resTmp.(*string) 12691 fc.Result = res 12692 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12693 } 12694 12695 func (ec *executionContext) _ApplicationTemplatePage_data(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplatePage) (ret graphql.Marshaler) { 12696 defer func() { 12697 if r := recover(); r != nil { 12698 ec.Error(ctx, ec.Recover(ctx, r)) 12699 ret = graphql.Null 12700 } 12701 }() 12702 fc := &graphql.FieldContext{ 12703 Object: "ApplicationTemplatePage", 12704 Field: field, 12705 Args: nil, 12706 IsMethod: false, 12707 } 12708 12709 ctx = graphql.WithFieldContext(ctx, fc) 12710 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12711 ctx = rctx // use context from middleware stack in children 12712 return obj.Data, nil 12713 }) 12714 if err != nil { 12715 ec.Error(ctx, err) 12716 return graphql.Null 12717 } 12718 if resTmp == nil { 12719 if !graphql.HasFieldError(ctx, fc) { 12720 ec.Errorf(ctx, "must not be null") 12721 } 12722 return graphql.Null 12723 } 12724 res := resTmp.([]*ApplicationTemplate) 12725 fc.Result = res 12726 return ec.marshalNApplicationTemplate2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateᚄ(ctx, field.Selections, res) 12727 } 12728 12729 func (ec *executionContext) _ApplicationTemplatePage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplatePage) (ret graphql.Marshaler) { 12730 defer func() { 12731 if r := recover(); r != nil { 12732 ec.Error(ctx, ec.Recover(ctx, r)) 12733 ret = graphql.Null 12734 } 12735 }() 12736 fc := &graphql.FieldContext{ 12737 Object: "ApplicationTemplatePage", 12738 Field: field, 12739 Args: nil, 12740 IsMethod: false, 12741 } 12742 12743 ctx = graphql.WithFieldContext(ctx, fc) 12744 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12745 ctx = rctx // use context from middleware stack in children 12746 return obj.PageInfo, nil 12747 }) 12748 if err != nil { 12749 ec.Error(ctx, err) 12750 return graphql.Null 12751 } 12752 if resTmp == nil { 12753 if !graphql.HasFieldError(ctx, fc) { 12754 ec.Errorf(ctx, "must not be null") 12755 } 12756 return graphql.Null 12757 } 12758 res := resTmp.(*PageInfo) 12759 fc.Result = res 12760 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 12761 } 12762 12763 func (ec *executionContext) _ApplicationTemplatePage_totalCount(ctx context.Context, field graphql.CollectedField, obj *ApplicationTemplatePage) (ret graphql.Marshaler) { 12764 defer func() { 12765 if r := recover(); r != nil { 12766 ec.Error(ctx, ec.Recover(ctx, r)) 12767 ret = graphql.Null 12768 } 12769 }() 12770 fc := &graphql.FieldContext{ 12771 Object: "ApplicationTemplatePage", 12772 Field: field, 12773 Args: nil, 12774 IsMethod: false, 12775 } 12776 12777 ctx = graphql.WithFieldContext(ctx, fc) 12778 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12779 ctx = rctx // use context from middleware stack in children 12780 return obj.TotalCount, nil 12781 }) 12782 if err != nil { 12783 ec.Error(ctx, err) 12784 return graphql.Null 12785 } 12786 if resTmp == nil { 12787 if !graphql.HasFieldError(ctx, fc) { 12788 ec.Errorf(ctx, "must not be null") 12789 } 12790 return graphql.Null 12791 } 12792 res := resTmp.(int) 12793 fc.Result = res 12794 return ec.marshalNInt2int(ctx, field.Selections, res) 12795 } 12796 12797 func (ec *executionContext) _Auth_credential(ctx context.Context, field graphql.CollectedField, obj *Auth) (ret graphql.Marshaler) { 12798 defer func() { 12799 if r := recover(); r != nil { 12800 ec.Error(ctx, ec.Recover(ctx, r)) 12801 ret = graphql.Null 12802 } 12803 }() 12804 fc := &graphql.FieldContext{ 12805 Object: "Auth", 12806 Field: field, 12807 Args: nil, 12808 IsMethod: false, 12809 } 12810 12811 ctx = graphql.WithFieldContext(ctx, fc) 12812 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12813 ctx = rctx // use context from middleware stack in children 12814 return obj.Credential, nil 12815 }) 12816 if err != nil { 12817 ec.Error(ctx, err) 12818 return graphql.Null 12819 } 12820 if resTmp == nil { 12821 return graphql.Null 12822 } 12823 res := resTmp.(CredentialData) 12824 fc.Result = res 12825 return ec.marshalOCredentialData2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialData(ctx, field.Selections, res) 12826 } 12827 12828 func (ec *executionContext) _Auth_accessStrategy(ctx context.Context, field graphql.CollectedField, obj *Auth) (ret graphql.Marshaler) { 12829 defer func() { 12830 if r := recover(); r != nil { 12831 ec.Error(ctx, ec.Recover(ctx, r)) 12832 ret = graphql.Null 12833 } 12834 }() 12835 fc := &graphql.FieldContext{ 12836 Object: "Auth", 12837 Field: field, 12838 Args: nil, 12839 IsMethod: false, 12840 } 12841 12842 ctx = graphql.WithFieldContext(ctx, fc) 12843 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12844 ctx = rctx // use context from middleware stack in children 12845 return obj.AccessStrategy, nil 12846 }) 12847 if err != nil { 12848 ec.Error(ctx, err) 12849 return graphql.Null 12850 } 12851 if resTmp == nil { 12852 return graphql.Null 12853 } 12854 res := resTmp.(*string) 12855 fc.Result = res 12856 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 12857 } 12858 12859 func (ec *executionContext) _Auth_additionalHeaders(ctx context.Context, field graphql.CollectedField, obj *Auth) (ret graphql.Marshaler) { 12860 defer func() { 12861 if r := recover(); r != nil { 12862 ec.Error(ctx, ec.Recover(ctx, r)) 12863 ret = graphql.Null 12864 } 12865 }() 12866 fc := &graphql.FieldContext{ 12867 Object: "Auth", 12868 Field: field, 12869 Args: nil, 12870 IsMethod: false, 12871 } 12872 12873 ctx = graphql.WithFieldContext(ctx, fc) 12874 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12875 ctx = rctx // use context from middleware stack in children 12876 return obj.AdditionalHeaders, nil 12877 }) 12878 if err != nil { 12879 ec.Error(ctx, err) 12880 return graphql.Null 12881 } 12882 if resTmp == nil { 12883 return graphql.Null 12884 } 12885 res := resTmp.(HTTPHeaders) 12886 fc.Result = res 12887 return ec.marshalOHttpHeaders2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeaders(ctx, field.Selections, res) 12888 } 12889 12890 func (ec *executionContext) _Auth_additionalHeadersSerialized(ctx context.Context, field graphql.CollectedField, obj *Auth) (ret graphql.Marshaler) { 12891 defer func() { 12892 if r := recover(); r != nil { 12893 ec.Error(ctx, ec.Recover(ctx, r)) 12894 ret = graphql.Null 12895 } 12896 }() 12897 fc := &graphql.FieldContext{ 12898 Object: "Auth", 12899 Field: field, 12900 Args: nil, 12901 IsMethod: false, 12902 } 12903 12904 ctx = graphql.WithFieldContext(ctx, fc) 12905 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12906 ctx = rctx // use context from middleware stack in children 12907 return obj.AdditionalHeadersSerialized, nil 12908 }) 12909 if err != nil { 12910 ec.Error(ctx, err) 12911 return graphql.Null 12912 } 12913 if resTmp == nil { 12914 return graphql.Null 12915 } 12916 res := resTmp.(*HTTPHeadersSerialized) 12917 fc.Result = res 12918 return ec.marshalOHttpHeadersSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeadersSerialized(ctx, field.Selections, res) 12919 } 12920 12921 func (ec *executionContext) _Auth_additionalQueryParams(ctx context.Context, field graphql.CollectedField, obj *Auth) (ret graphql.Marshaler) { 12922 defer func() { 12923 if r := recover(); r != nil { 12924 ec.Error(ctx, ec.Recover(ctx, r)) 12925 ret = graphql.Null 12926 } 12927 }() 12928 fc := &graphql.FieldContext{ 12929 Object: "Auth", 12930 Field: field, 12931 Args: nil, 12932 IsMethod: false, 12933 } 12934 12935 ctx = graphql.WithFieldContext(ctx, fc) 12936 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12937 ctx = rctx // use context from middleware stack in children 12938 return obj.AdditionalQueryParams, nil 12939 }) 12940 if err != nil { 12941 ec.Error(ctx, err) 12942 return graphql.Null 12943 } 12944 if resTmp == nil { 12945 return graphql.Null 12946 } 12947 res := resTmp.(QueryParams) 12948 fc.Result = res 12949 return ec.marshalOQueryParams2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParams(ctx, field.Selections, res) 12950 } 12951 12952 func (ec *executionContext) _Auth_additionalQueryParamsSerialized(ctx context.Context, field graphql.CollectedField, obj *Auth) (ret graphql.Marshaler) { 12953 defer func() { 12954 if r := recover(); r != nil { 12955 ec.Error(ctx, ec.Recover(ctx, r)) 12956 ret = graphql.Null 12957 } 12958 }() 12959 fc := &graphql.FieldContext{ 12960 Object: "Auth", 12961 Field: field, 12962 Args: nil, 12963 IsMethod: false, 12964 } 12965 12966 ctx = graphql.WithFieldContext(ctx, fc) 12967 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12968 ctx = rctx // use context from middleware stack in children 12969 return obj.AdditionalQueryParamsSerialized, nil 12970 }) 12971 if err != nil { 12972 ec.Error(ctx, err) 12973 return graphql.Null 12974 } 12975 if resTmp == nil { 12976 return graphql.Null 12977 } 12978 res := resTmp.(*QueryParamsSerialized) 12979 fc.Result = res 12980 return ec.marshalOQueryParamsSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParamsSerialized(ctx, field.Selections, res) 12981 } 12982 12983 func (ec *executionContext) _Auth_requestAuth(ctx context.Context, field graphql.CollectedField, obj *Auth) (ret graphql.Marshaler) { 12984 defer func() { 12985 if r := recover(); r != nil { 12986 ec.Error(ctx, ec.Recover(ctx, r)) 12987 ret = graphql.Null 12988 } 12989 }() 12990 fc := &graphql.FieldContext{ 12991 Object: "Auth", 12992 Field: field, 12993 Args: nil, 12994 IsMethod: false, 12995 } 12996 12997 ctx = graphql.WithFieldContext(ctx, fc) 12998 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 12999 ctx = rctx // use context from middleware stack in children 13000 return obj.RequestAuth, nil 13001 }) 13002 if err != nil { 13003 ec.Error(ctx, err) 13004 return graphql.Null 13005 } 13006 if resTmp == nil { 13007 return graphql.Null 13008 } 13009 res := resTmp.(*CredentialRequestAuth) 13010 fc.Result = res 13011 return ec.marshalOCredentialRequestAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialRequestAuth(ctx, field.Selections, res) 13012 } 13013 13014 func (ec *executionContext) _Auth_oneTimeToken(ctx context.Context, field graphql.CollectedField, obj *Auth) (ret graphql.Marshaler) { 13015 defer func() { 13016 if r := recover(); r != nil { 13017 ec.Error(ctx, ec.Recover(ctx, r)) 13018 ret = graphql.Null 13019 } 13020 }() 13021 fc := &graphql.FieldContext{ 13022 Object: "Auth", 13023 Field: field, 13024 Args: nil, 13025 IsMethod: false, 13026 } 13027 13028 ctx = graphql.WithFieldContext(ctx, fc) 13029 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13030 ctx = rctx // use context from middleware stack in children 13031 return obj.OneTimeToken, nil 13032 }) 13033 if err != nil { 13034 ec.Error(ctx, err) 13035 return graphql.Null 13036 } 13037 if resTmp == nil { 13038 return graphql.Null 13039 } 13040 res := resTmp.(OneTimeToken) 13041 fc.Result = res 13042 return ec.marshalOOneTimeToken2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeToken(ctx, field.Selections, res) 13043 } 13044 13045 func (ec *executionContext) _Auth_certCommonName(ctx context.Context, field graphql.CollectedField, obj *Auth) (ret graphql.Marshaler) { 13046 defer func() { 13047 if r := recover(); r != nil { 13048 ec.Error(ctx, ec.Recover(ctx, r)) 13049 ret = graphql.Null 13050 } 13051 }() 13052 fc := &graphql.FieldContext{ 13053 Object: "Auth", 13054 Field: field, 13055 Args: nil, 13056 IsMethod: false, 13057 } 13058 13059 ctx = graphql.WithFieldContext(ctx, fc) 13060 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13061 ctx = rctx // use context from middleware stack in children 13062 return obj.CertCommonName, nil 13063 }) 13064 if err != nil { 13065 ec.Error(ctx, err) 13066 return graphql.Null 13067 } 13068 if resTmp == nil { 13069 return graphql.Null 13070 } 13071 res := resTmp.(*string) 13072 fc.Result = res 13073 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13074 } 13075 13076 func (ec *executionContext) _AutomaticScenarioAssignment_scenarioName(ctx context.Context, field graphql.CollectedField, obj *AutomaticScenarioAssignment) (ret graphql.Marshaler) { 13077 defer func() { 13078 if r := recover(); r != nil { 13079 ec.Error(ctx, ec.Recover(ctx, r)) 13080 ret = graphql.Null 13081 } 13082 }() 13083 fc := &graphql.FieldContext{ 13084 Object: "AutomaticScenarioAssignment", 13085 Field: field, 13086 Args: nil, 13087 IsMethod: false, 13088 } 13089 13090 ctx = graphql.WithFieldContext(ctx, fc) 13091 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13092 ctx = rctx // use context from middleware stack in children 13093 return obj.ScenarioName, nil 13094 }) 13095 if err != nil { 13096 ec.Error(ctx, err) 13097 return graphql.Null 13098 } 13099 if resTmp == nil { 13100 if !graphql.HasFieldError(ctx, fc) { 13101 ec.Errorf(ctx, "must not be null") 13102 } 13103 return graphql.Null 13104 } 13105 res := resTmp.(string) 13106 fc.Result = res 13107 return ec.marshalNString2string(ctx, field.Selections, res) 13108 } 13109 13110 func (ec *executionContext) _AutomaticScenarioAssignment_selector(ctx context.Context, field graphql.CollectedField, obj *AutomaticScenarioAssignment) (ret graphql.Marshaler) { 13111 defer func() { 13112 if r := recover(); r != nil { 13113 ec.Error(ctx, ec.Recover(ctx, r)) 13114 ret = graphql.Null 13115 } 13116 }() 13117 fc := &graphql.FieldContext{ 13118 Object: "AutomaticScenarioAssignment", 13119 Field: field, 13120 Args: nil, 13121 IsMethod: false, 13122 } 13123 13124 ctx = graphql.WithFieldContext(ctx, fc) 13125 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13126 ctx = rctx // use context from middleware stack in children 13127 return obj.Selector, nil 13128 }) 13129 if err != nil { 13130 ec.Error(ctx, err) 13131 return graphql.Null 13132 } 13133 if resTmp == nil { 13134 if !graphql.HasFieldError(ctx, fc) { 13135 ec.Errorf(ctx, "must not be null") 13136 } 13137 return graphql.Null 13138 } 13139 res := resTmp.(*Label) 13140 fc.Result = res 13141 return ec.marshalNLabel2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabel(ctx, field.Selections, res) 13142 } 13143 13144 func (ec *executionContext) _AutomaticScenarioAssignmentPage_data(ctx context.Context, field graphql.CollectedField, obj *AutomaticScenarioAssignmentPage) (ret graphql.Marshaler) { 13145 defer func() { 13146 if r := recover(); r != nil { 13147 ec.Error(ctx, ec.Recover(ctx, r)) 13148 ret = graphql.Null 13149 } 13150 }() 13151 fc := &graphql.FieldContext{ 13152 Object: "AutomaticScenarioAssignmentPage", 13153 Field: field, 13154 Args: nil, 13155 IsMethod: false, 13156 } 13157 13158 ctx = graphql.WithFieldContext(ctx, fc) 13159 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13160 ctx = rctx // use context from middleware stack in children 13161 return obj.Data, nil 13162 }) 13163 if err != nil { 13164 ec.Error(ctx, err) 13165 return graphql.Null 13166 } 13167 if resTmp == nil { 13168 if !graphql.HasFieldError(ctx, fc) { 13169 ec.Errorf(ctx, "must not be null") 13170 } 13171 return graphql.Null 13172 } 13173 res := resTmp.([]*AutomaticScenarioAssignment) 13174 fc.Result = res 13175 return ec.marshalNAutomaticScenarioAssignment2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignmentᚄ(ctx, field.Selections, res) 13176 } 13177 13178 func (ec *executionContext) _AutomaticScenarioAssignmentPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *AutomaticScenarioAssignmentPage) (ret graphql.Marshaler) { 13179 defer func() { 13180 if r := recover(); r != nil { 13181 ec.Error(ctx, ec.Recover(ctx, r)) 13182 ret = graphql.Null 13183 } 13184 }() 13185 fc := &graphql.FieldContext{ 13186 Object: "AutomaticScenarioAssignmentPage", 13187 Field: field, 13188 Args: nil, 13189 IsMethod: false, 13190 } 13191 13192 ctx = graphql.WithFieldContext(ctx, fc) 13193 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13194 ctx = rctx // use context from middleware stack in children 13195 return obj.PageInfo, nil 13196 }) 13197 if err != nil { 13198 ec.Error(ctx, err) 13199 return graphql.Null 13200 } 13201 if resTmp == nil { 13202 if !graphql.HasFieldError(ctx, fc) { 13203 ec.Errorf(ctx, "must not be null") 13204 } 13205 return graphql.Null 13206 } 13207 res := resTmp.(*PageInfo) 13208 fc.Result = res 13209 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 13210 } 13211 13212 func (ec *executionContext) _AutomaticScenarioAssignmentPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *AutomaticScenarioAssignmentPage) (ret graphql.Marshaler) { 13213 defer func() { 13214 if r := recover(); r != nil { 13215 ec.Error(ctx, ec.Recover(ctx, r)) 13216 ret = graphql.Null 13217 } 13218 }() 13219 fc := &graphql.FieldContext{ 13220 Object: "AutomaticScenarioAssignmentPage", 13221 Field: field, 13222 Args: nil, 13223 IsMethod: false, 13224 } 13225 13226 ctx = graphql.WithFieldContext(ctx, fc) 13227 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13228 ctx = rctx // use context from middleware stack in children 13229 return obj.TotalCount, nil 13230 }) 13231 if err != nil { 13232 ec.Error(ctx, err) 13233 return graphql.Null 13234 } 13235 if resTmp == nil { 13236 if !graphql.HasFieldError(ctx, fc) { 13237 ec.Errorf(ctx, "must not be null") 13238 } 13239 return graphql.Null 13240 } 13241 res := resTmp.(int) 13242 fc.Result = res 13243 return ec.marshalNInt2int(ctx, field.Selections, res) 13244 } 13245 13246 func (ec *executionContext) _BasicCredentialData_username(ctx context.Context, field graphql.CollectedField, obj *BasicCredentialData) (ret graphql.Marshaler) { 13247 defer func() { 13248 if r := recover(); r != nil { 13249 ec.Error(ctx, ec.Recover(ctx, r)) 13250 ret = graphql.Null 13251 } 13252 }() 13253 fc := &graphql.FieldContext{ 13254 Object: "BasicCredentialData", 13255 Field: field, 13256 Args: nil, 13257 IsMethod: false, 13258 } 13259 13260 ctx = graphql.WithFieldContext(ctx, fc) 13261 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13262 ctx = rctx // use context from middleware stack in children 13263 return obj.Username, nil 13264 }) 13265 if err != nil { 13266 ec.Error(ctx, err) 13267 return graphql.Null 13268 } 13269 if resTmp == nil { 13270 if !graphql.HasFieldError(ctx, fc) { 13271 ec.Errorf(ctx, "must not be null") 13272 } 13273 return graphql.Null 13274 } 13275 res := resTmp.(string) 13276 fc.Result = res 13277 return ec.marshalNString2string(ctx, field.Selections, res) 13278 } 13279 13280 func (ec *executionContext) _BasicCredentialData_password(ctx context.Context, field graphql.CollectedField, obj *BasicCredentialData) (ret graphql.Marshaler) { 13281 defer func() { 13282 if r := recover(); r != nil { 13283 ec.Error(ctx, ec.Recover(ctx, r)) 13284 ret = graphql.Null 13285 } 13286 }() 13287 fc := &graphql.FieldContext{ 13288 Object: "BasicCredentialData", 13289 Field: field, 13290 Args: nil, 13291 IsMethod: false, 13292 } 13293 13294 ctx = graphql.WithFieldContext(ctx, fc) 13295 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13296 ctx = rctx // use context from middleware stack in children 13297 return obj.Password, nil 13298 }) 13299 if err != nil { 13300 ec.Error(ctx, err) 13301 return graphql.Null 13302 } 13303 if resTmp == nil { 13304 if !graphql.HasFieldError(ctx, fc) { 13305 ec.Errorf(ctx, "must not be null") 13306 } 13307 return graphql.Null 13308 } 13309 res := resTmp.(string) 13310 fc.Result = res 13311 return ec.marshalNString2string(ctx, field.Selections, res) 13312 } 13313 13314 func (ec *executionContext) _Bundle_id(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13315 defer func() { 13316 if r := recover(); r != nil { 13317 ec.Error(ctx, ec.Recover(ctx, r)) 13318 ret = graphql.Null 13319 } 13320 }() 13321 fc := &graphql.FieldContext{ 13322 Object: "Bundle", 13323 Field: field, 13324 Args: nil, 13325 IsMethod: false, 13326 } 13327 13328 ctx = graphql.WithFieldContext(ctx, fc) 13329 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13330 ctx = rctx // use context from middleware stack in children 13331 return obj.ID, nil 13332 }) 13333 if err != nil { 13334 ec.Error(ctx, err) 13335 return graphql.Null 13336 } 13337 if resTmp == nil { 13338 if !graphql.HasFieldError(ctx, fc) { 13339 ec.Errorf(ctx, "must not be null") 13340 } 13341 return graphql.Null 13342 } 13343 res := resTmp.(string) 13344 fc.Result = res 13345 return ec.marshalNID2string(ctx, field.Selections, res) 13346 } 13347 13348 func (ec *executionContext) _Bundle_name(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13349 defer func() { 13350 if r := recover(); r != nil { 13351 ec.Error(ctx, ec.Recover(ctx, r)) 13352 ret = graphql.Null 13353 } 13354 }() 13355 fc := &graphql.FieldContext{ 13356 Object: "Bundle", 13357 Field: field, 13358 Args: nil, 13359 IsMethod: false, 13360 } 13361 13362 ctx = graphql.WithFieldContext(ctx, fc) 13363 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13364 ctx = rctx // use context from middleware stack in children 13365 return obj.Name, nil 13366 }) 13367 if err != nil { 13368 ec.Error(ctx, err) 13369 return graphql.Null 13370 } 13371 if resTmp == nil { 13372 if !graphql.HasFieldError(ctx, fc) { 13373 ec.Errorf(ctx, "must not be null") 13374 } 13375 return graphql.Null 13376 } 13377 res := resTmp.(string) 13378 fc.Result = res 13379 return ec.marshalNString2string(ctx, field.Selections, res) 13380 } 13381 13382 func (ec *executionContext) _Bundle_description(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13383 defer func() { 13384 if r := recover(); r != nil { 13385 ec.Error(ctx, ec.Recover(ctx, r)) 13386 ret = graphql.Null 13387 } 13388 }() 13389 fc := &graphql.FieldContext{ 13390 Object: "Bundle", 13391 Field: field, 13392 Args: nil, 13393 IsMethod: false, 13394 } 13395 13396 ctx = graphql.WithFieldContext(ctx, fc) 13397 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13398 ctx = rctx // use context from middleware stack in children 13399 return obj.Description, nil 13400 }) 13401 if err != nil { 13402 ec.Error(ctx, err) 13403 return graphql.Null 13404 } 13405 if resTmp == nil { 13406 return graphql.Null 13407 } 13408 res := resTmp.(*string) 13409 fc.Result = res 13410 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13411 } 13412 13413 func (ec *executionContext) _Bundle_instanceAuthRequestInputSchema(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13414 defer func() { 13415 if r := recover(); r != nil { 13416 ec.Error(ctx, ec.Recover(ctx, r)) 13417 ret = graphql.Null 13418 } 13419 }() 13420 fc := &graphql.FieldContext{ 13421 Object: "Bundle", 13422 Field: field, 13423 Args: nil, 13424 IsMethod: false, 13425 } 13426 13427 ctx = graphql.WithFieldContext(ctx, fc) 13428 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13429 ctx = rctx // use context from middleware stack in children 13430 return obj.InstanceAuthRequestInputSchema, nil 13431 }) 13432 if err != nil { 13433 ec.Error(ctx, err) 13434 return graphql.Null 13435 } 13436 if resTmp == nil { 13437 return graphql.Null 13438 } 13439 res := resTmp.(*JSONSchema) 13440 fc.Result = res 13441 return ec.marshalOJSONSchema2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSONSchema(ctx, field.Selections, res) 13442 } 13443 13444 func (ec *executionContext) _Bundle_instanceAuth(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13445 defer func() { 13446 if r := recover(); r != nil { 13447 ec.Error(ctx, ec.Recover(ctx, r)) 13448 ret = graphql.Null 13449 } 13450 }() 13451 fc := &graphql.FieldContext{ 13452 Object: "Bundle", 13453 Field: field, 13454 Args: nil, 13455 IsMethod: true, 13456 } 13457 13458 ctx = graphql.WithFieldContext(ctx, fc) 13459 rawArgs := field.ArgumentMap(ec.Variables) 13460 args, err := ec.field_Bundle_instanceAuth_args(ctx, rawArgs) 13461 if err != nil { 13462 ec.Error(ctx, err) 13463 return graphql.Null 13464 } 13465 fc.Args = args 13466 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13467 directive0 := func(rctx context.Context) (interface{}, error) { 13468 ctx = rctx // use context from middleware stack in children 13469 return ec.resolvers.Bundle().InstanceAuth(rctx, obj, args["id"].(string)) 13470 } 13471 directive1 := func(ctx context.Context) (interface{}, error) { 13472 path, err := ec.unmarshalNString2string(ctx, "graphql.field.bundle.instance_auth") 13473 if err != nil { 13474 return nil, err 13475 } 13476 if ec.directives.Sanitize == nil { 13477 return nil, errors.New("directive sanitize is not implemented") 13478 } 13479 return ec.directives.Sanitize(ctx, obj, directive0, path) 13480 } 13481 13482 tmp, err := directive1(rctx) 13483 if err != nil { 13484 return nil, err 13485 } 13486 if tmp == nil { 13487 return nil, nil 13488 } 13489 if data, ok := tmp.(*BundleInstanceAuth); ok { 13490 return data, nil 13491 } 13492 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuth`, tmp) 13493 }) 13494 if err != nil { 13495 ec.Error(ctx, err) 13496 return graphql.Null 13497 } 13498 if resTmp == nil { 13499 return graphql.Null 13500 } 13501 res := resTmp.(*BundleInstanceAuth) 13502 fc.Result = res 13503 return ec.marshalOBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx, field.Selections, res) 13504 } 13505 13506 func (ec *executionContext) _Bundle_instanceAuths(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13507 defer func() { 13508 if r := recover(); r != nil { 13509 ec.Error(ctx, ec.Recover(ctx, r)) 13510 ret = graphql.Null 13511 } 13512 }() 13513 fc := &graphql.FieldContext{ 13514 Object: "Bundle", 13515 Field: field, 13516 Args: nil, 13517 IsMethod: true, 13518 } 13519 13520 ctx = graphql.WithFieldContext(ctx, fc) 13521 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13522 directive0 := func(rctx context.Context) (interface{}, error) { 13523 ctx = rctx // use context from middleware stack in children 13524 return ec.resolvers.Bundle().InstanceAuths(rctx, obj) 13525 } 13526 directive1 := func(ctx context.Context) (interface{}, error) { 13527 path, err := ec.unmarshalNString2string(ctx, "graphql.field.bundle.instance_auths") 13528 if err != nil { 13529 return nil, err 13530 } 13531 if ec.directives.Sanitize == nil { 13532 return nil, errors.New("directive sanitize is not implemented") 13533 } 13534 return ec.directives.Sanitize(ctx, obj, directive0, path) 13535 } 13536 13537 tmp, err := directive1(rctx) 13538 if err != nil { 13539 return nil, err 13540 } 13541 if tmp == nil { 13542 return nil, nil 13543 } 13544 if data, ok := tmp.([]*BundleInstanceAuth); ok { 13545 return data, nil 13546 } 13547 return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuth`, tmp) 13548 }) 13549 if err != nil { 13550 ec.Error(ctx, err) 13551 return graphql.Null 13552 } 13553 if resTmp == nil { 13554 return graphql.Null 13555 } 13556 res := resTmp.([]*BundleInstanceAuth) 13557 fc.Result = res 13558 return ec.marshalOBundleInstanceAuth2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthᚄ(ctx, field.Selections, res) 13559 } 13560 13561 func (ec *executionContext) _Bundle_defaultInstanceAuth(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13562 defer func() { 13563 if r := recover(); r != nil { 13564 ec.Error(ctx, ec.Recover(ctx, r)) 13565 ret = graphql.Null 13566 } 13567 }() 13568 fc := &graphql.FieldContext{ 13569 Object: "Bundle", 13570 Field: field, 13571 Args: nil, 13572 IsMethod: false, 13573 } 13574 13575 ctx = graphql.WithFieldContext(ctx, fc) 13576 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13577 directive0 := func(rctx context.Context) (interface{}, error) { 13578 ctx = rctx // use context from middleware stack in children 13579 return obj.DefaultInstanceAuth, nil 13580 } 13581 directive1 := func(ctx context.Context) (interface{}, error) { 13582 path, err := ec.unmarshalNString2string(ctx, "graphql.field.bundle.default_instance_auth") 13583 if err != nil { 13584 return nil, err 13585 } 13586 if ec.directives.Sanitize == nil { 13587 return nil, errors.New("directive sanitize is not implemented") 13588 } 13589 return ec.directives.Sanitize(ctx, obj, directive0, path) 13590 } 13591 13592 tmp, err := directive1(rctx) 13593 if err != nil { 13594 return nil, err 13595 } 13596 if tmp == nil { 13597 return nil, nil 13598 } 13599 if data, ok := tmp.(*Auth); ok { 13600 return data, nil 13601 } 13602 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Auth`, tmp) 13603 }) 13604 if err != nil { 13605 ec.Error(ctx, err) 13606 return graphql.Null 13607 } 13608 if resTmp == nil { 13609 return graphql.Null 13610 } 13611 res := resTmp.(*Auth) 13612 fc.Result = res 13613 return ec.marshalOAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuth(ctx, field.Selections, res) 13614 } 13615 13616 func (ec *executionContext) _Bundle_apiDefinitions(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13617 defer func() { 13618 if r := recover(); r != nil { 13619 ec.Error(ctx, ec.Recover(ctx, r)) 13620 ret = graphql.Null 13621 } 13622 }() 13623 fc := &graphql.FieldContext{ 13624 Object: "Bundle", 13625 Field: field, 13626 Args: nil, 13627 IsMethod: true, 13628 } 13629 13630 ctx = graphql.WithFieldContext(ctx, fc) 13631 rawArgs := field.ArgumentMap(ec.Variables) 13632 args, err := ec.field_Bundle_apiDefinitions_args(ctx, rawArgs) 13633 if err != nil { 13634 ec.Error(ctx, err) 13635 return graphql.Null 13636 } 13637 fc.Args = args 13638 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13639 ctx = rctx // use context from middleware stack in children 13640 return ec.resolvers.Bundle().APIDefinitions(rctx, obj, args["group"].(*string), args["first"].(*int), args["after"].(*PageCursor)) 13641 }) 13642 if err != nil { 13643 ec.Error(ctx, err) 13644 return graphql.Null 13645 } 13646 if resTmp == nil { 13647 return graphql.Null 13648 } 13649 res := resTmp.(*APIDefinitionPage) 13650 fc.Result = res 13651 return ec.marshalOAPIDefinitionPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionPage(ctx, field.Selections, res) 13652 } 13653 13654 func (ec *executionContext) _Bundle_eventDefinitions(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13655 defer func() { 13656 if r := recover(); r != nil { 13657 ec.Error(ctx, ec.Recover(ctx, r)) 13658 ret = graphql.Null 13659 } 13660 }() 13661 fc := &graphql.FieldContext{ 13662 Object: "Bundle", 13663 Field: field, 13664 Args: nil, 13665 IsMethod: true, 13666 } 13667 13668 ctx = graphql.WithFieldContext(ctx, fc) 13669 rawArgs := field.ArgumentMap(ec.Variables) 13670 args, err := ec.field_Bundle_eventDefinitions_args(ctx, rawArgs) 13671 if err != nil { 13672 ec.Error(ctx, err) 13673 return graphql.Null 13674 } 13675 fc.Args = args 13676 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13677 ctx = rctx // use context from middleware stack in children 13678 return ec.resolvers.Bundle().EventDefinitions(rctx, obj, args["group"].(*string), args["first"].(*int), args["after"].(*PageCursor)) 13679 }) 13680 if err != nil { 13681 ec.Error(ctx, err) 13682 return graphql.Null 13683 } 13684 if resTmp == nil { 13685 return graphql.Null 13686 } 13687 res := resTmp.(*EventDefinitionPage) 13688 fc.Result = res 13689 return ec.marshalOEventDefinitionPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionPage(ctx, field.Selections, res) 13690 } 13691 13692 func (ec *executionContext) _Bundle_documents(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13693 defer func() { 13694 if r := recover(); r != nil { 13695 ec.Error(ctx, ec.Recover(ctx, r)) 13696 ret = graphql.Null 13697 } 13698 }() 13699 fc := &graphql.FieldContext{ 13700 Object: "Bundle", 13701 Field: field, 13702 Args: nil, 13703 IsMethod: true, 13704 } 13705 13706 ctx = graphql.WithFieldContext(ctx, fc) 13707 rawArgs := field.ArgumentMap(ec.Variables) 13708 args, err := ec.field_Bundle_documents_args(ctx, rawArgs) 13709 if err != nil { 13710 ec.Error(ctx, err) 13711 return graphql.Null 13712 } 13713 fc.Args = args 13714 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13715 ctx = rctx // use context from middleware stack in children 13716 return ec.resolvers.Bundle().Documents(rctx, obj, args["first"].(*int), args["after"].(*PageCursor)) 13717 }) 13718 if err != nil { 13719 ec.Error(ctx, err) 13720 return graphql.Null 13721 } 13722 if resTmp == nil { 13723 return graphql.Null 13724 } 13725 res := resTmp.(*DocumentPage) 13726 fc.Result = res 13727 return ec.marshalODocumentPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentPage(ctx, field.Selections, res) 13728 } 13729 13730 func (ec *executionContext) _Bundle_apiDefinition(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13731 defer func() { 13732 if r := recover(); r != nil { 13733 ec.Error(ctx, ec.Recover(ctx, r)) 13734 ret = graphql.Null 13735 } 13736 }() 13737 fc := &graphql.FieldContext{ 13738 Object: "Bundle", 13739 Field: field, 13740 Args: nil, 13741 IsMethod: true, 13742 } 13743 13744 ctx = graphql.WithFieldContext(ctx, fc) 13745 rawArgs := field.ArgumentMap(ec.Variables) 13746 args, err := ec.field_Bundle_apiDefinition_args(ctx, rawArgs) 13747 if err != nil { 13748 ec.Error(ctx, err) 13749 return graphql.Null 13750 } 13751 fc.Args = args 13752 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13753 ctx = rctx // use context from middleware stack in children 13754 return ec.resolvers.Bundle().APIDefinition(rctx, obj, args["id"].(string)) 13755 }) 13756 if err != nil { 13757 ec.Error(ctx, err) 13758 return graphql.Null 13759 } 13760 if resTmp == nil { 13761 return graphql.Null 13762 } 13763 res := resTmp.(*APIDefinition) 13764 fc.Result = res 13765 return ec.marshalOAPIDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx, field.Selections, res) 13766 } 13767 13768 func (ec *executionContext) _Bundle_eventDefinition(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13769 defer func() { 13770 if r := recover(); r != nil { 13771 ec.Error(ctx, ec.Recover(ctx, r)) 13772 ret = graphql.Null 13773 } 13774 }() 13775 fc := &graphql.FieldContext{ 13776 Object: "Bundle", 13777 Field: field, 13778 Args: nil, 13779 IsMethod: true, 13780 } 13781 13782 ctx = graphql.WithFieldContext(ctx, fc) 13783 rawArgs := field.ArgumentMap(ec.Variables) 13784 args, err := ec.field_Bundle_eventDefinition_args(ctx, rawArgs) 13785 if err != nil { 13786 ec.Error(ctx, err) 13787 return graphql.Null 13788 } 13789 fc.Args = args 13790 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13791 ctx = rctx // use context from middleware stack in children 13792 return ec.resolvers.Bundle().EventDefinition(rctx, obj, args["id"].(string)) 13793 }) 13794 if err != nil { 13795 ec.Error(ctx, err) 13796 return graphql.Null 13797 } 13798 if resTmp == nil { 13799 return graphql.Null 13800 } 13801 res := resTmp.(*EventDefinition) 13802 fc.Result = res 13803 return ec.marshalOEventDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx, field.Selections, res) 13804 } 13805 13806 func (ec *executionContext) _Bundle_correlationIDs(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13807 defer func() { 13808 if r := recover(); r != nil { 13809 ec.Error(ctx, ec.Recover(ctx, r)) 13810 ret = graphql.Null 13811 } 13812 }() 13813 fc := &graphql.FieldContext{ 13814 Object: "Bundle", 13815 Field: field, 13816 Args: nil, 13817 IsMethod: false, 13818 } 13819 13820 ctx = graphql.WithFieldContext(ctx, fc) 13821 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13822 ctx = rctx // use context from middleware stack in children 13823 return obj.CorrelationIDs, nil 13824 }) 13825 if err != nil { 13826 ec.Error(ctx, err) 13827 return graphql.Null 13828 } 13829 if resTmp == nil { 13830 return graphql.Null 13831 } 13832 res := resTmp.([]string) 13833 fc.Result = res 13834 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 13835 } 13836 13837 func (ec *executionContext) _Bundle_document(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13838 defer func() { 13839 if r := recover(); r != nil { 13840 ec.Error(ctx, ec.Recover(ctx, r)) 13841 ret = graphql.Null 13842 } 13843 }() 13844 fc := &graphql.FieldContext{ 13845 Object: "Bundle", 13846 Field: field, 13847 Args: nil, 13848 IsMethod: true, 13849 } 13850 13851 ctx = graphql.WithFieldContext(ctx, fc) 13852 rawArgs := field.ArgumentMap(ec.Variables) 13853 args, err := ec.field_Bundle_document_args(ctx, rawArgs) 13854 if err != nil { 13855 ec.Error(ctx, err) 13856 return graphql.Null 13857 } 13858 fc.Args = args 13859 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13860 ctx = rctx // use context from middleware stack in children 13861 return ec.resolvers.Bundle().Document(rctx, obj, args["id"].(string)) 13862 }) 13863 if err != nil { 13864 ec.Error(ctx, err) 13865 return graphql.Null 13866 } 13867 if resTmp == nil { 13868 return graphql.Null 13869 } 13870 res := resTmp.(*Document) 13871 fc.Result = res 13872 return ec.marshalODocument2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocument(ctx, field.Selections, res) 13873 } 13874 13875 func (ec *executionContext) _Bundle_createdAt(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13876 defer func() { 13877 if r := recover(); r != nil { 13878 ec.Error(ctx, ec.Recover(ctx, r)) 13879 ret = graphql.Null 13880 } 13881 }() 13882 fc := &graphql.FieldContext{ 13883 Object: "Bundle", 13884 Field: field, 13885 Args: nil, 13886 IsMethod: false, 13887 } 13888 13889 ctx = graphql.WithFieldContext(ctx, fc) 13890 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13891 ctx = rctx // use context from middleware stack in children 13892 return obj.CreatedAt, nil 13893 }) 13894 if err != nil { 13895 ec.Error(ctx, err) 13896 return graphql.Null 13897 } 13898 if resTmp == nil { 13899 return graphql.Null 13900 } 13901 res := resTmp.(*Timestamp) 13902 fc.Result = res 13903 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 13904 } 13905 13906 func (ec *executionContext) _Bundle_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13907 defer func() { 13908 if r := recover(); r != nil { 13909 ec.Error(ctx, ec.Recover(ctx, r)) 13910 ret = graphql.Null 13911 } 13912 }() 13913 fc := &graphql.FieldContext{ 13914 Object: "Bundle", 13915 Field: field, 13916 Args: nil, 13917 IsMethod: false, 13918 } 13919 13920 ctx = graphql.WithFieldContext(ctx, fc) 13921 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13922 ctx = rctx // use context from middleware stack in children 13923 return obj.UpdatedAt, nil 13924 }) 13925 if err != nil { 13926 ec.Error(ctx, err) 13927 return graphql.Null 13928 } 13929 if resTmp == nil { 13930 return graphql.Null 13931 } 13932 res := resTmp.(*Timestamp) 13933 fc.Result = res 13934 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 13935 } 13936 13937 func (ec *executionContext) _Bundle_deletedAt(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13938 defer func() { 13939 if r := recover(); r != nil { 13940 ec.Error(ctx, ec.Recover(ctx, r)) 13941 ret = graphql.Null 13942 } 13943 }() 13944 fc := &graphql.FieldContext{ 13945 Object: "Bundle", 13946 Field: field, 13947 Args: nil, 13948 IsMethod: false, 13949 } 13950 13951 ctx = graphql.WithFieldContext(ctx, fc) 13952 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13953 ctx = rctx // use context from middleware stack in children 13954 return obj.DeletedAt, nil 13955 }) 13956 if err != nil { 13957 ec.Error(ctx, err) 13958 return graphql.Null 13959 } 13960 if resTmp == nil { 13961 return graphql.Null 13962 } 13963 res := resTmp.(*Timestamp) 13964 fc.Result = res 13965 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 13966 } 13967 13968 func (ec *executionContext) _Bundle_error(ctx context.Context, field graphql.CollectedField, obj *Bundle) (ret graphql.Marshaler) { 13969 defer func() { 13970 if r := recover(); r != nil { 13971 ec.Error(ctx, ec.Recover(ctx, r)) 13972 ret = graphql.Null 13973 } 13974 }() 13975 fc := &graphql.FieldContext{ 13976 Object: "Bundle", 13977 Field: field, 13978 Args: nil, 13979 IsMethod: false, 13980 } 13981 13982 ctx = graphql.WithFieldContext(ctx, fc) 13983 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 13984 ctx = rctx // use context from middleware stack in children 13985 return obj.Error, nil 13986 }) 13987 if err != nil { 13988 ec.Error(ctx, err) 13989 return graphql.Null 13990 } 13991 if resTmp == nil { 13992 return graphql.Null 13993 } 13994 res := resTmp.(*string) 13995 fc.Result = res 13996 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 13997 } 13998 13999 func (ec *executionContext) _BundleInstanceAuth_id(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuth) (ret graphql.Marshaler) { 14000 defer func() { 14001 if r := recover(); r != nil { 14002 ec.Error(ctx, ec.Recover(ctx, r)) 14003 ret = graphql.Null 14004 } 14005 }() 14006 fc := &graphql.FieldContext{ 14007 Object: "BundleInstanceAuth", 14008 Field: field, 14009 Args: nil, 14010 IsMethod: false, 14011 } 14012 14013 ctx = graphql.WithFieldContext(ctx, fc) 14014 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14015 ctx = rctx // use context from middleware stack in children 14016 return obj.ID, nil 14017 }) 14018 if err != nil { 14019 ec.Error(ctx, err) 14020 return graphql.Null 14021 } 14022 if resTmp == nil { 14023 if !graphql.HasFieldError(ctx, fc) { 14024 ec.Errorf(ctx, "must not be null") 14025 } 14026 return graphql.Null 14027 } 14028 res := resTmp.(string) 14029 fc.Result = res 14030 return ec.marshalNID2string(ctx, field.Selections, res) 14031 } 14032 14033 func (ec *executionContext) _BundleInstanceAuth_context(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuth) (ret graphql.Marshaler) { 14034 defer func() { 14035 if r := recover(); r != nil { 14036 ec.Error(ctx, ec.Recover(ctx, r)) 14037 ret = graphql.Null 14038 } 14039 }() 14040 fc := &graphql.FieldContext{ 14041 Object: "BundleInstanceAuth", 14042 Field: field, 14043 Args: nil, 14044 IsMethod: false, 14045 } 14046 14047 ctx = graphql.WithFieldContext(ctx, fc) 14048 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14049 ctx = rctx // use context from middleware stack in children 14050 return obj.Context, nil 14051 }) 14052 if err != nil { 14053 ec.Error(ctx, err) 14054 return graphql.Null 14055 } 14056 if resTmp == nil { 14057 return graphql.Null 14058 } 14059 res := resTmp.(*JSON) 14060 fc.Result = res 14061 return ec.marshalOJSON2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx, field.Selections, res) 14062 } 14063 14064 func (ec *executionContext) _BundleInstanceAuth_inputParams(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuth) (ret graphql.Marshaler) { 14065 defer func() { 14066 if r := recover(); r != nil { 14067 ec.Error(ctx, ec.Recover(ctx, r)) 14068 ret = graphql.Null 14069 } 14070 }() 14071 fc := &graphql.FieldContext{ 14072 Object: "BundleInstanceAuth", 14073 Field: field, 14074 Args: nil, 14075 IsMethod: false, 14076 } 14077 14078 ctx = graphql.WithFieldContext(ctx, fc) 14079 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14080 ctx = rctx // use context from middleware stack in children 14081 return obj.InputParams, nil 14082 }) 14083 if err != nil { 14084 ec.Error(ctx, err) 14085 return graphql.Null 14086 } 14087 if resTmp == nil { 14088 return graphql.Null 14089 } 14090 res := resTmp.(*JSON) 14091 fc.Result = res 14092 return ec.marshalOJSON2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx, field.Selections, res) 14093 } 14094 14095 func (ec *executionContext) _BundleInstanceAuth_auth(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuth) (ret graphql.Marshaler) { 14096 defer func() { 14097 if r := recover(); r != nil { 14098 ec.Error(ctx, ec.Recover(ctx, r)) 14099 ret = graphql.Null 14100 } 14101 }() 14102 fc := &graphql.FieldContext{ 14103 Object: "BundleInstanceAuth", 14104 Field: field, 14105 Args: nil, 14106 IsMethod: false, 14107 } 14108 14109 ctx = graphql.WithFieldContext(ctx, fc) 14110 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14111 ctx = rctx // use context from middleware stack in children 14112 return obj.Auth, nil 14113 }) 14114 if err != nil { 14115 ec.Error(ctx, err) 14116 return graphql.Null 14117 } 14118 if resTmp == nil { 14119 return graphql.Null 14120 } 14121 res := resTmp.(*Auth) 14122 fc.Result = res 14123 return ec.marshalOAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuth(ctx, field.Selections, res) 14124 } 14125 14126 func (ec *executionContext) _BundleInstanceAuth_status(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuth) (ret graphql.Marshaler) { 14127 defer func() { 14128 if r := recover(); r != nil { 14129 ec.Error(ctx, ec.Recover(ctx, r)) 14130 ret = graphql.Null 14131 } 14132 }() 14133 fc := &graphql.FieldContext{ 14134 Object: "BundleInstanceAuth", 14135 Field: field, 14136 Args: nil, 14137 IsMethod: false, 14138 } 14139 14140 ctx = graphql.WithFieldContext(ctx, fc) 14141 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14142 ctx = rctx // use context from middleware stack in children 14143 return obj.Status, nil 14144 }) 14145 if err != nil { 14146 ec.Error(ctx, err) 14147 return graphql.Null 14148 } 14149 if resTmp == nil { 14150 if !graphql.HasFieldError(ctx, fc) { 14151 ec.Errorf(ctx, "must not be null") 14152 } 14153 return graphql.Null 14154 } 14155 res := resTmp.(*BundleInstanceAuthStatus) 14156 fc.Result = res 14157 return ec.marshalNBundleInstanceAuthStatus2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthStatus(ctx, field.Selections, res) 14158 } 14159 14160 func (ec *executionContext) _BundleInstanceAuth_runtimeID(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuth) (ret graphql.Marshaler) { 14161 defer func() { 14162 if r := recover(); r != nil { 14163 ec.Error(ctx, ec.Recover(ctx, r)) 14164 ret = graphql.Null 14165 } 14166 }() 14167 fc := &graphql.FieldContext{ 14168 Object: "BundleInstanceAuth", 14169 Field: field, 14170 Args: nil, 14171 IsMethod: false, 14172 } 14173 14174 ctx = graphql.WithFieldContext(ctx, fc) 14175 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14176 ctx = rctx // use context from middleware stack in children 14177 return obj.RuntimeID, nil 14178 }) 14179 if err != nil { 14180 ec.Error(ctx, err) 14181 return graphql.Null 14182 } 14183 if resTmp == nil { 14184 return graphql.Null 14185 } 14186 res := resTmp.(*string) 14187 fc.Result = res 14188 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 14189 } 14190 14191 func (ec *executionContext) _BundleInstanceAuth_runtimeContextID(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuth) (ret graphql.Marshaler) { 14192 defer func() { 14193 if r := recover(); r != nil { 14194 ec.Error(ctx, ec.Recover(ctx, r)) 14195 ret = graphql.Null 14196 } 14197 }() 14198 fc := &graphql.FieldContext{ 14199 Object: "BundleInstanceAuth", 14200 Field: field, 14201 Args: nil, 14202 IsMethod: false, 14203 } 14204 14205 ctx = graphql.WithFieldContext(ctx, fc) 14206 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14207 ctx = rctx // use context from middleware stack in children 14208 return obj.RuntimeContextID, nil 14209 }) 14210 if err != nil { 14211 ec.Error(ctx, err) 14212 return graphql.Null 14213 } 14214 if resTmp == nil { 14215 return graphql.Null 14216 } 14217 res := resTmp.(*string) 14218 fc.Result = res 14219 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 14220 } 14221 14222 func (ec *executionContext) _BundleInstanceAuthStatus_condition(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuthStatus) (ret graphql.Marshaler) { 14223 defer func() { 14224 if r := recover(); r != nil { 14225 ec.Error(ctx, ec.Recover(ctx, r)) 14226 ret = graphql.Null 14227 } 14228 }() 14229 fc := &graphql.FieldContext{ 14230 Object: "BundleInstanceAuthStatus", 14231 Field: field, 14232 Args: nil, 14233 IsMethod: false, 14234 } 14235 14236 ctx = graphql.WithFieldContext(ctx, fc) 14237 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14238 ctx = rctx // use context from middleware stack in children 14239 return obj.Condition, nil 14240 }) 14241 if err != nil { 14242 ec.Error(ctx, err) 14243 return graphql.Null 14244 } 14245 if resTmp == nil { 14246 if !graphql.HasFieldError(ctx, fc) { 14247 ec.Errorf(ctx, "must not be null") 14248 } 14249 return graphql.Null 14250 } 14251 res := resTmp.(BundleInstanceAuthStatusCondition) 14252 fc.Result = res 14253 return ec.marshalNBundleInstanceAuthStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthStatusCondition(ctx, field.Selections, res) 14254 } 14255 14256 func (ec *executionContext) _BundleInstanceAuthStatus_timestamp(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuthStatus) (ret graphql.Marshaler) { 14257 defer func() { 14258 if r := recover(); r != nil { 14259 ec.Error(ctx, ec.Recover(ctx, r)) 14260 ret = graphql.Null 14261 } 14262 }() 14263 fc := &graphql.FieldContext{ 14264 Object: "BundleInstanceAuthStatus", 14265 Field: field, 14266 Args: nil, 14267 IsMethod: false, 14268 } 14269 14270 ctx = graphql.WithFieldContext(ctx, fc) 14271 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14272 ctx = rctx // use context from middleware stack in children 14273 return obj.Timestamp, nil 14274 }) 14275 if err != nil { 14276 ec.Error(ctx, err) 14277 return graphql.Null 14278 } 14279 if resTmp == nil { 14280 if !graphql.HasFieldError(ctx, fc) { 14281 ec.Errorf(ctx, "must not be null") 14282 } 14283 return graphql.Null 14284 } 14285 res := resTmp.(Timestamp) 14286 fc.Result = res 14287 return ec.marshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 14288 } 14289 14290 func (ec *executionContext) _BundleInstanceAuthStatus_message(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuthStatus) (ret graphql.Marshaler) { 14291 defer func() { 14292 if r := recover(); r != nil { 14293 ec.Error(ctx, ec.Recover(ctx, r)) 14294 ret = graphql.Null 14295 } 14296 }() 14297 fc := &graphql.FieldContext{ 14298 Object: "BundleInstanceAuthStatus", 14299 Field: field, 14300 Args: nil, 14301 IsMethod: false, 14302 } 14303 14304 ctx = graphql.WithFieldContext(ctx, fc) 14305 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14306 ctx = rctx // use context from middleware stack in children 14307 return obj.Message, nil 14308 }) 14309 if err != nil { 14310 ec.Error(ctx, err) 14311 return graphql.Null 14312 } 14313 if resTmp == nil { 14314 if !graphql.HasFieldError(ctx, fc) { 14315 ec.Errorf(ctx, "must not be null") 14316 } 14317 return graphql.Null 14318 } 14319 res := resTmp.(string) 14320 fc.Result = res 14321 return ec.marshalNString2string(ctx, field.Selections, res) 14322 } 14323 14324 func (ec *executionContext) _BundleInstanceAuthStatus_reason(ctx context.Context, field graphql.CollectedField, obj *BundleInstanceAuthStatus) (ret graphql.Marshaler) { 14325 defer func() { 14326 if r := recover(); r != nil { 14327 ec.Error(ctx, ec.Recover(ctx, r)) 14328 ret = graphql.Null 14329 } 14330 }() 14331 fc := &graphql.FieldContext{ 14332 Object: "BundleInstanceAuthStatus", 14333 Field: field, 14334 Args: nil, 14335 IsMethod: false, 14336 } 14337 14338 ctx = graphql.WithFieldContext(ctx, fc) 14339 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14340 ctx = rctx // use context from middleware stack in children 14341 return obj.Reason, nil 14342 }) 14343 if err != nil { 14344 ec.Error(ctx, err) 14345 return graphql.Null 14346 } 14347 if resTmp == nil { 14348 if !graphql.HasFieldError(ctx, fc) { 14349 ec.Errorf(ctx, "must not be null") 14350 } 14351 return graphql.Null 14352 } 14353 res := resTmp.(string) 14354 fc.Result = res 14355 return ec.marshalNString2string(ctx, field.Selections, res) 14356 } 14357 14358 func (ec *executionContext) _BundlePage_data(ctx context.Context, field graphql.CollectedField, obj *BundlePage) (ret graphql.Marshaler) { 14359 defer func() { 14360 if r := recover(); r != nil { 14361 ec.Error(ctx, ec.Recover(ctx, r)) 14362 ret = graphql.Null 14363 } 14364 }() 14365 fc := &graphql.FieldContext{ 14366 Object: "BundlePage", 14367 Field: field, 14368 Args: nil, 14369 IsMethod: false, 14370 } 14371 14372 ctx = graphql.WithFieldContext(ctx, fc) 14373 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14374 ctx = rctx // use context from middleware stack in children 14375 return obj.Data, nil 14376 }) 14377 if err != nil { 14378 ec.Error(ctx, err) 14379 return graphql.Null 14380 } 14381 if resTmp == nil { 14382 if !graphql.HasFieldError(ctx, fc) { 14383 ec.Errorf(ctx, "must not be null") 14384 } 14385 return graphql.Null 14386 } 14387 res := resTmp.([]*Bundle) 14388 fc.Result = res 14389 return ec.marshalNBundle2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleᚄ(ctx, field.Selections, res) 14390 } 14391 14392 func (ec *executionContext) _BundlePage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *BundlePage) (ret graphql.Marshaler) { 14393 defer func() { 14394 if r := recover(); r != nil { 14395 ec.Error(ctx, ec.Recover(ctx, r)) 14396 ret = graphql.Null 14397 } 14398 }() 14399 fc := &graphql.FieldContext{ 14400 Object: "BundlePage", 14401 Field: field, 14402 Args: nil, 14403 IsMethod: false, 14404 } 14405 14406 ctx = graphql.WithFieldContext(ctx, fc) 14407 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14408 ctx = rctx // use context from middleware stack in children 14409 return obj.PageInfo, nil 14410 }) 14411 if err != nil { 14412 ec.Error(ctx, err) 14413 return graphql.Null 14414 } 14415 if resTmp == nil { 14416 if !graphql.HasFieldError(ctx, fc) { 14417 ec.Errorf(ctx, "must not be null") 14418 } 14419 return graphql.Null 14420 } 14421 res := resTmp.(*PageInfo) 14422 fc.Result = res 14423 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 14424 } 14425 14426 func (ec *executionContext) _BundlePage_totalCount(ctx context.Context, field graphql.CollectedField, obj *BundlePage) (ret graphql.Marshaler) { 14427 defer func() { 14428 if r := recover(); r != nil { 14429 ec.Error(ctx, ec.Recover(ctx, r)) 14430 ret = graphql.Null 14431 } 14432 }() 14433 fc := &graphql.FieldContext{ 14434 Object: "BundlePage", 14435 Field: field, 14436 Args: nil, 14437 IsMethod: false, 14438 } 14439 14440 ctx = graphql.WithFieldContext(ctx, fc) 14441 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14442 ctx = rctx // use context from middleware stack in children 14443 return obj.TotalCount, nil 14444 }) 14445 if err != nil { 14446 ec.Error(ctx, err) 14447 return graphql.Null 14448 } 14449 if resTmp == nil { 14450 if !graphql.HasFieldError(ctx, fc) { 14451 ec.Errorf(ctx, "must not be null") 14452 } 14453 return graphql.Null 14454 } 14455 res := resTmp.(int) 14456 fc.Result = res 14457 return ec.marshalNInt2int(ctx, field.Selections, res) 14458 } 14459 14460 func (ec *executionContext) _CSRFTokenCredentialRequestAuth_tokenEndpointURL(ctx context.Context, field graphql.CollectedField, obj *CSRFTokenCredentialRequestAuth) (ret graphql.Marshaler) { 14461 defer func() { 14462 if r := recover(); r != nil { 14463 ec.Error(ctx, ec.Recover(ctx, r)) 14464 ret = graphql.Null 14465 } 14466 }() 14467 fc := &graphql.FieldContext{ 14468 Object: "CSRFTokenCredentialRequestAuth", 14469 Field: field, 14470 Args: nil, 14471 IsMethod: false, 14472 } 14473 14474 ctx = graphql.WithFieldContext(ctx, fc) 14475 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14476 ctx = rctx // use context from middleware stack in children 14477 return obj.TokenEndpointURL, nil 14478 }) 14479 if err != nil { 14480 ec.Error(ctx, err) 14481 return graphql.Null 14482 } 14483 if resTmp == nil { 14484 if !graphql.HasFieldError(ctx, fc) { 14485 ec.Errorf(ctx, "must not be null") 14486 } 14487 return graphql.Null 14488 } 14489 res := resTmp.(string) 14490 fc.Result = res 14491 return ec.marshalNString2string(ctx, field.Selections, res) 14492 } 14493 14494 func (ec *executionContext) _CSRFTokenCredentialRequestAuth_credential(ctx context.Context, field graphql.CollectedField, obj *CSRFTokenCredentialRequestAuth) (ret graphql.Marshaler) { 14495 defer func() { 14496 if r := recover(); r != nil { 14497 ec.Error(ctx, ec.Recover(ctx, r)) 14498 ret = graphql.Null 14499 } 14500 }() 14501 fc := &graphql.FieldContext{ 14502 Object: "CSRFTokenCredentialRequestAuth", 14503 Field: field, 14504 Args: nil, 14505 IsMethod: false, 14506 } 14507 14508 ctx = graphql.WithFieldContext(ctx, fc) 14509 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14510 ctx = rctx // use context from middleware stack in children 14511 return obj.Credential, nil 14512 }) 14513 if err != nil { 14514 ec.Error(ctx, err) 14515 return graphql.Null 14516 } 14517 if resTmp == nil { 14518 return graphql.Null 14519 } 14520 res := resTmp.(CredentialData) 14521 fc.Result = res 14522 return ec.marshalOCredentialData2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialData(ctx, field.Selections, res) 14523 } 14524 14525 func (ec *executionContext) _CSRFTokenCredentialRequestAuth_additionalHeaders(ctx context.Context, field graphql.CollectedField, obj *CSRFTokenCredentialRequestAuth) (ret graphql.Marshaler) { 14526 defer func() { 14527 if r := recover(); r != nil { 14528 ec.Error(ctx, ec.Recover(ctx, r)) 14529 ret = graphql.Null 14530 } 14531 }() 14532 fc := &graphql.FieldContext{ 14533 Object: "CSRFTokenCredentialRequestAuth", 14534 Field: field, 14535 Args: nil, 14536 IsMethod: false, 14537 } 14538 14539 ctx = graphql.WithFieldContext(ctx, fc) 14540 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14541 ctx = rctx // use context from middleware stack in children 14542 return obj.AdditionalHeaders, nil 14543 }) 14544 if err != nil { 14545 ec.Error(ctx, err) 14546 return graphql.Null 14547 } 14548 if resTmp == nil { 14549 return graphql.Null 14550 } 14551 res := resTmp.(HTTPHeaders) 14552 fc.Result = res 14553 return ec.marshalOHttpHeaders2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeaders(ctx, field.Selections, res) 14554 } 14555 14556 func (ec *executionContext) _CSRFTokenCredentialRequestAuth_additionalHeadersSerialized(ctx context.Context, field graphql.CollectedField, obj *CSRFTokenCredentialRequestAuth) (ret graphql.Marshaler) { 14557 defer func() { 14558 if r := recover(); r != nil { 14559 ec.Error(ctx, ec.Recover(ctx, r)) 14560 ret = graphql.Null 14561 } 14562 }() 14563 fc := &graphql.FieldContext{ 14564 Object: "CSRFTokenCredentialRequestAuth", 14565 Field: field, 14566 Args: nil, 14567 IsMethod: false, 14568 } 14569 14570 ctx = graphql.WithFieldContext(ctx, fc) 14571 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14572 ctx = rctx // use context from middleware stack in children 14573 return obj.AdditionalHeadersSerialized, nil 14574 }) 14575 if err != nil { 14576 ec.Error(ctx, err) 14577 return graphql.Null 14578 } 14579 if resTmp == nil { 14580 return graphql.Null 14581 } 14582 res := resTmp.(*HTTPHeadersSerialized) 14583 fc.Result = res 14584 return ec.marshalOHttpHeadersSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeadersSerialized(ctx, field.Selections, res) 14585 } 14586 14587 func (ec *executionContext) _CSRFTokenCredentialRequestAuth_additionalQueryParams(ctx context.Context, field graphql.CollectedField, obj *CSRFTokenCredentialRequestAuth) (ret graphql.Marshaler) { 14588 defer func() { 14589 if r := recover(); r != nil { 14590 ec.Error(ctx, ec.Recover(ctx, r)) 14591 ret = graphql.Null 14592 } 14593 }() 14594 fc := &graphql.FieldContext{ 14595 Object: "CSRFTokenCredentialRequestAuth", 14596 Field: field, 14597 Args: nil, 14598 IsMethod: false, 14599 } 14600 14601 ctx = graphql.WithFieldContext(ctx, fc) 14602 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14603 ctx = rctx // use context from middleware stack in children 14604 return obj.AdditionalQueryParams, nil 14605 }) 14606 if err != nil { 14607 ec.Error(ctx, err) 14608 return graphql.Null 14609 } 14610 if resTmp == nil { 14611 return graphql.Null 14612 } 14613 res := resTmp.(QueryParams) 14614 fc.Result = res 14615 return ec.marshalOQueryParams2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParams(ctx, field.Selections, res) 14616 } 14617 14618 func (ec *executionContext) _CSRFTokenCredentialRequestAuth_additionalQueryParamsSerialized(ctx context.Context, field graphql.CollectedField, obj *CSRFTokenCredentialRequestAuth) (ret graphql.Marshaler) { 14619 defer func() { 14620 if r := recover(); r != nil { 14621 ec.Error(ctx, ec.Recover(ctx, r)) 14622 ret = graphql.Null 14623 } 14624 }() 14625 fc := &graphql.FieldContext{ 14626 Object: "CSRFTokenCredentialRequestAuth", 14627 Field: field, 14628 Args: nil, 14629 IsMethod: false, 14630 } 14631 14632 ctx = graphql.WithFieldContext(ctx, fc) 14633 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14634 ctx = rctx // use context from middleware stack in children 14635 return obj.AdditionalQueryParamsSerialized, nil 14636 }) 14637 if err != nil { 14638 ec.Error(ctx, err) 14639 return graphql.Null 14640 } 14641 if resTmp == nil { 14642 return graphql.Null 14643 } 14644 res := resTmp.(*QueryParamsSerialized) 14645 fc.Result = res 14646 return ec.marshalOQueryParamsSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParamsSerialized(ctx, field.Selections, res) 14647 } 14648 14649 func (ec *executionContext) _CertificateOAuthCredentialData_clientId(ctx context.Context, field graphql.CollectedField, obj *CertificateOAuthCredentialData) (ret graphql.Marshaler) { 14650 defer func() { 14651 if r := recover(); r != nil { 14652 ec.Error(ctx, ec.Recover(ctx, r)) 14653 ret = graphql.Null 14654 } 14655 }() 14656 fc := &graphql.FieldContext{ 14657 Object: "CertificateOAuthCredentialData", 14658 Field: field, 14659 Args: nil, 14660 IsMethod: false, 14661 } 14662 14663 ctx = graphql.WithFieldContext(ctx, fc) 14664 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14665 ctx = rctx // use context from middleware stack in children 14666 return obj.ClientID, nil 14667 }) 14668 if err != nil { 14669 ec.Error(ctx, err) 14670 return graphql.Null 14671 } 14672 if resTmp == nil { 14673 if !graphql.HasFieldError(ctx, fc) { 14674 ec.Errorf(ctx, "must not be null") 14675 } 14676 return graphql.Null 14677 } 14678 res := resTmp.(string) 14679 fc.Result = res 14680 return ec.marshalNID2string(ctx, field.Selections, res) 14681 } 14682 14683 func (ec *executionContext) _CertificateOAuthCredentialData_certificate(ctx context.Context, field graphql.CollectedField, obj *CertificateOAuthCredentialData) (ret graphql.Marshaler) { 14684 defer func() { 14685 if r := recover(); r != nil { 14686 ec.Error(ctx, ec.Recover(ctx, r)) 14687 ret = graphql.Null 14688 } 14689 }() 14690 fc := &graphql.FieldContext{ 14691 Object: "CertificateOAuthCredentialData", 14692 Field: field, 14693 Args: nil, 14694 IsMethod: false, 14695 } 14696 14697 ctx = graphql.WithFieldContext(ctx, fc) 14698 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14699 ctx = rctx // use context from middleware stack in children 14700 return obj.Certificate, nil 14701 }) 14702 if err != nil { 14703 ec.Error(ctx, err) 14704 return graphql.Null 14705 } 14706 if resTmp == nil { 14707 if !graphql.HasFieldError(ctx, fc) { 14708 ec.Errorf(ctx, "must not be null") 14709 } 14710 return graphql.Null 14711 } 14712 res := resTmp.(string) 14713 fc.Result = res 14714 return ec.marshalNString2string(ctx, field.Selections, res) 14715 } 14716 14717 func (ec *executionContext) _CertificateOAuthCredentialData_url(ctx context.Context, field graphql.CollectedField, obj *CertificateOAuthCredentialData) (ret graphql.Marshaler) { 14718 defer func() { 14719 if r := recover(); r != nil { 14720 ec.Error(ctx, ec.Recover(ctx, r)) 14721 ret = graphql.Null 14722 } 14723 }() 14724 fc := &graphql.FieldContext{ 14725 Object: "CertificateOAuthCredentialData", 14726 Field: field, 14727 Args: nil, 14728 IsMethod: false, 14729 } 14730 14731 ctx = graphql.WithFieldContext(ctx, fc) 14732 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14733 ctx = rctx // use context from middleware stack in children 14734 return obj.URL, nil 14735 }) 14736 if err != nil { 14737 ec.Error(ctx, err) 14738 return graphql.Null 14739 } 14740 if resTmp == nil { 14741 if !graphql.HasFieldError(ctx, fc) { 14742 ec.Errorf(ctx, "must not be null") 14743 } 14744 return graphql.Null 14745 } 14746 res := resTmp.(string) 14747 fc.Result = res 14748 return ec.marshalNString2string(ctx, field.Selections, res) 14749 } 14750 14751 func (ec *executionContext) _CertificateSubjectMapping_id(ctx context.Context, field graphql.CollectedField, obj *CertificateSubjectMapping) (ret graphql.Marshaler) { 14752 defer func() { 14753 if r := recover(); r != nil { 14754 ec.Error(ctx, ec.Recover(ctx, r)) 14755 ret = graphql.Null 14756 } 14757 }() 14758 fc := &graphql.FieldContext{ 14759 Object: "CertificateSubjectMapping", 14760 Field: field, 14761 Args: nil, 14762 IsMethod: false, 14763 } 14764 14765 ctx = graphql.WithFieldContext(ctx, fc) 14766 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14767 ctx = rctx // use context from middleware stack in children 14768 return obj.ID, nil 14769 }) 14770 if err != nil { 14771 ec.Error(ctx, err) 14772 return graphql.Null 14773 } 14774 if resTmp == nil { 14775 if !graphql.HasFieldError(ctx, fc) { 14776 ec.Errorf(ctx, "must not be null") 14777 } 14778 return graphql.Null 14779 } 14780 res := resTmp.(string) 14781 fc.Result = res 14782 return ec.marshalNID2string(ctx, field.Selections, res) 14783 } 14784 14785 func (ec *executionContext) _CertificateSubjectMapping_subject(ctx context.Context, field graphql.CollectedField, obj *CertificateSubjectMapping) (ret graphql.Marshaler) { 14786 defer func() { 14787 if r := recover(); r != nil { 14788 ec.Error(ctx, ec.Recover(ctx, r)) 14789 ret = graphql.Null 14790 } 14791 }() 14792 fc := &graphql.FieldContext{ 14793 Object: "CertificateSubjectMapping", 14794 Field: field, 14795 Args: nil, 14796 IsMethod: false, 14797 } 14798 14799 ctx = graphql.WithFieldContext(ctx, fc) 14800 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14801 ctx = rctx // use context from middleware stack in children 14802 return obj.Subject, nil 14803 }) 14804 if err != nil { 14805 ec.Error(ctx, err) 14806 return graphql.Null 14807 } 14808 if resTmp == nil { 14809 if !graphql.HasFieldError(ctx, fc) { 14810 ec.Errorf(ctx, "must not be null") 14811 } 14812 return graphql.Null 14813 } 14814 res := resTmp.(string) 14815 fc.Result = res 14816 return ec.marshalNString2string(ctx, field.Selections, res) 14817 } 14818 14819 func (ec *executionContext) _CertificateSubjectMapping_consumerType(ctx context.Context, field graphql.CollectedField, obj *CertificateSubjectMapping) (ret graphql.Marshaler) { 14820 defer func() { 14821 if r := recover(); r != nil { 14822 ec.Error(ctx, ec.Recover(ctx, r)) 14823 ret = graphql.Null 14824 } 14825 }() 14826 fc := &graphql.FieldContext{ 14827 Object: "CertificateSubjectMapping", 14828 Field: field, 14829 Args: nil, 14830 IsMethod: false, 14831 } 14832 14833 ctx = graphql.WithFieldContext(ctx, fc) 14834 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14835 ctx = rctx // use context from middleware stack in children 14836 return obj.ConsumerType, nil 14837 }) 14838 if err != nil { 14839 ec.Error(ctx, err) 14840 return graphql.Null 14841 } 14842 if resTmp == nil { 14843 if !graphql.HasFieldError(ctx, fc) { 14844 ec.Errorf(ctx, "must not be null") 14845 } 14846 return graphql.Null 14847 } 14848 res := resTmp.(string) 14849 fc.Result = res 14850 return ec.marshalNString2string(ctx, field.Selections, res) 14851 } 14852 14853 func (ec *executionContext) _CertificateSubjectMapping_internalConsumerID(ctx context.Context, field graphql.CollectedField, obj *CertificateSubjectMapping) (ret graphql.Marshaler) { 14854 defer func() { 14855 if r := recover(); r != nil { 14856 ec.Error(ctx, ec.Recover(ctx, r)) 14857 ret = graphql.Null 14858 } 14859 }() 14860 fc := &graphql.FieldContext{ 14861 Object: "CertificateSubjectMapping", 14862 Field: field, 14863 Args: nil, 14864 IsMethod: false, 14865 } 14866 14867 ctx = graphql.WithFieldContext(ctx, fc) 14868 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14869 ctx = rctx // use context from middleware stack in children 14870 return obj.InternalConsumerID, nil 14871 }) 14872 if err != nil { 14873 ec.Error(ctx, err) 14874 return graphql.Null 14875 } 14876 if resTmp == nil { 14877 return graphql.Null 14878 } 14879 res := resTmp.(*string) 14880 fc.Result = res 14881 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 14882 } 14883 14884 func (ec *executionContext) _CertificateSubjectMapping_tenantAccessLevels(ctx context.Context, field graphql.CollectedField, obj *CertificateSubjectMapping) (ret graphql.Marshaler) { 14885 defer func() { 14886 if r := recover(); r != nil { 14887 ec.Error(ctx, ec.Recover(ctx, r)) 14888 ret = graphql.Null 14889 } 14890 }() 14891 fc := &graphql.FieldContext{ 14892 Object: "CertificateSubjectMapping", 14893 Field: field, 14894 Args: nil, 14895 IsMethod: false, 14896 } 14897 14898 ctx = graphql.WithFieldContext(ctx, fc) 14899 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14900 ctx = rctx // use context from middleware stack in children 14901 return obj.TenantAccessLevels, nil 14902 }) 14903 if err != nil { 14904 ec.Error(ctx, err) 14905 return graphql.Null 14906 } 14907 if resTmp == nil { 14908 if !graphql.HasFieldError(ctx, fc) { 14909 ec.Errorf(ctx, "must not be null") 14910 } 14911 return graphql.Null 14912 } 14913 res := resTmp.([]string) 14914 fc.Result = res 14915 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) 14916 } 14917 14918 func (ec *executionContext) _CertificateSubjectMappingPage_data(ctx context.Context, field graphql.CollectedField, obj *CertificateSubjectMappingPage) (ret graphql.Marshaler) { 14919 defer func() { 14920 if r := recover(); r != nil { 14921 ec.Error(ctx, ec.Recover(ctx, r)) 14922 ret = graphql.Null 14923 } 14924 }() 14925 fc := &graphql.FieldContext{ 14926 Object: "CertificateSubjectMappingPage", 14927 Field: field, 14928 Args: nil, 14929 IsMethod: false, 14930 } 14931 14932 ctx = graphql.WithFieldContext(ctx, fc) 14933 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14934 ctx = rctx // use context from middleware stack in children 14935 return obj.Data, nil 14936 }) 14937 if err != nil { 14938 ec.Error(ctx, err) 14939 return graphql.Null 14940 } 14941 if resTmp == nil { 14942 if !graphql.HasFieldError(ctx, fc) { 14943 ec.Errorf(ctx, "must not be null") 14944 } 14945 return graphql.Null 14946 } 14947 res := resTmp.([]*CertificateSubjectMapping) 14948 fc.Result = res 14949 return ec.marshalNCertificateSubjectMapping2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMappingᚄ(ctx, field.Selections, res) 14950 } 14951 14952 func (ec *executionContext) _CertificateSubjectMappingPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *CertificateSubjectMappingPage) (ret graphql.Marshaler) { 14953 defer func() { 14954 if r := recover(); r != nil { 14955 ec.Error(ctx, ec.Recover(ctx, r)) 14956 ret = graphql.Null 14957 } 14958 }() 14959 fc := &graphql.FieldContext{ 14960 Object: "CertificateSubjectMappingPage", 14961 Field: field, 14962 Args: nil, 14963 IsMethod: false, 14964 } 14965 14966 ctx = graphql.WithFieldContext(ctx, fc) 14967 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 14968 ctx = rctx // use context from middleware stack in children 14969 return obj.PageInfo, nil 14970 }) 14971 if err != nil { 14972 ec.Error(ctx, err) 14973 return graphql.Null 14974 } 14975 if resTmp == nil { 14976 if !graphql.HasFieldError(ctx, fc) { 14977 ec.Errorf(ctx, "must not be null") 14978 } 14979 return graphql.Null 14980 } 14981 res := resTmp.(*PageInfo) 14982 fc.Result = res 14983 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 14984 } 14985 14986 func (ec *executionContext) _CertificateSubjectMappingPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *CertificateSubjectMappingPage) (ret graphql.Marshaler) { 14987 defer func() { 14988 if r := recover(); r != nil { 14989 ec.Error(ctx, ec.Recover(ctx, r)) 14990 ret = graphql.Null 14991 } 14992 }() 14993 fc := &graphql.FieldContext{ 14994 Object: "CertificateSubjectMappingPage", 14995 Field: field, 14996 Args: nil, 14997 IsMethod: false, 14998 } 14999 15000 ctx = graphql.WithFieldContext(ctx, fc) 15001 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15002 ctx = rctx // use context from middleware stack in children 15003 return obj.TotalCount, nil 15004 }) 15005 if err != nil { 15006 ec.Error(ctx, err) 15007 return graphql.Null 15008 } 15009 if resTmp == nil { 15010 if !graphql.HasFieldError(ctx, fc) { 15011 ec.Errorf(ctx, "must not be null") 15012 } 15013 return graphql.Null 15014 } 15015 res := resTmp.(int) 15016 fc.Result = res 15017 return ec.marshalNInt2int(ctx, field.Selections, res) 15018 } 15019 15020 func (ec *executionContext) _ConstraintReference_constraintID(ctx context.Context, field graphql.CollectedField, obj *ConstraintReference) (ret graphql.Marshaler) { 15021 defer func() { 15022 if r := recover(); r != nil { 15023 ec.Error(ctx, ec.Recover(ctx, r)) 15024 ret = graphql.Null 15025 } 15026 }() 15027 fc := &graphql.FieldContext{ 15028 Object: "ConstraintReference", 15029 Field: field, 15030 Args: nil, 15031 IsMethod: false, 15032 } 15033 15034 ctx = graphql.WithFieldContext(ctx, fc) 15035 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15036 ctx = rctx // use context from middleware stack in children 15037 return obj.ConstraintID, nil 15038 }) 15039 if err != nil { 15040 ec.Error(ctx, err) 15041 return graphql.Null 15042 } 15043 if resTmp == nil { 15044 if !graphql.HasFieldError(ctx, fc) { 15045 ec.Errorf(ctx, "must not be null") 15046 } 15047 return graphql.Null 15048 } 15049 res := resTmp.(string) 15050 fc.Result = res 15051 return ec.marshalNID2string(ctx, field.Selections, res) 15052 } 15053 15054 func (ec *executionContext) _ConstraintReference_formationTemplateID(ctx context.Context, field graphql.CollectedField, obj *ConstraintReference) (ret graphql.Marshaler) { 15055 defer func() { 15056 if r := recover(); r != nil { 15057 ec.Error(ctx, ec.Recover(ctx, r)) 15058 ret = graphql.Null 15059 } 15060 }() 15061 fc := &graphql.FieldContext{ 15062 Object: "ConstraintReference", 15063 Field: field, 15064 Args: nil, 15065 IsMethod: false, 15066 } 15067 15068 ctx = graphql.WithFieldContext(ctx, fc) 15069 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15070 ctx = rctx // use context from middleware stack in children 15071 return obj.FormationTemplateID, nil 15072 }) 15073 if err != nil { 15074 ec.Error(ctx, err) 15075 return graphql.Null 15076 } 15077 if resTmp == nil { 15078 if !graphql.HasFieldError(ctx, fc) { 15079 ec.Errorf(ctx, "must not be null") 15080 } 15081 return graphql.Null 15082 } 15083 res := resTmp.(string) 15084 fc.Result = res 15085 return ec.marshalNID2string(ctx, field.Selections, res) 15086 } 15087 15088 func (ec *executionContext) _CredentialRequestAuth_csrf(ctx context.Context, field graphql.CollectedField, obj *CredentialRequestAuth) (ret graphql.Marshaler) { 15089 defer func() { 15090 if r := recover(); r != nil { 15091 ec.Error(ctx, ec.Recover(ctx, r)) 15092 ret = graphql.Null 15093 } 15094 }() 15095 fc := &graphql.FieldContext{ 15096 Object: "CredentialRequestAuth", 15097 Field: field, 15098 Args: nil, 15099 IsMethod: false, 15100 } 15101 15102 ctx = graphql.WithFieldContext(ctx, fc) 15103 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15104 ctx = rctx // use context from middleware stack in children 15105 return obj.Csrf, nil 15106 }) 15107 if err != nil { 15108 ec.Error(ctx, err) 15109 return graphql.Null 15110 } 15111 if resTmp == nil { 15112 return graphql.Null 15113 } 15114 res := resTmp.(*CSRFTokenCredentialRequestAuth) 15115 fc.Result = res 15116 return ec.marshalOCSRFTokenCredentialRequestAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCSRFTokenCredentialRequestAuth(ctx, field.Selections, res) 15117 } 15118 15119 func (ec *executionContext) _Document_id(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15120 defer func() { 15121 if r := recover(); r != nil { 15122 ec.Error(ctx, ec.Recover(ctx, r)) 15123 ret = graphql.Null 15124 } 15125 }() 15126 fc := &graphql.FieldContext{ 15127 Object: "Document", 15128 Field: field, 15129 Args: nil, 15130 IsMethod: false, 15131 } 15132 15133 ctx = graphql.WithFieldContext(ctx, fc) 15134 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15135 ctx = rctx // use context from middleware stack in children 15136 return obj.ID, nil 15137 }) 15138 if err != nil { 15139 ec.Error(ctx, err) 15140 return graphql.Null 15141 } 15142 if resTmp == nil { 15143 if !graphql.HasFieldError(ctx, fc) { 15144 ec.Errorf(ctx, "must not be null") 15145 } 15146 return graphql.Null 15147 } 15148 res := resTmp.(string) 15149 fc.Result = res 15150 return ec.marshalNID2string(ctx, field.Selections, res) 15151 } 15152 15153 func (ec *executionContext) _Document_title(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15154 defer func() { 15155 if r := recover(); r != nil { 15156 ec.Error(ctx, ec.Recover(ctx, r)) 15157 ret = graphql.Null 15158 } 15159 }() 15160 fc := &graphql.FieldContext{ 15161 Object: "Document", 15162 Field: field, 15163 Args: nil, 15164 IsMethod: false, 15165 } 15166 15167 ctx = graphql.WithFieldContext(ctx, fc) 15168 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15169 ctx = rctx // use context from middleware stack in children 15170 return obj.Title, nil 15171 }) 15172 if err != nil { 15173 ec.Error(ctx, err) 15174 return graphql.Null 15175 } 15176 if resTmp == nil { 15177 if !graphql.HasFieldError(ctx, fc) { 15178 ec.Errorf(ctx, "must not be null") 15179 } 15180 return graphql.Null 15181 } 15182 res := resTmp.(string) 15183 fc.Result = res 15184 return ec.marshalNString2string(ctx, field.Selections, res) 15185 } 15186 15187 func (ec *executionContext) _Document_displayName(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15188 defer func() { 15189 if r := recover(); r != nil { 15190 ec.Error(ctx, ec.Recover(ctx, r)) 15191 ret = graphql.Null 15192 } 15193 }() 15194 fc := &graphql.FieldContext{ 15195 Object: "Document", 15196 Field: field, 15197 Args: nil, 15198 IsMethod: false, 15199 } 15200 15201 ctx = graphql.WithFieldContext(ctx, fc) 15202 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15203 ctx = rctx // use context from middleware stack in children 15204 return obj.DisplayName, nil 15205 }) 15206 if err != nil { 15207 ec.Error(ctx, err) 15208 return graphql.Null 15209 } 15210 if resTmp == nil { 15211 if !graphql.HasFieldError(ctx, fc) { 15212 ec.Errorf(ctx, "must not be null") 15213 } 15214 return graphql.Null 15215 } 15216 res := resTmp.(string) 15217 fc.Result = res 15218 return ec.marshalNString2string(ctx, field.Selections, res) 15219 } 15220 15221 func (ec *executionContext) _Document_description(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15222 defer func() { 15223 if r := recover(); r != nil { 15224 ec.Error(ctx, ec.Recover(ctx, r)) 15225 ret = graphql.Null 15226 } 15227 }() 15228 fc := &graphql.FieldContext{ 15229 Object: "Document", 15230 Field: field, 15231 Args: nil, 15232 IsMethod: false, 15233 } 15234 15235 ctx = graphql.WithFieldContext(ctx, fc) 15236 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15237 ctx = rctx // use context from middleware stack in children 15238 return obj.Description, nil 15239 }) 15240 if err != nil { 15241 ec.Error(ctx, err) 15242 return graphql.Null 15243 } 15244 if resTmp == nil { 15245 if !graphql.HasFieldError(ctx, fc) { 15246 ec.Errorf(ctx, "must not be null") 15247 } 15248 return graphql.Null 15249 } 15250 res := resTmp.(string) 15251 fc.Result = res 15252 return ec.marshalNString2string(ctx, field.Selections, res) 15253 } 15254 15255 func (ec *executionContext) _Document_format(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15256 defer func() { 15257 if r := recover(); r != nil { 15258 ec.Error(ctx, ec.Recover(ctx, r)) 15259 ret = graphql.Null 15260 } 15261 }() 15262 fc := &graphql.FieldContext{ 15263 Object: "Document", 15264 Field: field, 15265 Args: nil, 15266 IsMethod: false, 15267 } 15268 15269 ctx = graphql.WithFieldContext(ctx, fc) 15270 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15271 ctx = rctx // use context from middleware stack in children 15272 return obj.Format, nil 15273 }) 15274 if err != nil { 15275 ec.Error(ctx, err) 15276 return graphql.Null 15277 } 15278 if resTmp == nil { 15279 if !graphql.HasFieldError(ctx, fc) { 15280 ec.Errorf(ctx, "must not be null") 15281 } 15282 return graphql.Null 15283 } 15284 res := resTmp.(DocumentFormat) 15285 fc.Result = res 15286 return ec.marshalNDocumentFormat2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentFormat(ctx, field.Selections, res) 15287 } 15288 15289 func (ec *executionContext) _Document_kind(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15290 defer func() { 15291 if r := recover(); r != nil { 15292 ec.Error(ctx, ec.Recover(ctx, r)) 15293 ret = graphql.Null 15294 } 15295 }() 15296 fc := &graphql.FieldContext{ 15297 Object: "Document", 15298 Field: field, 15299 Args: nil, 15300 IsMethod: false, 15301 } 15302 15303 ctx = graphql.WithFieldContext(ctx, fc) 15304 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15305 ctx = rctx // use context from middleware stack in children 15306 return obj.Kind, nil 15307 }) 15308 if err != nil { 15309 ec.Error(ctx, err) 15310 return graphql.Null 15311 } 15312 if resTmp == nil { 15313 return graphql.Null 15314 } 15315 res := resTmp.(*string) 15316 fc.Result = res 15317 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 15318 } 15319 15320 func (ec *executionContext) _Document_data(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15321 defer func() { 15322 if r := recover(); r != nil { 15323 ec.Error(ctx, ec.Recover(ctx, r)) 15324 ret = graphql.Null 15325 } 15326 }() 15327 fc := &graphql.FieldContext{ 15328 Object: "Document", 15329 Field: field, 15330 Args: nil, 15331 IsMethod: false, 15332 } 15333 15334 ctx = graphql.WithFieldContext(ctx, fc) 15335 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15336 ctx = rctx // use context from middleware stack in children 15337 return obj.Data, nil 15338 }) 15339 if err != nil { 15340 ec.Error(ctx, err) 15341 return graphql.Null 15342 } 15343 if resTmp == nil { 15344 return graphql.Null 15345 } 15346 res := resTmp.(*CLOB) 15347 fc.Result = res 15348 return ec.marshalOCLOB2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx, field.Selections, res) 15349 } 15350 15351 func (ec *executionContext) _Document_fetchRequest(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15352 defer func() { 15353 if r := recover(); r != nil { 15354 ec.Error(ctx, ec.Recover(ctx, r)) 15355 ret = graphql.Null 15356 } 15357 }() 15358 fc := &graphql.FieldContext{ 15359 Object: "Document", 15360 Field: field, 15361 Args: nil, 15362 IsMethod: true, 15363 } 15364 15365 ctx = graphql.WithFieldContext(ctx, fc) 15366 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15367 directive0 := func(rctx context.Context) (interface{}, error) { 15368 ctx = rctx // use context from middleware stack in children 15369 return ec.resolvers.Document().FetchRequest(rctx, obj) 15370 } 15371 directive1 := func(ctx context.Context) (interface{}, error) { 15372 path, err := ec.unmarshalNString2string(ctx, "graphql.field.document.fetch_request") 15373 if err != nil { 15374 return nil, err 15375 } 15376 if ec.directives.Sanitize == nil { 15377 return nil, errors.New("directive sanitize is not implemented") 15378 } 15379 return ec.directives.Sanitize(ctx, obj, directive0, path) 15380 } 15381 15382 tmp, err := directive1(rctx) 15383 if err != nil { 15384 return nil, err 15385 } 15386 if tmp == nil { 15387 return nil, nil 15388 } 15389 if data, ok := tmp.(*FetchRequest); ok { 15390 return data, nil 15391 } 15392 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FetchRequest`, tmp) 15393 }) 15394 if err != nil { 15395 ec.Error(ctx, err) 15396 return graphql.Null 15397 } 15398 if resTmp == nil { 15399 return graphql.Null 15400 } 15401 res := resTmp.(*FetchRequest) 15402 fc.Result = res 15403 return ec.marshalOFetchRequest2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequest(ctx, field.Selections, res) 15404 } 15405 15406 func (ec *executionContext) _Document_createdAt(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15407 defer func() { 15408 if r := recover(); r != nil { 15409 ec.Error(ctx, ec.Recover(ctx, r)) 15410 ret = graphql.Null 15411 } 15412 }() 15413 fc := &graphql.FieldContext{ 15414 Object: "Document", 15415 Field: field, 15416 Args: nil, 15417 IsMethod: false, 15418 } 15419 15420 ctx = graphql.WithFieldContext(ctx, fc) 15421 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15422 ctx = rctx // use context from middleware stack in children 15423 return obj.CreatedAt, nil 15424 }) 15425 if err != nil { 15426 ec.Error(ctx, err) 15427 return graphql.Null 15428 } 15429 if resTmp == nil { 15430 return graphql.Null 15431 } 15432 res := resTmp.(*Timestamp) 15433 fc.Result = res 15434 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 15435 } 15436 15437 func (ec *executionContext) _Document_updatedAt(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15438 defer func() { 15439 if r := recover(); r != nil { 15440 ec.Error(ctx, ec.Recover(ctx, r)) 15441 ret = graphql.Null 15442 } 15443 }() 15444 fc := &graphql.FieldContext{ 15445 Object: "Document", 15446 Field: field, 15447 Args: nil, 15448 IsMethod: false, 15449 } 15450 15451 ctx = graphql.WithFieldContext(ctx, fc) 15452 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15453 ctx = rctx // use context from middleware stack in children 15454 return obj.UpdatedAt, nil 15455 }) 15456 if err != nil { 15457 ec.Error(ctx, err) 15458 return graphql.Null 15459 } 15460 if resTmp == nil { 15461 return graphql.Null 15462 } 15463 res := resTmp.(*Timestamp) 15464 fc.Result = res 15465 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 15466 } 15467 15468 func (ec *executionContext) _Document_deletedAt(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15469 defer func() { 15470 if r := recover(); r != nil { 15471 ec.Error(ctx, ec.Recover(ctx, r)) 15472 ret = graphql.Null 15473 } 15474 }() 15475 fc := &graphql.FieldContext{ 15476 Object: "Document", 15477 Field: field, 15478 Args: nil, 15479 IsMethod: false, 15480 } 15481 15482 ctx = graphql.WithFieldContext(ctx, fc) 15483 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15484 ctx = rctx // use context from middleware stack in children 15485 return obj.DeletedAt, nil 15486 }) 15487 if err != nil { 15488 ec.Error(ctx, err) 15489 return graphql.Null 15490 } 15491 if resTmp == nil { 15492 return graphql.Null 15493 } 15494 res := resTmp.(*Timestamp) 15495 fc.Result = res 15496 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 15497 } 15498 15499 func (ec *executionContext) _Document_error(ctx context.Context, field graphql.CollectedField, obj *Document) (ret graphql.Marshaler) { 15500 defer func() { 15501 if r := recover(); r != nil { 15502 ec.Error(ctx, ec.Recover(ctx, r)) 15503 ret = graphql.Null 15504 } 15505 }() 15506 fc := &graphql.FieldContext{ 15507 Object: "Document", 15508 Field: field, 15509 Args: nil, 15510 IsMethod: false, 15511 } 15512 15513 ctx = graphql.WithFieldContext(ctx, fc) 15514 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15515 ctx = rctx // use context from middleware stack in children 15516 return obj.Error, nil 15517 }) 15518 if err != nil { 15519 ec.Error(ctx, err) 15520 return graphql.Null 15521 } 15522 if resTmp == nil { 15523 return graphql.Null 15524 } 15525 res := resTmp.(*string) 15526 fc.Result = res 15527 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 15528 } 15529 15530 func (ec *executionContext) _DocumentPage_data(ctx context.Context, field graphql.CollectedField, obj *DocumentPage) (ret graphql.Marshaler) { 15531 defer func() { 15532 if r := recover(); r != nil { 15533 ec.Error(ctx, ec.Recover(ctx, r)) 15534 ret = graphql.Null 15535 } 15536 }() 15537 fc := &graphql.FieldContext{ 15538 Object: "DocumentPage", 15539 Field: field, 15540 Args: nil, 15541 IsMethod: false, 15542 } 15543 15544 ctx = graphql.WithFieldContext(ctx, fc) 15545 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15546 ctx = rctx // use context from middleware stack in children 15547 return obj.Data, nil 15548 }) 15549 if err != nil { 15550 ec.Error(ctx, err) 15551 return graphql.Null 15552 } 15553 if resTmp == nil { 15554 if !graphql.HasFieldError(ctx, fc) { 15555 ec.Errorf(ctx, "must not be null") 15556 } 15557 return graphql.Null 15558 } 15559 res := resTmp.([]*Document) 15560 fc.Result = res 15561 return ec.marshalNDocument2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentᚄ(ctx, field.Selections, res) 15562 } 15563 15564 func (ec *executionContext) _DocumentPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *DocumentPage) (ret graphql.Marshaler) { 15565 defer func() { 15566 if r := recover(); r != nil { 15567 ec.Error(ctx, ec.Recover(ctx, r)) 15568 ret = graphql.Null 15569 } 15570 }() 15571 fc := &graphql.FieldContext{ 15572 Object: "DocumentPage", 15573 Field: field, 15574 Args: nil, 15575 IsMethod: false, 15576 } 15577 15578 ctx = graphql.WithFieldContext(ctx, fc) 15579 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15580 ctx = rctx // use context from middleware stack in children 15581 return obj.PageInfo, nil 15582 }) 15583 if err != nil { 15584 ec.Error(ctx, err) 15585 return graphql.Null 15586 } 15587 if resTmp == nil { 15588 if !graphql.HasFieldError(ctx, fc) { 15589 ec.Errorf(ctx, "must not be null") 15590 } 15591 return graphql.Null 15592 } 15593 res := resTmp.(*PageInfo) 15594 fc.Result = res 15595 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 15596 } 15597 15598 func (ec *executionContext) _DocumentPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *DocumentPage) (ret graphql.Marshaler) { 15599 defer func() { 15600 if r := recover(); r != nil { 15601 ec.Error(ctx, ec.Recover(ctx, r)) 15602 ret = graphql.Null 15603 } 15604 }() 15605 fc := &graphql.FieldContext{ 15606 Object: "DocumentPage", 15607 Field: field, 15608 Args: nil, 15609 IsMethod: false, 15610 } 15611 15612 ctx = graphql.WithFieldContext(ctx, fc) 15613 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15614 ctx = rctx // use context from middleware stack in children 15615 return obj.TotalCount, nil 15616 }) 15617 if err != nil { 15618 ec.Error(ctx, err) 15619 return graphql.Null 15620 } 15621 if resTmp == nil { 15622 if !graphql.HasFieldError(ctx, fc) { 15623 ec.Errorf(ctx, "must not be null") 15624 } 15625 return graphql.Null 15626 } 15627 res := resTmp.(int) 15628 fc.Result = res 15629 return ec.marshalNInt2int(ctx, field.Selections, res) 15630 } 15631 15632 func (ec *executionContext) _EventDefinition_id(ctx context.Context, field graphql.CollectedField, obj *EventDefinition) (ret graphql.Marshaler) { 15633 defer func() { 15634 if r := recover(); r != nil { 15635 ec.Error(ctx, ec.Recover(ctx, r)) 15636 ret = graphql.Null 15637 } 15638 }() 15639 fc := &graphql.FieldContext{ 15640 Object: "EventDefinition", 15641 Field: field, 15642 Args: nil, 15643 IsMethod: false, 15644 } 15645 15646 ctx = graphql.WithFieldContext(ctx, fc) 15647 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15648 ctx = rctx // use context from middleware stack in children 15649 return obj.ID, nil 15650 }) 15651 if err != nil { 15652 ec.Error(ctx, err) 15653 return graphql.Null 15654 } 15655 if resTmp == nil { 15656 if !graphql.HasFieldError(ctx, fc) { 15657 ec.Errorf(ctx, "must not be null") 15658 } 15659 return graphql.Null 15660 } 15661 res := resTmp.(string) 15662 fc.Result = res 15663 return ec.marshalNID2string(ctx, field.Selections, res) 15664 } 15665 15666 func (ec *executionContext) _EventDefinition_name(ctx context.Context, field graphql.CollectedField, obj *EventDefinition) (ret graphql.Marshaler) { 15667 defer func() { 15668 if r := recover(); r != nil { 15669 ec.Error(ctx, ec.Recover(ctx, r)) 15670 ret = graphql.Null 15671 } 15672 }() 15673 fc := &graphql.FieldContext{ 15674 Object: "EventDefinition", 15675 Field: field, 15676 Args: nil, 15677 IsMethod: false, 15678 } 15679 15680 ctx = graphql.WithFieldContext(ctx, fc) 15681 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15682 ctx = rctx // use context from middleware stack in children 15683 return obj.Name, nil 15684 }) 15685 if err != nil { 15686 ec.Error(ctx, err) 15687 return graphql.Null 15688 } 15689 if resTmp == nil { 15690 if !graphql.HasFieldError(ctx, fc) { 15691 ec.Errorf(ctx, "must not be null") 15692 } 15693 return graphql.Null 15694 } 15695 res := resTmp.(string) 15696 fc.Result = res 15697 return ec.marshalNString2string(ctx, field.Selections, res) 15698 } 15699 15700 func (ec *executionContext) _EventDefinition_description(ctx context.Context, field graphql.CollectedField, obj *EventDefinition) (ret graphql.Marshaler) { 15701 defer func() { 15702 if r := recover(); r != nil { 15703 ec.Error(ctx, ec.Recover(ctx, r)) 15704 ret = graphql.Null 15705 } 15706 }() 15707 fc := &graphql.FieldContext{ 15708 Object: "EventDefinition", 15709 Field: field, 15710 Args: nil, 15711 IsMethod: false, 15712 } 15713 15714 ctx = graphql.WithFieldContext(ctx, fc) 15715 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15716 ctx = rctx // use context from middleware stack in children 15717 return obj.Description, nil 15718 }) 15719 if err != nil { 15720 ec.Error(ctx, err) 15721 return graphql.Null 15722 } 15723 if resTmp == nil { 15724 return graphql.Null 15725 } 15726 res := resTmp.(*string) 15727 fc.Result = res 15728 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 15729 } 15730 15731 func (ec *executionContext) _EventDefinition_group(ctx context.Context, field graphql.CollectedField, obj *EventDefinition) (ret graphql.Marshaler) { 15732 defer func() { 15733 if r := recover(); r != nil { 15734 ec.Error(ctx, ec.Recover(ctx, r)) 15735 ret = graphql.Null 15736 } 15737 }() 15738 fc := &graphql.FieldContext{ 15739 Object: "EventDefinition", 15740 Field: field, 15741 Args: nil, 15742 IsMethod: false, 15743 } 15744 15745 ctx = graphql.WithFieldContext(ctx, fc) 15746 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15747 ctx = rctx // use context from middleware stack in children 15748 return obj.Group, nil 15749 }) 15750 if err != nil { 15751 ec.Error(ctx, err) 15752 return graphql.Null 15753 } 15754 if resTmp == nil { 15755 return graphql.Null 15756 } 15757 res := resTmp.(*string) 15758 fc.Result = res 15759 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 15760 } 15761 15762 func (ec *executionContext) _EventDefinition_spec(ctx context.Context, field graphql.CollectedField, obj *EventDefinition) (ret graphql.Marshaler) { 15763 defer func() { 15764 if r := recover(); r != nil { 15765 ec.Error(ctx, ec.Recover(ctx, r)) 15766 ret = graphql.Null 15767 } 15768 }() 15769 fc := &graphql.FieldContext{ 15770 Object: "EventDefinition", 15771 Field: field, 15772 Args: nil, 15773 IsMethod: false, 15774 } 15775 15776 ctx = graphql.WithFieldContext(ctx, fc) 15777 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15778 ctx = rctx // use context from middleware stack in children 15779 return obj.Spec, nil 15780 }) 15781 if err != nil { 15782 ec.Error(ctx, err) 15783 return graphql.Null 15784 } 15785 if resTmp == nil { 15786 return graphql.Null 15787 } 15788 res := resTmp.(*EventSpec) 15789 fc.Result = res 15790 return ec.marshalOEventSpec2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpec(ctx, field.Selections, res) 15791 } 15792 15793 func (ec *executionContext) _EventDefinition_version(ctx context.Context, field graphql.CollectedField, obj *EventDefinition) (ret graphql.Marshaler) { 15794 defer func() { 15795 if r := recover(); r != nil { 15796 ec.Error(ctx, ec.Recover(ctx, r)) 15797 ret = graphql.Null 15798 } 15799 }() 15800 fc := &graphql.FieldContext{ 15801 Object: "EventDefinition", 15802 Field: field, 15803 Args: nil, 15804 IsMethod: false, 15805 } 15806 15807 ctx = graphql.WithFieldContext(ctx, fc) 15808 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15809 ctx = rctx // use context from middleware stack in children 15810 return obj.Version, nil 15811 }) 15812 if err != nil { 15813 ec.Error(ctx, err) 15814 return graphql.Null 15815 } 15816 if resTmp == nil { 15817 return graphql.Null 15818 } 15819 res := resTmp.(*Version) 15820 fc.Result = res 15821 return ec.marshalOVersion2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐVersion(ctx, field.Selections, res) 15822 } 15823 15824 func (ec *executionContext) _EventDefinition_createdAt(ctx context.Context, field graphql.CollectedField, obj *EventDefinition) (ret graphql.Marshaler) { 15825 defer func() { 15826 if r := recover(); r != nil { 15827 ec.Error(ctx, ec.Recover(ctx, r)) 15828 ret = graphql.Null 15829 } 15830 }() 15831 fc := &graphql.FieldContext{ 15832 Object: "EventDefinition", 15833 Field: field, 15834 Args: nil, 15835 IsMethod: false, 15836 } 15837 15838 ctx = graphql.WithFieldContext(ctx, fc) 15839 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15840 ctx = rctx // use context from middleware stack in children 15841 return obj.CreatedAt, nil 15842 }) 15843 if err != nil { 15844 ec.Error(ctx, err) 15845 return graphql.Null 15846 } 15847 if resTmp == nil { 15848 return graphql.Null 15849 } 15850 res := resTmp.(*Timestamp) 15851 fc.Result = res 15852 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 15853 } 15854 15855 func (ec *executionContext) _EventDefinition_updatedAt(ctx context.Context, field graphql.CollectedField, obj *EventDefinition) (ret graphql.Marshaler) { 15856 defer func() { 15857 if r := recover(); r != nil { 15858 ec.Error(ctx, ec.Recover(ctx, r)) 15859 ret = graphql.Null 15860 } 15861 }() 15862 fc := &graphql.FieldContext{ 15863 Object: "EventDefinition", 15864 Field: field, 15865 Args: nil, 15866 IsMethod: false, 15867 } 15868 15869 ctx = graphql.WithFieldContext(ctx, fc) 15870 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15871 ctx = rctx // use context from middleware stack in children 15872 return obj.UpdatedAt, nil 15873 }) 15874 if err != nil { 15875 ec.Error(ctx, err) 15876 return graphql.Null 15877 } 15878 if resTmp == nil { 15879 return graphql.Null 15880 } 15881 res := resTmp.(*Timestamp) 15882 fc.Result = res 15883 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 15884 } 15885 15886 func (ec *executionContext) _EventDefinition_deletedAt(ctx context.Context, field graphql.CollectedField, obj *EventDefinition) (ret graphql.Marshaler) { 15887 defer func() { 15888 if r := recover(); r != nil { 15889 ec.Error(ctx, ec.Recover(ctx, r)) 15890 ret = graphql.Null 15891 } 15892 }() 15893 fc := &graphql.FieldContext{ 15894 Object: "EventDefinition", 15895 Field: field, 15896 Args: nil, 15897 IsMethod: false, 15898 } 15899 15900 ctx = graphql.WithFieldContext(ctx, fc) 15901 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15902 ctx = rctx // use context from middleware stack in children 15903 return obj.DeletedAt, nil 15904 }) 15905 if err != nil { 15906 ec.Error(ctx, err) 15907 return graphql.Null 15908 } 15909 if resTmp == nil { 15910 return graphql.Null 15911 } 15912 res := resTmp.(*Timestamp) 15913 fc.Result = res 15914 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 15915 } 15916 15917 func (ec *executionContext) _EventDefinition_error(ctx context.Context, field graphql.CollectedField, obj *EventDefinition) (ret graphql.Marshaler) { 15918 defer func() { 15919 if r := recover(); r != nil { 15920 ec.Error(ctx, ec.Recover(ctx, r)) 15921 ret = graphql.Null 15922 } 15923 }() 15924 fc := &graphql.FieldContext{ 15925 Object: "EventDefinition", 15926 Field: field, 15927 Args: nil, 15928 IsMethod: false, 15929 } 15930 15931 ctx = graphql.WithFieldContext(ctx, fc) 15932 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15933 ctx = rctx // use context from middleware stack in children 15934 return obj.Error, nil 15935 }) 15936 if err != nil { 15937 ec.Error(ctx, err) 15938 return graphql.Null 15939 } 15940 if resTmp == nil { 15941 return graphql.Null 15942 } 15943 res := resTmp.(*string) 15944 fc.Result = res 15945 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 15946 } 15947 15948 func (ec *executionContext) _EventDefinitionPage_data(ctx context.Context, field graphql.CollectedField, obj *EventDefinitionPage) (ret graphql.Marshaler) { 15949 defer func() { 15950 if r := recover(); r != nil { 15951 ec.Error(ctx, ec.Recover(ctx, r)) 15952 ret = graphql.Null 15953 } 15954 }() 15955 fc := &graphql.FieldContext{ 15956 Object: "EventDefinitionPage", 15957 Field: field, 15958 Args: nil, 15959 IsMethod: false, 15960 } 15961 15962 ctx = graphql.WithFieldContext(ctx, fc) 15963 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15964 ctx = rctx // use context from middleware stack in children 15965 return obj.Data, nil 15966 }) 15967 if err != nil { 15968 ec.Error(ctx, err) 15969 return graphql.Null 15970 } 15971 if resTmp == nil { 15972 if !graphql.HasFieldError(ctx, fc) { 15973 ec.Errorf(ctx, "must not be null") 15974 } 15975 return graphql.Null 15976 } 15977 res := resTmp.([]*EventDefinition) 15978 fc.Result = res 15979 return ec.marshalNEventDefinition2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionᚄ(ctx, field.Selections, res) 15980 } 15981 15982 func (ec *executionContext) _EventDefinitionPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *EventDefinitionPage) (ret graphql.Marshaler) { 15983 defer func() { 15984 if r := recover(); r != nil { 15985 ec.Error(ctx, ec.Recover(ctx, r)) 15986 ret = graphql.Null 15987 } 15988 }() 15989 fc := &graphql.FieldContext{ 15990 Object: "EventDefinitionPage", 15991 Field: field, 15992 Args: nil, 15993 IsMethod: false, 15994 } 15995 15996 ctx = graphql.WithFieldContext(ctx, fc) 15997 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 15998 ctx = rctx // use context from middleware stack in children 15999 return obj.PageInfo, nil 16000 }) 16001 if err != nil { 16002 ec.Error(ctx, err) 16003 return graphql.Null 16004 } 16005 if resTmp == nil { 16006 if !graphql.HasFieldError(ctx, fc) { 16007 ec.Errorf(ctx, "must not be null") 16008 } 16009 return graphql.Null 16010 } 16011 res := resTmp.(*PageInfo) 16012 fc.Result = res 16013 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 16014 } 16015 16016 func (ec *executionContext) _EventDefinitionPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *EventDefinitionPage) (ret graphql.Marshaler) { 16017 defer func() { 16018 if r := recover(); r != nil { 16019 ec.Error(ctx, ec.Recover(ctx, r)) 16020 ret = graphql.Null 16021 } 16022 }() 16023 fc := &graphql.FieldContext{ 16024 Object: "EventDefinitionPage", 16025 Field: field, 16026 Args: nil, 16027 IsMethod: false, 16028 } 16029 16030 ctx = graphql.WithFieldContext(ctx, fc) 16031 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16032 ctx = rctx // use context from middleware stack in children 16033 return obj.TotalCount, nil 16034 }) 16035 if err != nil { 16036 ec.Error(ctx, err) 16037 return graphql.Null 16038 } 16039 if resTmp == nil { 16040 if !graphql.HasFieldError(ctx, fc) { 16041 ec.Errorf(ctx, "must not be null") 16042 } 16043 return graphql.Null 16044 } 16045 res := resTmp.(int) 16046 fc.Result = res 16047 return ec.marshalNInt2int(ctx, field.Selections, res) 16048 } 16049 16050 func (ec *executionContext) _EventSpec_id(ctx context.Context, field graphql.CollectedField, obj *EventSpec) (ret graphql.Marshaler) { 16051 defer func() { 16052 if r := recover(); r != nil { 16053 ec.Error(ctx, ec.Recover(ctx, r)) 16054 ret = graphql.Null 16055 } 16056 }() 16057 fc := &graphql.FieldContext{ 16058 Object: "EventSpec", 16059 Field: field, 16060 Args: nil, 16061 IsMethod: false, 16062 } 16063 16064 ctx = graphql.WithFieldContext(ctx, fc) 16065 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16066 ctx = rctx // use context from middleware stack in children 16067 return obj.ID, nil 16068 }) 16069 if err != nil { 16070 ec.Error(ctx, err) 16071 return graphql.Null 16072 } 16073 if resTmp == nil { 16074 if !graphql.HasFieldError(ctx, fc) { 16075 ec.Errorf(ctx, "must not be null") 16076 } 16077 return graphql.Null 16078 } 16079 res := resTmp.(string) 16080 fc.Result = res 16081 return ec.marshalNID2string(ctx, field.Selections, res) 16082 } 16083 16084 func (ec *executionContext) _EventSpec_data(ctx context.Context, field graphql.CollectedField, obj *EventSpec) (ret graphql.Marshaler) { 16085 defer func() { 16086 if r := recover(); r != nil { 16087 ec.Error(ctx, ec.Recover(ctx, r)) 16088 ret = graphql.Null 16089 } 16090 }() 16091 fc := &graphql.FieldContext{ 16092 Object: "EventSpec", 16093 Field: field, 16094 Args: nil, 16095 IsMethod: false, 16096 } 16097 16098 ctx = graphql.WithFieldContext(ctx, fc) 16099 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16100 ctx = rctx // use context from middleware stack in children 16101 return obj.Data, nil 16102 }) 16103 if err != nil { 16104 ec.Error(ctx, err) 16105 return graphql.Null 16106 } 16107 if resTmp == nil { 16108 return graphql.Null 16109 } 16110 res := resTmp.(*CLOB) 16111 fc.Result = res 16112 return ec.marshalOCLOB2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx, field.Selections, res) 16113 } 16114 16115 func (ec *executionContext) _EventSpec_type(ctx context.Context, field graphql.CollectedField, obj *EventSpec) (ret graphql.Marshaler) { 16116 defer func() { 16117 if r := recover(); r != nil { 16118 ec.Error(ctx, ec.Recover(ctx, r)) 16119 ret = graphql.Null 16120 } 16121 }() 16122 fc := &graphql.FieldContext{ 16123 Object: "EventSpec", 16124 Field: field, 16125 Args: nil, 16126 IsMethod: false, 16127 } 16128 16129 ctx = graphql.WithFieldContext(ctx, fc) 16130 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16131 ctx = rctx // use context from middleware stack in children 16132 return obj.Type, nil 16133 }) 16134 if err != nil { 16135 ec.Error(ctx, err) 16136 return graphql.Null 16137 } 16138 if resTmp == nil { 16139 if !graphql.HasFieldError(ctx, fc) { 16140 ec.Errorf(ctx, "must not be null") 16141 } 16142 return graphql.Null 16143 } 16144 res := resTmp.(EventSpecType) 16145 fc.Result = res 16146 return ec.marshalNEventSpecType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpecType(ctx, field.Selections, res) 16147 } 16148 16149 func (ec *executionContext) _EventSpec_format(ctx context.Context, field graphql.CollectedField, obj *EventSpec) (ret graphql.Marshaler) { 16150 defer func() { 16151 if r := recover(); r != nil { 16152 ec.Error(ctx, ec.Recover(ctx, r)) 16153 ret = graphql.Null 16154 } 16155 }() 16156 fc := &graphql.FieldContext{ 16157 Object: "EventSpec", 16158 Field: field, 16159 Args: nil, 16160 IsMethod: false, 16161 } 16162 16163 ctx = graphql.WithFieldContext(ctx, fc) 16164 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16165 ctx = rctx // use context from middleware stack in children 16166 return obj.Format, nil 16167 }) 16168 if err != nil { 16169 ec.Error(ctx, err) 16170 return graphql.Null 16171 } 16172 if resTmp == nil { 16173 if !graphql.HasFieldError(ctx, fc) { 16174 ec.Errorf(ctx, "must not be null") 16175 } 16176 return graphql.Null 16177 } 16178 res := resTmp.(SpecFormat) 16179 fc.Result = res 16180 return ec.marshalNSpecFormat2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSpecFormat(ctx, field.Selections, res) 16181 } 16182 16183 func (ec *executionContext) _EventSpec_fetchRequest(ctx context.Context, field graphql.CollectedField, obj *EventSpec) (ret graphql.Marshaler) { 16184 defer func() { 16185 if r := recover(); r != nil { 16186 ec.Error(ctx, ec.Recover(ctx, r)) 16187 ret = graphql.Null 16188 } 16189 }() 16190 fc := &graphql.FieldContext{ 16191 Object: "EventSpec", 16192 Field: field, 16193 Args: nil, 16194 IsMethod: true, 16195 } 16196 16197 ctx = graphql.WithFieldContext(ctx, fc) 16198 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16199 directive0 := func(rctx context.Context) (interface{}, error) { 16200 ctx = rctx // use context from middleware stack in children 16201 return ec.resolvers.EventSpec().FetchRequest(rctx, obj) 16202 } 16203 directive1 := func(ctx context.Context) (interface{}, error) { 16204 path, err := ec.unmarshalNString2string(ctx, "graphql.field.event_spec.fetch_request") 16205 if err != nil { 16206 return nil, err 16207 } 16208 if ec.directives.Sanitize == nil { 16209 return nil, errors.New("directive sanitize is not implemented") 16210 } 16211 return ec.directives.Sanitize(ctx, obj, directive0, path) 16212 } 16213 16214 tmp, err := directive1(rctx) 16215 if err != nil { 16216 return nil, err 16217 } 16218 if tmp == nil { 16219 return nil, nil 16220 } 16221 if data, ok := tmp.(*FetchRequest); ok { 16222 return data, nil 16223 } 16224 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FetchRequest`, tmp) 16225 }) 16226 if err != nil { 16227 ec.Error(ctx, err) 16228 return graphql.Null 16229 } 16230 if resTmp == nil { 16231 return graphql.Null 16232 } 16233 res := resTmp.(*FetchRequest) 16234 fc.Result = res 16235 return ec.marshalOFetchRequest2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequest(ctx, field.Selections, res) 16236 } 16237 16238 func (ec *executionContext) _FetchRequest_url(ctx context.Context, field graphql.CollectedField, obj *FetchRequest) (ret graphql.Marshaler) { 16239 defer func() { 16240 if r := recover(); r != nil { 16241 ec.Error(ctx, ec.Recover(ctx, r)) 16242 ret = graphql.Null 16243 } 16244 }() 16245 fc := &graphql.FieldContext{ 16246 Object: "FetchRequest", 16247 Field: field, 16248 Args: nil, 16249 IsMethod: false, 16250 } 16251 16252 ctx = graphql.WithFieldContext(ctx, fc) 16253 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16254 ctx = rctx // use context from middleware stack in children 16255 return obj.URL, nil 16256 }) 16257 if err != nil { 16258 ec.Error(ctx, err) 16259 return graphql.Null 16260 } 16261 if resTmp == nil { 16262 if !graphql.HasFieldError(ctx, fc) { 16263 ec.Errorf(ctx, "must not be null") 16264 } 16265 return graphql.Null 16266 } 16267 res := resTmp.(string) 16268 fc.Result = res 16269 return ec.marshalNString2string(ctx, field.Selections, res) 16270 } 16271 16272 func (ec *executionContext) _FetchRequest_auth(ctx context.Context, field graphql.CollectedField, obj *FetchRequest) (ret graphql.Marshaler) { 16273 defer func() { 16274 if r := recover(); r != nil { 16275 ec.Error(ctx, ec.Recover(ctx, r)) 16276 ret = graphql.Null 16277 } 16278 }() 16279 fc := &graphql.FieldContext{ 16280 Object: "FetchRequest", 16281 Field: field, 16282 Args: nil, 16283 IsMethod: false, 16284 } 16285 16286 ctx = graphql.WithFieldContext(ctx, fc) 16287 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16288 directive0 := func(rctx context.Context) (interface{}, error) { 16289 ctx = rctx // use context from middleware stack in children 16290 return obj.Auth, nil 16291 } 16292 directive1 := func(ctx context.Context) (interface{}, error) { 16293 path, err := ec.unmarshalNString2string(ctx, "graphql.field.fetch_request.auth") 16294 if err != nil { 16295 return nil, err 16296 } 16297 if ec.directives.Sanitize == nil { 16298 return nil, errors.New("directive sanitize is not implemented") 16299 } 16300 return ec.directives.Sanitize(ctx, obj, directive0, path) 16301 } 16302 16303 tmp, err := directive1(rctx) 16304 if err != nil { 16305 return nil, err 16306 } 16307 if tmp == nil { 16308 return nil, nil 16309 } 16310 if data, ok := tmp.(*Auth); ok { 16311 return data, nil 16312 } 16313 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Auth`, tmp) 16314 }) 16315 if err != nil { 16316 ec.Error(ctx, err) 16317 return graphql.Null 16318 } 16319 if resTmp == nil { 16320 return graphql.Null 16321 } 16322 res := resTmp.(*Auth) 16323 fc.Result = res 16324 return ec.marshalOAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuth(ctx, field.Selections, res) 16325 } 16326 16327 func (ec *executionContext) _FetchRequest_mode(ctx context.Context, field graphql.CollectedField, obj *FetchRequest) (ret graphql.Marshaler) { 16328 defer func() { 16329 if r := recover(); r != nil { 16330 ec.Error(ctx, ec.Recover(ctx, r)) 16331 ret = graphql.Null 16332 } 16333 }() 16334 fc := &graphql.FieldContext{ 16335 Object: "FetchRequest", 16336 Field: field, 16337 Args: nil, 16338 IsMethod: false, 16339 } 16340 16341 ctx = graphql.WithFieldContext(ctx, fc) 16342 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16343 ctx = rctx // use context from middleware stack in children 16344 return obj.Mode, nil 16345 }) 16346 if err != nil { 16347 ec.Error(ctx, err) 16348 return graphql.Null 16349 } 16350 if resTmp == nil { 16351 if !graphql.HasFieldError(ctx, fc) { 16352 ec.Errorf(ctx, "must not be null") 16353 } 16354 return graphql.Null 16355 } 16356 res := resTmp.(FetchMode) 16357 fc.Result = res 16358 return ec.marshalNFetchMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchMode(ctx, field.Selections, res) 16359 } 16360 16361 func (ec *executionContext) _FetchRequest_filter(ctx context.Context, field graphql.CollectedField, obj *FetchRequest) (ret graphql.Marshaler) { 16362 defer func() { 16363 if r := recover(); r != nil { 16364 ec.Error(ctx, ec.Recover(ctx, r)) 16365 ret = graphql.Null 16366 } 16367 }() 16368 fc := &graphql.FieldContext{ 16369 Object: "FetchRequest", 16370 Field: field, 16371 Args: nil, 16372 IsMethod: false, 16373 } 16374 16375 ctx = graphql.WithFieldContext(ctx, fc) 16376 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16377 ctx = rctx // use context from middleware stack in children 16378 return obj.Filter, nil 16379 }) 16380 if err != nil { 16381 ec.Error(ctx, err) 16382 return graphql.Null 16383 } 16384 if resTmp == nil { 16385 return graphql.Null 16386 } 16387 res := resTmp.(*string) 16388 fc.Result = res 16389 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 16390 } 16391 16392 func (ec *executionContext) _FetchRequest_status(ctx context.Context, field graphql.CollectedField, obj *FetchRequest) (ret graphql.Marshaler) { 16393 defer func() { 16394 if r := recover(); r != nil { 16395 ec.Error(ctx, ec.Recover(ctx, r)) 16396 ret = graphql.Null 16397 } 16398 }() 16399 fc := &graphql.FieldContext{ 16400 Object: "FetchRequest", 16401 Field: field, 16402 Args: nil, 16403 IsMethod: false, 16404 } 16405 16406 ctx = graphql.WithFieldContext(ctx, fc) 16407 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16408 ctx = rctx // use context from middleware stack in children 16409 return obj.Status, nil 16410 }) 16411 if err != nil { 16412 ec.Error(ctx, err) 16413 return graphql.Null 16414 } 16415 if resTmp == nil { 16416 if !graphql.HasFieldError(ctx, fc) { 16417 ec.Errorf(ctx, "must not be null") 16418 } 16419 return graphql.Null 16420 } 16421 res := resTmp.(*FetchRequestStatus) 16422 fc.Result = res 16423 return ec.marshalNFetchRequestStatus2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestStatus(ctx, field.Selections, res) 16424 } 16425 16426 func (ec *executionContext) _FetchRequestStatus_condition(ctx context.Context, field graphql.CollectedField, obj *FetchRequestStatus) (ret graphql.Marshaler) { 16427 defer func() { 16428 if r := recover(); r != nil { 16429 ec.Error(ctx, ec.Recover(ctx, r)) 16430 ret = graphql.Null 16431 } 16432 }() 16433 fc := &graphql.FieldContext{ 16434 Object: "FetchRequestStatus", 16435 Field: field, 16436 Args: nil, 16437 IsMethod: false, 16438 } 16439 16440 ctx = graphql.WithFieldContext(ctx, fc) 16441 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16442 ctx = rctx // use context from middleware stack in children 16443 return obj.Condition, nil 16444 }) 16445 if err != nil { 16446 ec.Error(ctx, err) 16447 return graphql.Null 16448 } 16449 if resTmp == nil { 16450 if !graphql.HasFieldError(ctx, fc) { 16451 ec.Errorf(ctx, "must not be null") 16452 } 16453 return graphql.Null 16454 } 16455 res := resTmp.(FetchRequestStatusCondition) 16456 fc.Result = res 16457 return ec.marshalNFetchRequestStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestStatusCondition(ctx, field.Selections, res) 16458 } 16459 16460 func (ec *executionContext) _FetchRequestStatus_message(ctx context.Context, field graphql.CollectedField, obj *FetchRequestStatus) (ret graphql.Marshaler) { 16461 defer func() { 16462 if r := recover(); r != nil { 16463 ec.Error(ctx, ec.Recover(ctx, r)) 16464 ret = graphql.Null 16465 } 16466 }() 16467 fc := &graphql.FieldContext{ 16468 Object: "FetchRequestStatus", 16469 Field: field, 16470 Args: nil, 16471 IsMethod: false, 16472 } 16473 16474 ctx = graphql.WithFieldContext(ctx, fc) 16475 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16476 ctx = rctx // use context from middleware stack in children 16477 return obj.Message, nil 16478 }) 16479 if err != nil { 16480 ec.Error(ctx, err) 16481 return graphql.Null 16482 } 16483 if resTmp == nil { 16484 return graphql.Null 16485 } 16486 res := resTmp.(*string) 16487 fc.Result = res 16488 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 16489 } 16490 16491 func (ec *executionContext) _FetchRequestStatus_timestamp(ctx context.Context, field graphql.CollectedField, obj *FetchRequestStatus) (ret graphql.Marshaler) { 16492 defer func() { 16493 if r := recover(); r != nil { 16494 ec.Error(ctx, ec.Recover(ctx, r)) 16495 ret = graphql.Null 16496 } 16497 }() 16498 fc := &graphql.FieldContext{ 16499 Object: "FetchRequestStatus", 16500 Field: field, 16501 Args: nil, 16502 IsMethod: false, 16503 } 16504 16505 ctx = graphql.WithFieldContext(ctx, fc) 16506 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16507 ctx = rctx // use context from middleware stack in children 16508 return obj.Timestamp, nil 16509 }) 16510 if err != nil { 16511 ec.Error(ctx, err) 16512 return graphql.Null 16513 } 16514 if resTmp == nil { 16515 if !graphql.HasFieldError(ctx, fc) { 16516 ec.Errorf(ctx, "must not be null") 16517 } 16518 return graphql.Null 16519 } 16520 res := resTmp.(Timestamp) 16521 fc.Result = res 16522 return ec.marshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 16523 } 16524 16525 func (ec *executionContext) _Formation_id(ctx context.Context, field graphql.CollectedField, obj *Formation) (ret graphql.Marshaler) { 16526 defer func() { 16527 if r := recover(); r != nil { 16528 ec.Error(ctx, ec.Recover(ctx, r)) 16529 ret = graphql.Null 16530 } 16531 }() 16532 fc := &graphql.FieldContext{ 16533 Object: "Formation", 16534 Field: field, 16535 Args: nil, 16536 IsMethod: false, 16537 } 16538 16539 ctx = graphql.WithFieldContext(ctx, fc) 16540 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16541 ctx = rctx // use context from middleware stack in children 16542 return obj.ID, nil 16543 }) 16544 if err != nil { 16545 ec.Error(ctx, err) 16546 return graphql.Null 16547 } 16548 if resTmp == nil { 16549 if !graphql.HasFieldError(ctx, fc) { 16550 ec.Errorf(ctx, "must not be null") 16551 } 16552 return graphql.Null 16553 } 16554 res := resTmp.(string) 16555 fc.Result = res 16556 return ec.marshalNID2string(ctx, field.Selections, res) 16557 } 16558 16559 func (ec *executionContext) _Formation_name(ctx context.Context, field graphql.CollectedField, obj *Formation) (ret graphql.Marshaler) { 16560 defer func() { 16561 if r := recover(); r != nil { 16562 ec.Error(ctx, ec.Recover(ctx, r)) 16563 ret = graphql.Null 16564 } 16565 }() 16566 fc := &graphql.FieldContext{ 16567 Object: "Formation", 16568 Field: field, 16569 Args: nil, 16570 IsMethod: false, 16571 } 16572 16573 ctx = graphql.WithFieldContext(ctx, fc) 16574 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16575 ctx = rctx // use context from middleware stack in children 16576 return obj.Name, nil 16577 }) 16578 if err != nil { 16579 ec.Error(ctx, err) 16580 return graphql.Null 16581 } 16582 if resTmp == nil { 16583 if !graphql.HasFieldError(ctx, fc) { 16584 ec.Errorf(ctx, "must not be null") 16585 } 16586 return graphql.Null 16587 } 16588 res := resTmp.(string) 16589 fc.Result = res 16590 return ec.marshalNString2string(ctx, field.Selections, res) 16591 } 16592 16593 func (ec *executionContext) _Formation_formationTemplateId(ctx context.Context, field graphql.CollectedField, obj *Formation) (ret graphql.Marshaler) { 16594 defer func() { 16595 if r := recover(); r != nil { 16596 ec.Error(ctx, ec.Recover(ctx, r)) 16597 ret = graphql.Null 16598 } 16599 }() 16600 fc := &graphql.FieldContext{ 16601 Object: "Formation", 16602 Field: field, 16603 Args: nil, 16604 IsMethod: false, 16605 } 16606 16607 ctx = graphql.WithFieldContext(ctx, fc) 16608 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16609 ctx = rctx // use context from middleware stack in children 16610 return obj.FormationTemplateID, nil 16611 }) 16612 if err != nil { 16613 ec.Error(ctx, err) 16614 return graphql.Null 16615 } 16616 if resTmp == nil { 16617 if !graphql.HasFieldError(ctx, fc) { 16618 ec.Errorf(ctx, "must not be null") 16619 } 16620 return graphql.Null 16621 } 16622 res := resTmp.(string) 16623 fc.Result = res 16624 return ec.marshalNID2string(ctx, field.Selections, res) 16625 } 16626 16627 func (ec *executionContext) _Formation_state(ctx context.Context, field graphql.CollectedField, obj *Formation) (ret graphql.Marshaler) { 16628 defer func() { 16629 if r := recover(); r != nil { 16630 ec.Error(ctx, ec.Recover(ctx, r)) 16631 ret = graphql.Null 16632 } 16633 }() 16634 fc := &graphql.FieldContext{ 16635 Object: "Formation", 16636 Field: field, 16637 Args: nil, 16638 IsMethod: false, 16639 } 16640 16641 ctx = graphql.WithFieldContext(ctx, fc) 16642 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16643 ctx = rctx // use context from middleware stack in children 16644 return obj.State, nil 16645 }) 16646 if err != nil { 16647 ec.Error(ctx, err) 16648 return graphql.Null 16649 } 16650 if resTmp == nil { 16651 if !graphql.HasFieldError(ctx, fc) { 16652 ec.Errorf(ctx, "must not be null") 16653 } 16654 return graphql.Null 16655 } 16656 res := resTmp.(string) 16657 fc.Result = res 16658 return ec.marshalNString2string(ctx, field.Selections, res) 16659 } 16660 16661 func (ec *executionContext) _Formation_error(ctx context.Context, field graphql.CollectedField, obj *Formation) (ret graphql.Marshaler) { 16662 defer func() { 16663 if r := recover(); r != nil { 16664 ec.Error(ctx, ec.Recover(ctx, r)) 16665 ret = graphql.Null 16666 } 16667 }() 16668 fc := &graphql.FieldContext{ 16669 Object: "Formation", 16670 Field: field, 16671 Args: nil, 16672 IsMethod: false, 16673 } 16674 16675 ctx = graphql.WithFieldContext(ctx, fc) 16676 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16677 ctx = rctx // use context from middleware stack in children 16678 return obj.Error, nil 16679 }) 16680 if err != nil { 16681 ec.Error(ctx, err) 16682 return graphql.Null 16683 } 16684 if resTmp == nil { 16685 return graphql.Null 16686 } 16687 res := resTmp.(FormationError) 16688 fc.Result = res 16689 return ec.marshalOFormationError2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationError(ctx, field.Selections, res) 16690 } 16691 16692 func (ec *executionContext) _Formation_formationAssignment(ctx context.Context, field graphql.CollectedField, obj *Formation) (ret graphql.Marshaler) { 16693 defer func() { 16694 if r := recover(); r != nil { 16695 ec.Error(ctx, ec.Recover(ctx, r)) 16696 ret = graphql.Null 16697 } 16698 }() 16699 fc := &graphql.FieldContext{ 16700 Object: "Formation", 16701 Field: field, 16702 Args: nil, 16703 IsMethod: true, 16704 } 16705 16706 ctx = graphql.WithFieldContext(ctx, fc) 16707 rawArgs := field.ArgumentMap(ec.Variables) 16708 args, err := ec.field_Formation_formationAssignment_args(ctx, rawArgs) 16709 if err != nil { 16710 ec.Error(ctx, err) 16711 return graphql.Null 16712 } 16713 fc.Args = args 16714 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16715 ctx = rctx // use context from middleware stack in children 16716 return ec.resolvers.Formation().FormationAssignment(rctx, obj, args["id"].(string)) 16717 }) 16718 if err != nil { 16719 ec.Error(ctx, err) 16720 return graphql.Null 16721 } 16722 if resTmp == nil { 16723 return graphql.Null 16724 } 16725 res := resTmp.(*FormationAssignment) 16726 fc.Result = res 16727 return ec.marshalOFormationAssignment2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignment(ctx, field.Selections, res) 16728 } 16729 16730 func (ec *executionContext) _Formation_formationAssignments(ctx context.Context, field graphql.CollectedField, obj *Formation) (ret graphql.Marshaler) { 16731 defer func() { 16732 if r := recover(); r != nil { 16733 ec.Error(ctx, ec.Recover(ctx, r)) 16734 ret = graphql.Null 16735 } 16736 }() 16737 fc := &graphql.FieldContext{ 16738 Object: "Formation", 16739 Field: field, 16740 Args: nil, 16741 IsMethod: true, 16742 } 16743 16744 ctx = graphql.WithFieldContext(ctx, fc) 16745 rawArgs := field.ArgumentMap(ec.Variables) 16746 args, err := ec.field_Formation_formationAssignments_args(ctx, rawArgs) 16747 if err != nil { 16748 ec.Error(ctx, err) 16749 return graphql.Null 16750 } 16751 fc.Args = args 16752 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16753 ctx = rctx // use context from middleware stack in children 16754 return ec.resolvers.Formation().FormationAssignments(rctx, obj, args["first"].(*int), args["after"].(*PageCursor)) 16755 }) 16756 if err != nil { 16757 ec.Error(ctx, err) 16758 return graphql.Null 16759 } 16760 if resTmp == nil { 16761 return graphql.Null 16762 } 16763 res := resTmp.(*FormationAssignmentPage) 16764 fc.Result = res 16765 return ec.marshalOFormationAssignmentPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignmentPage(ctx, field.Selections, res) 16766 } 16767 16768 func (ec *executionContext) _Formation_status(ctx context.Context, field graphql.CollectedField, obj *Formation) (ret graphql.Marshaler) { 16769 defer func() { 16770 if r := recover(); r != nil { 16771 ec.Error(ctx, ec.Recover(ctx, r)) 16772 ret = graphql.Null 16773 } 16774 }() 16775 fc := &graphql.FieldContext{ 16776 Object: "Formation", 16777 Field: field, 16778 Args: nil, 16779 IsMethod: true, 16780 } 16781 16782 ctx = graphql.WithFieldContext(ctx, fc) 16783 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16784 ctx = rctx // use context from middleware stack in children 16785 return ec.resolvers.Formation().Status(rctx, obj) 16786 }) 16787 if err != nil { 16788 ec.Error(ctx, err) 16789 return graphql.Null 16790 } 16791 if resTmp == nil { 16792 if !graphql.HasFieldError(ctx, fc) { 16793 ec.Errorf(ctx, "must not be null") 16794 } 16795 return graphql.Null 16796 } 16797 res := resTmp.(*FormationStatus) 16798 fc.Result = res 16799 return ec.marshalNFormationStatus2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatus(ctx, field.Selections, res) 16800 } 16801 16802 func (ec *executionContext) _FormationAssignment_id(ctx context.Context, field graphql.CollectedField, obj *FormationAssignment) (ret graphql.Marshaler) { 16803 defer func() { 16804 if r := recover(); r != nil { 16805 ec.Error(ctx, ec.Recover(ctx, r)) 16806 ret = graphql.Null 16807 } 16808 }() 16809 fc := &graphql.FieldContext{ 16810 Object: "FormationAssignment", 16811 Field: field, 16812 Args: nil, 16813 IsMethod: false, 16814 } 16815 16816 ctx = graphql.WithFieldContext(ctx, fc) 16817 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16818 ctx = rctx // use context from middleware stack in children 16819 return obj.ID, nil 16820 }) 16821 if err != nil { 16822 ec.Error(ctx, err) 16823 return graphql.Null 16824 } 16825 if resTmp == nil { 16826 if !graphql.HasFieldError(ctx, fc) { 16827 ec.Errorf(ctx, "must not be null") 16828 } 16829 return graphql.Null 16830 } 16831 res := resTmp.(string) 16832 fc.Result = res 16833 return ec.marshalNID2string(ctx, field.Selections, res) 16834 } 16835 16836 func (ec *executionContext) _FormationAssignment_source(ctx context.Context, field graphql.CollectedField, obj *FormationAssignment) (ret graphql.Marshaler) { 16837 defer func() { 16838 if r := recover(); r != nil { 16839 ec.Error(ctx, ec.Recover(ctx, r)) 16840 ret = graphql.Null 16841 } 16842 }() 16843 fc := &graphql.FieldContext{ 16844 Object: "FormationAssignment", 16845 Field: field, 16846 Args: nil, 16847 IsMethod: false, 16848 } 16849 16850 ctx = graphql.WithFieldContext(ctx, fc) 16851 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16852 ctx = rctx // use context from middleware stack in children 16853 return obj.Source, nil 16854 }) 16855 if err != nil { 16856 ec.Error(ctx, err) 16857 return graphql.Null 16858 } 16859 if resTmp == nil { 16860 if !graphql.HasFieldError(ctx, fc) { 16861 ec.Errorf(ctx, "must not be null") 16862 } 16863 return graphql.Null 16864 } 16865 res := resTmp.(string) 16866 fc.Result = res 16867 return ec.marshalNID2string(ctx, field.Selections, res) 16868 } 16869 16870 func (ec *executionContext) _FormationAssignment_sourceType(ctx context.Context, field graphql.CollectedField, obj *FormationAssignment) (ret graphql.Marshaler) { 16871 defer func() { 16872 if r := recover(); r != nil { 16873 ec.Error(ctx, ec.Recover(ctx, r)) 16874 ret = graphql.Null 16875 } 16876 }() 16877 fc := &graphql.FieldContext{ 16878 Object: "FormationAssignment", 16879 Field: field, 16880 Args: nil, 16881 IsMethod: false, 16882 } 16883 16884 ctx = graphql.WithFieldContext(ctx, fc) 16885 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16886 ctx = rctx // use context from middleware stack in children 16887 return obj.SourceType, nil 16888 }) 16889 if err != nil { 16890 ec.Error(ctx, err) 16891 return graphql.Null 16892 } 16893 if resTmp == nil { 16894 if !graphql.HasFieldError(ctx, fc) { 16895 ec.Errorf(ctx, "must not be null") 16896 } 16897 return graphql.Null 16898 } 16899 res := resTmp.(FormationAssignmentType) 16900 fc.Result = res 16901 return ec.marshalNFormationAssignmentType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignmentType(ctx, field.Selections, res) 16902 } 16903 16904 func (ec *executionContext) _FormationAssignment_target(ctx context.Context, field graphql.CollectedField, obj *FormationAssignment) (ret graphql.Marshaler) { 16905 defer func() { 16906 if r := recover(); r != nil { 16907 ec.Error(ctx, ec.Recover(ctx, r)) 16908 ret = graphql.Null 16909 } 16910 }() 16911 fc := &graphql.FieldContext{ 16912 Object: "FormationAssignment", 16913 Field: field, 16914 Args: nil, 16915 IsMethod: false, 16916 } 16917 16918 ctx = graphql.WithFieldContext(ctx, fc) 16919 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16920 ctx = rctx // use context from middleware stack in children 16921 return obj.Target, nil 16922 }) 16923 if err != nil { 16924 ec.Error(ctx, err) 16925 return graphql.Null 16926 } 16927 if resTmp == nil { 16928 if !graphql.HasFieldError(ctx, fc) { 16929 ec.Errorf(ctx, "must not be null") 16930 } 16931 return graphql.Null 16932 } 16933 res := resTmp.(string) 16934 fc.Result = res 16935 return ec.marshalNID2string(ctx, field.Selections, res) 16936 } 16937 16938 func (ec *executionContext) _FormationAssignment_targetType(ctx context.Context, field graphql.CollectedField, obj *FormationAssignment) (ret graphql.Marshaler) { 16939 defer func() { 16940 if r := recover(); r != nil { 16941 ec.Error(ctx, ec.Recover(ctx, r)) 16942 ret = graphql.Null 16943 } 16944 }() 16945 fc := &graphql.FieldContext{ 16946 Object: "FormationAssignment", 16947 Field: field, 16948 Args: nil, 16949 IsMethod: false, 16950 } 16951 16952 ctx = graphql.WithFieldContext(ctx, fc) 16953 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16954 ctx = rctx // use context from middleware stack in children 16955 return obj.TargetType, nil 16956 }) 16957 if err != nil { 16958 ec.Error(ctx, err) 16959 return graphql.Null 16960 } 16961 if resTmp == nil { 16962 if !graphql.HasFieldError(ctx, fc) { 16963 ec.Errorf(ctx, "must not be null") 16964 } 16965 return graphql.Null 16966 } 16967 res := resTmp.(FormationAssignmentType) 16968 fc.Result = res 16969 return ec.marshalNFormationAssignmentType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignmentType(ctx, field.Selections, res) 16970 } 16971 16972 func (ec *executionContext) _FormationAssignment_state(ctx context.Context, field graphql.CollectedField, obj *FormationAssignment) (ret graphql.Marshaler) { 16973 defer func() { 16974 if r := recover(); r != nil { 16975 ec.Error(ctx, ec.Recover(ctx, r)) 16976 ret = graphql.Null 16977 } 16978 }() 16979 fc := &graphql.FieldContext{ 16980 Object: "FormationAssignment", 16981 Field: field, 16982 Args: nil, 16983 IsMethod: false, 16984 } 16985 16986 ctx = graphql.WithFieldContext(ctx, fc) 16987 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 16988 ctx = rctx // use context from middleware stack in children 16989 return obj.State, nil 16990 }) 16991 if err != nil { 16992 ec.Error(ctx, err) 16993 return graphql.Null 16994 } 16995 if resTmp == nil { 16996 if !graphql.HasFieldError(ctx, fc) { 16997 ec.Errorf(ctx, "must not be null") 16998 } 16999 return graphql.Null 17000 } 17001 res := resTmp.(string) 17002 fc.Result = res 17003 return ec.marshalNString2string(ctx, field.Selections, res) 17004 } 17005 17006 func (ec *executionContext) _FormationAssignment_value(ctx context.Context, field graphql.CollectedField, obj *FormationAssignment) (ret graphql.Marshaler) { 17007 defer func() { 17008 if r := recover(); r != nil { 17009 ec.Error(ctx, ec.Recover(ctx, r)) 17010 ret = graphql.Null 17011 } 17012 }() 17013 fc := &graphql.FieldContext{ 17014 Object: "FormationAssignment", 17015 Field: field, 17016 Args: nil, 17017 IsMethod: false, 17018 } 17019 17020 ctx = graphql.WithFieldContext(ctx, fc) 17021 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17022 ctx = rctx // use context from middleware stack in children 17023 return obj.Value, nil 17024 }) 17025 if err != nil { 17026 ec.Error(ctx, err) 17027 return graphql.Null 17028 } 17029 if resTmp == nil { 17030 return graphql.Null 17031 } 17032 res := resTmp.(*string) 17033 fc.Result = res 17034 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 17035 } 17036 17037 func (ec *executionContext) _FormationAssignmentPage_data(ctx context.Context, field graphql.CollectedField, obj *FormationAssignmentPage) (ret graphql.Marshaler) { 17038 defer func() { 17039 if r := recover(); r != nil { 17040 ec.Error(ctx, ec.Recover(ctx, r)) 17041 ret = graphql.Null 17042 } 17043 }() 17044 fc := &graphql.FieldContext{ 17045 Object: "FormationAssignmentPage", 17046 Field: field, 17047 Args: nil, 17048 IsMethod: false, 17049 } 17050 17051 ctx = graphql.WithFieldContext(ctx, fc) 17052 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17053 ctx = rctx // use context from middleware stack in children 17054 return obj.Data, nil 17055 }) 17056 if err != nil { 17057 ec.Error(ctx, err) 17058 return graphql.Null 17059 } 17060 if resTmp == nil { 17061 if !graphql.HasFieldError(ctx, fc) { 17062 ec.Errorf(ctx, "must not be null") 17063 } 17064 return graphql.Null 17065 } 17066 res := resTmp.([]*FormationAssignment) 17067 fc.Result = res 17068 return ec.marshalNFormationAssignment2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignmentᚄ(ctx, field.Selections, res) 17069 } 17070 17071 func (ec *executionContext) _FormationAssignmentPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FormationAssignmentPage) (ret graphql.Marshaler) { 17072 defer func() { 17073 if r := recover(); r != nil { 17074 ec.Error(ctx, ec.Recover(ctx, r)) 17075 ret = graphql.Null 17076 } 17077 }() 17078 fc := &graphql.FieldContext{ 17079 Object: "FormationAssignmentPage", 17080 Field: field, 17081 Args: nil, 17082 IsMethod: false, 17083 } 17084 17085 ctx = graphql.WithFieldContext(ctx, fc) 17086 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17087 ctx = rctx // use context from middleware stack in children 17088 return obj.PageInfo, nil 17089 }) 17090 if err != nil { 17091 ec.Error(ctx, err) 17092 return graphql.Null 17093 } 17094 if resTmp == nil { 17095 if !graphql.HasFieldError(ctx, fc) { 17096 ec.Errorf(ctx, "must not be null") 17097 } 17098 return graphql.Null 17099 } 17100 res := resTmp.(*PageInfo) 17101 fc.Result = res 17102 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 17103 } 17104 17105 func (ec *executionContext) _FormationAssignmentPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *FormationAssignmentPage) (ret graphql.Marshaler) { 17106 defer func() { 17107 if r := recover(); r != nil { 17108 ec.Error(ctx, ec.Recover(ctx, r)) 17109 ret = graphql.Null 17110 } 17111 }() 17112 fc := &graphql.FieldContext{ 17113 Object: "FormationAssignmentPage", 17114 Field: field, 17115 Args: nil, 17116 IsMethod: false, 17117 } 17118 17119 ctx = graphql.WithFieldContext(ctx, fc) 17120 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17121 ctx = rctx // use context from middleware stack in children 17122 return obj.TotalCount, nil 17123 }) 17124 if err != nil { 17125 ec.Error(ctx, err) 17126 return graphql.Null 17127 } 17128 if resTmp == nil { 17129 if !graphql.HasFieldError(ctx, fc) { 17130 ec.Errorf(ctx, "must not be null") 17131 } 17132 return graphql.Null 17133 } 17134 res := resTmp.(int) 17135 fc.Result = res 17136 return ec.marshalNInt2int(ctx, field.Selections, res) 17137 } 17138 17139 func (ec *executionContext) _FormationConstraint_id(ctx context.Context, field graphql.CollectedField, obj *FormationConstraint) (ret graphql.Marshaler) { 17140 defer func() { 17141 if r := recover(); r != nil { 17142 ec.Error(ctx, ec.Recover(ctx, r)) 17143 ret = graphql.Null 17144 } 17145 }() 17146 fc := &graphql.FieldContext{ 17147 Object: "FormationConstraint", 17148 Field: field, 17149 Args: nil, 17150 IsMethod: false, 17151 } 17152 17153 ctx = graphql.WithFieldContext(ctx, fc) 17154 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17155 ctx = rctx // use context from middleware stack in children 17156 return obj.ID, nil 17157 }) 17158 if err != nil { 17159 ec.Error(ctx, err) 17160 return graphql.Null 17161 } 17162 if resTmp == nil { 17163 if !graphql.HasFieldError(ctx, fc) { 17164 ec.Errorf(ctx, "must not be null") 17165 } 17166 return graphql.Null 17167 } 17168 res := resTmp.(string) 17169 fc.Result = res 17170 return ec.marshalNID2string(ctx, field.Selections, res) 17171 } 17172 17173 func (ec *executionContext) _FormationConstraint_name(ctx context.Context, field graphql.CollectedField, obj *FormationConstraint) (ret graphql.Marshaler) { 17174 defer func() { 17175 if r := recover(); r != nil { 17176 ec.Error(ctx, ec.Recover(ctx, r)) 17177 ret = graphql.Null 17178 } 17179 }() 17180 fc := &graphql.FieldContext{ 17181 Object: "FormationConstraint", 17182 Field: field, 17183 Args: nil, 17184 IsMethod: false, 17185 } 17186 17187 ctx = graphql.WithFieldContext(ctx, fc) 17188 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17189 ctx = rctx // use context from middleware stack in children 17190 return obj.Name, nil 17191 }) 17192 if err != nil { 17193 ec.Error(ctx, err) 17194 return graphql.Null 17195 } 17196 if resTmp == nil { 17197 if !graphql.HasFieldError(ctx, fc) { 17198 ec.Errorf(ctx, "must not be null") 17199 } 17200 return graphql.Null 17201 } 17202 res := resTmp.(string) 17203 fc.Result = res 17204 return ec.marshalNString2string(ctx, field.Selections, res) 17205 } 17206 17207 func (ec *executionContext) _FormationConstraint_constraintType(ctx context.Context, field graphql.CollectedField, obj *FormationConstraint) (ret graphql.Marshaler) { 17208 defer func() { 17209 if r := recover(); r != nil { 17210 ec.Error(ctx, ec.Recover(ctx, r)) 17211 ret = graphql.Null 17212 } 17213 }() 17214 fc := &graphql.FieldContext{ 17215 Object: "FormationConstraint", 17216 Field: field, 17217 Args: nil, 17218 IsMethod: false, 17219 } 17220 17221 ctx = graphql.WithFieldContext(ctx, fc) 17222 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17223 ctx = rctx // use context from middleware stack in children 17224 return obj.ConstraintType, nil 17225 }) 17226 if err != nil { 17227 ec.Error(ctx, err) 17228 return graphql.Null 17229 } 17230 if resTmp == nil { 17231 if !graphql.HasFieldError(ctx, fc) { 17232 ec.Errorf(ctx, "must not be null") 17233 } 17234 return graphql.Null 17235 } 17236 res := resTmp.(string) 17237 fc.Result = res 17238 return ec.marshalNString2string(ctx, field.Selections, res) 17239 } 17240 17241 func (ec *executionContext) _FormationConstraint_targetOperation(ctx context.Context, field graphql.CollectedField, obj *FormationConstraint) (ret graphql.Marshaler) { 17242 defer func() { 17243 if r := recover(); r != nil { 17244 ec.Error(ctx, ec.Recover(ctx, r)) 17245 ret = graphql.Null 17246 } 17247 }() 17248 fc := &graphql.FieldContext{ 17249 Object: "FormationConstraint", 17250 Field: field, 17251 Args: nil, 17252 IsMethod: false, 17253 } 17254 17255 ctx = graphql.WithFieldContext(ctx, fc) 17256 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17257 ctx = rctx // use context from middleware stack in children 17258 return obj.TargetOperation, nil 17259 }) 17260 if err != nil { 17261 ec.Error(ctx, err) 17262 return graphql.Null 17263 } 17264 if resTmp == nil { 17265 if !graphql.HasFieldError(ctx, fc) { 17266 ec.Errorf(ctx, "must not be null") 17267 } 17268 return graphql.Null 17269 } 17270 res := resTmp.(string) 17271 fc.Result = res 17272 return ec.marshalNString2string(ctx, field.Selections, res) 17273 } 17274 17275 func (ec *executionContext) _FormationConstraint_operator(ctx context.Context, field graphql.CollectedField, obj *FormationConstraint) (ret graphql.Marshaler) { 17276 defer func() { 17277 if r := recover(); r != nil { 17278 ec.Error(ctx, ec.Recover(ctx, r)) 17279 ret = graphql.Null 17280 } 17281 }() 17282 fc := &graphql.FieldContext{ 17283 Object: "FormationConstraint", 17284 Field: field, 17285 Args: nil, 17286 IsMethod: false, 17287 } 17288 17289 ctx = graphql.WithFieldContext(ctx, fc) 17290 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17291 ctx = rctx // use context from middleware stack in children 17292 return obj.Operator, nil 17293 }) 17294 if err != nil { 17295 ec.Error(ctx, err) 17296 return graphql.Null 17297 } 17298 if resTmp == nil { 17299 if !graphql.HasFieldError(ctx, fc) { 17300 ec.Errorf(ctx, "must not be null") 17301 } 17302 return graphql.Null 17303 } 17304 res := resTmp.(string) 17305 fc.Result = res 17306 return ec.marshalNString2string(ctx, field.Selections, res) 17307 } 17308 17309 func (ec *executionContext) _FormationConstraint_resourceType(ctx context.Context, field graphql.CollectedField, obj *FormationConstraint) (ret graphql.Marshaler) { 17310 defer func() { 17311 if r := recover(); r != nil { 17312 ec.Error(ctx, ec.Recover(ctx, r)) 17313 ret = graphql.Null 17314 } 17315 }() 17316 fc := &graphql.FieldContext{ 17317 Object: "FormationConstraint", 17318 Field: field, 17319 Args: nil, 17320 IsMethod: false, 17321 } 17322 17323 ctx = graphql.WithFieldContext(ctx, fc) 17324 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17325 ctx = rctx // use context from middleware stack in children 17326 return obj.ResourceType, nil 17327 }) 17328 if err != nil { 17329 ec.Error(ctx, err) 17330 return graphql.Null 17331 } 17332 if resTmp == nil { 17333 if !graphql.HasFieldError(ctx, fc) { 17334 ec.Errorf(ctx, "must not be null") 17335 } 17336 return graphql.Null 17337 } 17338 res := resTmp.(string) 17339 fc.Result = res 17340 return ec.marshalNString2string(ctx, field.Selections, res) 17341 } 17342 17343 func (ec *executionContext) _FormationConstraint_resourceSubtype(ctx context.Context, field graphql.CollectedField, obj *FormationConstraint) (ret graphql.Marshaler) { 17344 defer func() { 17345 if r := recover(); r != nil { 17346 ec.Error(ctx, ec.Recover(ctx, r)) 17347 ret = graphql.Null 17348 } 17349 }() 17350 fc := &graphql.FieldContext{ 17351 Object: "FormationConstraint", 17352 Field: field, 17353 Args: nil, 17354 IsMethod: false, 17355 } 17356 17357 ctx = graphql.WithFieldContext(ctx, fc) 17358 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17359 ctx = rctx // use context from middleware stack in children 17360 return obj.ResourceSubtype, nil 17361 }) 17362 if err != nil { 17363 ec.Error(ctx, err) 17364 return graphql.Null 17365 } 17366 if resTmp == nil { 17367 if !graphql.HasFieldError(ctx, fc) { 17368 ec.Errorf(ctx, "must not be null") 17369 } 17370 return graphql.Null 17371 } 17372 res := resTmp.(string) 17373 fc.Result = res 17374 return ec.marshalNString2string(ctx, field.Selections, res) 17375 } 17376 17377 func (ec *executionContext) _FormationConstraint_inputTemplate(ctx context.Context, field graphql.CollectedField, obj *FormationConstraint) (ret graphql.Marshaler) { 17378 defer func() { 17379 if r := recover(); r != nil { 17380 ec.Error(ctx, ec.Recover(ctx, r)) 17381 ret = graphql.Null 17382 } 17383 }() 17384 fc := &graphql.FieldContext{ 17385 Object: "FormationConstraint", 17386 Field: field, 17387 Args: nil, 17388 IsMethod: false, 17389 } 17390 17391 ctx = graphql.WithFieldContext(ctx, fc) 17392 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17393 ctx = rctx // use context from middleware stack in children 17394 return obj.InputTemplate, nil 17395 }) 17396 if err != nil { 17397 ec.Error(ctx, err) 17398 return graphql.Null 17399 } 17400 if resTmp == nil { 17401 if !graphql.HasFieldError(ctx, fc) { 17402 ec.Errorf(ctx, "must not be null") 17403 } 17404 return graphql.Null 17405 } 17406 res := resTmp.(string) 17407 fc.Result = res 17408 return ec.marshalNString2string(ctx, field.Selections, res) 17409 } 17410 17411 func (ec *executionContext) _FormationConstraint_constraintScope(ctx context.Context, field graphql.CollectedField, obj *FormationConstraint) (ret graphql.Marshaler) { 17412 defer func() { 17413 if r := recover(); r != nil { 17414 ec.Error(ctx, ec.Recover(ctx, r)) 17415 ret = graphql.Null 17416 } 17417 }() 17418 fc := &graphql.FieldContext{ 17419 Object: "FormationConstraint", 17420 Field: field, 17421 Args: nil, 17422 IsMethod: false, 17423 } 17424 17425 ctx = graphql.WithFieldContext(ctx, fc) 17426 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17427 ctx = rctx // use context from middleware stack in children 17428 return obj.ConstraintScope, nil 17429 }) 17430 if err != nil { 17431 ec.Error(ctx, err) 17432 return graphql.Null 17433 } 17434 if resTmp == nil { 17435 if !graphql.HasFieldError(ctx, fc) { 17436 ec.Errorf(ctx, "must not be null") 17437 } 17438 return graphql.Null 17439 } 17440 res := resTmp.(string) 17441 fc.Result = res 17442 return ec.marshalNString2string(ctx, field.Selections, res) 17443 } 17444 17445 func (ec *executionContext) _FormationError_message(ctx context.Context, field graphql.CollectedField, obj *FormationError) (ret graphql.Marshaler) { 17446 defer func() { 17447 if r := recover(); r != nil { 17448 ec.Error(ctx, ec.Recover(ctx, r)) 17449 ret = graphql.Null 17450 } 17451 }() 17452 fc := &graphql.FieldContext{ 17453 Object: "FormationError", 17454 Field: field, 17455 Args: nil, 17456 IsMethod: false, 17457 } 17458 17459 ctx = graphql.WithFieldContext(ctx, fc) 17460 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17461 ctx = rctx // use context from middleware stack in children 17462 return obj.Message, nil 17463 }) 17464 if err != nil { 17465 ec.Error(ctx, err) 17466 return graphql.Null 17467 } 17468 if resTmp == nil { 17469 if !graphql.HasFieldError(ctx, fc) { 17470 ec.Errorf(ctx, "must not be null") 17471 } 17472 return graphql.Null 17473 } 17474 res := resTmp.(string) 17475 fc.Result = res 17476 return ec.marshalNString2string(ctx, field.Selections, res) 17477 } 17478 17479 func (ec *executionContext) _FormationError_errorCode(ctx context.Context, field graphql.CollectedField, obj *FormationError) (ret graphql.Marshaler) { 17480 defer func() { 17481 if r := recover(); r != nil { 17482 ec.Error(ctx, ec.Recover(ctx, r)) 17483 ret = graphql.Null 17484 } 17485 }() 17486 fc := &graphql.FieldContext{ 17487 Object: "FormationError", 17488 Field: field, 17489 Args: nil, 17490 IsMethod: false, 17491 } 17492 17493 ctx = graphql.WithFieldContext(ctx, fc) 17494 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17495 ctx = rctx // use context from middleware stack in children 17496 return obj.ErrorCode, nil 17497 }) 17498 if err != nil { 17499 ec.Error(ctx, err) 17500 return graphql.Null 17501 } 17502 if resTmp == nil { 17503 if !graphql.HasFieldError(ctx, fc) { 17504 ec.Errorf(ctx, "must not be null") 17505 } 17506 return graphql.Null 17507 } 17508 res := resTmp.(int) 17509 fc.Result = res 17510 return ec.marshalNInt2int(ctx, field.Selections, res) 17511 } 17512 17513 func (ec *executionContext) _FormationPage_data(ctx context.Context, field graphql.CollectedField, obj *FormationPage) (ret graphql.Marshaler) { 17514 defer func() { 17515 if r := recover(); r != nil { 17516 ec.Error(ctx, ec.Recover(ctx, r)) 17517 ret = graphql.Null 17518 } 17519 }() 17520 fc := &graphql.FieldContext{ 17521 Object: "FormationPage", 17522 Field: field, 17523 Args: nil, 17524 IsMethod: false, 17525 } 17526 17527 ctx = graphql.WithFieldContext(ctx, fc) 17528 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17529 ctx = rctx // use context from middleware stack in children 17530 return obj.Data, nil 17531 }) 17532 if err != nil { 17533 ec.Error(ctx, err) 17534 return graphql.Null 17535 } 17536 if resTmp == nil { 17537 if !graphql.HasFieldError(ctx, fc) { 17538 ec.Errorf(ctx, "must not be null") 17539 } 17540 return graphql.Null 17541 } 17542 res := resTmp.([]*Formation) 17543 fc.Result = res 17544 return ec.marshalNFormation2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationᚄ(ctx, field.Selections, res) 17545 } 17546 17547 func (ec *executionContext) _FormationPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FormationPage) (ret graphql.Marshaler) { 17548 defer func() { 17549 if r := recover(); r != nil { 17550 ec.Error(ctx, ec.Recover(ctx, r)) 17551 ret = graphql.Null 17552 } 17553 }() 17554 fc := &graphql.FieldContext{ 17555 Object: "FormationPage", 17556 Field: field, 17557 Args: nil, 17558 IsMethod: false, 17559 } 17560 17561 ctx = graphql.WithFieldContext(ctx, fc) 17562 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17563 ctx = rctx // use context from middleware stack in children 17564 return obj.PageInfo, nil 17565 }) 17566 if err != nil { 17567 ec.Error(ctx, err) 17568 return graphql.Null 17569 } 17570 if resTmp == nil { 17571 if !graphql.HasFieldError(ctx, fc) { 17572 ec.Errorf(ctx, "must not be null") 17573 } 17574 return graphql.Null 17575 } 17576 res := resTmp.(*PageInfo) 17577 fc.Result = res 17578 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 17579 } 17580 17581 func (ec *executionContext) _FormationPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *FormationPage) (ret graphql.Marshaler) { 17582 defer func() { 17583 if r := recover(); r != nil { 17584 ec.Error(ctx, ec.Recover(ctx, r)) 17585 ret = graphql.Null 17586 } 17587 }() 17588 fc := &graphql.FieldContext{ 17589 Object: "FormationPage", 17590 Field: field, 17591 Args: nil, 17592 IsMethod: false, 17593 } 17594 17595 ctx = graphql.WithFieldContext(ctx, fc) 17596 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17597 ctx = rctx // use context from middleware stack in children 17598 return obj.TotalCount, nil 17599 }) 17600 if err != nil { 17601 ec.Error(ctx, err) 17602 return graphql.Null 17603 } 17604 if resTmp == nil { 17605 if !graphql.HasFieldError(ctx, fc) { 17606 ec.Errorf(ctx, "must not be null") 17607 } 17608 return graphql.Null 17609 } 17610 res := resTmp.(int) 17611 fc.Result = res 17612 return ec.marshalNInt2int(ctx, field.Selections, res) 17613 } 17614 17615 func (ec *executionContext) _FormationStatus_condition(ctx context.Context, field graphql.CollectedField, obj *FormationStatus) (ret graphql.Marshaler) { 17616 defer func() { 17617 if r := recover(); r != nil { 17618 ec.Error(ctx, ec.Recover(ctx, r)) 17619 ret = graphql.Null 17620 } 17621 }() 17622 fc := &graphql.FieldContext{ 17623 Object: "FormationStatus", 17624 Field: field, 17625 Args: nil, 17626 IsMethod: false, 17627 } 17628 17629 ctx = graphql.WithFieldContext(ctx, fc) 17630 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17631 ctx = rctx // use context from middleware stack in children 17632 return obj.Condition, nil 17633 }) 17634 if err != nil { 17635 ec.Error(ctx, err) 17636 return graphql.Null 17637 } 17638 if resTmp == nil { 17639 if !graphql.HasFieldError(ctx, fc) { 17640 ec.Errorf(ctx, "must not be null") 17641 } 17642 return graphql.Null 17643 } 17644 res := resTmp.(FormationStatusCondition) 17645 fc.Result = res 17646 return ec.marshalNFormationStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatusCondition(ctx, field.Selections, res) 17647 } 17648 17649 func (ec *executionContext) _FormationStatus_errors(ctx context.Context, field graphql.CollectedField, obj *FormationStatus) (ret graphql.Marshaler) { 17650 defer func() { 17651 if r := recover(); r != nil { 17652 ec.Error(ctx, ec.Recover(ctx, r)) 17653 ret = graphql.Null 17654 } 17655 }() 17656 fc := &graphql.FieldContext{ 17657 Object: "FormationStatus", 17658 Field: field, 17659 Args: nil, 17660 IsMethod: false, 17661 } 17662 17663 ctx = graphql.WithFieldContext(ctx, fc) 17664 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17665 ctx = rctx // use context from middleware stack in children 17666 return obj.Errors, nil 17667 }) 17668 if err != nil { 17669 ec.Error(ctx, err) 17670 return graphql.Null 17671 } 17672 if resTmp == nil { 17673 return graphql.Null 17674 } 17675 res := resTmp.([]*FormationStatusError) 17676 fc.Result = res 17677 return ec.marshalOFormationStatusError2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatusErrorᚄ(ctx, field.Selections, res) 17678 } 17679 17680 func (ec *executionContext) _FormationStatusError_assignmentID(ctx context.Context, field graphql.CollectedField, obj *FormationStatusError) (ret graphql.Marshaler) { 17681 defer func() { 17682 if r := recover(); r != nil { 17683 ec.Error(ctx, ec.Recover(ctx, r)) 17684 ret = graphql.Null 17685 } 17686 }() 17687 fc := &graphql.FieldContext{ 17688 Object: "FormationStatusError", 17689 Field: field, 17690 Args: nil, 17691 IsMethod: false, 17692 } 17693 17694 ctx = graphql.WithFieldContext(ctx, fc) 17695 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17696 ctx = rctx // use context from middleware stack in children 17697 return obj.AssignmentID, nil 17698 }) 17699 if err != nil { 17700 ec.Error(ctx, err) 17701 return graphql.Null 17702 } 17703 if resTmp == nil { 17704 return graphql.Null 17705 } 17706 res := resTmp.(*string) 17707 fc.Result = res 17708 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 17709 } 17710 17711 func (ec *executionContext) _FormationStatusError_message(ctx context.Context, field graphql.CollectedField, obj *FormationStatusError) (ret graphql.Marshaler) { 17712 defer func() { 17713 if r := recover(); r != nil { 17714 ec.Error(ctx, ec.Recover(ctx, r)) 17715 ret = graphql.Null 17716 } 17717 }() 17718 fc := &graphql.FieldContext{ 17719 Object: "FormationStatusError", 17720 Field: field, 17721 Args: nil, 17722 IsMethod: false, 17723 } 17724 17725 ctx = graphql.WithFieldContext(ctx, fc) 17726 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17727 ctx = rctx // use context from middleware stack in children 17728 return obj.Message, nil 17729 }) 17730 if err != nil { 17731 ec.Error(ctx, err) 17732 return graphql.Null 17733 } 17734 if resTmp == nil { 17735 if !graphql.HasFieldError(ctx, fc) { 17736 ec.Errorf(ctx, "must not be null") 17737 } 17738 return graphql.Null 17739 } 17740 res := resTmp.(string) 17741 fc.Result = res 17742 return ec.marshalNString2string(ctx, field.Selections, res) 17743 } 17744 17745 func (ec *executionContext) _FormationStatusError_errorCode(ctx context.Context, field graphql.CollectedField, obj *FormationStatusError) (ret graphql.Marshaler) { 17746 defer func() { 17747 if r := recover(); r != nil { 17748 ec.Error(ctx, ec.Recover(ctx, r)) 17749 ret = graphql.Null 17750 } 17751 }() 17752 fc := &graphql.FieldContext{ 17753 Object: "FormationStatusError", 17754 Field: field, 17755 Args: nil, 17756 IsMethod: false, 17757 } 17758 17759 ctx = graphql.WithFieldContext(ctx, fc) 17760 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17761 ctx = rctx // use context from middleware stack in children 17762 return obj.ErrorCode, nil 17763 }) 17764 if err != nil { 17765 ec.Error(ctx, err) 17766 return graphql.Null 17767 } 17768 if resTmp == nil { 17769 if !graphql.HasFieldError(ctx, fc) { 17770 ec.Errorf(ctx, "must not be null") 17771 } 17772 return graphql.Null 17773 } 17774 res := resTmp.(int) 17775 fc.Result = res 17776 return ec.marshalNInt2int(ctx, field.Selections, res) 17777 } 17778 17779 func (ec *executionContext) _FormationTemplate_id(ctx context.Context, field graphql.CollectedField, obj *FormationTemplate) (ret graphql.Marshaler) { 17780 defer func() { 17781 if r := recover(); r != nil { 17782 ec.Error(ctx, ec.Recover(ctx, r)) 17783 ret = graphql.Null 17784 } 17785 }() 17786 fc := &graphql.FieldContext{ 17787 Object: "FormationTemplate", 17788 Field: field, 17789 Args: nil, 17790 IsMethod: false, 17791 } 17792 17793 ctx = graphql.WithFieldContext(ctx, fc) 17794 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17795 ctx = rctx // use context from middleware stack in children 17796 return obj.ID, nil 17797 }) 17798 if err != nil { 17799 ec.Error(ctx, err) 17800 return graphql.Null 17801 } 17802 if resTmp == nil { 17803 if !graphql.HasFieldError(ctx, fc) { 17804 ec.Errorf(ctx, "must not be null") 17805 } 17806 return graphql.Null 17807 } 17808 res := resTmp.(string) 17809 fc.Result = res 17810 return ec.marshalNID2string(ctx, field.Selections, res) 17811 } 17812 17813 func (ec *executionContext) _FormationTemplate_name(ctx context.Context, field graphql.CollectedField, obj *FormationTemplate) (ret graphql.Marshaler) { 17814 defer func() { 17815 if r := recover(); r != nil { 17816 ec.Error(ctx, ec.Recover(ctx, r)) 17817 ret = graphql.Null 17818 } 17819 }() 17820 fc := &graphql.FieldContext{ 17821 Object: "FormationTemplate", 17822 Field: field, 17823 Args: nil, 17824 IsMethod: false, 17825 } 17826 17827 ctx = graphql.WithFieldContext(ctx, fc) 17828 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17829 ctx = rctx // use context from middleware stack in children 17830 return obj.Name, nil 17831 }) 17832 if err != nil { 17833 ec.Error(ctx, err) 17834 return graphql.Null 17835 } 17836 if resTmp == nil { 17837 if !graphql.HasFieldError(ctx, fc) { 17838 ec.Errorf(ctx, "must not be null") 17839 } 17840 return graphql.Null 17841 } 17842 res := resTmp.(string) 17843 fc.Result = res 17844 return ec.marshalNString2string(ctx, field.Selections, res) 17845 } 17846 17847 func (ec *executionContext) _FormationTemplate_applicationTypes(ctx context.Context, field graphql.CollectedField, obj *FormationTemplate) (ret graphql.Marshaler) { 17848 defer func() { 17849 if r := recover(); r != nil { 17850 ec.Error(ctx, ec.Recover(ctx, r)) 17851 ret = graphql.Null 17852 } 17853 }() 17854 fc := &graphql.FieldContext{ 17855 Object: "FormationTemplate", 17856 Field: field, 17857 Args: nil, 17858 IsMethod: false, 17859 } 17860 17861 ctx = graphql.WithFieldContext(ctx, fc) 17862 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17863 ctx = rctx // use context from middleware stack in children 17864 return obj.ApplicationTypes, nil 17865 }) 17866 if err != nil { 17867 ec.Error(ctx, err) 17868 return graphql.Null 17869 } 17870 if resTmp == nil { 17871 if !graphql.HasFieldError(ctx, fc) { 17872 ec.Errorf(ctx, "must not be null") 17873 } 17874 return graphql.Null 17875 } 17876 res := resTmp.([]string) 17877 fc.Result = res 17878 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) 17879 } 17880 17881 func (ec *executionContext) _FormationTemplate_runtimeTypes(ctx context.Context, field graphql.CollectedField, obj *FormationTemplate) (ret graphql.Marshaler) { 17882 defer func() { 17883 if r := recover(); r != nil { 17884 ec.Error(ctx, ec.Recover(ctx, r)) 17885 ret = graphql.Null 17886 } 17887 }() 17888 fc := &graphql.FieldContext{ 17889 Object: "FormationTemplate", 17890 Field: field, 17891 Args: nil, 17892 IsMethod: false, 17893 } 17894 17895 ctx = graphql.WithFieldContext(ctx, fc) 17896 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17897 ctx = rctx // use context from middleware stack in children 17898 return obj.RuntimeTypes, nil 17899 }) 17900 if err != nil { 17901 ec.Error(ctx, err) 17902 return graphql.Null 17903 } 17904 if resTmp == nil { 17905 return graphql.Null 17906 } 17907 res := resTmp.([]string) 17908 fc.Result = res 17909 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 17910 } 17911 17912 func (ec *executionContext) _FormationTemplate_runtimeTypeDisplayName(ctx context.Context, field graphql.CollectedField, obj *FormationTemplate) (ret graphql.Marshaler) { 17913 defer func() { 17914 if r := recover(); r != nil { 17915 ec.Error(ctx, ec.Recover(ctx, r)) 17916 ret = graphql.Null 17917 } 17918 }() 17919 fc := &graphql.FieldContext{ 17920 Object: "FormationTemplate", 17921 Field: field, 17922 Args: nil, 17923 IsMethod: false, 17924 } 17925 17926 ctx = graphql.WithFieldContext(ctx, fc) 17927 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17928 ctx = rctx // use context from middleware stack in children 17929 return obj.RuntimeTypeDisplayName, nil 17930 }) 17931 if err != nil { 17932 ec.Error(ctx, err) 17933 return graphql.Null 17934 } 17935 if resTmp == nil { 17936 return graphql.Null 17937 } 17938 res := resTmp.(*string) 17939 fc.Result = res 17940 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 17941 } 17942 17943 func (ec *executionContext) _FormationTemplate_runtimeArtifactKind(ctx context.Context, field graphql.CollectedField, obj *FormationTemplate) (ret graphql.Marshaler) { 17944 defer func() { 17945 if r := recover(); r != nil { 17946 ec.Error(ctx, ec.Recover(ctx, r)) 17947 ret = graphql.Null 17948 } 17949 }() 17950 fc := &graphql.FieldContext{ 17951 Object: "FormationTemplate", 17952 Field: field, 17953 Args: nil, 17954 IsMethod: false, 17955 } 17956 17957 ctx = graphql.WithFieldContext(ctx, fc) 17958 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17959 ctx = rctx // use context from middleware stack in children 17960 return obj.RuntimeArtifactKind, nil 17961 }) 17962 if err != nil { 17963 ec.Error(ctx, err) 17964 return graphql.Null 17965 } 17966 if resTmp == nil { 17967 return graphql.Null 17968 } 17969 res := resTmp.(*ArtifactType) 17970 fc.Result = res 17971 return ec.marshalOArtifactType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐArtifactType(ctx, field.Selections, res) 17972 } 17973 17974 func (ec *executionContext) _FormationTemplate_webhooks(ctx context.Context, field graphql.CollectedField, obj *FormationTemplate) (ret graphql.Marshaler) { 17975 defer func() { 17976 if r := recover(); r != nil { 17977 ec.Error(ctx, ec.Recover(ctx, r)) 17978 ret = graphql.Null 17979 } 17980 }() 17981 fc := &graphql.FieldContext{ 17982 Object: "FormationTemplate", 17983 Field: field, 17984 Args: nil, 17985 IsMethod: true, 17986 } 17987 17988 ctx = graphql.WithFieldContext(ctx, fc) 17989 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 17990 directive0 := func(rctx context.Context) (interface{}, error) { 17991 ctx = rctx // use context from middleware stack in children 17992 return ec.resolvers.FormationTemplate().Webhooks(rctx, obj) 17993 } 17994 directive1 := func(ctx context.Context) (interface{}, error) { 17995 path, err := ec.unmarshalNString2string(ctx, "graphql.field.formation_template.webhooks") 17996 if err != nil { 17997 return nil, err 17998 } 17999 if ec.directives.Sanitize == nil { 18000 return nil, errors.New("directive sanitize is not implemented") 18001 } 18002 return ec.directives.Sanitize(ctx, obj, directive0, path) 18003 } 18004 18005 tmp, err := directive1(rctx) 18006 if err != nil { 18007 return nil, err 18008 } 18009 if tmp == nil { 18010 return nil, nil 18011 } 18012 if data, ok := tmp.([]*Webhook); ok { 18013 return data, nil 18014 } 18015 return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kyma-incubator/compass/components/director/pkg/graphql.Webhook`, tmp) 18016 }) 18017 if err != nil { 18018 ec.Error(ctx, err) 18019 return graphql.Null 18020 } 18021 if resTmp == nil { 18022 return graphql.Null 18023 } 18024 res := resTmp.([]*Webhook) 18025 fc.Result = res 18026 return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookᚄ(ctx, field.Selections, res) 18027 } 18028 18029 func (ec *executionContext) _FormationTemplate_leadingProductIDs(ctx context.Context, field graphql.CollectedField, obj *FormationTemplate) (ret graphql.Marshaler) { 18030 defer func() { 18031 if r := recover(); r != nil { 18032 ec.Error(ctx, ec.Recover(ctx, r)) 18033 ret = graphql.Null 18034 } 18035 }() 18036 fc := &graphql.FieldContext{ 18037 Object: "FormationTemplate", 18038 Field: field, 18039 Args: nil, 18040 IsMethod: false, 18041 } 18042 18043 ctx = graphql.WithFieldContext(ctx, fc) 18044 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18045 ctx = rctx // use context from middleware stack in children 18046 return obj.LeadingProductIDs, nil 18047 }) 18048 if err != nil { 18049 ec.Error(ctx, err) 18050 return graphql.Null 18051 } 18052 if resTmp == nil { 18053 return graphql.Null 18054 } 18055 res := resTmp.([]string) 18056 fc.Result = res 18057 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 18058 } 18059 18060 func (ec *executionContext) _FormationTemplate_formationConstraints(ctx context.Context, field graphql.CollectedField, obj *FormationTemplate) (ret graphql.Marshaler) { 18061 defer func() { 18062 if r := recover(); r != nil { 18063 ec.Error(ctx, ec.Recover(ctx, r)) 18064 ret = graphql.Null 18065 } 18066 }() 18067 fc := &graphql.FieldContext{ 18068 Object: "FormationTemplate", 18069 Field: field, 18070 Args: nil, 18071 IsMethod: true, 18072 } 18073 18074 ctx = graphql.WithFieldContext(ctx, fc) 18075 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18076 ctx = rctx // use context from middleware stack in children 18077 return ec.resolvers.FormationTemplate().FormationConstraints(rctx, obj) 18078 }) 18079 if err != nil { 18080 ec.Error(ctx, err) 18081 return graphql.Null 18082 } 18083 if resTmp == nil { 18084 return graphql.Null 18085 } 18086 res := resTmp.([]*FormationConstraint) 18087 fc.Result = res 18088 return ec.marshalOFormationConstraint2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraintᚄ(ctx, field.Selections, res) 18089 } 18090 18091 func (ec *executionContext) _FormationTemplatePage_data(ctx context.Context, field graphql.CollectedField, obj *FormationTemplatePage) (ret graphql.Marshaler) { 18092 defer func() { 18093 if r := recover(); r != nil { 18094 ec.Error(ctx, ec.Recover(ctx, r)) 18095 ret = graphql.Null 18096 } 18097 }() 18098 fc := &graphql.FieldContext{ 18099 Object: "FormationTemplatePage", 18100 Field: field, 18101 Args: nil, 18102 IsMethod: false, 18103 } 18104 18105 ctx = graphql.WithFieldContext(ctx, fc) 18106 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18107 ctx = rctx // use context from middleware stack in children 18108 return obj.Data, nil 18109 }) 18110 if err != nil { 18111 ec.Error(ctx, err) 18112 return graphql.Null 18113 } 18114 if resTmp == nil { 18115 if !graphql.HasFieldError(ctx, fc) { 18116 ec.Errorf(ctx, "must not be null") 18117 } 18118 return graphql.Null 18119 } 18120 res := resTmp.([]*FormationTemplate) 18121 fc.Result = res 18122 return ec.marshalNFormationTemplate2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplateᚄ(ctx, field.Selections, res) 18123 } 18124 18125 func (ec *executionContext) _FormationTemplatePage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FormationTemplatePage) (ret graphql.Marshaler) { 18126 defer func() { 18127 if r := recover(); r != nil { 18128 ec.Error(ctx, ec.Recover(ctx, r)) 18129 ret = graphql.Null 18130 } 18131 }() 18132 fc := &graphql.FieldContext{ 18133 Object: "FormationTemplatePage", 18134 Field: field, 18135 Args: nil, 18136 IsMethod: false, 18137 } 18138 18139 ctx = graphql.WithFieldContext(ctx, fc) 18140 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18141 ctx = rctx // use context from middleware stack in children 18142 return obj.PageInfo, nil 18143 }) 18144 if err != nil { 18145 ec.Error(ctx, err) 18146 return graphql.Null 18147 } 18148 if resTmp == nil { 18149 if !graphql.HasFieldError(ctx, fc) { 18150 ec.Errorf(ctx, "must not be null") 18151 } 18152 return graphql.Null 18153 } 18154 res := resTmp.(*PageInfo) 18155 fc.Result = res 18156 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 18157 } 18158 18159 func (ec *executionContext) _FormationTemplatePage_totalCount(ctx context.Context, field graphql.CollectedField, obj *FormationTemplatePage) (ret graphql.Marshaler) { 18160 defer func() { 18161 if r := recover(); r != nil { 18162 ec.Error(ctx, ec.Recover(ctx, r)) 18163 ret = graphql.Null 18164 } 18165 }() 18166 fc := &graphql.FieldContext{ 18167 Object: "FormationTemplatePage", 18168 Field: field, 18169 Args: nil, 18170 IsMethod: false, 18171 } 18172 18173 ctx = graphql.WithFieldContext(ctx, fc) 18174 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18175 ctx = rctx // use context from middleware stack in children 18176 return obj.TotalCount, nil 18177 }) 18178 if err != nil { 18179 ec.Error(ctx, err) 18180 return graphql.Null 18181 } 18182 if resTmp == nil { 18183 if !graphql.HasFieldError(ctx, fc) { 18184 ec.Errorf(ctx, "must not be null") 18185 } 18186 return graphql.Null 18187 } 18188 res := resTmp.(int) 18189 fc.Result = res 18190 return ec.marshalNInt2int(ctx, field.Selections, res) 18191 } 18192 18193 func (ec *executionContext) _HealthCheck_type(ctx context.Context, field graphql.CollectedField, obj *HealthCheck) (ret graphql.Marshaler) { 18194 defer func() { 18195 if r := recover(); r != nil { 18196 ec.Error(ctx, ec.Recover(ctx, r)) 18197 ret = graphql.Null 18198 } 18199 }() 18200 fc := &graphql.FieldContext{ 18201 Object: "HealthCheck", 18202 Field: field, 18203 Args: nil, 18204 IsMethod: false, 18205 } 18206 18207 ctx = graphql.WithFieldContext(ctx, fc) 18208 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18209 ctx = rctx // use context from middleware stack in children 18210 return obj.Type, nil 18211 }) 18212 if err != nil { 18213 ec.Error(ctx, err) 18214 return graphql.Null 18215 } 18216 if resTmp == nil { 18217 if !graphql.HasFieldError(ctx, fc) { 18218 ec.Errorf(ctx, "must not be null") 18219 } 18220 return graphql.Null 18221 } 18222 res := resTmp.(HealthCheckType) 18223 fc.Result = res 18224 return ec.marshalNHealthCheckType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckType(ctx, field.Selections, res) 18225 } 18226 18227 func (ec *executionContext) _HealthCheck_condition(ctx context.Context, field graphql.CollectedField, obj *HealthCheck) (ret graphql.Marshaler) { 18228 defer func() { 18229 if r := recover(); r != nil { 18230 ec.Error(ctx, ec.Recover(ctx, r)) 18231 ret = graphql.Null 18232 } 18233 }() 18234 fc := &graphql.FieldContext{ 18235 Object: "HealthCheck", 18236 Field: field, 18237 Args: nil, 18238 IsMethod: false, 18239 } 18240 18241 ctx = graphql.WithFieldContext(ctx, fc) 18242 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18243 ctx = rctx // use context from middleware stack in children 18244 return obj.Condition, nil 18245 }) 18246 if err != nil { 18247 ec.Error(ctx, err) 18248 return graphql.Null 18249 } 18250 if resTmp == nil { 18251 if !graphql.HasFieldError(ctx, fc) { 18252 ec.Errorf(ctx, "must not be null") 18253 } 18254 return graphql.Null 18255 } 18256 res := resTmp.(HealthCheckStatusCondition) 18257 fc.Result = res 18258 return ec.marshalNHealthCheckStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckStatusCondition(ctx, field.Selections, res) 18259 } 18260 18261 func (ec *executionContext) _HealthCheck_origin(ctx context.Context, field graphql.CollectedField, obj *HealthCheck) (ret graphql.Marshaler) { 18262 defer func() { 18263 if r := recover(); r != nil { 18264 ec.Error(ctx, ec.Recover(ctx, r)) 18265 ret = graphql.Null 18266 } 18267 }() 18268 fc := &graphql.FieldContext{ 18269 Object: "HealthCheck", 18270 Field: field, 18271 Args: nil, 18272 IsMethod: false, 18273 } 18274 18275 ctx = graphql.WithFieldContext(ctx, fc) 18276 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18277 ctx = rctx // use context from middleware stack in children 18278 return obj.Origin, nil 18279 }) 18280 if err != nil { 18281 ec.Error(ctx, err) 18282 return graphql.Null 18283 } 18284 if resTmp == nil { 18285 return graphql.Null 18286 } 18287 res := resTmp.(*string) 18288 fc.Result = res 18289 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 18290 } 18291 18292 func (ec *executionContext) _HealthCheck_message(ctx context.Context, field graphql.CollectedField, obj *HealthCheck) (ret graphql.Marshaler) { 18293 defer func() { 18294 if r := recover(); r != nil { 18295 ec.Error(ctx, ec.Recover(ctx, r)) 18296 ret = graphql.Null 18297 } 18298 }() 18299 fc := &graphql.FieldContext{ 18300 Object: "HealthCheck", 18301 Field: field, 18302 Args: nil, 18303 IsMethod: false, 18304 } 18305 18306 ctx = graphql.WithFieldContext(ctx, fc) 18307 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18308 ctx = rctx // use context from middleware stack in children 18309 return obj.Message, nil 18310 }) 18311 if err != nil { 18312 ec.Error(ctx, err) 18313 return graphql.Null 18314 } 18315 if resTmp == nil { 18316 return graphql.Null 18317 } 18318 res := resTmp.(*string) 18319 fc.Result = res 18320 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 18321 } 18322 18323 func (ec *executionContext) _HealthCheck_timestamp(ctx context.Context, field graphql.CollectedField, obj *HealthCheck) (ret graphql.Marshaler) { 18324 defer func() { 18325 if r := recover(); r != nil { 18326 ec.Error(ctx, ec.Recover(ctx, r)) 18327 ret = graphql.Null 18328 } 18329 }() 18330 fc := &graphql.FieldContext{ 18331 Object: "HealthCheck", 18332 Field: field, 18333 Args: nil, 18334 IsMethod: false, 18335 } 18336 18337 ctx = graphql.WithFieldContext(ctx, fc) 18338 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18339 ctx = rctx // use context from middleware stack in children 18340 return obj.Timestamp, nil 18341 }) 18342 if err != nil { 18343 ec.Error(ctx, err) 18344 return graphql.Null 18345 } 18346 if resTmp == nil { 18347 if !graphql.HasFieldError(ctx, fc) { 18348 ec.Errorf(ctx, "must not be null") 18349 } 18350 return graphql.Null 18351 } 18352 res := resTmp.(Timestamp) 18353 fc.Result = res 18354 return ec.marshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 18355 } 18356 18357 func (ec *executionContext) _HealthCheckPage_data(ctx context.Context, field graphql.CollectedField, obj *HealthCheckPage) (ret graphql.Marshaler) { 18358 defer func() { 18359 if r := recover(); r != nil { 18360 ec.Error(ctx, ec.Recover(ctx, r)) 18361 ret = graphql.Null 18362 } 18363 }() 18364 fc := &graphql.FieldContext{ 18365 Object: "HealthCheckPage", 18366 Field: field, 18367 Args: nil, 18368 IsMethod: false, 18369 } 18370 18371 ctx = graphql.WithFieldContext(ctx, fc) 18372 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18373 ctx = rctx // use context from middleware stack in children 18374 return obj.Data, nil 18375 }) 18376 if err != nil { 18377 ec.Error(ctx, err) 18378 return graphql.Null 18379 } 18380 if resTmp == nil { 18381 if !graphql.HasFieldError(ctx, fc) { 18382 ec.Errorf(ctx, "must not be null") 18383 } 18384 return graphql.Null 18385 } 18386 res := resTmp.([]*HealthCheck) 18387 fc.Result = res 18388 return ec.marshalNHealthCheck2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckᚄ(ctx, field.Selections, res) 18389 } 18390 18391 func (ec *executionContext) _HealthCheckPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *HealthCheckPage) (ret graphql.Marshaler) { 18392 defer func() { 18393 if r := recover(); r != nil { 18394 ec.Error(ctx, ec.Recover(ctx, r)) 18395 ret = graphql.Null 18396 } 18397 }() 18398 fc := &graphql.FieldContext{ 18399 Object: "HealthCheckPage", 18400 Field: field, 18401 Args: nil, 18402 IsMethod: false, 18403 } 18404 18405 ctx = graphql.WithFieldContext(ctx, fc) 18406 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18407 ctx = rctx // use context from middleware stack in children 18408 return obj.PageInfo, nil 18409 }) 18410 if err != nil { 18411 ec.Error(ctx, err) 18412 return graphql.Null 18413 } 18414 if resTmp == nil { 18415 if !graphql.HasFieldError(ctx, fc) { 18416 ec.Errorf(ctx, "must not be null") 18417 } 18418 return graphql.Null 18419 } 18420 res := resTmp.(*PageInfo) 18421 fc.Result = res 18422 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 18423 } 18424 18425 func (ec *executionContext) _HealthCheckPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *HealthCheckPage) (ret graphql.Marshaler) { 18426 defer func() { 18427 if r := recover(); r != nil { 18428 ec.Error(ctx, ec.Recover(ctx, r)) 18429 ret = graphql.Null 18430 } 18431 }() 18432 fc := &graphql.FieldContext{ 18433 Object: "HealthCheckPage", 18434 Field: field, 18435 Args: nil, 18436 IsMethod: false, 18437 } 18438 18439 ctx = graphql.WithFieldContext(ctx, fc) 18440 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18441 ctx = rctx // use context from middleware stack in children 18442 return obj.TotalCount, nil 18443 }) 18444 if err != nil { 18445 ec.Error(ctx, err) 18446 return graphql.Null 18447 } 18448 if resTmp == nil { 18449 if !graphql.HasFieldError(ctx, fc) { 18450 ec.Errorf(ctx, "must not be null") 18451 } 18452 return graphql.Null 18453 } 18454 res := resTmp.(int) 18455 fc.Result = res 18456 return ec.marshalNInt2int(ctx, field.Selections, res) 18457 } 18458 18459 func (ec *executionContext) _IntSysSystemAuth_id(ctx context.Context, field graphql.CollectedField, obj *IntSysSystemAuth) (ret graphql.Marshaler) { 18460 defer func() { 18461 if r := recover(); r != nil { 18462 ec.Error(ctx, ec.Recover(ctx, r)) 18463 ret = graphql.Null 18464 } 18465 }() 18466 fc := &graphql.FieldContext{ 18467 Object: "IntSysSystemAuth", 18468 Field: field, 18469 Args: nil, 18470 IsMethod: false, 18471 } 18472 18473 ctx = graphql.WithFieldContext(ctx, fc) 18474 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18475 ctx = rctx // use context from middleware stack in children 18476 return obj.ID, nil 18477 }) 18478 if err != nil { 18479 ec.Error(ctx, err) 18480 return graphql.Null 18481 } 18482 if resTmp == nil { 18483 if !graphql.HasFieldError(ctx, fc) { 18484 ec.Errorf(ctx, "must not be null") 18485 } 18486 return graphql.Null 18487 } 18488 res := resTmp.(string) 18489 fc.Result = res 18490 return ec.marshalNID2string(ctx, field.Selections, res) 18491 } 18492 18493 func (ec *executionContext) _IntSysSystemAuth_auth(ctx context.Context, field graphql.CollectedField, obj *IntSysSystemAuth) (ret graphql.Marshaler) { 18494 defer func() { 18495 if r := recover(); r != nil { 18496 ec.Error(ctx, ec.Recover(ctx, r)) 18497 ret = graphql.Null 18498 } 18499 }() 18500 fc := &graphql.FieldContext{ 18501 Object: "IntSysSystemAuth", 18502 Field: field, 18503 Args: nil, 18504 IsMethod: false, 18505 } 18506 18507 ctx = graphql.WithFieldContext(ctx, fc) 18508 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18509 directive0 := func(rctx context.Context) (interface{}, error) { 18510 ctx = rctx // use context from middleware stack in children 18511 return obj.Auth, nil 18512 } 18513 directive1 := func(ctx context.Context) (interface{}, error) { 18514 path, err := ec.unmarshalNString2string(ctx, "graphql.field.integration_system.auths") 18515 if err != nil { 18516 return nil, err 18517 } 18518 if ec.directives.Sanitize == nil { 18519 return nil, errors.New("directive sanitize is not implemented") 18520 } 18521 return ec.directives.Sanitize(ctx, obj, directive0, path) 18522 } 18523 18524 tmp, err := directive1(rctx) 18525 if err != nil { 18526 return nil, err 18527 } 18528 if tmp == nil { 18529 return nil, nil 18530 } 18531 if data, ok := tmp.(*Auth); ok { 18532 return data, nil 18533 } 18534 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Auth`, tmp) 18535 }) 18536 if err != nil { 18537 ec.Error(ctx, err) 18538 return graphql.Null 18539 } 18540 if resTmp == nil { 18541 return graphql.Null 18542 } 18543 res := resTmp.(*Auth) 18544 fc.Result = res 18545 return ec.marshalOAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuth(ctx, field.Selections, res) 18546 } 18547 18548 func (ec *executionContext) _IntSysSystemAuth_type(ctx context.Context, field graphql.CollectedField, obj *IntSysSystemAuth) (ret graphql.Marshaler) { 18549 defer func() { 18550 if r := recover(); r != nil { 18551 ec.Error(ctx, ec.Recover(ctx, r)) 18552 ret = graphql.Null 18553 } 18554 }() 18555 fc := &graphql.FieldContext{ 18556 Object: "IntSysSystemAuth", 18557 Field: field, 18558 Args: nil, 18559 IsMethod: false, 18560 } 18561 18562 ctx = graphql.WithFieldContext(ctx, fc) 18563 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18564 ctx = rctx // use context from middleware stack in children 18565 return obj.Type, nil 18566 }) 18567 if err != nil { 18568 ec.Error(ctx, err) 18569 return graphql.Null 18570 } 18571 if resTmp == nil { 18572 return graphql.Null 18573 } 18574 res := resTmp.(*SystemAuthReferenceType) 18575 fc.Result = res 18576 return ec.marshalOSystemAuthReferenceType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuthReferenceType(ctx, field.Selections, res) 18577 } 18578 18579 func (ec *executionContext) _IntSysSystemAuth_tenantId(ctx context.Context, field graphql.CollectedField, obj *IntSysSystemAuth) (ret graphql.Marshaler) { 18580 defer func() { 18581 if r := recover(); r != nil { 18582 ec.Error(ctx, ec.Recover(ctx, r)) 18583 ret = graphql.Null 18584 } 18585 }() 18586 fc := &graphql.FieldContext{ 18587 Object: "IntSysSystemAuth", 18588 Field: field, 18589 Args: nil, 18590 IsMethod: false, 18591 } 18592 18593 ctx = graphql.WithFieldContext(ctx, fc) 18594 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18595 ctx = rctx // use context from middleware stack in children 18596 return obj.TenantID, nil 18597 }) 18598 if err != nil { 18599 ec.Error(ctx, err) 18600 return graphql.Null 18601 } 18602 if resTmp == nil { 18603 return graphql.Null 18604 } 18605 res := resTmp.(*string) 18606 fc.Result = res 18607 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 18608 } 18609 18610 func (ec *executionContext) _IntSysSystemAuth_referenceObjectId(ctx context.Context, field graphql.CollectedField, obj *IntSysSystemAuth) (ret graphql.Marshaler) { 18611 defer func() { 18612 if r := recover(); r != nil { 18613 ec.Error(ctx, ec.Recover(ctx, r)) 18614 ret = graphql.Null 18615 } 18616 }() 18617 fc := &graphql.FieldContext{ 18618 Object: "IntSysSystemAuth", 18619 Field: field, 18620 Args: nil, 18621 IsMethod: false, 18622 } 18623 18624 ctx = graphql.WithFieldContext(ctx, fc) 18625 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18626 ctx = rctx // use context from middleware stack in children 18627 return obj.ReferenceObjectID, nil 18628 }) 18629 if err != nil { 18630 ec.Error(ctx, err) 18631 return graphql.Null 18632 } 18633 if resTmp == nil { 18634 return graphql.Null 18635 } 18636 res := resTmp.(*string) 18637 fc.Result = res 18638 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 18639 } 18640 18641 func (ec *executionContext) _IntegrationSystem_id(ctx context.Context, field graphql.CollectedField, obj *IntegrationSystem) (ret graphql.Marshaler) { 18642 defer func() { 18643 if r := recover(); r != nil { 18644 ec.Error(ctx, ec.Recover(ctx, r)) 18645 ret = graphql.Null 18646 } 18647 }() 18648 fc := &graphql.FieldContext{ 18649 Object: "IntegrationSystem", 18650 Field: field, 18651 Args: nil, 18652 IsMethod: false, 18653 } 18654 18655 ctx = graphql.WithFieldContext(ctx, fc) 18656 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18657 ctx = rctx // use context from middleware stack in children 18658 return obj.ID, nil 18659 }) 18660 if err != nil { 18661 ec.Error(ctx, err) 18662 return graphql.Null 18663 } 18664 if resTmp == nil { 18665 if !graphql.HasFieldError(ctx, fc) { 18666 ec.Errorf(ctx, "must not be null") 18667 } 18668 return graphql.Null 18669 } 18670 res := resTmp.(string) 18671 fc.Result = res 18672 return ec.marshalNID2string(ctx, field.Selections, res) 18673 } 18674 18675 func (ec *executionContext) _IntegrationSystem_name(ctx context.Context, field graphql.CollectedField, obj *IntegrationSystem) (ret graphql.Marshaler) { 18676 defer func() { 18677 if r := recover(); r != nil { 18678 ec.Error(ctx, ec.Recover(ctx, r)) 18679 ret = graphql.Null 18680 } 18681 }() 18682 fc := &graphql.FieldContext{ 18683 Object: "IntegrationSystem", 18684 Field: field, 18685 Args: nil, 18686 IsMethod: false, 18687 } 18688 18689 ctx = graphql.WithFieldContext(ctx, fc) 18690 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18691 ctx = rctx // use context from middleware stack in children 18692 return obj.Name, nil 18693 }) 18694 if err != nil { 18695 ec.Error(ctx, err) 18696 return graphql.Null 18697 } 18698 if resTmp == nil { 18699 if !graphql.HasFieldError(ctx, fc) { 18700 ec.Errorf(ctx, "must not be null") 18701 } 18702 return graphql.Null 18703 } 18704 res := resTmp.(string) 18705 fc.Result = res 18706 return ec.marshalNString2string(ctx, field.Selections, res) 18707 } 18708 18709 func (ec *executionContext) _IntegrationSystem_description(ctx context.Context, field graphql.CollectedField, obj *IntegrationSystem) (ret graphql.Marshaler) { 18710 defer func() { 18711 if r := recover(); r != nil { 18712 ec.Error(ctx, ec.Recover(ctx, r)) 18713 ret = graphql.Null 18714 } 18715 }() 18716 fc := &graphql.FieldContext{ 18717 Object: "IntegrationSystem", 18718 Field: field, 18719 Args: nil, 18720 IsMethod: false, 18721 } 18722 18723 ctx = graphql.WithFieldContext(ctx, fc) 18724 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18725 ctx = rctx // use context from middleware stack in children 18726 return obj.Description, nil 18727 }) 18728 if err != nil { 18729 ec.Error(ctx, err) 18730 return graphql.Null 18731 } 18732 if resTmp == nil { 18733 return graphql.Null 18734 } 18735 res := resTmp.(*string) 18736 fc.Result = res 18737 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 18738 } 18739 18740 func (ec *executionContext) _IntegrationSystem_auths(ctx context.Context, field graphql.CollectedField, obj *IntegrationSystem) (ret graphql.Marshaler) { 18741 defer func() { 18742 if r := recover(); r != nil { 18743 ec.Error(ctx, ec.Recover(ctx, r)) 18744 ret = graphql.Null 18745 } 18746 }() 18747 fc := &graphql.FieldContext{ 18748 Object: "IntegrationSystem", 18749 Field: field, 18750 Args: nil, 18751 IsMethod: true, 18752 } 18753 18754 ctx = graphql.WithFieldContext(ctx, fc) 18755 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18756 ctx = rctx // use context from middleware stack in children 18757 return ec.resolvers.IntegrationSystem().Auths(rctx, obj) 18758 }) 18759 if err != nil { 18760 ec.Error(ctx, err) 18761 return graphql.Null 18762 } 18763 if resTmp == nil { 18764 return graphql.Null 18765 } 18766 res := resTmp.([]*IntSysSystemAuth) 18767 fc.Result = res 18768 return ec.marshalOIntSysSystemAuth2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntSysSystemAuthᚄ(ctx, field.Selections, res) 18769 } 18770 18771 func (ec *executionContext) _IntegrationSystemPage_data(ctx context.Context, field graphql.CollectedField, obj *IntegrationSystemPage) (ret graphql.Marshaler) { 18772 defer func() { 18773 if r := recover(); r != nil { 18774 ec.Error(ctx, ec.Recover(ctx, r)) 18775 ret = graphql.Null 18776 } 18777 }() 18778 fc := &graphql.FieldContext{ 18779 Object: "IntegrationSystemPage", 18780 Field: field, 18781 Args: nil, 18782 IsMethod: false, 18783 } 18784 18785 ctx = graphql.WithFieldContext(ctx, fc) 18786 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18787 ctx = rctx // use context from middleware stack in children 18788 return obj.Data, nil 18789 }) 18790 if err != nil { 18791 ec.Error(ctx, err) 18792 return graphql.Null 18793 } 18794 if resTmp == nil { 18795 if !graphql.HasFieldError(ctx, fc) { 18796 ec.Errorf(ctx, "must not be null") 18797 } 18798 return graphql.Null 18799 } 18800 res := resTmp.([]*IntegrationSystem) 18801 fc.Result = res 18802 return ec.marshalNIntegrationSystem2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystemᚄ(ctx, field.Selections, res) 18803 } 18804 18805 func (ec *executionContext) _IntegrationSystemPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *IntegrationSystemPage) (ret graphql.Marshaler) { 18806 defer func() { 18807 if r := recover(); r != nil { 18808 ec.Error(ctx, ec.Recover(ctx, r)) 18809 ret = graphql.Null 18810 } 18811 }() 18812 fc := &graphql.FieldContext{ 18813 Object: "IntegrationSystemPage", 18814 Field: field, 18815 Args: nil, 18816 IsMethod: false, 18817 } 18818 18819 ctx = graphql.WithFieldContext(ctx, fc) 18820 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18821 ctx = rctx // use context from middleware stack in children 18822 return obj.PageInfo, nil 18823 }) 18824 if err != nil { 18825 ec.Error(ctx, err) 18826 return graphql.Null 18827 } 18828 if resTmp == nil { 18829 if !graphql.HasFieldError(ctx, fc) { 18830 ec.Errorf(ctx, "must not be null") 18831 } 18832 return graphql.Null 18833 } 18834 res := resTmp.(*PageInfo) 18835 fc.Result = res 18836 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 18837 } 18838 18839 func (ec *executionContext) _IntegrationSystemPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *IntegrationSystemPage) (ret graphql.Marshaler) { 18840 defer func() { 18841 if r := recover(); r != nil { 18842 ec.Error(ctx, ec.Recover(ctx, r)) 18843 ret = graphql.Null 18844 } 18845 }() 18846 fc := &graphql.FieldContext{ 18847 Object: "IntegrationSystemPage", 18848 Field: field, 18849 Args: nil, 18850 IsMethod: false, 18851 } 18852 18853 ctx = graphql.WithFieldContext(ctx, fc) 18854 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18855 ctx = rctx // use context from middleware stack in children 18856 return obj.TotalCount, nil 18857 }) 18858 if err != nil { 18859 ec.Error(ctx, err) 18860 return graphql.Null 18861 } 18862 if resTmp == nil { 18863 if !graphql.HasFieldError(ctx, fc) { 18864 ec.Errorf(ctx, "must not be null") 18865 } 18866 return graphql.Null 18867 } 18868 res := resTmp.(int) 18869 fc.Result = res 18870 return ec.marshalNInt2int(ctx, field.Selections, res) 18871 } 18872 18873 func (ec *executionContext) _Label_key(ctx context.Context, field graphql.CollectedField, obj *Label) (ret graphql.Marshaler) { 18874 defer func() { 18875 if r := recover(); r != nil { 18876 ec.Error(ctx, ec.Recover(ctx, r)) 18877 ret = graphql.Null 18878 } 18879 }() 18880 fc := &graphql.FieldContext{ 18881 Object: "Label", 18882 Field: field, 18883 Args: nil, 18884 IsMethod: false, 18885 } 18886 18887 ctx = graphql.WithFieldContext(ctx, fc) 18888 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18889 ctx = rctx // use context from middleware stack in children 18890 return obj.Key, nil 18891 }) 18892 if err != nil { 18893 ec.Error(ctx, err) 18894 return graphql.Null 18895 } 18896 if resTmp == nil { 18897 if !graphql.HasFieldError(ctx, fc) { 18898 ec.Errorf(ctx, "must not be null") 18899 } 18900 return graphql.Null 18901 } 18902 res := resTmp.(string) 18903 fc.Result = res 18904 return ec.marshalNString2string(ctx, field.Selections, res) 18905 } 18906 18907 func (ec *executionContext) _Label_value(ctx context.Context, field graphql.CollectedField, obj *Label) (ret graphql.Marshaler) { 18908 defer func() { 18909 if r := recover(); r != nil { 18910 ec.Error(ctx, ec.Recover(ctx, r)) 18911 ret = graphql.Null 18912 } 18913 }() 18914 fc := &graphql.FieldContext{ 18915 Object: "Label", 18916 Field: field, 18917 Args: nil, 18918 IsMethod: false, 18919 } 18920 18921 ctx = graphql.WithFieldContext(ctx, fc) 18922 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18923 ctx = rctx // use context from middleware stack in children 18924 return obj.Value, nil 18925 }) 18926 if err != nil { 18927 ec.Error(ctx, err) 18928 return graphql.Null 18929 } 18930 if resTmp == nil { 18931 if !graphql.HasFieldError(ctx, fc) { 18932 ec.Errorf(ctx, "must not be null") 18933 } 18934 return graphql.Null 18935 } 18936 res := resTmp.(interface{}) 18937 fc.Result = res 18938 return ec.marshalNAny2interface(ctx, field.Selections, res) 18939 } 18940 18941 func (ec *executionContext) _LabelDefinition_key(ctx context.Context, field graphql.CollectedField, obj *LabelDefinition) (ret graphql.Marshaler) { 18942 defer func() { 18943 if r := recover(); r != nil { 18944 ec.Error(ctx, ec.Recover(ctx, r)) 18945 ret = graphql.Null 18946 } 18947 }() 18948 fc := &graphql.FieldContext{ 18949 Object: "LabelDefinition", 18950 Field: field, 18951 Args: nil, 18952 IsMethod: false, 18953 } 18954 18955 ctx = graphql.WithFieldContext(ctx, fc) 18956 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18957 ctx = rctx // use context from middleware stack in children 18958 return obj.Key, nil 18959 }) 18960 if err != nil { 18961 ec.Error(ctx, err) 18962 return graphql.Null 18963 } 18964 if resTmp == nil { 18965 if !graphql.HasFieldError(ctx, fc) { 18966 ec.Errorf(ctx, "must not be null") 18967 } 18968 return graphql.Null 18969 } 18970 res := resTmp.(string) 18971 fc.Result = res 18972 return ec.marshalNString2string(ctx, field.Selections, res) 18973 } 18974 18975 func (ec *executionContext) _LabelDefinition_schema(ctx context.Context, field graphql.CollectedField, obj *LabelDefinition) (ret graphql.Marshaler) { 18976 defer func() { 18977 if r := recover(); r != nil { 18978 ec.Error(ctx, ec.Recover(ctx, r)) 18979 ret = graphql.Null 18980 } 18981 }() 18982 fc := &graphql.FieldContext{ 18983 Object: "LabelDefinition", 18984 Field: field, 18985 Args: nil, 18986 IsMethod: false, 18987 } 18988 18989 ctx = graphql.WithFieldContext(ctx, fc) 18990 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 18991 ctx = rctx // use context from middleware stack in children 18992 return obj.Schema, nil 18993 }) 18994 if err != nil { 18995 ec.Error(ctx, err) 18996 return graphql.Null 18997 } 18998 if resTmp == nil { 18999 return graphql.Null 19000 } 19001 res := resTmp.(*JSONSchema) 19002 fc.Result = res 19003 return ec.marshalOJSONSchema2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSONSchema(ctx, field.Selections, res) 19004 } 19005 19006 func (ec *executionContext) _Mutation_registerApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19007 defer func() { 19008 if r := recover(); r != nil { 19009 ec.Error(ctx, ec.Recover(ctx, r)) 19010 ret = graphql.Null 19011 } 19012 }() 19013 fc := &graphql.FieldContext{ 19014 Object: "Mutation", 19015 Field: field, 19016 Args: nil, 19017 IsMethod: true, 19018 } 19019 19020 ctx = graphql.WithFieldContext(ctx, fc) 19021 rawArgs := field.ArgumentMap(ec.Variables) 19022 args, err := ec.field_Mutation_registerApplication_args(ctx, rawArgs) 19023 if err != nil { 19024 ec.Error(ctx, err) 19025 return graphql.Null 19026 } 19027 fc.Args = args 19028 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19029 directive0 := func(rctx context.Context) (interface{}, error) { 19030 ctx = rctx // use context from middleware stack in children 19031 return ec.resolvers.Mutation().RegisterApplication(rctx, args["in"].(ApplicationRegisterInput), args["mode"].(*OperationMode)) 19032 } 19033 directive1 := func(ctx context.Context) (interface{}, error) { 19034 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.registerApplication") 19035 if err != nil { 19036 return nil, err 19037 } 19038 if ec.directives.HasScopes == nil { 19039 return nil, errors.New("directive hasScopes is not implemented") 19040 } 19041 return ec.directives.HasScopes(ctx, nil, directive0, path) 19042 } 19043 directive2 := func(ctx context.Context) (interface{}, error) { 19044 operationType, err := ec.unmarshalNOperationType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationType(ctx, "CREATE") 19045 if err != nil { 19046 return nil, err 19047 } 19048 webhookType, err := ec.unmarshalOWebhookType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx, "REGISTER_APPLICATION") 19049 if err != nil { 19050 return nil, err 19051 } 19052 if ec.directives.Async == nil { 19053 return nil, errors.New("directive async is not implemented") 19054 } 19055 return ec.directives.Async(ctx, nil, directive1, operationType, webhookType, nil) 19056 } 19057 directive3 := func(ctx context.Context) (interface{}, error) { 19058 eventType, err := ec.unmarshalNEventType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventType(ctx, "NEW_APPLICATION") 19059 if err != nil { 19060 return nil, err 19061 } 19062 if ec.directives.SynchronizeApplicationTenancy == nil { 19063 return nil, errors.New("directive synchronizeApplicationTenancy is not implemented") 19064 } 19065 return ec.directives.SynchronizeApplicationTenancy(ctx, nil, directive2, eventType) 19066 } 19067 19068 tmp, err := directive3(rctx) 19069 if err != nil { 19070 return nil, err 19071 } 19072 if tmp == nil { 19073 return nil, nil 19074 } 19075 if data, ok := tmp.(*Application); ok { 19076 return data, nil 19077 } 19078 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Application`, tmp) 19079 }) 19080 if err != nil { 19081 ec.Error(ctx, err) 19082 return graphql.Null 19083 } 19084 if resTmp == nil { 19085 if !graphql.HasFieldError(ctx, fc) { 19086 ec.Errorf(ctx, "must not be null") 19087 } 19088 return graphql.Null 19089 } 19090 res := resTmp.(*Application) 19091 fc.Result = res 19092 return ec.marshalNApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx, field.Selections, res) 19093 } 19094 19095 func (ec *executionContext) _Mutation_updateApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19096 defer func() { 19097 if r := recover(); r != nil { 19098 ec.Error(ctx, ec.Recover(ctx, r)) 19099 ret = graphql.Null 19100 } 19101 }() 19102 fc := &graphql.FieldContext{ 19103 Object: "Mutation", 19104 Field: field, 19105 Args: nil, 19106 IsMethod: true, 19107 } 19108 19109 ctx = graphql.WithFieldContext(ctx, fc) 19110 rawArgs := field.ArgumentMap(ec.Variables) 19111 args, err := ec.field_Mutation_updateApplication_args(ctx, rawArgs) 19112 if err != nil { 19113 ec.Error(ctx, err) 19114 return graphql.Null 19115 } 19116 fc.Args = args 19117 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19118 directive0 := func(rctx context.Context) (interface{}, error) { 19119 ctx = rctx // use context from middleware stack in children 19120 return ec.resolvers.Mutation().UpdateApplication(rctx, args["id"].(string), args["in"].(ApplicationUpdateInput)) 19121 } 19122 directive1 := func(ctx context.Context) (interface{}, error) { 19123 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateApplication") 19124 if err != nil { 19125 return nil, err 19126 } 19127 if ec.directives.HasScopes == nil { 19128 return nil, errors.New("directive hasScopes is not implemented") 19129 } 19130 return ec.directives.HasScopes(ctx, nil, directive0, path) 19131 } 19132 directive2 := func(ctx context.Context) (interface{}, error) { 19133 operationType, err := ec.unmarshalNOperationType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationType(ctx, "UPDATE") 19134 if err != nil { 19135 return nil, err 19136 } 19137 idField, err := ec.unmarshalOString2ᚖstring(ctx, "id") 19138 if err != nil { 19139 return nil, err 19140 } 19141 if ec.directives.Async == nil { 19142 return nil, errors.New("directive async is not implemented") 19143 } 19144 return ec.directives.Async(ctx, nil, directive1, operationType, nil, idField) 19145 } 19146 19147 tmp, err := directive2(rctx) 19148 if err != nil { 19149 return nil, err 19150 } 19151 if tmp == nil { 19152 return nil, nil 19153 } 19154 if data, ok := tmp.(*Application); ok { 19155 return data, nil 19156 } 19157 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Application`, tmp) 19158 }) 19159 if err != nil { 19160 ec.Error(ctx, err) 19161 return graphql.Null 19162 } 19163 if resTmp == nil { 19164 if !graphql.HasFieldError(ctx, fc) { 19165 ec.Errorf(ctx, "must not be null") 19166 } 19167 return graphql.Null 19168 } 19169 res := resTmp.(*Application) 19170 fc.Result = res 19171 return ec.marshalNApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx, field.Selections, res) 19172 } 19173 19174 func (ec *executionContext) _Mutation_unregisterApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19175 defer func() { 19176 if r := recover(); r != nil { 19177 ec.Error(ctx, ec.Recover(ctx, r)) 19178 ret = graphql.Null 19179 } 19180 }() 19181 fc := &graphql.FieldContext{ 19182 Object: "Mutation", 19183 Field: field, 19184 Args: nil, 19185 IsMethod: true, 19186 } 19187 19188 ctx = graphql.WithFieldContext(ctx, fc) 19189 rawArgs := field.ArgumentMap(ec.Variables) 19190 args, err := ec.field_Mutation_unregisterApplication_args(ctx, rawArgs) 19191 if err != nil { 19192 ec.Error(ctx, err) 19193 return graphql.Null 19194 } 19195 fc.Args = args 19196 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19197 directive0 := func(rctx context.Context) (interface{}, error) { 19198 ctx = rctx // use context from middleware stack in children 19199 return ec.resolvers.Mutation().UnregisterApplication(rctx, args["id"].(string), args["mode"].(*OperationMode)) 19200 } 19201 directive1 := func(ctx context.Context) (interface{}, error) { 19202 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.unregisterApplication") 19203 if err != nil { 19204 return nil, err 19205 } 19206 if ec.directives.HasScopes == nil { 19207 return nil, errors.New("directive hasScopes is not implemented") 19208 } 19209 return ec.directives.HasScopes(ctx, nil, directive0, path) 19210 } 19211 directive2 := func(ctx context.Context) (interface{}, error) { 19212 operationType, err := ec.unmarshalNOperationType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationType(ctx, "DELETE") 19213 if err != nil { 19214 return nil, err 19215 } 19216 webhookType, err := ec.unmarshalOWebhookType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx, "UNREGISTER_APPLICATION") 19217 if err != nil { 19218 return nil, err 19219 } 19220 idField, err := ec.unmarshalOString2ᚖstring(ctx, "id") 19221 if err != nil { 19222 return nil, err 19223 } 19224 if ec.directives.Async == nil { 19225 return nil, errors.New("directive async is not implemented") 19226 } 19227 return ec.directives.Async(ctx, nil, directive1, operationType, webhookType, idField) 19228 } 19229 19230 tmp, err := directive2(rctx) 19231 if err != nil { 19232 return nil, err 19233 } 19234 if tmp == nil { 19235 return nil, nil 19236 } 19237 if data, ok := tmp.(*Application); ok { 19238 return data, nil 19239 } 19240 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Application`, tmp) 19241 }) 19242 if err != nil { 19243 ec.Error(ctx, err) 19244 return graphql.Null 19245 } 19246 if resTmp == nil { 19247 if !graphql.HasFieldError(ctx, fc) { 19248 ec.Errorf(ctx, "must not be null") 19249 } 19250 return graphql.Null 19251 } 19252 res := resTmp.(*Application) 19253 fc.Result = res 19254 return ec.marshalNApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx, field.Selections, res) 19255 } 19256 19257 func (ec *executionContext) _Mutation_unpairApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19258 defer func() { 19259 if r := recover(); r != nil { 19260 ec.Error(ctx, ec.Recover(ctx, r)) 19261 ret = graphql.Null 19262 } 19263 }() 19264 fc := &graphql.FieldContext{ 19265 Object: "Mutation", 19266 Field: field, 19267 Args: nil, 19268 IsMethod: true, 19269 } 19270 19271 ctx = graphql.WithFieldContext(ctx, fc) 19272 rawArgs := field.ArgumentMap(ec.Variables) 19273 args, err := ec.field_Mutation_unpairApplication_args(ctx, rawArgs) 19274 if err != nil { 19275 ec.Error(ctx, err) 19276 return graphql.Null 19277 } 19278 fc.Args = args 19279 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19280 directive0 := func(rctx context.Context) (interface{}, error) { 19281 ctx = rctx // use context from middleware stack in children 19282 return ec.resolvers.Mutation().UnpairApplication(rctx, args["id"].(string), args["mode"].(*OperationMode)) 19283 } 19284 directive1 := func(ctx context.Context) (interface{}, error) { 19285 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.unpairApplication") 19286 if err != nil { 19287 return nil, err 19288 } 19289 if ec.directives.HasScopes == nil { 19290 return nil, errors.New("directive hasScopes is not implemented") 19291 } 19292 return ec.directives.HasScopes(ctx, nil, directive0, path) 19293 } 19294 directive2 := func(ctx context.Context) (interface{}, error) { 19295 operationType, err := ec.unmarshalNOperationType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationType(ctx, "UPDATE") 19296 if err != nil { 19297 return nil, err 19298 } 19299 webhookType, err := ec.unmarshalOWebhookType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx, "UNREGISTER_APPLICATION") 19300 if err != nil { 19301 return nil, err 19302 } 19303 idField, err := ec.unmarshalOString2ᚖstring(ctx, "id") 19304 if err != nil { 19305 return nil, err 19306 } 19307 if ec.directives.Async == nil { 19308 return nil, errors.New("directive async is not implemented") 19309 } 19310 return ec.directives.Async(ctx, nil, directive1, operationType, webhookType, idField) 19311 } 19312 19313 tmp, err := directive2(rctx) 19314 if err != nil { 19315 return nil, err 19316 } 19317 if tmp == nil { 19318 return nil, nil 19319 } 19320 if data, ok := tmp.(*Application); ok { 19321 return data, nil 19322 } 19323 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Application`, tmp) 19324 }) 19325 if err != nil { 19326 ec.Error(ctx, err) 19327 return graphql.Null 19328 } 19329 if resTmp == nil { 19330 if !graphql.HasFieldError(ctx, fc) { 19331 ec.Errorf(ctx, "must not be null") 19332 } 19333 return graphql.Null 19334 } 19335 res := resTmp.(*Application) 19336 fc.Result = res 19337 return ec.marshalNApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx, field.Selections, res) 19338 } 19339 19340 func (ec *executionContext) _Mutation_createApplicationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19341 defer func() { 19342 if r := recover(); r != nil { 19343 ec.Error(ctx, ec.Recover(ctx, r)) 19344 ret = graphql.Null 19345 } 19346 }() 19347 fc := &graphql.FieldContext{ 19348 Object: "Mutation", 19349 Field: field, 19350 Args: nil, 19351 IsMethod: true, 19352 } 19353 19354 ctx = graphql.WithFieldContext(ctx, fc) 19355 rawArgs := field.ArgumentMap(ec.Variables) 19356 args, err := ec.field_Mutation_createApplicationTemplate_args(ctx, rawArgs) 19357 if err != nil { 19358 ec.Error(ctx, err) 19359 return graphql.Null 19360 } 19361 fc.Args = args 19362 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19363 directive0 := func(rctx context.Context) (interface{}, error) { 19364 ctx = rctx // use context from middleware stack in children 19365 return ec.resolvers.Mutation().CreateApplicationTemplate(rctx, args["in"].(ApplicationTemplateInput)) 19366 } 19367 directive1 := func(ctx context.Context) (interface{}, error) { 19368 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.createApplicationTemplate") 19369 if err != nil { 19370 return nil, err 19371 } 19372 if ec.directives.HasScopes == nil { 19373 return nil, errors.New("directive hasScopes is not implemented") 19374 } 19375 return ec.directives.HasScopes(ctx, nil, directive0, path) 19376 } 19377 19378 tmp, err := directive1(rctx) 19379 if err != nil { 19380 return nil, err 19381 } 19382 if tmp == nil { 19383 return nil, nil 19384 } 19385 if data, ok := tmp.(*ApplicationTemplate); ok { 19386 return data, nil 19387 } 19388 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationTemplate`, tmp) 19389 }) 19390 if err != nil { 19391 ec.Error(ctx, err) 19392 return graphql.Null 19393 } 19394 if resTmp == nil { 19395 if !graphql.HasFieldError(ctx, fc) { 19396 ec.Errorf(ctx, "must not be null") 19397 } 19398 return graphql.Null 19399 } 19400 res := resTmp.(*ApplicationTemplate) 19401 fc.Result = res 19402 return ec.marshalNApplicationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplate(ctx, field.Selections, res) 19403 } 19404 19405 func (ec *executionContext) _Mutation_registerApplicationFromTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19406 defer func() { 19407 if r := recover(); r != nil { 19408 ec.Error(ctx, ec.Recover(ctx, r)) 19409 ret = graphql.Null 19410 } 19411 }() 19412 fc := &graphql.FieldContext{ 19413 Object: "Mutation", 19414 Field: field, 19415 Args: nil, 19416 IsMethod: true, 19417 } 19418 19419 ctx = graphql.WithFieldContext(ctx, fc) 19420 rawArgs := field.ArgumentMap(ec.Variables) 19421 args, err := ec.field_Mutation_registerApplicationFromTemplate_args(ctx, rawArgs) 19422 if err != nil { 19423 ec.Error(ctx, err) 19424 return graphql.Null 19425 } 19426 fc.Args = args 19427 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19428 directive0 := func(rctx context.Context) (interface{}, error) { 19429 ctx = rctx // use context from middleware stack in children 19430 return ec.resolvers.Mutation().RegisterApplicationFromTemplate(rctx, args["in"].(ApplicationFromTemplateInput)) 19431 } 19432 directive1 := func(ctx context.Context) (interface{}, error) { 19433 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.registerApplicationFromTemplate") 19434 if err != nil { 19435 return nil, err 19436 } 19437 if ec.directives.HasScopes == nil { 19438 return nil, errors.New("directive hasScopes is not implemented") 19439 } 19440 return ec.directives.HasScopes(ctx, nil, directive0, path) 19441 } 19442 directive2 := func(ctx context.Context) (interface{}, error) { 19443 eventType, err := ec.unmarshalNEventType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventType(ctx, "NEW_APPLICATION") 19444 if err != nil { 19445 return nil, err 19446 } 19447 if ec.directives.SynchronizeApplicationTenancy == nil { 19448 return nil, errors.New("directive synchronizeApplicationTenancy is not implemented") 19449 } 19450 return ec.directives.SynchronizeApplicationTenancy(ctx, nil, directive1, eventType) 19451 } 19452 19453 tmp, err := directive2(rctx) 19454 if err != nil { 19455 return nil, err 19456 } 19457 if tmp == nil { 19458 return nil, nil 19459 } 19460 if data, ok := tmp.(*Application); ok { 19461 return data, nil 19462 } 19463 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Application`, tmp) 19464 }) 19465 if err != nil { 19466 ec.Error(ctx, err) 19467 return graphql.Null 19468 } 19469 if resTmp == nil { 19470 if !graphql.HasFieldError(ctx, fc) { 19471 ec.Errorf(ctx, "must not be null") 19472 } 19473 return graphql.Null 19474 } 19475 res := resTmp.(*Application) 19476 fc.Result = res 19477 return ec.marshalNApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx, field.Selections, res) 19478 } 19479 19480 func (ec *executionContext) _Mutation_updateApplicationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19481 defer func() { 19482 if r := recover(); r != nil { 19483 ec.Error(ctx, ec.Recover(ctx, r)) 19484 ret = graphql.Null 19485 } 19486 }() 19487 fc := &graphql.FieldContext{ 19488 Object: "Mutation", 19489 Field: field, 19490 Args: nil, 19491 IsMethod: true, 19492 } 19493 19494 ctx = graphql.WithFieldContext(ctx, fc) 19495 rawArgs := field.ArgumentMap(ec.Variables) 19496 args, err := ec.field_Mutation_updateApplicationTemplate_args(ctx, rawArgs) 19497 if err != nil { 19498 ec.Error(ctx, err) 19499 return graphql.Null 19500 } 19501 fc.Args = args 19502 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19503 directive0 := func(rctx context.Context) (interface{}, error) { 19504 ctx = rctx // use context from middleware stack in children 19505 return ec.resolvers.Mutation().UpdateApplicationTemplate(rctx, args["id"].(string), args["in"].(ApplicationTemplateUpdateInput)) 19506 } 19507 directive1 := func(ctx context.Context) (interface{}, error) { 19508 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateApplicationTemplate") 19509 if err != nil { 19510 return nil, err 19511 } 19512 if ec.directives.HasScopes == nil { 19513 return nil, errors.New("directive hasScopes is not implemented") 19514 } 19515 return ec.directives.HasScopes(ctx, nil, directive0, path) 19516 } 19517 19518 tmp, err := directive1(rctx) 19519 if err != nil { 19520 return nil, err 19521 } 19522 if tmp == nil { 19523 return nil, nil 19524 } 19525 if data, ok := tmp.(*ApplicationTemplate); ok { 19526 return data, nil 19527 } 19528 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationTemplate`, tmp) 19529 }) 19530 if err != nil { 19531 ec.Error(ctx, err) 19532 return graphql.Null 19533 } 19534 if resTmp == nil { 19535 if !graphql.HasFieldError(ctx, fc) { 19536 ec.Errorf(ctx, "must not be null") 19537 } 19538 return graphql.Null 19539 } 19540 res := resTmp.(*ApplicationTemplate) 19541 fc.Result = res 19542 return ec.marshalNApplicationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplate(ctx, field.Selections, res) 19543 } 19544 19545 func (ec *executionContext) _Mutation_deleteApplicationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19546 defer func() { 19547 if r := recover(); r != nil { 19548 ec.Error(ctx, ec.Recover(ctx, r)) 19549 ret = graphql.Null 19550 } 19551 }() 19552 fc := &graphql.FieldContext{ 19553 Object: "Mutation", 19554 Field: field, 19555 Args: nil, 19556 IsMethod: true, 19557 } 19558 19559 ctx = graphql.WithFieldContext(ctx, fc) 19560 rawArgs := field.ArgumentMap(ec.Variables) 19561 args, err := ec.field_Mutation_deleteApplicationTemplate_args(ctx, rawArgs) 19562 if err != nil { 19563 ec.Error(ctx, err) 19564 return graphql.Null 19565 } 19566 fc.Args = args 19567 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19568 directive0 := func(rctx context.Context) (interface{}, error) { 19569 ctx = rctx // use context from middleware stack in children 19570 return ec.resolvers.Mutation().DeleteApplicationTemplate(rctx, args["id"].(string)) 19571 } 19572 directive1 := func(ctx context.Context) (interface{}, error) { 19573 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteApplicationTemplate") 19574 if err != nil { 19575 return nil, err 19576 } 19577 if ec.directives.HasScopes == nil { 19578 return nil, errors.New("directive hasScopes is not implemented") 19579 } 19580 return ec.directives.HasScopes(ctx, nil, directive0, path) 19581 } 19582 19583 tmp, err := directive1(rctx) 19584 if err != nil { 19585 return nil, err 19586 } 19587 if tmp == nil { 19588 return nil, nil 19589 } 19590 if data, ok := tmp.(*ApplicationTemplate); ok { 19591 return data, nil 19592 } 19593 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationTemplate`, tmp) 19594 }) 19595 if err != nil { 19596 ec.Error(ctx, err) 19597 return graphql.Null 19598 } 19599 if resTmp == nil { 19600 if !graphql.HasFieldError(ctx, fc) { 19601 ec.Errorf(ctx, "must not be null") 19602 } 19603 return graphql.Null 19604 } 19605 res := resTmp.(*ApplicationTemplate) 19606 fc.Result = res 19607 return ec.marshalNApplicationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplate(ctx, field.Selections, res) 19608 } 19609 19610 func (ec *executionContext) _Mutation_mergeApplications(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19611 defer func() { 19612 if r := recover(); r != nil { 19613 ec.Error(ctx, ec.Recover(ctx, r)) 19614 ret = graphql.Null 19615 } 19616 }() 19617 fc := &graphql.FieldContext{ 19618 Object: "Mutation", 19619 Field: field, 19620 Args: nil, 19621 IsMethod: true, 19622 } 19623 19624 ctx = graphql.WithFieldContext(ctx, fc) 19625 rawArgs := field.ArgumentMap(ec.Variables) 19626 args, err := ec.field_Mutation_mergeApplications_args(ctx, rawArgs) 19627 if err != nil { 19628 ec.Error(ctx, err) 19629 return graphql.Null 19630 } 19631 fc.Args = args 19632 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19633 directive0 := func(rctx context.Context) (interface{}, error) { 19634 ctx = rctx // use context from middleware stack in children 19635 return ec.resolvers.Mutation().MergeApplications(rctx, args["destinationID"].(string), args["sourceID"].(string)) 19636 } 19637 directive1 := func(ctx context.Context) (interface{}, error) { 19638 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.mergeApplications") 19639 if err != nil { 19640 return nil, err 19641 } 19642 if ec.directives.HasScopes == nil { 19643 return nil, errors.New("directive hasScopes is not implemented") 19644 } 19645 return ec.directives.HasScopes(ctx, nil, directive0, path) 19646 } 19647 19648 tmp, err := directive1(rctx) 19649 if err != nil { 19650 return nil, err 19651 } 19652 if tmp == nil { 19653 return nil, nil 19654 } 19655 if data, ok := tmp.(*Application); ok { 19656 return data, nil 19657 } 19658 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Application`, tmp) 19659 }) 19660 if err != nil { 19661 ec.Error(ctx, err) 19662 return graphql.Null 19663 } 19664 if resTmp == nil { 19665 if !graphql.HasFieldError(ctx, fc) { 19666 ec.Errorf(ctx, "must not be null") 19667 } 19668 return graphql.Null 19669 } 19670 res := resTmp.(*Application) 19671 fc.Result = res 19672 return ec.marshalNApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx, field.Selections, res) 19673 } 19674 19675 func (ec *executionContext) _Mutation_registerRuntime(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19676 defer func() { 19677 if r := recover(); r != nil { 19678 ec.Error(ctx, ec.Recover(ctx, r)) 19679 ret = graphql.Null 19680 } 19681 }() 19682 fc := &graphql.FieldContext{ 19683 Object: "Mutation", 19684 Field: field, 19685 Args: nil, 19686 IsMethod: true, 19687 } 19688 19689 ctx = graphql.WithFieldContext(ctx, fc) 19690 rawArgs := field.ArgumentMap(ec.Variables) 19691 args, err := ec.field_Mutation_registerRuntime_args(ctx, rawArgs) 19692 if err != nil { 19693 ec.Error(ctx, err) 19694 return graphql.Null 19695 } 19696 fc.Args = args 19697 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19698 directive0 := func(rctx context.Context) (interface{}, error) { 19699 ctx = rctx // use context from middleware stack in children 19700 return ec.resolvers.Mutation().RegisterRuntime(rctx, args["in"].(RuntimeRegisterInput)) 19701 } 19702 directive1 := func(ctx context.Context) (interface{}, error) { 19703 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.registerRuntime") 19704 if err != nil { 19705 return nil, err 19706 } 19707 if ec.directives.HasScopes == nil { 19708 return nil, errors.New("directive hasScopes is not implemented") 19709 } 19710 return ec.directives.HasScopes(ctx, nil, directive0, path) 19711 } 19712 19713 tmp, err := directive1(rctx) 19714 if err != nil { 19715 return nil, err 19716 } 19717 if tmp == nil { 19718 return nil, nil 19719 } 19720 if data, ok := tmp.(*Runtime); ok { 19721 return data, nil 19722 } 19723 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Runtime`, tmp) 19724 }) 19725 if err != nil { 19726 ec.Error(ctx, err) 19727 return graphql.Null 19728 } 19729 if resTmp == nil { 19730 if !graphql.HasFieldError(ctx, fc) { 19731 ec.Errorf(ctx, "must not be null") 19732 } 19733 return graphql.Null 19734 } 19735 res := resTmp.(*Runtime) 19736 fc.Result = res 19737 return ec.marshalNRuntime2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntime(ctx, field.Selections, res) 19738 } 19739 19740 func (ec *executionContext) _Mutation_updateRuntime(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19741 defer func() { 19742 if r := recover(); r != nil { 19743 ec.Error(ctx, ec.Recover(ctx, r)) 19744 ret = graphql.Null 19745 } 19746 }() 19747 fc := &graphql.FieldContext{ 19748 Object: "Mutation", 19749 Field: field, 19750 Args: nil, 19751 IsMethod: true, 19752 } 19753 19754 ctx = graphql.WithFieldContext(ctx, fc) 19755 rawArgs := field.ArgumentMap(ec.Variables) 19756 args, err := ec.field_Mutation_updateRuntime_args(ctx, rawArgs) 19757 if err != nil { 19758 ec.Error(ctx, err) 19759 return graphql.Null 19760 } 19761 fc.Args = args 19762 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19763 directive0 := func(rctx context.Context) (interface{}, error) { 19764 ctx = rctx // use context from middleware stack in children 19765 return ec.resolvers.Mutation().UpdateRuntime(rctx, args["id"].(string), args["in"].(RuntimeUpdateInput)) 19766 } 19767 directive1 := func(ctx context.Context) (interface{}, error) { 19768 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateRuntime") 19769 if err != nil { 19770 return nil, err 19771 } 19772 if ec.directives.HasScopes == nil { 19773 return nil, errors.New("directive hasScopes is not implemented") 19774 } 19775 return ec.directives.HasScopes(ctx, nil, directive0, path) 19776 } 19777 19778 tmp, err := directive1(rctx) 19779 if err != nil { 19780 return nil, err 19781 } 19782 if tmp == nil { 19783 return nil, nil 19784 } 19785 if data, ok := tmp.(*Runtime); ok { 19786 return data, nil 19787 } 19788 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Runtime`, tmp) 19789 }) 19790 if err != nil { 19791 ec.Error(ctx, err) 19792 return graphql.Null 19793 } 19794 if resTmp == nil { 19795 if !graphql.HasFieldError(ctx, fc) { 19796 ec.Errorf(ctx, "must not be null") 19797 } 19798 return graphql.Null 19799 } 19800 res := resTmp.(*Runtime) 19801 fc.Result = res 19802 return ec.marshalNRuntime2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntime(ctx, field.Selections, res) 19803 } 19804 19805 func (ec *executionContext) _Mutation_unregisterRuntime(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19806 defer func() { 19807 if r := recover(); r != nil { 19808 ec.Error(ctx, ec.Recover(ctx, r)) 19809 ret = graphql.Null 19810 } 19811 }() 19812 fc := &graphql.FieldContext{ 19813 Object: "Mutation", 19814 Field: field, 19815 Args: nil, 19816 IsMethod: true, 19817 } 19818 19819 ctx = graphql.WithFieldContext(ctx, fc) 19820 rawArgs := field.ArgumentMap(ec.Variables) 19821 args, err := ec.field_Mutation_unregisterRuntime_args(ctx, rawArgs) 19822 if err != nil { 19823 ec.Error(ctx, err) 19824 return graphql.Null 19825 } 19826 fc.Args = args 19827 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19828 directive0 := func(rctx context.Context) (interface{}, error) { 19829 ctx = rctx // use context from middleware stack in children 19830 return ec.resolvers.Mutation().UnregisterRuntime(rctx, args["id"].(string)) 19831 } 19832 directive1 := func(ctx context.Context) (interface{}, error) { 19833 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.unregisterRuntime") 19834 if err != nil { 19835 return nil, err 19836 } 19837 if ec.directives.HasScopes == nil { 19838 return nil, errors.New("directive hasScopes is not implemented") 19839 } 19840 return ec.directives.HasScopes(ctx, nil, directive0, path) 19841 } 19842 19843 tmp, err := directive1(rctx) 19844 if err != nil { 19845 return nil, err 19846 } 19847 if tmp == nil { 19848 return nil, nil 19849 } 19850 if data, ok := tmp.(*Runtime); ok { 19851 return data, nil 19852 } 19853 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Runtime`, tmp) 19854 }) 19855 if err != nil { 19856 ec.Error(ctx, err) 19857 return graphql.Null 19858 } 19859 if resTmp == nil { 19860 if !graphql.HasFieldError(ctx, fc) { 19861 ec.Errorf(ctx, "must not be null") 19862 } 19863 return graphql.Null 19864 } 19865 res := resTmp.(*Runtime) 19866 fc.Result = res 19867 return ec.marshalNRuntime2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntime(ctx, field.Selections, res) 19868 } 19869 19870 func (ec *executionContext) _Mutation_registerRuntimeContext(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19871 defer func() { 19872 if r := recover(); r != nil { 19873 ec.Error(ctx, ec.Recover(ctx, r)) 19874 ret = graphql.Null 19875 } 19876 }() 19877 fc := &graphql.FieldContext{ 19878 Object: "Mutation", 19879 Field: field, 19880 Args: nil, 19881 IsMethod: true, 19882 } 19883 19884 ctx = graphql.WithFieldContext(ctx, fc) 19885 rawArgs := field.ArgumentMap(ec.Variables) 19886 args, err := ec.field_Mutation_registerRuntimeContext_args(ctx, rawArgs) 19887 if err != nil { 19888 ec.Error(ctx, err) 19889 return graphql.Null 19890 } 19891 fc.Args = args 19892 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19893 directive0 := func(rctx context.Context) (interface{}, error) { 19894 ctx = rctx // use context from middleware stack in children 19895 return ec.resolvers.Mutation().RegisterRuntimeContext(rctx, args["runtimeID"].(string), args["in"].(RuntimeContextInput)) 19896 } 19897 directive1 := func(ctx context.Context) (interface{}, error) { 19898 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.registerRuntimeContext") 19899 if err != nil { 19900 return nil, err 19901 } 19902 if ec.directives.HasScopes == nil { 19903 return nil, errors.New("directive hasScopes is not implemented") 19904 } 19905 return ec.directives.HasScopes(ctx, nil, directive0, path) 19906 } 19907 19908 tmp, err := directive1(rctx) 19909 if err != nil { 19910 return nil, err 19911 } 19912 if tmp == nil { 19913 return nil, nil 19914 } 19915 if data, ok := tmp.(*RuntimeContext); ok { 19916 return data, nil 19917 } 19918 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.RuntimeContext`, tmp) 19919 }) 19920 if err != nil { 19921 ec.Error(ctx, err) 19922 return graphql.Null 19923 } 19924 if resTmp == nil { 19925 if !graphql.HasFieldError(ctx, fc) { 19926 ec.Errorf(ctx, "must not be null") 19927 } 19928 return graphql.Null 19929 } 19930 res := resTmp.(*RuntimeContext) 19931 fc.Result = res 19932 return ec.marshalNRuntimeContext2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContext(ctx, field.Selections, res) 19933 } 19934 19935 func (ec *executionContext) _Mutation_updateRuntimeContext(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 19936 defer func() { 19937 if r := recover(); r != nil { 19938 ec.Error(ctx, ec.Recover(ctx, r)) 19939 ret = graphql.Null 19940 } 19941 }() 19942 fc := &graphql.FieldContext{ 19943 Object: "Mutation", 19944 Field: field, 19945 Args: nil, 19946 IsMethod: true, 19947 } 19948 19949 ctx = graphql.WithFieldContext(ctx, fc) 19950 rawArgs := field.ArgumentMap(ec.Variables) 19951 args, err := ec.field_Mutation_updateRuntimeContext_args(ctx, rawArgs) 19952 if err != nil { 19953 ec.Error(ctx, err) 19954 return graphql.Null 19955 } 19956 fc.Args = args 19957 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 19958 directive0 := func(rctx context.Context) (interface{}, error) { 19959 ctx = rctx // use context from middleware stack in children 19960 return ec.resolvers.Mutation().UpdateRuntimeContext(rctx, args["id"].(string), args["in"].(RuntimeContextInput)) 19961 } 19962 directive1 := func(ctx context.Context) (interface{}, error) { 19963 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateRuntimeContext") 19964 if err != nil { 19965 return nil, err 19966 } 19967 if ec.directives.HasScopes == nil { 19968 return nil, errors.New("directive hasScopes is not implemented") 19969 } 19970 return ec.directives.HasScopes(ctx, nil, directive0, path) 19971 } 19972 19973 tmp, err := directive1(rctx) 19974 if err != nil { 19975 return nil, err 19976 } 19977 if tmp == nil { 19978 return nil, nil 19979 } 19980 if data, ok := tmp.(*RuntimeContext); ok { 19981 return data, nil 19982 } 19983 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.RuntimeContext`, tmp) 19984 }) 19985 if err != nil { 19986 ec.Error(ctx, err) 19987 return graphql.Null 19988 } 19989 if resTmp == nil { 19990 if !graphql.HasFieldError(ctx, fc) { 19991 ec.Errorf(ctx, "must not be null") 19992 } 19993 return graphql.Null 19994 } 19995 res := resTmp.(*RuntimeContext) 19996 fc.Result = res 19997 return ec.marshalNRuntimeContext2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContext(ctx, field.Selections, res) 19998 } 19999 20000 func (ec *executionContext) _Mutation_unregisterRuntimeContext(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20001 defer func() { 20002 if r := recover(); r != nil { 20003 ec.Error(ctx, ec.Recover(ctx, r)) 20004 ret = graphql.Null 20005 } 20006 }() 20007 fc := &graphql.FieldContext{ 20008 Object: "Mutation", 20009 Field: field, 20010 Args: nil, 20011 IsMethod: true, 20012 } 20013 20014 ctx = graphql.WithFieldContext(ctx, fc) 20015 rawArgs := field.ArgumentMap(ec.Variables) 20016 args, err := ec.field_Mutation_unregisterRuntimeContext_args(ctx, rawArgs) 20017 if err != nil { 20018 ec.Error(ctx, err) 20019 return graphql.Null 20020 } 20021 fc.Args = args 20022 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20023 directive0 := func(rctx context.Context) (interface{}, error) { 20024 ctx = rctx // use context from middleware stack in children 20025 return ec.resolvers.Mutation().UnregisterRuntimeContext(rctx, args["id"].(string)) 20026 } 20027 directive1 := func(ctx context.Context) (interface{}, error) { 20028 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.unregisterRuntimeContext") 20029 if err != nil { 20030 return nil, err 20031 } 20032 if ec.directives.HasScopes == nil { 20033 return nil, errors.New("directive hasScopes is not implemented") 20034 } 20035 return ec.directives.HasScopes(ctx, nil, directive0, path) 20036 } 20037 20038 tmp, err := directive1(rctx) 20039 if err != nil { 20040 return nil, err 20041 } 20042 if tmp == nil { 20043 return nil, nil 20044 } 20045 if data, ok := tmp.(*RuntimeContext); ok { 20046 return data, nil 20047 } 20048 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.RuntimeContext`, tmp) 20049 }) 20050 if err != nil { 20051 ec.Error(ctx, err) 20052 return graphql.Null 20053 } 20054 if resTmp == nil { 20055 if !graphql.HasFieldError(ctx, fc) { 20056 ec.Errorf(ctx, "must not be null") 20057 } 20058 return graphql.Null 20059 } 20060 res := resTmp.(*RuntimeContext) 20061 fc.Result = res 20062 return ec.marshalNRuntimeContext2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContext(ctx, field.Selections, res) 20063 } 20064 20065 func (ec *executionContext) _Mutation_registerIntegrationSystem(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20066 defer func() { 20067 if r := recover(); r != nil { 20068 ec.Error(ctx, ec.Recover(ctx, r)) 20069 ret = graphql.Null 20070 } 20071 }() 20072 fc := &graphql.FieldContext{ 20073 Object: "Mutation", 20074 Field: field, 20075 Args: nil, 20076 IsMethod: true, 20077 } 20078 20079 ctx = graphql.WithFieldContext(ctx, fc) 20080 rawArgs := field.ArgumentMap(ec.Variables) 20081 args, err := ec.field_Mutation_registerIntegrationSystem_args(ctx, rawArgs) 20082 if err != nil { 20083 ec.Error(ctx, err) 20084 return graphql.Null 20085 } 20086 fc.Args = args 20087 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20088 directive0 := func(rctx context.Context) (interface{}, error) { 20089 ctx = rctx // use context from middleware stack in children 20090 return ec.resolvers.Mutation().RegisterIntegrationSystem(rctx, args["in"].(IntegrationSystemInput)) 20091 } 20092 directive1 := func(ctx context.Context) (interface{}, error) { 20093 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.registerIntegrationSystem") 20094 if err != nil { 20095 return nil, err 20096 } 20097 if ec.directives.HasScopes == nil { 20098 return nil, errors.New("directive hasScopes is not implemented") 20099 } 20100 return ec.directives.HasScopes(ctx, nil, directive0, path) 20101 } 20102 20103 tmp, err := directive1(rctx) 20104 if err != nil { 20105 return nil, err 20106 } 20107 if tmp == nil { 20108 return nil, nil 20109 } 20110 if data, ok := tmp.(*IntegrationSystem); ok { 20111 return data, nil 20112 } 20113 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.IntegrationSystem`, tmp) 20114 }) 20115 if err != nil { 20116 ec.Error(ctx, err) 20117 return graphql.Null 20118 } 20119 if resTmp == nil { 20120 if !graphql.HasFieldError(ctx, fc) { 20121 ec.Errorf(ctx, "must not be null") 20122 } 20123 return graphql.Null 20124 } 20125 res := resTmp.(*IntegrationSystem) 20126 fc.Result = res 20127 return ec.marshalNIntegrationSystem2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystem(ctx, field.Selections, res) 20128 } 20129 20130 func (ec *executionContext) _Mutation_updateIntegrationSystem(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20131 defer func() { 20132 if r := recover(); r != nil { 20133 ec.Error(ctx, ec.Recover(ctx, r)) 20134 ret = graphql.Null 20135 } 20136 }() 20137 fc := &graphql.FieldContext{ 20138 Object: "Mutation", 20139 Field: field, 20140 Args: nil, 20141 IsMethod: true, 20142 } 20143 20144 ctx = graphql.WithFieldContext(ctx, fc) 20145 rawArgs := field.ArgumentMap(ec.Variables) 20146 args, err := ec.field_Mutation_updateIntegrationSystem_args(ctx, rawArgs) 20147 if err != nil { 20148 ec.Error(ctx, err) 20149 return graphql.Null 20150 } 20151 fc.Args = args 20152 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20153 directive0 := func(rctx context.Context) (interface{}, error) { 20154 ctx = rctx // use context from middleware stack in children 20155 return ec.resolvers.Mutation().UpdateIntegrationSystem(rctx, args["id"].(string), args["in"].(IntegrationSystemInput)) 20156 } 20157 directive1 := func(ctx context.Context) (interface{}, error) { 20158 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateIntegrationSystem") 20159 if err != nil { 20160 return nil, err 20161 } 20162 if ec.directives.HasScopes == nil { 20163 return nil, errors.New("directive hasScopes is not implemented") 20164 } 20165 return ec.directives.HasScopes(ctx, nil, directive0, path) 20166 } 20167 20168 tmp, err := directive1(rctx) 20169 if err != nil { 20170 return nil, err 20171 } 20172 if tmp == nil { 20173 return nil, nil 20174 } 20175 if data, ok := tmp.(*IntegrationSystem); ok { 20176 return data, nil 20177 } 20178 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.IntegrationSystem`, tmp) 20179 }) 20180 if err != nil { 20181 ec.Error(ctx, err) 20182 return graphql.Null 20183 } 20184 if resTmp == nil { 20185 if !graphql.HasFieldError(ctx, fc) { 20186 ec.Errorf(ctx, "must not be null") 20187 } 20188 return graphql.Null 20189 } 20190 res := resTmp.(*IntegrationSystem) 20191 fc.Result = res 20192 return ec.marshalNIntegrationSystem2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystem(ctx, field.Selections, res) 20193 } 20194 20195 func (ec *executionContext) _Mutation_unregisterIntegrationSystem(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20196 defer func() { 20197 if r := recover(); r != nil { 20198 ec.Error(ctx, ec.Recover(ctx, r)) 20199 ret = graphql.Null 20200 } 20201 }() 20202 fc := &graphql.FieldContext{ 20203 Object: "Mutation", 20204 Field: field, 20205 Args: nil, 20206 IsMethod: true, 20207 } 20208 20209 ctx = graphql.WithFieldContext(ctx, fc) 20210 rawArgs := field.ArgumentMap(ec.Variables) 20211 args, err := ec.field_Mutation_unregisterIntegrationSystem_args(ctx, rawArgs) 20212 if err != nil { 20213 ec.Error(ctx, err) 20214 return graphql.Null 20215 } 20216 fc.Args = args 20217 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20218 directive0 := func(rctx context.Context) (interface{}, error) { 20219 ctx = rctx // use context from middleware stack in children 20220 return ec.resolvers.Mutation().UnregisterIntegrationSystem(rctx, args["id"].(string)) 20221 } 20222 directive1 := func(ctx context.Context) (interface{}, error) { 20223 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.unregisterIntegrationSystem") 20224 if err != nil { 20225 return nil, err 20226 } 20227 if ec.directives.HasScopes == nil { 20228 return nil, errors.New("directive hasScopes is not implemented") 20229 } 20230 return ec.directives.HasScopes(ctx, nil, directive0, path) 20231 } 20232 20233 tmp, err := directive1(rctx) 20234 if err != nil { 20235 return nil, err 20236 } 20237 if tmp == nil { 20238 return nil, nil 20239 } 20240 if data, ok := tmp.(*IntegrationSystem); ok { 20241 return data, nil 20242 } 20243 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.IntegrationSystem`, tmp) 20244 }) 20245 if err != nil { 20246 ec.Error(ctx, err) 20247 return graphql.Null 20248 } 20249 if resTmp == nil { 20250 if !graphql.HasFieldError(ctx, fc) { 20251 ec.Errorf(ctx, "must not be null") 20252 } 20253 return graphql.Null 20254 } 20255 res := resTmp.(*IntegrationSystem) 20256 fc.Result = res 20257 return ec.marshalNIntegrationSystem2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystem(ctx, field.Selections, res) 20258 } 20259 20260 func (ec *executionContext) _Mutation_addWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20261 defer func() { 20262 if r := recover(); r != nil { 20263 ec.Error(ctx, ec.Recover(ctx, r)) 20264 ret = graphql.Null 20265 } 20266 }() 20267 fc := &graphql.FieldContext{ 20268 Object: "Mutation", 20269 Field: field, 20270 Args: nil, 20271 IsMethod: true, 20272 } 20273 20274 ctx = graphql.WithFieldContext(ctx, fc) 20275 rawArgs := field.ArgumentMap(ec.Variables) 20276 args, err := ec.field_Mutation_addWebhook_args(ctx, rawArgs) 20277 if err != nil { 20278 ec.Error(ctx, err) 20279 return graphql.Null 20280 } 20281 fc.Args = args 20282 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20283 directive0 := func(rctx context.Context) (interface{}, error) { 20284 ctx = rctx // use context from middleware stack in children 20285 return ec.resolvers.Mutation().AddWebhook(rctx, args["applicationID"].(*string), args["applicationTemplateID"].(*string), args["runtimeID"].(*string), args["formationTemplateID"].(*string), args["in"].(WebhookInput)) 20286 } 20287 directive1 := func(ctx context.Context) (interface{}, error) { 20288 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.addWebhook") 20289 if err != nil { 20290 return nil, err 20291 } 20292 if ec.directives.HasScopes == nil { 20293 return nil, errors.New("directive hasScopes is not implemented") 20294 } 20295 return ec.directives.HasScopes(ctx, nil, directive0, path) 20296 } 20297 20298 tmp, err := directive1(rctx) 20299 if err != nil { 20300 return nil, err 20301 } 20302 if tmp == nil { 20303 return nil, nil 20304 } 20305 if data, ok := tmp.(*Webhook); ok { 20306 return data, nil 20307 } 20308 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Webhook`, tmp) 20309 }) 20310 if err != nil { 20311 ec.Error(ctx, err) 20312 return graphql.Null 20313 } 20314 if resTmp == nil { 20315 if !graphql.HasFieldError(ctx, fc) { 20316 ec.Errorf(ctx, "must not be null") 20317 } 20318 return graphql.Null 20319 } 20320 res := resTmp.(*Webhook) 20321 fc.Result = res 20322 return ec.marshalNWebhook2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhook(ctx, field.Selections, res) 20323 } 20324 20325 func (ec *executionContext) _Mutation_updateWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20326 defer func() { 20327 if r := recover(); r != nil { 20328 ec.Error(ctx, ec.Recover(ctx, r)) 20329 ret = graphql.Null 20330 } 20331 }() 20332 fc := &graphql.FieldContext{ 20333 Object: "Mutation", 20334 Field: field, 20335 Args: nil, 20336 IsMethod: true, 20337 } 20338 20339 ctx = graphql.WithFieldContext(ctx, fc) 20340 rawArgs := field.ArgumentMap(ec.Variables) 20341 args, err := ec.field_Mutation_updateWebhook_args(ctx, rawArgs) 20342 if err != nil { 20343 ec.Error(ctx, err) 20344 return graphql.Null 20345 } 20346 fc.Args = args 20347 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20348 directive0 := func(rctx context.Context) (interface{}, error) { 20349 ctx = rctx // use context from middleware stack in children 20350 return ec.resolvers.Mutation().UpdateWebhook(rctx, args["webhookID"].(string), args["in"].(WebhookInput)) 20351 } 20352 directive1 := func(ctx context.Context) (interface{}, error) { 20353 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateWebhook") 20354 if err != nil { 20355 return nil, err 20356 } 20357 if ec.directives.HasScopes == nil { 20358 return nil, errors.New("directive hasScopes is not implemented") 20359 } 20360 return ec.directives.HasScopes(ctx, nil, directive0, path) 20361 } 20362 20363 tmp, err := directive1(rctx) 20364 if err != nil { 20365 return nil, err 20366 } 20367 if tmp == nil { 20368 return nil, nil 20369 } 20370 if data, ok := tmp.(*Webhook); ok { 20371 return data, nil 20372 } 20373 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Webhook`, tmp) 20374 }) 20375 if err != nil { 20376 ec.Error(ctx, err) 20377 return graphql.Null 20378 } 20379 if resTmp == nil { 20380 if !graphql.HasFieldError(ctx, fc) { 20381 ec.Errorf(ctx, "must not be null") 20382 } 20383 return graphql.Null 20384 } 20385 res := resTmp.(*Webhook) 20386 fc.Result = res 20387 return ec.marshalNWebhook2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhook(ctx, field.Selections, res) 20388 } 20389 20390 func (ec *executionContext) _Mutation_deleteWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20391 defer func() { 20392 if r := recover(); r != nil { 20393 ec.Error(ctx, ec.Recover(ctx, r)) 20394 ret = graphql.Null 20395 } 20396 }() 20397 fc := &graphql.FieldContext{ 20398 Object: "Mutation", 20399 Field: field, 20400 Args: nil, 20401 IsMethod: true, 20402 } 20403 20404 ctx = graphql.WithFieldContext(ctx, fc) 20405 rawArgs := field.ArgumentMap(ec.Variables) 20406 args, err := ec.field_Mutation_deleteWebhook_args(ctx, rawArgs) 20407 if err != nil { 20408 ec.Error(ctx, err) 20409 return graphql.Null 20410 } 20411 fc.Args = args 20412 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20413 directive0 := func(rctx context.Context) (interface{}, error) { 20414 ctx = rctx // use context from middleware stack in children 20415 return ec.resolvers.Mutation().DeleteWebhook(rctx, args["webhookID"].(string)) 20416 } 20417 directive1 := func(ctx context.Context) (interface{}, error) { 20418 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteWebhook") 20419 if err != nil { 20420 return nil, err 20421 } 20422 if ec.directives.HasScopes == nil { 20423 return nil, errors.New("directive hasScopes is not implemented") 20424 } 20425 return ec.directives.HasScopes(ctx, nil, directive0, path) 20426 } 20427 20428 tmp, err := directive1(rctx) 20429 if err != nil { 20430 return nil, err 20431 } 20432 if tmp == nil { 20433 return nil, nil 20434 } 20435 if data, ok := tmp.(*Webhook); ok { 20436 return data, nil 20437 } 20438 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Webhook`, tmp) 20439 }) 20440 if err != nil { 20441 ec.Error(ctx, err) 20442 return graphql.Null 20443 } 20444 if resTmp == nil { 20445 if !graphql.HasFieldError(ctx, fc) { 20446 ec.Errorf(ctx, "must not be null") 20447 } 20448 return graphql.Null 20449 } 20450 res := resTmp.(*Webhook) 20451 fc.Result = res 20452 return ec.marshalNWebhook2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhook(ctx, field.Selections, res) 20453 } 20454 20455 func (ec *executionContext) _Mutation_addAPIDefinitionToBundle(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20456 defer func() { 20457 if r := recover(); r != nil { 20458 ec.Error(ctx, ec.Recover(ctx, r)) 20459 ret = graphql.Null 20460 } 20461 }() 20462 fc := &graphql.FieldContext{ 20463 Object: "Mutation", 20464 Field: field, 20465 Args: nil, 20466 IsMethod: true, 20467 } 20468 20469 ctx = graphql.WithFieldContext(ctx, fc) 20470 rawArgs := field.ArgumentMap(ec.Variables) 20471 args, err := ec.field_Mutation_addAPIDefinitionToBundle_args(ctx, rawArgs) 20472 if err != nil { 20473 ec.Error(ctx, err) 20474 return graphql.Null 20475 } 20476 fc.Args = args 20477 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20478 directive0 := func(rctx context.Context) (interface{}, error) { 20479 ctx = rctx // use context from middleware stack in children 20480 return ec.resolvers.Mutation().AddAPIDefinitionToBundle(rctx, args["bundleID"].(string), args["in"].(APIDefinitionInput)) 20481 } 20482 directive1 := func(ctx context.Context) (interface{}, error) { 20483 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.addAPIDefinitionToBundle") 20484 if err != nil { 20485 return nil, err 20486 } 20487 if ec.directives.HasScopes == nil { 20488 return nil, errors.New("directive hasScopes is not implemented") 20489 } 20490 return ec.directives.HasScopes(ctx, nil, directive0, path) 20491 } 20492 20493 tmp, err := directive1(rctx) 20494 if err != nil { 20495 return nil, err 20496 } 20497 if tmp == nil { 20498 return nil, nil 20499 } 20500 if data, ok := tmp.(*APIDefinition); ok { 20501 return data, nil 20502 } 20503 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.APIDefinition`, tmp) 20504 }) 20505 if err != nil { 20506 ec.Error(ctx, err) 20507 return graphql.Null 20508 } 20509 if resTmp == nil { 20510 if !graphql.HasFieldError(ctx, fc) { 20511 ec.Errorf(ctx, "must not be null") 20512 } 20513 return graphql.Null 20514 } 20515 res := resTmp.(*APIDefinition) 20516 fc.Result = res 20517 return ec.marshalNAPIDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx, field.Selections, res) 20518 } 20519 20520 func (ec *executionContext) _Mutation_addAPIDefinitionToApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20521 defer func() { 20522 if r := recover(); r != nil { 20523 ec.Error(ctx, ec.Recover(ctx, r)) 20524 ret = graphql.Null 20525 } 20526 }() 20527 fc := &graphql.FieldContext{ 20528 Object: "Mutation", 20529 Field: field, 20530 Args: nil, 20531 IsMethod: true, 20532 } 20533 20534 ctx = graphql.WithFieldContext(ctx, fc) 20535 rawArgs := field.ArgumentMap(ec.Variables) 20536 args, err := ec.field_Mutation_addAPIDefinitionToApplication_args(ctx, rawArgs) 20537 if err != nil { 20538 ec.Error(ctx, err) 20539 return graphql.Null 20540 } 20541 fc.Args = args 20542 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20543 directive0 := func(rctx context.Context) (interface{}, error) { 20544 ctx = rctx // use context from middleware stack in children 20545 return ec.resolvers.Mutation().AddAPIDefinitionToApplication(rctx, args["appID"].(string), args["in"].(APIDefinitionInput)) 20546 } 20547 directive1 := func(ctx context.Context) (interface{}, error) { 20548 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.addAPIDefinitionToApplication") 20549 if err != nil { 20550 return nil, err 20551 } 20552 if ec.directives.HasScopes == nil { 20553 return nil, errors.New("directive hasScopes is not implemented") 20554 } 20555 return ec.directives.HasScopes(ctx, nil, directive0, path) 20556 } 20557 20558 tmp, err := directive1(rctx) 20559 if err != nil { 20560 return nil, err 20561 } 20562 if tmp == nil { 20563 return nil, nil 20564 } 20565 if data, ok := tmp.(*APIDefinition); ok { 20566 return data, nil 20567 } 20568 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.APIDefinition`, tmp) 20569 }) 20570 if err != nil { 20571 ec.Error(ctx, err) 20572 return graphql.Null 20573 } 20574 if resTmp == nil { 20575 if !graphql.HasFieldError(ctx, fc) { 20576 ec.Errorf(ctx, "must not be null") 20577 } 20578 return graphql.Null 20579 } 20580 res := resTmp.(*APIDefinition) 20581 fc.Result = res 20582 return ec.marshalNAPIDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx, field.Selections, res) 20583 } 20584 20585 func (ec *executionContext) _Mutation_updateAPIDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20586 defer func() { 20587 if r := recover(); r != nil { 20588 ec.Error(ctx, ec.Recover(ctx, r)) 20589 ret = graphql.Null 20590 } 20591 }() 20592 fc := &graphql.FieldContext{ 20593 Object: "Mutation", 20594 Field: field, 20595 Args: nil, 20596 IsMethod: true, 20597 } 20598 20599 ctx = graphql.WithFieldContext(ctx, fc) 20600 rawArgs := field.ArgumentMap(ec.Variables) 20601 args, err := ec.field_Mutation_updateAPIDefinition_args(ctx, rawArgs) 20602 if err != nil { 20603 ec.Error(ctx, err) 20604 return graphql.Null 20605 } 20606 fc.Args = args 20607 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20608 directive0 := func(rctx context.Context) (interface{}, error) { 20609 ctx = rctx // use context from middleware stack in children 20610 return ec.resolvers.Mutation().UpdateAPIDefinition(rctx, args["id"].(string), args["in"].(APIDefinitionInput)) 20611 } 20612 directive1 := func(ctx context.Context) (interface{}, error) { 20613 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateAPIDefinition") 20614 if err != nil { 20615 return nil, err 20616 } 20617 if ec.directives.HasScopes == nil { 20618 return nil, errors.New("directive hasScopes is not implemented") 20619 } 20620 return ec.directives.HasScopes(ctx, nil, directive0, path) 20621 } 20622 20623 tmp, err := directive1(rctx) 20624 if err != nil { 20625 return nil, err 20626 } 20627 if tmp == nil { 20628 return nil, nil 20629 } 20630 if data, ok := tmp.(*APIDefinition); ok { 20631 return data, nil 20632 } 20633 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.APIDefinition`, tmp) 20634 }) 20635 if err != nil { 20636 ec.Error(ctx, err) 20637 return graphql.Null 20638 } 20639 if resTmp == nil { 20640 if !graphql.HasFieldError(ctx, fc) { 20641 ec.Errorf(ctx, "must not be null") 20642 } 20643 return graphql.Null 20644 } 20645 res := resTmp.(*APIDefinition) 20646 fc.Result = res 20647 return ec.marshalNAPIDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx, field.Selections, res) 20648 } 20649 20650 func (ec *executionContext) _Mutation_updateAPIDefinitionForApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20651 defer func() { 20652 if r := recover(); r != nil { 20653 ec.Error(ctx, ec.Recover(ctx, r)) 20654 ret = graphql.Null 20655 } 20656 }() 20657 fc := &graphql.FieldContext{ 20658 Object: "Mutation", 20659 Field: field, 20660 Args: nil, 20661 IsMethod: true, 20662 } 20663 20664 ctx = graphql.WithFieldContext(ctx, fc) 20665 rawArgs := field.ArgumentMap(ec.Variables) 20666 args, err := ec.field_Mutation_updateAPIDefinitionForApplication_args(ctx, rawArgs) 20667 if err != nil { 20668 ec.Error(ctx, err) 20669 return graphql.Null 20670 } 20671 fc.Args = args 20672 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20673 directive0 := func(rctx context.Context) (interface{}, error) { 20674 ctx = rctx // use context from middleware stack in children 20675 return ec.resolvers.Mutation().UpdateAPIDefinitionForApplication(rctx, args["id"].(string), args["in"].(APIDefinitionInput)) 20676 } 20677 directive1 := func(ctx context.Context) (interface{}, error) { 20678 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateAPIDefinitionForApplication") 20679 if err != nil { 20680 return nil, err 20681 } 20682 if ec.directives.HasScopes == nil { 20683 return nil, errors.New("directive hasScopes is not implemented") 20684 } 20685 return ec.directives.HasScopes(ctx, nil, directive0, path) 20686 } 20687 20688 tmp, err := directive1(rctx) 20689 if err != nil { 20690 return nil, err 20691 } 20692 if tmp == nil { 20693 return nil, nil 20694 } 20695 if data, ok := tmp.(*APIDefinition); ok { 20696 return data, nil 20697 } 20698 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.APIDefinition`, tmp) 20699 }) 20700 if err != nil { 20701 ec.Error(ctx, err) 20702 return graphql.Null 20703 } 20704 if resTmp == nil { 20705 if !graphql.HasFieldError(ctx, fc) { 20706 ec.Errorf(ctx, "must not be null") 20707 } 20708 return graphql.Null 20709 } 20710 res := resTmp.(*APIDefinition) 20711 fc.Result = res 20712 return ec.marshalNAPIDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx, field.Selections, res) 20713 } 20714 20715 func (ec *executionContext) _Mutation_deleteAPIDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20716 defer func() { 20717 if r := recover(); r != nil { 20718 ec.Error(ctx, ec.Recover(ctx, r)) 20719 ret = graphql.Null 20720 } 20721 }() 20722 fc := &graphql.FieldContext{ 20723 Object: "Mutation", 20724 Field: field, 20725 Args: nil, 20726 IsMethod: true, 20727 } 20728 20729 ctx = graphql.WithFieldContext(ctx, fc) 20730 rawArgs := field.ArgumentMap(ec.Variables) 20731 args, err := ec.field_Mutation_deleteAPIDefinition_args(ctx, rawArgs) 20732 if err != nil { 20733 ec.Error(ctx, err) 20734 return graphql.Null 20735 } 20736 fc.Args = args 20737 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20738 directive0 := func(rctx context.Context) (interface{}, error) { 20739 ctx = rctx // use context from middleware stack in children 20740 return ec.resolvers.Mutation().DeleteAPIDefinition(rctx, args["id"].(string)) 20741 } 20742 directive1 := func(ctx context.Context) (interface{}, error) { 20743 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteAPIDefinition") 20744 if err != nil { 20745 return nil, err 20746 } 20747 if ec.directives.HasScopes == nil { 20748 return nil, errors.New("directive hasScopes is not implemented") 20749 } 20750 return ec.directives.HasScopes(ctx, nil, directive0, path) 20751 } 20752 20753 tmp, err := directive1(rctx) 20754 if err != nil { 20755 return nil, err 20756 } 20757 if tmp == nil { 20758 return nil, nil 20759 } 20760 if data, ok := tmp.(*APIDefinition); ok { 20761 return data, nil 20762 } 20763 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.APIDefinition`, tmp) 20764 }) 20765 if err != nil { 20766 ec.Error(ctx, err) 20767 return graphql.Null 20768 } 20769 if resTmp == nil { 20770 if !graphql.HasFieldError(ctx, fc) { 20771 ec.Errorf(ctx, "must not be null") 20772 } 20773 return graphql.Null 20774 } 20775 res := resTmp.(*APIDefinition) 20776 fc.Result = res 20777 return ec.marshalNAPIDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx, field.Selections, res) 20778 } 20779 20780 func (ec *executionContext) _Mutation_refetchAPISpec(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20781 defer func() { 20782 if r := recover(); r != nil { 20783 ec.Error(ctx, ec.Recover(ctx, r)) 20784 ret = graphql.Null 20785 } 20786 }() 20787 fc := &graphql.FieldContext{ 20788 Object: "Mutation", 20789 Field: field, 20790 Args: nil, 20791 IsMethod: true, 20792 } 20793 20794 ctx = graphql.WithFieldContext(ctx, fc) 20795 rawArgs := field.ArgumentMap(ec.Variables) 20796 args, err := ec.field_Mutation_refetchAPISpec_args(ctx, rawArgs) 20797 if err != nil { 20798 ec.Error(ctx, err) 20799 return graphql.Null 20800 } 20801 fc.Args = args 20802 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20803 directive0 := func(rctx context.Context) (interface{}, error) { 20804 ctx = rctx // use context from middleware stack in children 20805 return ec.resolvers.Mutation().RefetchAPISpec(rctx, args["apiID"].(string)) 20806 } 20807 directive1 := func(ctx context.Context) (interface{}, error) { 20808 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.refetchAPISpec") 20809 if err != nil { 20810 return nil, err 20811 } 20812 if ec.directives.HasScopes == nil { 20813 return nil, errors.New("directive hasScopes is not implemented") 20814 } 20815 return ec.directives.HasScopes(ctx, nil, directive0, path) 20816 } 20817 20818 tmp, err := directive1(rctx) 20819 if err != nil { 20820 return nil, err 20821 } 20822 if tmp == nil { 20823 return nil, nil 20824 } 20825 if data, ok := tmp.(*APISpec); ok { 20826 return data, nil 20827 } 20828 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.APISpec`, tmp) 20829 }) 20830 if err != nil { 20831 ec.Error(ctx, err) 20832 return graphql.Null 20833 } 20834 if resTmp == nil { 20835 if !graphql.HasFieldError(ctx, fc) { 20836 ec.Errorf(ctx, "must not be null") 20837 } 20838 return graphql.Null 20839 } 20840 res := resTmp.(*APISpec) 20841 fc.Result = res 20842 return ec.marshalNAPISpec2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpec(ctx, field.Selections, res) 20843 } 20844 20845 func (ec *executionContext) _Mutation_requestOneTimeTokenForRuntime(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20846 defer func() { 20847 if r := recover(); r != nil { 20848 ec.Error(ctx, ec.Recover(ctx, r)) 20849 ret = graphql.Null 20850 } 20851 }() 20852 fc := &graphql.FieldContext{ 20853 Object: "Mutation", 20854 Field: field, 20855 Args: nil, 20856 IsMethod: true, 20857 } 20858 20859 ctx = graphql.WithFieldContext(ctx, fc) 20860 rawArgs := field.ArgumentMap(ec.Variables) 20861 args, err := ec.field_Mutation_requestOneTimeTokenForRuntime_args(ctx, rawArgs) 20862 if err != nil { 20863 ec.Error(ctx, err) 20864 return graphql.Null 20865 } 20866 fc.Args = args 20867 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20868 directive0 := func(rctx context.Context) (interface{}, error) { 20869 ctx = rctx // use context from middleware stack in children 20870 return ec.resolvers.Mutation().RequestOneTimeTokenForRuntime(rctx, args["id"].(string), args["systemAuthID"].(*string)) 20871 } 20872 directive1 := func(ctx context.Context) (interface{}, error) { 20873 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.requestOneTimeTokenForRuntime") 20874 if err != nil { 20875 return nil, err 20876 } 20877 if ec.directives.HasScopes == nil { 20878 return nil, errors.New("directive hasScopes is not implemented") 20879 } 20880 return ec.directives.HasScopes(ctx, nil, directive0, path) 20881 } 20882 20883 tmp, err := directive1(rctx) 20884 if err != nil { 20885 return nil, err 20886 } 20887 if tmp == nil { 20888 return nil, nil 20889 } 20890 if data, ok := tmp.(*OneTimeTokenForRuntime); ok { 20891 return data, nil 20892 } 20893 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.OneTimeTokenForRuntime`, tmp) 20894 }) 20895 if err != nil { 20896 ec.Error(ctx, err) 20897 return graphql.Null 20898 } 20899 if resTmp == nil { 20900 if !graphql.HasFieldError(ctx, fc) { 20901 ec.Errorf(ctx, "must not be null") 20902 } 20903 return graphql.Null 20904 } 20905 res := resTmp.(*OneTimeTokenForRuntime) 20906 fc.Result = res 20907 return ec.marshalNOneTimeTokenForRuntime2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenForRuntime(ctx, field.Selections, res) 20908 } 20909 20910 func (ec *executionContext) _Mutation_requestOneTimeTokenForApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20911 defer func() { 20912 if r := recover(); r != nil { 20913 ec.Error(ctx, ec.Recover(ctx, r)) 20914 ret = graphql.Null 20915 } 20916 }() 20917 fc := &graphql.FieldContext{ 20918 Object: "Mutation", 20919 Field: field, 20920 Args: nil, 20921 IsMethod: true, 20922 } 20923 20924 ctx = graphql.WithFieldContext(ctx, fc) 20925 rawArgs := field.ArgumentMap(ec.Variables) 20926 args, err := ec.field_Mutation_requestOneTimeTokenForApplication_args(ctx, rawArgs) 20927 if err != nil { 20928 ec.Error(ctx, err) 20929 return graphql.Null 20930 } 20931 fc.Args = args 20932 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20933 directive0 := func(rctx context.Context) (interface{}, error) { 20934 ctx = rctx // use context from middleware stack in children 20935 return ec.resolvers.Mutation().RequestOneTimeTokenForApplication(rctx, args["id"].(string), args["systemAuthID"].(*string)) 20936 } 20937 directive1 := func(ctx context.Context) (interface{}, error) { 20938 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.requestOneTimeTokenForApplication") 20939 if err != nil { 20940 return nil, err 20941 } 20942 if ec.directives.HasScopes == nil { 20943 return nil, errors.New("directive hasScopes is not implemented") 20944 } 20945 return ec.directives.HasScopes(ctx, nil, directive0, path) 20946 } 20947 20948 tmp, err := directive1(rctx) 20949 if err != nil { 20950 return nil, err 20951 } 20952 if tmp == nil { 20953 return nil, nil 20954 } 20955 if data, ok := tmp.(*OneTimeTokenForApplication); ok { 20956 return data, nil 20957 } 20958 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.OneTimeTokenForApplication`, tmp) 20959 }) 20960 if err != nil { 20961 ec.Error(ctx, err) 20962 return graphql.Null 20963 } 20964 if resTmp == nil { 20965 if !graphql.HasFieldError(ctx, fc) { 20966 ec.Errorf(ctx, "must not be null") 20967 } 20968 return graphql.Null 20969 } 20970 res := resTmp.(*OneTimeTokenForApplication) 20971 fc.Result = res 20972 return ec.marshalNOneTimeTokenForApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenForApplication(ctx, field.Selections, res) 20973 } 20974 20975 func (ec *executionContext) _Mutation_requestClientCredentialsForRuntime(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 20976 defer func() { 20977 if r := recover(); r != nil { 20978 ec.Error(ctx, ec.Recover(ctx, r)) 20979 ret = graphql.Null 20980 } 20981 }() 20982 fc := &graphql.FieldContext{ 20983 Object: "Mutation", 20984 Field: field, 20985 Args: nil, 20986 IsMethod: true, 20987 } 20988 20989 ctx = graphql.WithFieldContext(ctx, fc) 20990 rawArgs := field.ArgumentMap(ec.Variables) 20991 args, err := ec.field_Mutation_requestClientCredentialsForRuntime_args(ctx, rawArgs) 20992 if err != nil { 20993 ec.Error(ctx, err) 20994 return graphql.Null 20995 } 20996 fc.Args = args 20997 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 20998 directive0 := func(rctx context.Context) (interface{}, error) { 20999 ctx = rctx // use context from middleware stack in children 21000 return ec.resolvers.Mutation().RequestClientCredentialsForRuntime(rctx, args["id"].(string)) 21001 } 21002 directive1 := func(ctx context.Context) (interface{}, error) { 21003 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.requestClientCredentialsForRuntime") 21004 if err != nil { 21005 return nil, err 21006 } 21007 if ec.directives.HasScopes == nil { 21008 return nil, errors.New("directive hasScopes is not implemented") 21009 } 21010 return ec.directives.HasScopes(ctx, nil, directive0, path) 21011 } 21012 21013 tmp, err := directive1(rctx) 21014 if err != nil { 21015 return nil, err 21016 } 21017 if tmp == nil { 21018 return nil, nil 21019 } 21020 if data, ok := tmp.(SystemAuth); ok { 21021 return data, nil 21022 } 21023 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.SystemAuth`, tmp) 21024 }) 21025 if err != nil { 21026 ec.Error(ctx, err) 21027 return graphql.Null 21028 } 21029 if resTmp == nil { 21030 if !graphql.HasFieldError(ctx, fc) { 21031 ec.Errorf(ctx, "must not be null") 21032 } 21033 return graphql.Null 21034 } 21035 res := resTmp.(SystemAuth) 21036 fc.Result = res 21037 return ec.marshalNSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx, field.Selections, res) 21038 } 21039 21040 func (ec *executionContext) _Mutation_requestClientCredentialsForApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21041 defer func() { 21042 if r := recover(); r != nil { 21043 ec.Error(ctx, ec.Recover(ctx, r)) 21044 ret = graphql.Null 21045 } 21046 }() 21047 fc := &graphql.FieldContext{ 21048 Object: "Mutation", 21049 Field: field, 21050 Args: nil, 21051 IsMethod: true, 21052 } 21053 21054 ctx = graphql.WithFieldContext(ctx, fc) 21055 rawArgs := field.ArgumentMap(ec.Variables) 21056 args, err := ec.field_Mutation_requestClientCredentialsForApplication_args(ctx, rawArgs) 21057 if err != nil { 21058 ec.Error(ctx, err) 21059 return graphql.Null 21060 } 21061 fc.Args = args 21062 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21063 directive0 := func(rctx context.Context) (interface{}, error) { 21064 ctx = rctx // use context from middleware stack in children 21065 return ec.resolvers.Mutation().RequestClientCredentialsForApplication(rctx, args["id"].(string)) 21066 } 21067 directive1 := func(ctx context.Context) (interface{}, error) { 21068 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.requestClientCredentialsForApplication") 21069 if err != nil { 21070 return nil, err 21071 } 21072 if ec.directives.HasScopes == nil { 21073 return nil, errors.New("directive hasScopes is not implemented") 21074 } 21075 return ec.directives.HasScopes(ctx, nil, directive0, path) 21076 } 21077 21078 tmp, err := directive1(rctx) 21079 if err != nil { 21080 return nil, err 21081 } 21082 if tmp == nil { 21083 return nil, nil 21084 } 21085 if data, ok := tmp.(SystemAuth); ok { 21086 return data, nil 21087 } 21088 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.SystemAuth`, tmp) 21089 }) 21090 if err != nil { 21091 ec.Error(ctx, err) 21092 return graphql.Null 21093 } 21094 if resTmp == nil { 21095 if !graphql.HasFieldError(ctx, fc) { 21096 ec.Errorf(ctx, "must not be null") 21097 } 21098 return graphql.Null 21099 } 21100 res := resTmp.(SystemAuth) 21101 fc.Result = res 21102 return ec.marshalNSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx, field.Selections, res) 21103 } 21104 21105 func (ec *executionContext) _Mutation_requestClientCredentialsForIntegrationSystem(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21106 defer func() { 21107 if r := recover(); r != nil { 21108 ec.Error(ctx, ec.Recover(ctx, r)) 21109 ret = graphql.Null 21110 } 21111 }() 21112 fc := &graphql.FieldContext{ 21113 Object: "Mutation", 21114 Field: field, 21115 Args: nil, 21116 IsMethod: true, 21117 } 21118 21119 ctx = graphql.WithFieldContext(ctx, fc) 21120 rawArgs := field.ArgumentMap(ec.Variables) 21121 args, err := ec.field_Mutation_requestClientCredentialsForIntegrationSystem_args(ctx, rawArgs) 21122 if err != nil { 21123 ec.Error(ctx, err) 21124 return graphql.Null 21125 } 21126 fc.Args = args 21127 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21128 directive0 := func(rctx context.Context) (interface{}, error) { 21129 ctx = rctx // use context from middleware stack in children 21130 return ec.resolvers.Mutation().RequestClientCredentialsForIntegrationSystem(rctx, args["id"].(string)) 21131 } 21132 directive1 := func(ctx context.Context) (interface{}, error) { 21133 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.requestClientCredentialsForIntegrationSystem") 21134 if err != nil { 21135 return nil, err 21136 } 21137 if ec.directives.HasScopes == nil { 21138 return nil, errors.New("directive hasScopes is not implemented") 21139 } 21140 return ec.directives.HasScopes(ctx, nil, directive0, path) 21141 } 21142 21143 tmp, err := directive1(rctx) 21144 if err != nil { 21145 return nil, err 21146 } 21147 if tmp == nil { 21148 return nil, nil 21149 } 21150 if data, ok := tmp.(SystemAuth); ok { 21151 return data, nil 21152 } 21153 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.SystemAuth`, tmp) 21154 }) 21155 if err != nil { 21156 ec.Error(ctx, err) 21157 return graphql.Null 21158 } 21159 if resTmp == nil { 21160 if !graphql.HasFieldError(ctx, fc) { 21161 ec.Errorf(ctx, "must not be null") 21162 } 21163 return graphql.Null 21164 } 21165 res := resTmp.(SystemAuth) 21166 fc.Result = res 21167 return ec.marshalNSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx, field.Selections, res) 21168 } 21169 21170 func (ec *executionContext) _Mutation_deleteSystemAuthForRuntime(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21171 defer func() { 21172 if r := recover(); r != nil { 21173 ec.Error(ctx, ec.Recover(ctx, r)) 21174 ret = graphql.Null 21175 } 21176 }() 21177 fc := &graphql.FieldContext{ 21178 Object: "Mutation", 21179 Field: field, 21180 Args: nil, 21181 IsMethod: true, 21182 } 21183 21184 ctx = graphql.WithFieldContext(ctx, fc) 21185 rawArgs := field.ArgumentMap(ec.Variables) 21186 args, err := ec.field_Mutation_deleteSystemAuthForRuntime_args(ctx, rawArgs) 21187 if err != nil { 21188 ec.Error(ctx, err) 21189 return graphql.Null 21190 } 21191 fc.Args = args 21192 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21193 directive0 := func(rctx context.Context) (interface{}, error) { 21194 ctx = rctx // use context from middleware stack in children 21195 return ec.resolvers.Mutation().DeleteSystemAuthForRuntime(rctx, args["authID"].(string)) 21196 } 21197 directive1 := func(ctx context.Context) (interface{}, error) { 21198 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteSystemAuthForRuntime") 21199 if err != nil { 21200 return nil, err 21201 } 21202 if ec.directives.HasScopes == nil { 21203 return nil, errors.New("directive hasScopes is not implemented") 21204 } 21205 return ec.directives.HasScopes(ctx, nil, directive0, path) 21206 } 21207 21208 tmp, err := directive1(rctx) 21209 if err != nil { 21210 return nil, err 21211 } 21212 if tmp == nil { 21213 return nil, nil 21214 } 21215 if data, ok := tmp.(SystemAuth); ok { 21216 return data, nil 21217 } 21218 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.SystemAuth`, tmp) 21219 }) 21220 if err != nil { 21221 ec.Error(ctx, err) 21222 return graphql.Null 21223 } 21224 if resTmp == nil { 21225 if !graphql.HasFieldError(ctx, fc) { 21226 ec.Errorf(ctx, "must not be null") 21227 } 21228 return graphql.Null 21229 } 21230 res := resTmp.(SystemAuth) 21231 fc.Result = res 21232 return ec.marshalNSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx, field.Selections, res) 21233 } 21234 21235 func (ec *executionContext) _Mutation_deleteSystemAuthForApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21236 defer func() { 21237 if r := recover(); r != nil { 21238 ec.Error(ctx, ec.Recover(ctx, r)) 21239 ret = graphql.Null 21240 } 21241 }() 21242 fc := &graphql.FieldContext{ 21243 Object: "Mutation", 21244 Field: field, 21245 Args: nil, 21246 IsMethod: true, 21247 } 21248 21249 ctx = graphql.WithFieldContext(ctx, fc) 21250 rawArgs := field.ArgumentMap(ec.Variables) 21251 args, err := ec.field_Mutation_deleteSystemAuthForApplication_args(ctx, rawArgs) 21252 if err != nil { 21253 ec.Error(ctx, err) 21254 return graphql.Null 21255 } 21256 fc.Args = args 21257 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21258 directive0 := func(rctx context.Context) (interface{}, error) { 21259 ctx = rctx // use context from middleware stack in children 21260 return ec.resolvers.Mutation().DeleteSystemAuthForApplication(rctx, args["authID"].(string)) 21261 } 21262 directive1 := func(ctx context.Context) (interface{}, error) { 21263 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteSystemAuthForApplication") 21264 if err != nil { 21265 return nil, err 21266 } 21267 if ec.directives.HasScopes == nil { 21268 return nil, errors.New("directive hasScopes is not implemented") 21269 } 21270 return ec.directives.HasScopes(ctx, nil, directive0, path) 21271 } 21272 21273 tmp, err := directive1(rctx) 21274 if err != nil { 21275 return nil, err 21276 } 21277 if tmp == nil { 21278 return nil, nil 21279 } 21280 if data, ok := tmp.(SystemAuth); ok { 21281 return data, nil 21282 } 21283 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.SystemAuth`, tmp) 21284 }) 21285 if err != nil { 21286 ec.Error(ctx, err) 21287 return graphql.Null 21288 } 21289 if resTmp == nil { 21290 if !graphql.HasFieldError(ctx, fc) { 21291 ec.Errorf(ctx, "must not be null") 21292 } 21293 return graphql.Null 21294 } 21295 res := resTmp.(SystemAuth) 21296 fc.Result = res 21297 return ec.marshalNSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx, field.Selections, res) 21298 } 21299 21300 func (ec *executionContext) _Mutation_deleteSystemAuthForIntegrationSystem(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21301 defer func() { 21302 if r := recover(); r != nil { 21303 ec.Error(ctx, ec.Recover(ctx, r)) 21304 ret = graphql.Null 21305 } 21306 }() 21307 fc := &graphql.FieldContext{ 21308 Object: "Mutation", 21309 Field: field, 21310 Args: nil, 21311 IsMethod: true, 21312 } 21313 21314 ctx = graphql.WithFieldContext(ctx, fc) 21315 rawArgs := field.ArgumentMap(ec.Variables) 21316 args, err := ec.field_Mutation_deleteSystemAuthForIntegrationSystem_args(ctx, rawArgs) 21317 if err != nil { 21318 ec.Error(ctx, err) 21319 return graphql.Null 21320 } 21321 fc.Args = args 21322 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21323 directive0 := func(rctx context.Context) (interface{}, error) { 21324 ctx = rctx // use context from middleware stack in children 21325 return ec.resolvers.Mutation().DeleteSystemAuthForIntegrationSystem(rctx, args["authID"].(string)) 21326 } 21327 directive1 := func(ctx context.Context) (interface{}, error) { 21328 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteSystemAuthForIntegrationSystem") 21329 if err != nil { 21330 return nil, err 21331 } 21332 if ec.directives.HasScopes == nil { 21333 return nil, errors.New("directive hasScopes is not implemented") 21334 } 21335 return ec.directives.HasScopes(ctx, nil, directive0, path) 21336 } 21337 21338 tmp, err := directive1(rctx) 21339 if err != nil { 21340 return nil, err 21341 } 21342 if tmp == nil { 21343 return nil, nil 21344 } 21345 if data, ok := tmp.(SystemAuth); ok { 21346 return data, nil 21347 } 21348 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.SystemAuth`, tmp) 21349 }) 21350 if err != nil { 21351 ec.Error(ctx, err) 21352 return graphql.Null 21353 } 21354 if resTmp == nil { 21355 if !graphql.HasFieldError(ctx, fc) { 21356 ec.Errorf(ctx, "must not be null") 21357 } 21358 return graphql.Null 21359 } 21360 res := resTmp.(SystemAuth) 21361 fc.Result = res 21362 return ec.marshalNSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx, field.Selections, res) 21363 } 21364 21365 func (ec *executionContext) _Mutation_updateSystemAuth(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21366 defer func() { 21367 if r := recover(); r != nil { 21368 ec.Error(ctx, ec.Recover(ctx, r)) 21369 ret = graphql.Null 21370 } 21371 }() 21372 fc := &graphql.FieldContext{ 21373 Object: "Mutation", 21374 Field: field, 21375 Args: nil, 21376 IsMethod: true, 21377 } 21378 21379 ctx = graphql.WithFieldContext(ctx, fc) 21380 rawArgs := field.ArgumentMap(ec.Variables) 21381 args, err := ec.field_Mutation_updateSystemAuth_args(ctx, rawArgs) 21382 if err != nil { 21383 ec.Error(ctx, err) 21384 return graphql.Null 21385 } 21386 fc.Args = args 21387 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21388 directive0 := func(rctx context.Context) (interface{}, error) { 21389 ctx = rctx // use context from middleware stack in children 21390 return ec.resolvers.Mutation().UpdateSystemAuth(rctx, args["authID"].(string), args["in"].(AuthInput)) 21391 } 21392 directive1 := func(ctx context.Context) (interface{}, error) { 21393 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateSystemAuth") 21394 if err != nil { 21395 return nil, err 21396 } 21397 if ec.directives.HasScopes == nil { 21398 return nil, errors.New("directive hasScopes is not implemented") 21399 } 21400 return ec.directives.HasScopes(ctx, nil, directive0, path) 21401 } 21402 21403 tmp, err := directive1(rctx) 21404 if err != nil { 21405 return nil, err 21406 } 21407 if tmp == nil { 21408 return nil, nil 21409 } 21410 if data, ok := tmp.(SystemAuth); ok { 21411 return data, nil 21412 } 21413 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.SystemAuth`, tmp) 21414 }) 21415 if err != nil { 21416 ec.Error(ctx, err) 21417 return graphql.Null 21418 } 21419 if resTmp == nil { 21420 if !graphql.HasFieldError(ctx, fc) { 21421 ec.Errorf(ctx, "must not be null") 21422 } 21423 return graphql.Null 21424 } 21425 res := resTmp.(SystemAuth) 21426 fc.Result = res 21427 return ec.marshalNSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx, field.Selections, res) 21428 } 21429 21430 func (ec *executionContext) _Mutation_invalidateSystemAuthOneTimeToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21431 defer func() { 21432 if r := recover(); r != nil { 21433 ec.Error(ctx, ec.Recover(ctx, r)) 21434 ret = graphql.Null 21435 } 21436 }() 21437 fc := &graphql.FieldContext{ 21438 Object: "Mutation", 21439 Field: field, 21440 Args: nil, 21441 IsMethod: true, 21442 } 21443 21444 ctx = graphql.WithFieldContext(ctx, fc) 21445 rawArgs := field.ArgumentMap(ec.Variables) 21446 args, err := ec.field_Mutation_invalidateSystemAuthOneTimeToken_args(ctx, rawArgs) 21447 if err != nil { 21448 ec.Error(ctx, err) 21449 return graphql.Null 21450 } 21451 fc.Args = args 21452 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21453 directive0 := func(rctx context.Context) (interface{}, error) { 21454 ctx = rctx // use context from middleware stack in children 21455 return ec.resolvers.Mutation().InvalidateSystemAuthOneTimeToken(rctx, args["authID"].(string)) 21456 } 21457 directive1 := func(ctx context.Context) (interface{}, error) { 21458 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.invalidateSystemAuthOneTimeToken") 21459 if err != nil { 21460 return nil, err 21461 } 21462 if ec.directives.HasScopes == nil { 21463 return nil, errors.New("directive hasScopes is not implemented") 21464 } 21465 return ec.directives.HasScopes(ctx, nil, directive0, path) 21466 } 21467 21468 tmp, err := directive1(rctx) 21469 if err != nil { 21470 return nil, err 21471 } 21472 if tmp == nil { 21473 return nil, nil 21474 } 21475 if data, ok := tmp.(SystemAuth); ok { 21476 return data, nil 21477 } 21478 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.SystemAuth`, tmp) 21479 }) 21480 if err != nil { 21481 ec.Error(ctx, err) 21482 return graphql.Null 21483 } 21484 if resTmp == nil { 21485 if !graphql.HasFieldError(ctx, fc) { 21486 ec.Errorf(ctx, "must not be null") 21487 } 21488 return graphql.Null 21489 } 21490 res := resTmp.(SystemAuth) 21491 fc.Result = res 21492 return ec.marshalNSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx, field.Selections, res) 21493 } 21494 21495 func (ec *executionContext) _Mutation_addEventDefinitionToBundle(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21496 defer func() { 21497 if r := recover(); r != nil { 21498 ec.Error(ctx, ec.Recover(ctx, r)) 21499 ret = graphql.Null 21500 } 21501 }() 21502 fc := &graphql.FieldContext{ 21503 Object: "Mutation", 21504 Field: field, 21505 Args: nil, 21506 IsMethod: true, 21507 } 21508 21509 ctx = graphql.WithFieldContext(ctx, fc) 21510 rawArgs := field.ArgumentMap(ec.Variables) 21511 args, err := ec.field_Mutation_addEventDefinitionToBundle_args(ctx, rawArgs) 21512 if err != nil { 21513 ec.Error(ctx, err) 21514 return graphql.Null 21515 } 21516 fc.Args = args 21517 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21518 directive0 := func(rctx context.Context) (interface{}, error) { 21519 ctx = rctx // use context from middleware stack in children 21520 return ec.resolvers.Mutation().AddEventDefinitionToBundle(rctx, args["bundleID"].(string), args["in"].(EventDefinitionInput)) 21521 } 21522 directive1 := func(ctx context.Context) (interface{}, error) { 21523 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.addEventDefinitionToBundle") 21524 if err != nil { 21525 return nil, err 21526 } 21527 if ec.directives.HasScopes == nil { 21528 return nil, errors.New("directive hasScopes is not implemented") 21529 } 21530 return ec.directives.HasScopes(ctx, nil, directive0, path) 21531 } 21532 21533 tmp, err := directive1(rctx) 21534 if err != nil { 21535 return nil, err 21536 } 21537 if tmp == nil { 21538 return nil, nil 21539 } 21540 if data, ok := tmp.(*EventDefinition); ok { 21541 return data, nil 21542 } 21543 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.EventDefinition`, tmp) 21544 }) 21545 if err != nil { 21546 ec.Error(ctx, err) 21547 return graphql.Null 21548 } 21549 if resTmp == nil { 21550 if !graphql.HasFieldError(ctx, fc) { 21551 ec.Errorf(ctx, "must not be null") 21552 } 21553 return graphql.Null 21554 } 21555 res := resTmp.(*EventDefinition) 21556 fc.Result = res 21557 return ec.marshalNEventDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx, field.Selections, res) 21558 } 21559 21560 func (ec *executionContext) _Mutation_addEventDefinitionToApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21561 defer func() { 21562 if r := recover(); r != nil { 21563 ec.Error(ctx, ec.Recover(ctx, r)) 21564 ret = graphql.Null 21565 } 21566 }() 21567 fc := &graphql.FieldContext{ 21568 Object: "Mutation", 21569 Field: field, 21570 Args: nil, 21571 IsMethod: true, 21572 } 21573 21574 ctx = graphql.WithFieldContext(ctx, fc) 21575 rawArgs := field.ArgumentMap(ec.Variables) 21576 args, err := ec.field_Mutation_addEventDefinitionToApplication_args(ctx, rawArgs) 21577 if err != nil { 21578 ec.Error(ctx, err) 21579 return graphql.Null 21580 } 21581 fc.Args = args 21582 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21583 directive0 := func(rctx context.Context) (interface{}, error) { 21584 ctx = rctx // use context from middleware stack in children 21585 return ec.resolvers.Mutation().AddEventDefinitionToApplication(rctx, args["appID"].(string), args["in"].(EventDefinitionInput)) 21586 } 21587 directive1 := func(ctx context.Context) (interface{}, error) { 21588 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.addEventDefinitionToApplication") 21589 if err != nil { 21590 return nil, err 21591 } 21592 if ec.directives.HasScopes == nil { 21593 return nil, errors.New("directive hasScopes is not implemented") 21594 } 21595 return ec.directives.HasScopes(ctx, nil, directive0, path) 21596 } 21597 21598 tmp, err := directive1(rctx) 21599 if err != nil { 21600 return nil, err 21601 } 21602 if tmp == nil { 21603 return nil, nil 21604 } 21605 if data, ok := tmp.(*EventDefinition); ok { 21606 return data, nil 21607 } 21608 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.EventDefinition`, tmp) 21609 }) 21610 if err != nil { 21611 ec.Error(ctx, err) 21612 return graphql.Null 21613 } 21614 if resTmp == nil { 21615 if !graphql.HasFieldError(ctx, fc) { 21616 ec.Errorf(ctx, "must not be null") 21617 } 21618 return graphql.Null 21619 } 21620 res := resTmp.(*EventDefinition) 21621 fc.Result = res 21622 return ec.marshalNEventDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx, field.Selections, res) 21623 } 21624 21625 func (ec *executionContext) _Mutation_updateEventDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21626 defer func() { 21627 if r := recover(); r != nil { 21628 ec.Error(ctx, ec.Recover(ctx, r)) 21629 ret = graphql.Null 21630 } 21631 }() 21632 fc := &graphql.FieldContext{ 21633 Object: "Mutation", 21634 Field: field, 21635 Args: nil, 21636 IsMethod: true, 21637 } 21638 21639 ctx = graphql.WithFieldContext(ctx, fc) 21640 rawArgs := field.ArgumentMap(ec.Variables) 21641 args, err := ec.field_Mutation_updateEventDefinition_args(ctx, rawArgs) 21642 if err != nil { 21643 ec.Error(ctx, err) 21644 return graphql.Null 21645 } 21646 fc.Args = args 21647 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21648 directive0 := func(rctx context.Context) (interface{}, error) { 21649 ctx = rctx // use context from middleware stack in children 21650 return ec.resolvers.Mutation().UpdateEventDefinition(rctx, args["id"].(string), args["in"].(EventDefinitionInput)) 21651 } 21652 directive1 := func(ctx context.Context) (interface{}, error) { 21653 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateEventDefinition") 21654 if err != nil { 21655 return nil, err 21656 } 21657 if ec.directives.HasScopes == nil { 21658 return nil, errors.New("directive hasScopes is not implemented") 21659 } 21660 return ec.directives.HasScopes(ctx, nil, directive0, path) 21661 } 21662 21663 tmp, err := directive1(rctx) 21664 if err != nil { 21665 return nil, err 21666 } 21667 if tmp == nil { 21668 return nil, nil 21669 } 21670 if data, ok := tmp.(*EventDefinition); ok { 21671 return data, nil 21672 } 21673 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.EventDefinition`, tmp) 21674 }) 21675 if err != nil { 21676 ec.Error(ctx, err) 21677 return graphql.Null 21678 } 21679 if resTmp == nil { 21680 if !graphql.HasFieldError(ctx, fc) { 21681 ec.Errorf(ctx, "must not be null") 21682 } 21683 return graphql.Null 21684 } 21685 res := resTmp.(*EventDefinition) 21686 fc.Result = res 21687 return ec.marshalNEventDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx, field.Selections, res) 21688 } 21689 21690 func (ec *executionContext) _Mutation_updateEventDefinitionForApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21691 defer func() { 21692 if r := recover(); r != nil { 21693 ec.Error(ctx, ec.Recover(ctx, r)) 21694 ret = graphql.Null 21695 } 21696 }() 21697 fc := &graphql.FieldContext{ 21698 Object: "Mutation", 21699 Field: field, 21700 Args: nil, 21701 IsMethod: true, 21702 } 21703 21704 ctx = graphql.WithFieldContext(ctx, fc) 21705 rawArgs := field.ArgumentMap(ec.Variables) 21706 args, err := ec.field_Mutation_updateEventDefinitionForApplication_args(ctx, rawArgs) 21707 if err != nil { 21708 ec.Error(ctx, err) 21709 return graphql.Null 21710 } 21711 fc.Args = args 21712 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21713 directive0 := func(rctx context.Context) (interface{}, error) { 21714 ctx = rctx // use context from middleware stack in children 21715 return ec.resolvers.Mutation().UpdateEventDefinitionForApplication(rctx, args["id"].(string), args["in"].(EventDefinitionInput)) 21716 } 21717 directive1 := func(ctx context.Context) (interface{}, error) { 21718 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateEventDefinitionForApplication") 21719 if err != nil { 21720 return nil, err 21721 } 21722 if ec.directives.HasScopes == nil { 21723 return nil, errors.New("directive hasScopes is not implemented") 21724 } 21725 return ec.directives.HasScopes(ctx, nil, directive0, path) 21726 } 21727 21728 tmp, err := directive1(rctx) 21729 if err != nil { 21730 return nil, err 21731 } 21732 if tmp == nil { 21733 return nil, nil 21734 } 21735 if data, ok := tmp.(*EventDefinition); ok { 21736 return data, nil 21737 } 21738 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.EventDefinition`, tmp) 21739 }) 21740 if err != nil { 21741 ec.Error(ctx, err) 21742 return graphql.Null 21743 } 21744 if resTmp == nil { 21745 if !graphql.HasFieldError(ctx, fc) { 21746 ec.Errorf(ctx, "must not be null") 21747 } 21748 return graphql.Null 21749 } 21750 res := resTmp.(*EventDefinition) 21751 fc.Result = res 21752 return ec.marshalNEventDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx, field.Selections, res) 21753 } 21754 21755 func (ec *executionContext) _Mutation_deleteEventDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21756 defer func() { 21757 if r := recover(); r != nil { 21758 ec.Error(ctx, ec.Recover(ctx, r)) 21759 ret = graphql.Null 21760 } 21761 }() 21762 fc := &graphql.FieldContext{ 21763 Object: "Mutation", 21764 Field: field, 21765 Args: nil, 21766 IsMethod: true, 21767 } 21768 21769 ctx = graphql.WithFieldContext(ctx, fc) 21770 rawArgs := field.ArgumentMap(ec.Variables) 21771 args, err := ec.field_Mutation_deleteEventDefinition_args(ctx, rawArgs) 21772 if err != nil { 21773 ec.Error(ctx, err) 21774 return graphql.Null 21775 } 21776 fc.Args = args 21777 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21778 directive0 := func(rctx context.Context) (interface{}, error) { 21779 ctx = rctx // use context from middleware stack in children 21780 return ec.resolvers.Mutation().DeleteEventDefinition(rctx, args["id"].(string)) 21781 } 21782 directive1 := func(ctx context.Context) (interface{}, error) { 21783 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteEventDefinition") 21784 if err != nil { 21785 return nil, err 21786 } 21787 if ec.directives.HasScopes == nil { 21788 return nil, errors.New("directive hasScopes is not implemented") 21789 } 21790 return ec.directives.HasScopes(ctx, nil, directive0, path) 21791 } 21792 21793 tmp, err := directive1(rctx) 21794 if err != nil { 21795 return nil, err 21796 } 21797 if tmp == nil { 21798 return nil, nil 21799 } 21800 if data, ok := tmp.(*EventDefinition); ok { 21801 return data, nil 21802 } 21803 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.EventDefinition`, tmp) 21804 }) 21805 if err != nil { 21806 ec.Error(ctx, err) 21807 return graphql.Null 21808 } 21809 if resTmp == nil { 21810 if !graphql.HasFieldError(ctx, fc) { 21811 ec.Errorf(ctx, "must not be null") 21812 } 21813 return graphql.Null 21814 } 21815 res := resTmp.(*EventDefinition) 21816 fc.Result = res 21817 return ec.marshalNEventDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx, field.Selections, res) 21818 } 21819 21820 func (ec *executionContext) _Mutation_refetchEventDefinitionSpec(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21821 defer func() { 21822 if r := recover(); r != nil { 21823 ec.Error(ctx, ec.Recover(ctx, r)) 21824 ret = graphql.Null 21825 } 21826 }() 21827 fc := &graphql.FieldContext{ 21828 Object: "Mutation", 21829 Field: field, 21830 Args: nil, 21831 IsMethod: true, 21832 } 21833 21834 ctx = graphql.WithFieldContext(ctx, fc) 21835 rawArgs := field.ArgumentMap(ec.Variables) 21836 args, err := ec.field_Mutation_refetchEventDefinitionSpec_args(ctx, rawArgs) 21837 if err != nil { 21838 ec.Error(ctx, err) 21839 return graphql.Null 21840 } 21841 fc.Args = args 21842 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21843 directive0 := func(rctx context.Context) (interface{}, error) { 21844 ctx = rctx // use context from middleware stack in children 21845 return ec.resolvers.Mutation().RefetchEventDefinitionSpec(rctx, args["eventID"].(string)) 21846 } 21847 directive1 := func(ctx context.Context) (interface{}, error) { 21848 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.refetchEventDefinitionSpec") 21849 if err != nil { 21850 return nil, err 21851 } 21852 if ec.directives.HasScopes == nil { 21853 return nil, errors.New("directive hasScopes is not implemented") 21854 } 21855 return ec.directives.HasScopes(ctx, nil, directive0, path) 21856 } 21857 21858 tmp, err := directive1(rctx) 21859 if err != nil { 21860 return nil, err 21861 } 21862 if tmp == nil { 21863 return nil, nil 21864 } 21865 if data, ok := tmp.(*EventSpec); ok { 21866 return data, nil 21867 } 21868 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.EventSpec`, tmp) 21869 }) 21870 if err != nil { 21871 ec.Error(ctx, err) 21872 return graphql.Null 21873 } 21874 if resTmp == nil { 21875 if !graphql.HasFieldError(ctx, fc) { 21876 ec.Errorf(ctx, "must not be null") 21877 } 21878 return graphql.Null 21879 } 21880 res := resTmp.(*EventSpec) 21881 fc.Result = res 21882 return ec.marshalNEventSpec2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpec(ctx, field.Selections, res) 21883 } 21884 21885 func (ec *executionContext) _Mutation_addDocumentToBundle(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21886 defer func() { 21887 if r := recover(); r != nil { 21888 ec.Error(ctx, ec.Recover(ctx, r)) 21889 ret = graphql.Null 21890 } 21891 }() 21892 fc := &graphql.FieldContext{ 21893 Object: "Mutation", 21894 Field: field, 21895 Args: nil, 21896 IsMethod: true, 21897 } 21898 21899 ctx = graphql.WithFieldContext(ctx, fc) 21900 rawArgs := field.ArgumentMap(ec.Variables) 21901 args, err := ec.field_Mutation_addDocumentToBundle_args(ctx, rawArgs) 21902 if err != nil { 21903 ec.Error(ctx, err) 21904 return graphql.Null 21905 } 21906 fc.Args = args 21907 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21908 directive0 := func(rctx context.Context) (interface{}, error) { 21909 ctx = rctx // use context from middleware stack in children 21910 return ec.resolvers.Mutation().AddDocumentToBundle(rctx, args["bundleID"].(string), args["in"].(DocumentInput)) 21911 } 21912 directive1 := func(ctx context.Context) (interface{}, error) { 21913 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.addDocumentToBundle") 21914 if err != nil { 21915 return nil, err 21916 } 21917 if ec.directives.HasScopes == nil { 21918 return nil, errors.New("directive hasScopes is not implemented") 21919 } 21920 return ec.directives.HasScopes(ctx, nil, directive0, path) 21921 } 21922 21923 tmp, err := directive1(rctx) 21924 if err != nil { 21925 return nil, err 21926 } 21927 if tmp == nil { 21928 return nil, nil 21929 } 21930 if data, ok := tmp.(*Document); ok { 21931 return data, nil 21932 } 21933 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Document`, tmp) 21934 }) 21935 if err != nil { 21936 ec.Error(ctx, err) 21937 return graphql.Null 21938 } 21939 if resTmp == nil { 21940 if !graphql.HasFieldError(ctx, fc) { 21941 ec.Errorf(ctx, "must not be null") 21942 } 21943 return graphql.Null 21944 } 21945 res := resTmp.(*Document) 21946 fc.Result = res 21947 return ec.marshalNDocument2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocument(ctx, field.Selections, res) 21948 } 21949 21950 func (ec *executionContext) _Mutation_deleteDocument(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 21951 defer func() { 21952 if r := recover(); r != nil { 21953 ec.Error(ctx, ec.Recover(ctx, r)) 21954 ret = graphql.Null 21955 } 21956 }() 21957 fc := &graphql.FieldContext{ 21958 Object: "Mutation", 21959 Field: field, 21960 Args: nil, 21961 IsMethod: true, 21962 } 21963 21964 ctx = graphql.WithFieldContext(ctx, fc) 21965 rawArgs := field.ArgumentMap(ec.Variables) 21966 args, err := ec.field_Mutation_deleteDocument_args(ctx, rawArgs) 21967 if err != nil { 21968 ec.Error(ctx, err) 21969 return graphql.Null 21970 } 21971 fc.Args = args 21972 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 21973 directive0 := func(rctx context.Context) (interface{}, error) { 21974 ctx = rctx // use context from middleware stack in children 21975 return ec.resolvers.Mutation().DeleteDocument(rctx, args["id"].(string)) 21976 } 21977 directive1 := func(ctx context.Context) (interface{}, error) { 21978 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteDocument") 21979 if err != nil { 21980 return nil, err 21981 } 21982 if ec.directives.HasScopes == nil { 21983 return nil, errors.New("directive hasScopes is not implemented") 21984 } 21985 return ec.directives.HasScopes(ctx, nil, directive0, path) 21986 } 21987 21988 tmp, err := directive1(rctx) 21989 if err != nil { 21990 return nil, err 21991 } 21992 if tmp == nil { 21993 return nil, nil 21994 } 21995 if data, ok := tmp.(*Document); ok { 21996 return data, nil 21997 } 21998 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Document`, tmp) 21999 }) 22000 if err != nil { 22001 ec.Error(ctx, err) 22002 return graphql.Null 22003 } 22004 if resTmp == nil { 22005 if !graphql.HasFieldError(ctx, fc) { 22006 ec.Errorf(ctx, "must not be null") 22007 } 22008 return graphql.Null 22009 } 22010 res := resTmp.(*Document) 22011 fc.Result = res 22012 return ec.marshalNDocument2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocument(ctx, field.Selections, res) 22013 } 22014 22015 func (ec *executionContext) _Mutation_createFormation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22016 defer func() { 22017 if r := recover(); r != nil { 22018 ec.Error(ctx, ec.Recover(ctx, r)) 22019 ret = graphql.Null 22020 } 22021 }() 22022 fc := &graphql.FieldContext{ 22023 Object: "Mutation", 22024 Field: field, 22025 Args: nil, 22026 IsMethod: true, 22027 } 22028 22029 ctx = graphql.WithFieldContext(ctx, fc) 22030 rawArgs := field.ArgumentMap(ec.Variables) 22031 args, err := ec.field_Mutation_createFormation_args(ctx, rawArgs) 22032 if err != nil { 22033 ec.Error(ctx, err) 22034 return graphql.Null 22035 } 22036 fc.Args = args 22037 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22038 directive0 := func(rctx context.Context) (interface{}, error) { 22039 ctx = rctx // use context from middleware stack in children 22040 return ec.resolvers.Mutation().CreateFormation(rctx, args["formation"].(FormationInput)) 22041 } 22042 directive1 := func(ctx context.Context) (interface{}, error) { 22043 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.createFormation") 22044 if err != nil { 22045 return nil, err 22046 } 22047 if ec.directives.HasScopes == nil { 22048 return nil, errors.New("directive hasScopes is not implemented") 22049 } 22050 return ec.directives.HasScopes(ctx, nil, directive0, path) 22051 } 22052 22053 tmp, err := directive1(rctx) 22054 if err != nil { 22055 return nil, err 22056 } 22057 if tmp == nil { 22058 return nil, nil 22059 } 22060 if data, ok := tmp.(*Formation); ok { 22061 return data, nil 22062 } 22063 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Formation`, tmp) 22064 }) 22065 if err != nil { 22066 ec.Error(ctx, err) 22067 return graphql.Null 22068 } 22069 if resTmp == nil { 22070 if !graphql.HasFieldError(ctx, fc) { 22071 ec.Errorf(ctx, "must not be null") 22072 } 22073 return graphql.Null 22074 } 22075 res := resTmp.(*Formation) 22076 fc.Result = res 22077 return ec.marshalNFormation2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx, field.Selections, res) 22078 } 22079 22080 func (ec *executionContext) _Mutation_resynchronizeFormationNotifications(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22081 defer func() { 22082 if r := recover(); r != nil { 22083 ec.Error(ctx, ec.Recover(ctx, r)) 22084 ret = graphql.Null 22085 } 22086 }() 22087 fc := &graphql.FieldContext{ 22088 Object: "Mutation", 22089 Field: field, 22090 Args: nil, 22091 IsMethod: true, 22092 } 22093 22094 ctx = graphql.WithFieldContext(ctx, fc) 22095 rawArgs := field.ArgumentMap(ec.Variables) 22096 args, err := ec.field_Mutation_resynchronizeFormationNotifications_args(ctx, rawArgs) 22097 if err != nil { 22098 ec.Error(ctx, err) 22099 return graphql.Null 22100 } 22101 fc.Args = args 22102 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22103 directive0 := func(rctx context.Context) (interface{}, error) { 22104 ctx = rctx // use context from middleware stack in children 22105 return ec.resolvers.Mutation().ResynchronizeFormationNotifications(rctx, args["formationID"].(string)) 22106 } 22107 directive1 := func(ctx context.Context) (interface{}, error) { 22108 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.resynchronizeFormationNotifications") 22109 if err != nil { 22110 return nil, err 22111 } 22112 if ec.directives.HasScopes == nil { 22113 return nil, errors.New("directive hasScopes is not implemented") 22114 } 22115 return ec.directives.HasScopes(ctx, nil, directive0, path) 22116 } 22117 22118 tmp, err := directive1(rctx) 22119 if err != nil { 22120 return nil, err 22121 } 22122 if tmp == nil { 22123 return nil, nil 22124 } 22125 if data, ok := tmp.(*Formation); ok { 22126 return data, nil 22127 } 22128 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Formation`, tmp) 22129 }) 22130 if err != nil { 22131 ec.Error(ctx, err) 22132 return graphql.Null 22133 } 22134 if resTmp == nil { 22135 if !graphql.HasFieldError(ctx, fc) { 22136 ec.Errorf(ctx, "must not be null") 22137 } 22138 return graphql.Null 22139 } 22140 res := resTmp.(*Formation) 22141 fc.Result = res 22142 return ec.marshalNFormation2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx, field.Selections, res) 22143 } 22144 22145 func (ec *executionContext) _Mutation_deleteFormation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22146 defer func() { 22147 if r := recover(); r != nil { 22148 ec.Error(ctx, ec.Recover(ctx, r)) 22149 ret = graphql.Null 22150 } 22151 }() 22152 fc := &graphql.FieldContext{ 22153 Object: "Mutation", 22154 Field: field, 22155 Args: nil, 22156 IsMethod: true, 22157 } 22158 22159 ctx = graphql.WithFieldContext(ctx, fc) 22160 rawArgs := field.ArgumentMap(ec.Variables) 22161 args, err := ec.field_Mutation_deleteFormation_args(ctx, rawArgs) 22162 if err != nil { 22163 ec.Error(ctx, err) 22164 return graphql.Null 22165 } 22166 fc.Args = args 22167 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22168 directive0 := func(rctx context.Context) (interface{}, error) { 22169 ctx = rctx // use context from middleware stack in children 22170 return ec.resolvers.Mutation().DeleteFormation(rctx, args["formation"].(FormationInput)) 22171 } 22172 directive1 := func(ctx context.Context) (interface{}, error) { 22173 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteFormation") 22174 if err != nil { 22175 return nil, err 22176 } 22177 if ec.directives.HasScopes == nil { 22178 return nil, errors.New("directive hasScopes is not implemented") 22179 } 22180 return ec.directives.HasScopes(ctx, nil, directive0, path) 22181 } 22182 22183 tmp, err := directive1(rctx) 22184 if err != nil { 22185 return nil, err 22186 } 22187 if tmp == nil { 22188 return nil, nil 22189 } 22190 if data, ok := tmp.(*Formation); ok { 22191 return data, nil 22192 } 22193 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Formation`, tmp) 22194 }) 22195 if err != nil { 22196 ec.Error(ctx, err) 22197 return graphql.Null 22198 } 22199 if resTmp == nil { 22200 if !graphql.HasFieldError(ctx, fc) { 22201 ec.Errorf(ctx, "must not be null") 22202 } 22203 return graphql.Null 22204 } 22205 res := resTmp.(*Formation) 22206 fc.Result = res 22207 return ec.marshalNFormation2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx, field.Selections, res) 22208 } 22209 22210 func (ec *executionContext) _Mutation_assignFormation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22211 defer func() { 22212 if r := recover(); r != nil { 22213 ec.Error(ctx, ec.Recover(ctx, r)) 22214 ret = graphql.Null 22215 } 22216 }() 22217 fc := &graphql.FieldContext{ 22218 Object: "Mutation", 22219 Field: field, 22220 Args: nil, 22221 IsMethod: true, 22222 } 22223 22224 ctx = graphql.WithFieldContext(ctx, fc) 22225 rawArgs := field.ArgumentMap(ec.Variables) 22226 args, err := ec.field_Mutation_assignFormation_args(ctx, rawArgs) 22227 if err != nil { 22228 ec.Error(ctx, err) 22229 return graphql.Null 22230 } 22231 fc.Args = args 22232 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22233 directive0 := func(rctx context.Context) (interface{}, error) { 22234 ctx = rctx // use context from middleware stack in children 22235 return ec.resolvers.Mutation().AssignFormation(rctx, args["objectID"].(string), args["objectType"].(FormationObjectType), args["formation"].(FormationInput)) 22236 } 22237 directive1 := func(ctx context.Context) (interface{}, error) { 22238 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.assignFormation") 22239 if err != nil { 22240 return nil, err 22241 } 22242 if ec.directives.HasScopes == nil { 22243 return nil, errors.New("directive hasScopes is not implemented") 22244 } 22245 return ec.directives.HasScopes(ctx, nil, directive0, path) 22246 } 22247 22248 tmp, err := directive1(rctx) 22249 if err != nil { 22250 return nil, err 22251 } 22252 if tmp == nil { 22253 return nil, nil 22254 } 22255 if data, ok := tmp.(*Formation); ok { 22256 return data, nil 22257 } 22258 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Formation`, tmp) 22259 }) 22260 if err != nil { 22261 ec.Error(ctx, err) 22262 return graphql.Null 22263 } 22264 if resTmp == nil { 22265 if !graphql.HasFieldError(ctx, fc) { 22266 ec.Errorf(ctx, "must not be null") 22267 } 22268 return graphql.Null 22269 } 22270 res := resTmp.(*Formation) 22271 fc.Result = res 22272 return ec.marshalNFormation2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx, field.Selections, res) 22273 } 22274 22275 func (ec *executionContext) _Mutation_unassignFormation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22276 defer func() { 22277 if r := recover(); r != nil { 22278 ec.Error(ctx, ec.Recover(ctx, r)) 22279 ret = graphql.Null 22280 } 22281 }() 22282 fc := &graphql.FieldContext{ 22283 Object: "Mutation", 22284 Field: field, 22285 Args: nil, 22286 IsMethod: true, 22287 } 22288 22289 ctx = graphql.WithFieldContext(ctx, fc) 22290 rawArgs := field.ArgumentMap(ec.Variables) 22291 args, err := ec.field_Mutation_unassignFormation_args(ctx, rawArgs) 22292 if err != nil { 22293 ec.Error(ctx, err) 22294 return graphql.Null 22295 } 22296 fc.Args = args 22297 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22298 directive0 := func(rctx context.Context) (interface{}, error) { 22299 ctx = rctx // use context from middleware stack in children 22300 return ec.resolvers.Mutation().UnassignFormation(rctx, args["objectID"].(string), args["objectType"].(FormationObjectType), args["formation"].(FormationInput)) 22301 } 22302 directive1 := func(ctx context.Context) (interface{}, error) { 22303 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.unassignFormation") 22304 if err != nil { 22305 return nil, err 22306 } 22307 if ec.directives.HasScopes == nil { 22308 return nil, errors.New("directive hasScopes is not implemented") 22309 } 22310 return ec.directives.HasScopes(ctx, nil, directive0, path) 22311 } 22312 22313 tmp, err := directive1(rctx) 22314 if err != nil { 22315 return nil, err 22316 } 22317 if tmp == nil { 22318 return nil, nil 22319 } 22320 if data, ok := tmp.(*Formation); ok { 22321 return data, nil 22322 } 22323 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Formation`, tmp) 22324 }) 22325 if err != nil { 22326 ec.Error(ctx, err) 22327 return graphql.Null 22328 } 22329 if resTmp == nil { 22330 if !graphql.HasFieldError(ctx, fc) { 22331 ec.Errorf(ctx, "must not be null") 22332 } 22333 return graphql.Null 22334 } 22335 res := resTmp.(*Formation) 22336 fc.Result = res 22337 return ec.marshalNFormation2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx, field.Selections, res) 22338 } 22339 22340 func (ec *executionContext) _Mutation_createFormationConstraint(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22341 defer func() { 22342 if r := recover(); r != nil { 22343 ec.Error(ctx, ec.Recover(ctx, r)) 22344 ret = graphql.Null 22345 } 22346 }() 22347 fc := &graphql.FieldContext{ 22348 Object: "Mutation", 22349 Field: field, 22350 Args: nil, 22351 IsMethod: true, 22352 } 22353 22354 ctx = graphql.WithFieldContext(ctx, fc) 22355 rawArgs := field.ArgumentMap(ec.Variables) 22356 args, err := ec.field_Mutation_createFormationConstraint_args(ctx, rawArgs) 22357 if err != nil { 22358 ec.Error(ctx, err) 22359 return graphql.Null 22360 } 22361 fc.Args = args 22362 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22363 directive0 := func(rctx context.Context) (interface{}, error) { 22364 ctx = rctx // use context from middleware stack in children 22365 return ec.resolvers.Mutation().CreateFormationConstraint(rctx, args["formationConstraint"].(FormationConstraintInput)) 22366 } 22367 directive1 := func(ctx context.Context) (interface{}, error) { 22368 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.createFormationConstraint") 22369 if err != nil { 22370 return nil, err 22371 } 22372 if ec.directives.HasScopes == nil { 22373 return nil, errors.New("directive hasScopes is not implemented") 22374 } 22375 return ec.directives.HasScopes(ctx, nil, directive0, path) 22376 } 22377 22378 tmp, err := directive1(rctx) 22379 if err != nil { 22380 return nil, err 22381 } 22382 if tmp == nil { 22383 return nil, nil 22384 } 22385 if data, ok := tmp.(*FormationConstraint); ok { 22386 return data, nil 22387 } 22388 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationConstraint`, tmp) 22389 }) 22390 if err != nil { 22391 ec.Error(ctx, err) 22392 return graphql.Null 22393 } 22394 if resTmp == nil { 22395 if !graphql.HasFieldError(ctx, fc) { 22396 ec.Errorf(ctx, "must not be null") 22397 } 22398 return graphql.Null 22399 } 22400 res := resTmp.(*FormationConstraint) 22401 fc.Result = res 22402 return ec.marshalNFormationConstraint2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraint(ctx, field.Selections, res) 22403 } 22404 22405 func (ec *executionContext) _Mutation_deleteFormationConstraint(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22406 defer func() { 22407 if r := recover(); r != nil { 22408 ec.Error(ctx, ec.Recover(ctx, r)) 22409 ret = graphql.Null 22410 } 22411 }() 22412 fc := &graphql.FieldContext{ 22413 Object: "Mutation", 22414 Field: field, 22415 Args: nil, 22416 IsMethod: true, 22417 } 22418 22419 ctx = graphql.WithFieldContext(ctx, fc) 22420 rawArgs := field.ArgumentMap(ec.Variables) 22421 args, err := ec.field_Mutation_deleteFormationConstraint_args(ctx, rawArgs) 22422 if err != nil { 22423 ec.Error(ctx, err) 22424 return graphql.Null 22425 } 22426 fc.Args = args 22427 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22428 directive0 := func(rctx context.Context) (interface{}, error) { 22429 ctx = rctx // use context from middleware stack in children 22430 return ec.resolvers.Mutation().DeleteFormationConstraint(rctx, args["id"].(string)) 22431 } 22432 directive1 := func(ctx context.Context) (interface{}, error) { 22433 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteFormationConstraint") 22434 if err != nil { 22435 return nil, err 22436 } 22437 if ec.directives.HasScopes == nil { 22438 return nil, errors.New("directive hasScopes is not implemented") 22439 } 22440 return ec.directives.HasScopes(ctx, nil, directive0, path) 22441 } 22442 22443 tmp, err := directive1(rctx) 22444 if err != nil { 22445 return nil, err 22446 } 22447 if tmp == nil { 22448 return nil, nil 22449 } 22450 if data, ok := tmp.(*FormationConstraint); ok { 22451 return data, nil 22452 } 22453 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationConstraint`, tmp) 22454 }) 22455 if err != nil { 22456 ec.Error(ctx, err) 22457 return graphql.Null 22458 } 22459 if resTmp == nil { 22460 if !graphql.HasFieldError(ctx, fc) { 22461 ec.Errorf(ctx, "must not be null") 22462 } 22463 return graphql.Null 22464 } 22465 res := resTmp.(*FormationConstraint) 22466 fc.Result = res 22467 return ec.marshalNFormationConstraint2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraint(ctx, field.Selections, res) 22468 } 22469 22470 func (ec *executionContext) _Mutation_updateFormationConstraint(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22471 defer func() { 22472 if r := recover(); r != nil { 22473 ec.Error(ctx, ec.Recover(ctx, r)) 22474 ret = graphql.Null 22475 } 22476 }() 22477 fc := &graphql.FieldContext{ 22478 Object: "Mutation", 22479 Field: field, 22480 Args: nil, 22481 IsMethod: true, 22482 } 22483 22484 ctx = graphql.WithFieldContext(ctx, fc) 22485 rawArgs := field.ArgumentMap(ec.Variables) 22486 args, err := ec.field_Mutation_updateFormationConstraint_args(ctx, rawArgs) 22487 if err != nil { 22488 ec.Error(ctx, err) 22489 return graphql.Null 22490 } 22491 fc.Args = args 22492 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22493 directive0 := func(rctx context.Context) (interface{}, error) { 22494 ctx = rctx // use context from middleware stack in children 22495 return ec.resolvers.Mutation().UpdateFormationConstraint(rctx, args["id"].(string), args["in"].(FormationConstraintUpdateInput)) 22496 } 22497 directive1 := func(ctx context.Context) (interface{}, error) { 22498 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateFormationConstraint") 22499 if err != nil { 22500 return nil, err 22501 } 22502 if ec.directives.HasScopes == nil { 22503 return nil, errors.New("directive hasScopes is not implemented") 22504 } 22505 return ec.directives.HasScopes(ctx, nil, directive0, path) 22506 } 22507 22508 tmp, err := directive1(rctx) 22509 if err != nil { 22510 return nil, err 22511 } 22512 if tmp == nil { 22513 return nil, nil 22514 } 22515 if data, ok := tmp.(*FormationConstraint); ok { 22516 return data, nil 22517 } 22518 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationConstraint`, tmp) 22519 }) 22520 if err != nil { 22521 ec.Error(ctx, err) 22522 return graphql.Null 22523 } 22524 if resTmp == nil { 22525 if !graphql.HasFieldError(ctx, fc) { 22526 ec.Errorf(ctx, "must not be null") 22527 } 22528 return graphql.Null 22529 } 22530 res := resTmp.(*FormationConstraint) 22531 fc.Result = res 22532 return ec.marshalNFormationConstraint2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraint(ctx, field.Selections, res) 22533 } 22534 22535 func (ec *executionContext) _Mutation_attachConstraintToFormationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22536 defer func() { 22537 if r := recover(); r != nil { 22538 ec.Error(ctx, ec.Recover(ctx, r)) 22539 ret = graphql.Null 22540 } 22541 }() 22542 fc := &graphql.FieldContext{ 22543 Object: "Mutation", 22544 Field: field, 22545 Args: nil, 22546 IsMethod: true, 22547 } 22548 22549 ctx = graphql.WithFieldContext(ctx, fc) 22550 rawArgs := field.ArgumentMap(ec.Variables) 22551 args, err := ec.field_Mutation_attachConstraintToFormationTemplate_args(ctx, rawArgs) 22552 if err != nil { 22553 ec.Error(ctx, err) 22554 return graphql.Null 22555 } 22556 fc.Args = args 22557 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22558 directive0 := func(rctx context.Context) (interface{}, error) { 22559 ctx = rctx // use context from middleware stack in children 22560 return ec.resolvers.Mutation().AttachConstraintToFormationTemplate(rctx, args["constraintID"].(string), args["formationTemplateID"].(string)) 22561 } 22562 directive1 := func(ctx context.Context) (interface{}, error) { 22563 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.attachConstraintToFormationTemplate") 22564 if err != nil { 22565 return nil, err 22566 } 22567 if ec.directives.HasScopes == nil { 22568 return nil, errors.New("directive hasScopes is not implemented") 22569 } 22570 return ec.directives.HasScopes(ctx, nil, directive0, path) 22571 } 22572 22573 tmp, err := directive1(rctx) 22574 if err != nil { 22575 return nil, err 22576 } 22577 if tmp == nil { 22578 return nil, nil 22579 } 22580 if data, ok := tmp.(*ConstraintReference); ok { 22581 return data, nil 22582 } 22583 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ConstraintReference`, tmp) 22584 }) 22585 if err != nil { 22586 ec.Error(ctx, err) 22587 return graphql.Null 22588 } 22589 if resTmp == nil { 22590 if !graphql.HasFieldError(ctx, fc) { 22591 ec.Errorf(ctx, "must not be null") 22592 } 22593 return graphql.Null 22594 } 22595 res := resTmp.(*ConstraintReference) 22596 fc.Result = res 22597 return ec.marshalNConstraintReference2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐConstraintReference(ctx, field.Selections, res) 22598 } 22599 22600 func (ec *executionContext) _Mutation_detachConstraintFromFormationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22601 defer func() { 22602 if r := recover(); r != nil { 22603 ec.Error(ctx, ec.Recover(ctx, r)) 22604 ret = graphql.Null 22605 } 22606 }() 22607 fc := &graphql.FieldContext{ 22608 Object: "Mutation", 22609 Field: field, 22610 Args: nil, 22611 IsMethod: true, 22612 } 22613 22614 ctx = graphql.WithFieldContext(ctx, fc) 22615 rawArgs := field.ArgumentMap(ec.Variables) 22616 args, err := ec.field_Mutation_detachConstraintFromFormationTemplate_args(ctx, rawArgs) 22617 if err != nil { 22618 ec.Error(ctx, err) 22619 return graphql.Null 22620 } 22621 fc.Args = args 22622 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22623 directive0 := func(rctx context.Context) (interface{}, error) { 22624 ctx = rctx // use context from middleware stack in children 22625 return ec.resolvers.Mutation().DetachConstraintFromFormationTemplate(rctx, args["constraintID"].(string), args["formationTemplateID"].(string)) 22626 } 22627 directive1 := func(ctx context.Context) (interface{}, error) { 22628 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.detachConstraintFromFormationTemplate") 22629 if err != nil { 22630 return nil, err 22631 } 22632 if ec.directives.HasScopes == nil { 22633 return nil, errors.New("directive hasScopes is not implemented") 22634 } 22635 return ec.directives.HasScopes(ctx, nil, directive0, path) 22636 } 22637 22638 tmp, err := directive1(rctx) 22639 if err != nil { 22640 return nil, err 22641 } 22642 if tmp == nil { 22643 return nil, nil 22644 } 22645 if data, ok := tmp.(*ConstraintReference); ok { 22646 return data, nil 22647 } 22648 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ConstraintReference`, tmp) 22649 }) 22650 if err != nil { 22651 ec.Error(ctx, err) 22652 return graphql.Null 22653 } 22654 if resTmp == nil { 22655 if !graphql.HasFieldError(ctx, fc) { 22656 ec.Errorf(ctx, "must not be null") 22657 } 22658 return graphql.Null 22659 } 22660 res := resTmp.(*ConstraintReference) 22661 fc.Result = res 22662 return ec.marshalNConstraintReference2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐConstraintReference(ctx, field.Selections, res) 22663 } 22664 22665 func (ec *executionContext) _Mutation_createLabelDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22666 defer func() { 22667 if r := recover(); r != nil { 22668 ec.Error(ctx, ec.Recover(ctx, r)) 22669 ret = graphql.Null 22670 } 22671 }() 22672 fc := &graphql.FieldContext{ 22673 Object: "Mutation", 22674 Field: field, 22675 Args: nil, 22676 IsMethod: true, 22677 } 22678 22679 ctx = graphql.WithFieldContext(ctx, fc) 22680 rawArgs := field.ArgumentMap(ec.Variables) 22681 args, err := ec.field_Mutation_createLabelDefinition_args(ctx, rawArgs) 22682 if err != nil { 22683 ec.Error(ctx, err) 22684 return graphql.Null 22685 } 22686 fc.Args = args 22687 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22688 directive0 := func(rctx context.Context) (interface{}, error) { 22689 ctx = rctx // use context from middleware stack in children 22690 return ec.resolvers.Mutation().CreateLabelDefinition(rctx, args["in"].(LabelDefinitionInput)) 22691 } 22692 directive1 := func(ctx context.Context) (interface{}, error) { 22693 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.createLabelDefinition") 22694 if err != nil { 22695 return nil, err 22696 } 22697 if ec.directives.HasScopes == nil { 22698 return nil, errors.New("directive hasScopes is not implemented") 22699 } 22700 return ec.directives.HasScopes(ctx, nil, directive0, path) 22701 } 22702 22703 tmp, err := directive1(rctx) 22704 if err != nil { 22705 return nil, err 22706 } 22707 if tmp == nil { 22708 return nil, nil 22709 } 22710 if data, ok := tmp.(*LabelDefinition); ok { 22711 return data, nil 22712 } 22713 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.LabelDefinition`, tmp) 22714 }) 22715 if err != nil { 22716 ec.Error(ctx, err) 22717 return graphql.Null 22718 } 22719 if resTmp == nil { 22720 if !graphql.HasFieldError(ctx, fc) { 22721 ec.Errorf(ctx, "must not be null") 22722 } 22723 return graphql.Null 22724 } 22725 res := resTmp.(*LabelDefinition) 22726 fc.Result = res 22727 return ec.marshalNLabelDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinition(ctx, field.Selections, res) 22728 } 22729 22730 func (ec *executionContext) _Mutation_updateLabelDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22731 defer func() { 22732 if r := recover(); r != nil { 22733 ec.Error(ctx, ec.Recover(ctx, r)) 22734 ret = graphql.Null 22735 } 22736 }() 22737 fc := &graphql.FieldContext{ 22738 Object: "Mutation", 22739 Field: field, 22740 Args: nil, 22741 IsMethod: true, 22742 } 22743 22744 ctx = graphql.WithFieldContext(ctx, fc) 22745 rawArgs := field.ArgumentMap(ec.Variables) 22746 args, err := ec.field_Mutation_updateLabelDefinition_args(ctx, rawArgs) 22747 if err != nil { 22748 ec.Error(ctx, err) 22749 return graphql.Null 22750 } 22751 fc.Args = args 22752 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22753 directive0 := func(rctx context.Context) (interface{}, error) { 22754 ctx = rctx // use context from middleware stack in children 22755 return ec.resolvers.Mutation().UpdateLabelDefinition(rctx, args["in"].(LabelDefinitionInput)) 22756 } 22757 directive1 := func(ctx context.Context) (interface{}, error) { 22758 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateLabelDefinition") 22759 if err != nil { 22760 return nil, err 22761 } 22762 if ec.directives.HasScopes == nil { 22763 return nil, errors.New("directive hasScopes is not implemented") 22764 } 22765 return ec.directives.HasScopes(ctx, nil, directive0, path) 22766 } 22767 22768 tmp, err := directive1(rctx) 22769 if err != nil { 22770 return nil, err 22771 } 22772 if tmp == nil { 22773 return nil, nil 22774 } 22775 if data, ok := tmp.(*LabelDefinition); ok { 22776 return data, nil 22777 } 22778 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.LabelDefinition`, tmp) 22779 }) 22780 if err != nil { 22781 ec.Error(ctx, err) 22782 return graphql.Null 22783 } 22784 if resTmp == nil { 22785 if !graphql.HasFieldError(ctx, fc) { 22786 ec.Errorf(ctx, "must not be null") 22787 } 22788 return graphql.Null 22789 } 22790 res := resTmp.(*LabelDefinition) 22791 fc.Result = res 22792 return ec.marshalNLabelDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinition(ctx, field.Selections, res) 22793 } 22794 22795 func (ec *executionContext) _Mutation_setApplicationLabel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22796 defer func() { 22797 if r := recover(); r != nil { 22798 ec.Error(ctx, ec.Recover(ctx, r)) 22799 ret = graphql.Null 22800 } 22801 }() 22802 fc := &graphql.FieldContext{ 22803 Object: "Mutation", 22804 Field: field, 22805 Args: nil, 22806 IsMethod: true, 22807 } 22808 22809 ctx = graphql.WithFieldContext(ctx, fc) 22810 rawArgs := field.ArgumentMap(ec.Variables) 22811 args, err := ec.field_Mutation_setApplicationLabel_args(ctx, rawArgs) 22812 if err != nil { 22813 ec.Error(ctx, err) 22814 return graphql.Null 22815 } 22816 fc.Args = args 22817 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22818 directive0 := func(rctx context.Context) (interface{}, error) { 22819 ctx = rctx // use context from middleware stack in children 22820 return ec.resolvers.Mutation().SetApplicationLabel(rctx, args["applicationID"].(string), args["key"].(string), args["value"].(interface{})) 22821 } 22822 directive1 := func(ctx context.Context) (interface{}, error) { 22823 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.setApplicationLabel") 22824 if err != nil { 22825 return nil, err 22826 } 22827 if ec.directives.HasScopes == nil { 22828 return nil, errors.New("directive hasScopes is not implemented") 22829 } 22830 return ec.directives.HasScopes(ctx, nil, directive0, path) 22831 } 22832 22833 tmp, err := directive1(rctx) 22834 if err != nil { 22835 return nil, err 22836 } 22837 if tmp == nil { 22838 return nil, nil 22839 } 22840 if data, ok := tmp.(*Label); ok { 22841 return data, nil 22842 } 22843 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Label`, tmp) 22844 }) 22845 if err != nil { 22846 ec.Error(ctx, err) 22847 return graphql.Null 22848 } 22849 if resTmp == nil { 22850 if !graphql.HasFieldError(ctx, fc) { 22851 ec.Errorf(ctx, "must not be null") 22852 } 22853 return graphql.Null 22854 } 22855 res := resTmp.(*Label) 22856 fc.Result = res 22857 return ec.marshalNLabel2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabel(ctx, field.Selections, res) 22858 } 22859 22860 func (ec *executionContext) _Mutation_deleteApplicationLabel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22861 defer func() { 22862 if r := recover(); r != nil { 22863 ec.Error(ctx, ec.Recover(ctx, r)) 22864 ret = graphql.Null 22865 } 22866 }() 22867 fc := &graphql.FieldContext{ 22868 Object: "Mutation", 22869 Field: field, 22870 Args: nil, 22871 IsMethod: true, 22872 } 22873 22874 ctx = graphql.WithFieldContext(ctx, fc) 22875 rawArgs := field.ArgumentMap(ec.Variables) 22876 args, err := ec.field_Mutation_deleteApplicationLabel_args(ctx, rawArgs) 22877 if err != nil { 22878 ec.Error(ctx, err) 22879 return graphql.Null 22880 } 22881 fc.Args = args 22882 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22883 directive0 := func(rctx context.Context) (interface{}, error) { 22884 ctx = rctx // use context from middleware stack in children 22885 return ec.resolvers.Mutation().DeleteApplicationLabel(rctx, args["applicationID"].(string), args["key"].(string)) 22886 } 22887 directive1 := func(ctx context.Context) (interface{}, error) { 22888 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteApplicationLabel") 22889 if err != nil { 22890 return nil, err 22891 } 22892 if ec.directives.HasScopes == nil { 22893 return nil, errors.New("directive hasScopes is not implemented") 22894 } 22895 return ec.directives.HasScopes(ctx, nil, directive0, path) 22896 } 22897 22898 tmp, err := directive1(rctx) 22899 if err != nil { 22900 return nil, err 22901 } 22902 if tmp == nil { 22903 return nil, nil 22904 } 22905 if data, ok := tmp.(*Label); ok { 22906 return data, nil 22907 } 22908 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Label`, tmp) 22909 }) 22910 if err != nil { 22911 ec.Error(ctx, err) 22912 return graphql.Null 22913 } 22914 if resTmp == nil { 22915 if !graphql.HasFieldError(ctx, fc) { 22916 ec.Errorf(ctx, "must not be null") 22917 } 22918 return graphql.Null 22919 } 22920 res := resTmp.(*Label) 22921 fc.Result = res 22922 return ec.marshalNLabel2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabel(ctx, field.Selections, res) 22923 } 22924 22925 func (ec *executionContext) _Mutation_setRuntimeLabel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22926 defer func() { 22927 if r := recover(); r != nil { 22928 ec.Error(ctx, ec.Recover(ctx, r)) 22929 ret = graphql.Null 22930 } 22931 }() 22932 fc := &graphql.FieldContext{ 22933 Object: "Mutation", 22934 Field: field, 22935 Args: nil, 22936 IsMethod: true, 22937 } 22938 22939 ctx = graphql.WithFieldContext(ctx, fc) 22940 rawArgs := field.ArgumentMap(ec.Variables) 22941 args, err := ec.field_Mutation_setRuntimeLabel_args(ctx, rawArgs) 22942 if err != nil { 22943 ec.Error(ctx, err) 22944 return graphql.Null 22945 } 22946 fc.Args = args 22947 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 22948 directive0 := func(rctx context.Context) (interface{}, error) { 22949 ctx = rctx // use context from middleware stack in children 22950 return ec.resolvers.Mutation().SetRuntimeLabel(rctx, args["runtimeID"].(string), args["key"].(string), args["value"].(interface{})) 22951 } 22952 directive1 := func(ctx context.Context) (interface{}, error) { 22953 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.setRuntimeLabel") 22954 if err != nil { 22955 return nil, err 22956 } 22957 if ec.directives.HasScopes == nil { 22958 return nil, errors.New("directive hasScopes is not implemented") 22959 } 22960 return ec.directives.HasScopes(ctx, nil, directive0, path) 22961 } 22962 22963 tmp, err := directive1(rctx) 22964 if err != nil { 22965 return nil, err 22966 } 22967 if tmp == nil { 22968 return nil, nil 22969 } 22970 if data, ok := tmp.(*Label); ok { 22971 return data, nil 22972 } 22973 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Label`, tmp) 22974 }) 22975 if err != nil { 22976 ec.Error(ctx, err) 22977 return graphql.Null 22978 } 22979 if resTmp == nil { 22980 if !graphql.HasFieldError(ctx, fc) { 22981 ec.Errorf(ctx, "must not be null") 22982 } 22983 return graphql.Null 22984 } 22985 res := resTmp.(*Label) 22986 fc.Result = res 22987 return ec.marshalNLabel2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabel(ctx, field.Selections, res) 22988 } 22989 22990 func (ec *executionContext) _Mutation_deleteRuntimeLabel(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 22991 defer func() { 22992 if r := recover(); r != nil { 22993 ec.Error(ctx, ec.Recover(ctx, r)) 22994 ret = graphql.Null 22995 } 22996 }() 22997 fc := &graphql.FieldContext{ 22998 Object: "Mutation", 22999 Field: field, 23000 Args: nil, 23001 IsMethod: true, 23002 } 23003 23004 ctx = graphql.WithFieldContext(ctx, fc) 23005 rawArgs := field.ArgumentMap(ec.Variables) 23006 args, err := ec.field_Mutation_deleteRuntimeLabel_args(ctx, rawArgs) 23007 if err != nil { 23008 ec.Error(ctx, err) 23009 return graphql.Null 23010 } 23011 fc.Args = args 23012 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23013 directive0 := func(rctx context.Context) (interface{}, error) { 23014 ctx = rctx // use context from middleware stack in children 23015 return ec.resolvers.Mutation().DeleteRuntimeLabel(rctx, args["runtimeID"].(string), args["key"].(string)) 23016 } 23017 directive1 := func(ctx context.Context) (interface{}, error) { 23018 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteRuntimeLabel") 23019 if err != nil { 23020 return nil, err 23021 } 23022 if ec.directives.HasScopes == nil { 23023 return nil, errors.New("directive hasScopes is not implemented") 23024 } 23025 return ec.directives.HasScopes(ctx, nil, directive0, path) 23026 } 23027 23028 tmp, err := directive1(rctx) 23029 if err != nil { 23030 return nil, err 23031 } 23032 if tmp == nil { 23033 return nil, nil 23034 } 23035 if data, ok := tmp.(*Label); ok { 23036 return data, nil 23037 } 23038 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Label`, tmp) 23039 }) 23040 if err != nil { 23041 ec.Error(ctx, err) 23042 return graphql.Null 23043 } 23044 if resTmp == nil { 23045 if !graphql.HasFieldError(ctx, fc) { 23046 ec.Errorf(ctx, "must not be null") 23047 } 23048 return graphql.Null 23049 } 23050 res := resTmp.(*Label) 23051 fc.Result = res 23052 return ec.marshalNLabel2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabel(ctx, field.Selections, res) 23053 } 23054 23055 func (ec *executionContext) _Mutation_setDefaultEventingForApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23056 defer func() { 23057 if r := recover(); r != nil { 23058 ec.Error(ctx, ec.Recover(ctx, r)) 23059 ret = graphql.Null 23060 } 23061 }() 23062 fc := &graphql.FieldContext{ 23063 Object: "Mutation", 23064 Field: field, 23065 Args: nil, 23066 IsMethod: true, 23067 } 23068 23069 ctx = graphql.WithFieldContext(ctx, fc) 23070 rawArgs := field.ArgumentMap(ec.Variables) 23071 args, err := ec.field_Mutation_setDefaultEventingForApplication_args(ctx, rawArgs) 23072 if err != nil { 23073 ec.Error(ctx, err) 23074 return graphql.Null 23075 } 23076 fc.Args = args 23077 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23078 directive0 := func(rctx context.Context) (interface{}, error) { 23079 ctx = rctx // use context from middleware stack in children 23080 return ec.resolvers.Mutation().SetDefaultEventingForApplication(rctx, args["appID"].(string), args["runtimeID"].(string)) 23081 } 23082 directive1 := func(ctx context.Context) (interface{}, error) { 23083 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.setDefaultEventingForApplication") 23084 if err != nil { 23085 return nil, err 23086 } 23087 if ec.directives.HasScopes == nil { 23088 return nil, errors.New("directive hasScopes is not implemented") 23089 } 23090 return ec.directives.HasScopes(ctx, nil, directive0, path) 23091 } 23092 23093 tmp, err := directive1(rctx) 23094 if err != nil { 23095 return nil, err 23096 } 23097 if tmp == nil { 23098 return nil, nil 23099 } 23100 if data, ok := tmp.(*ApplicationEventingConfiguration); ok { 23101 return data, nil 23102 } 23103 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationEventingConfiguration`, tmp) 23104 }) 23105 if err != nil { 23106 ec.Error(ctx, err) 23107 return graphql.Null 23108 } 23109 if resTmp == nil { 23110 if !graphql.HasFieldError(ctx, fc) { 23111 ec.Errorf(ctx, "must not be null") 23112 } 23113 return graphql.Null 23114 } 23115 res := resTmp.(*ApplicationEventingConfiguration) 23116 fc.Result = res 23117 return ec.marshalNApplicationEventingConfiguration2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationEventingConfiguration(ctx, field.Selections, res) 23118 } 23119 23120 func (ec *executionContext) _Mutation_deleteDefaultEventingForApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23121 defer func() { 23122 if r := recover(); r != nil { 23123 ec.Error(ctx, ec.Recover(ctx, r)) 23124 ret = graphql.Null 23125 } 23126 }() 23127 fc := &graphql.FieldContext{ 23128 Object: "Mutation", 23129 Field: field, 23130 Args: nil, 23131 IsMethod: true, 23132 } 23133 23134 ctx = graphql.WithFieldContext(ctx, fc) 23135 rawArgs := field.ArgumentMap(ec.Variables) 23136 args, err := ec.field_Mutation_deleteDefaultEventingForApplication_args(ctx, rawArgs) 23137 if err != nil { 23138 ec.Error(ctx, err) 23139 return graphql.Null 23140 } 23141 fc.Args = args 23142 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23143 directive0 := func(rctx context.Context) (interface{}, error) { 23144 ctx = rctx // use context from middleware stack in children 23145 return ec.resolvers.Mutation().DeleteDefaultEventingForApplication(rctx, args["appID"].(string)) 23146 } 23147 directive1 := func(ctx context.Context) (interface{}, error) { 23148 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteDefaultEventingForApplication") 23149 if err != nil { 23150 return nil, err 23151 } 23152 if ec.directives.HasScopes == nil { 23153 return nil, errors.New("directive hasScopes is not implemented") 23154 } 23155 return ec.directives.HasScopes(ctx, nil, directive0, path) 23156 } 23157 23158 tmp, err := directive1(rctx) 23159 if err != nil { 23160 return nil, err 23161 } 23162 if tmp == nil { 23163 return nil, nil 23164 } 23165 if data, ok := tmp.(*ApplicationEventingConfiguration); ok { 23166 return data, nil 23167 } 23168 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationEventingConfiguration`, tmp) 23169 }) 23170 if err != nil { 23171 ec.Error(ctx, err) 23172 return graphql.Null 23173 } 23174 if resTmp == nil { 23175 if !graphql.HasFieldError(ctx, fc) { 23176 ec.Errorf(ctx, "must not be null") 23177 } 23178 return graphql.Null 23179 } 23180 res := resTmp.(*ApplicationEventingConfiguration) 23181 fc.Result = res 23182 return ec.marshalNApplicationEventingConfiguration2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationEventingConfiguration(ctx, field.Selections, res) 23183 } 23184 23185 func (ec *executionContext) _Mutation_setBundleInstanceAuth(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23186 defer func() { 23187 if r := recover(); r != nil { 23188 ec.Error(ctx, ec.Recover(ctx, r)) 23189 ret = graphql.Null 23190 } 23191 }() 23192 fc := &graphql.FieldContext{ 23193 Object: "Mutation", 23194 Field: field, 23195 Args: nil, 23196 IsMethod: true, 23197 } 23198 23199 ctx = graphql.WithFieldContext(ctx, fc) 23200 rawArgs := field.ArgumentMap(ec.Variables) 23201 args, err := ec.field_Mutation_setBundleInstanceAuth_args(ctx, rawArgs) 23202 if err != nil { 23203 ec.Error(ctx, err) 23204 return graphql.Null 23205 } 23206 fc.Args = args 23207 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23208 directive0 := func(rctx context.Context) (interface{}, error) { 23209 ctx = rctx // use context from middleware stack in children 23210 return ec.resolvers.Mutation().SetBundleInstanceAuth(rctx, args["authID"].(string), args["in"].(BundleInstanceAuthSetInput)) 23211 } 23212 directive1 := func(ctx context.Context) (interface{}, error) { 23213 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.setBundleInstanceAuth") 23214 if err != nil { 23215 return nil, err 23216 } 23217 if ec.directives.HasScopes == nil { 23218 return nil, errors.New("directive hasScopes is not implemented") 23219 } 23220 return ec.directives.HasScopes(ctx, nil, directive0, path) 23221 } 23222 23223 tmp, err := directive1(rctx) 23224 if err != nil { 23225 return nil, err 23226 } 23227 if tmp == nil { 23228 return nil, nil 23229 } 23230 if data, ok := tmp.(*BundleInstanceAuth); ok { 23231 return data, nil 23232 } 23233 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuth`, tmp) 23234 }) 23235 if err != nil { 23236 ec.Error(ctx, err) 23237 return graphql.Null 23238 } 23239 if resTmp == nil { 23240 if !graphql.HasFieldError(ctx, fc) { 23241 ec.Errorf(ctx, "must not be null") 23242 } 23243 return graphql.Null 23244 } 23245 res := resTmp.(*BundleInstanceAuth) 23246 fc.Result = res 23247 return ec.marshalNBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx, field.Selections, res) 23248 } 23249 23250 func (ec *executionContext) _Mutation_deleteBundleInstanceAuth(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23251 defer func() { 23252 if r := recover(); r != nil { 23253 ec.Error(ctx, ec.Recover(ctx, r)) 23254 ret = graphql.Null 23255 } 23256 }() 23257 fc := &graphql.FieldContext{ 23258 Object: "Mutation", 23259 Field: field, 23260 Args: nil, 23261 IsMethod: true, 23262 } 23263 23264 ctx = graphql.WithFieldContext(ctx, fc) 23265 rawArgs := field.ArgumentMap(ec.Variables) 23266 args, err := ec.field_Mutation_deleteBundleInstanceAuth_args(ctx, rawArgs) 23267 if err != nil { 23268 ec.Error(ctx, err) 23269 return graphql.Null 23270 } 23271 fc.Args = args 23272 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23273 directive0 := func(rctx context.Context) (interface{}, error) { 23274 ctx = rctx // use context from middleware stack in children 23275 return ec.resolvers.Mutation().DeleteBundleInstanceAuth(rctx, args["authID"].(string)) 23276 } 23277 directive1 := func(ctx context.Context) (interface{}, error) { 23278 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteBundleInstanceAuth") 23279 if err != nil { 23280 return nil, err 23281 } 23282 if ec.directives.HasScopes == nil { 23283 return nil, errors.New("directive hasScopes is not implemented") 23284 } 23285 return ec.directives.HasScopes(ctx, nil, directive0, path) 23286 } 23287 23288 tmp, err := directive1(rctx) 23289 if err != nil { 23290 return nil, err 23291 } 23292 if tmp == nil { 23293 return nil, nil 23294 } 23295 if data, ok := tmp.(*BundleInstanceAuth); ok { 23296 return data, nil 23297 } 23298 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuth`, tmp) 23299 }) 23300 if err != nil { 23301 ec.Error(ctx, err) 23302 return graphql.Null 23303 } 23304 if resTmp == nil { 23305 if !graphql.HasFieldError(ctx, fc) { 23306 ec.Errorf(ctx, "must not be null") 23307 } 23308 return graphql.Null 23309 } 23310 res := resTmp.(*BundleInstanceAuth) 23311 fc.Result = res 23312 return ec.marshalNBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx, field.Selections, res) 23313 } 23314 23315 func (ec *executionContext) _Mutation_requestBundleInstanceAuthCreation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23316 defer func() { 23317 if r := recover(); r != nil { 23318 ec.Error(ctx, ec.Recover(ctx, r)) 23319 ret = graphql.Null 23320 } 23321 }() 23322 fc := &graphql.FieldContext{ 23323 Object: "Mutation", 23324 Field: field, 23325 Args: nil, 23326 IsMethod: true, 23327 } 23328 23329 ctx = graphql.WithFieldContext(ctx, fc) 23330 rawArgs := field.ArgumentMap(ec.Variables) 23331 args, err := ec.field_Mutation_requestBundleInstanceAuthCreation_args(ctx, rawArgs) 23332 if err != nil { 23333 ec.Error(ctx, err) 23334 return graphql.Null 23335 } 23336 fc.Args = args 23337 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23338 directive0 := func(rctx context.Context) (interface{}, error) { 23339 ctx = rctx // use context from middleware stack in children 23340 return ec.resolvers.Mutation().RequestBundleInstanceAuthCreation(rctx, args["bundleID"].(string), args["in"].(BundleInstanceAuthRequestInput)) 23341 } 23342 directive1 := func(ctx context.Context) (interface{}, error) { 23343 applicationProvider, err := ec.unmarshalNString2string(ctx, "GetApplicationIDByBundle") 23344 if err != nil { 23345 return nil, err 23346 } 23347 idField, err := ec.unmarshalNString2string(ctx, "bundleID") 23348 if err != nil { 23349 return nil, err 23350 } 23351 if ec.directives.HasScenario == nil { 23352 return nil, errors.New("directive hasScenario is not implemented") 23353 } 23354 return ec.directives.HasScenario(ctx, nil, directive0, applicationProvider, idField) 23355 } 23356 directive2 := func(ctx context.Context) (interface{}, error) { 23357 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.requestBundleInstanceAuthCreation") 23358 if err != nil { 23359 return nil, err 23360 } 23361 if ec.directives.HasScopes == nil { 23362 return nil, errors.New("directive hasScopes is not implemented") 23363 } 23364 return ec.directives.HasScopes(ctx, nil, directive1, path) 23365 } 23366 23367 tmp, err := directive2(rctx) 23368 if err != nil { 23369 return nil, err 23370 } 23371 if tmp == nil { 23372 return nil, nil 23373 } 23374 if data, ok := tmp.(*BundleInstanceAuth); ok { 23375 return data, nil 23376 } 23377 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuth`, tmp) 23378 }) 23379 if err != nil { 23380 ec.Error(ctx, err) 23381 return graphql.Null 23382 } 23383 if resTmp == nil { 23384 if !graphql.HasFieldError(ctx, fc) { 23385 ec.Errorf(ctx, "must not be null") 23386 } 23387 return graphql.Null 23388 } 23389 res := resTmp.(*BundleInstanceAuth) 23390 fc.Result = res 23391 return ec.marshalNBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx, field.Selections, res) 23392 } 23393 23394 func (ec *executionContext) _Mutation_requestBundleInstanceAuthDeletion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23395 defer func() { 23396 if r := recover(); r != nil { 23397 ec.Error(ctx, ec.Recover(ctx, r)) 23398 ret = graphql.Null 23399 } 23400 }() 23401 fc := &graphql.FieldContext{ 23402 Object: "Mutation", 23403 Field: field, 23404 Args: nil, 23405 IsMethod: true, 23406 } 23407 23408 ctx = graphql.WithFieldContext(ctx, fc) 23409 rawArgs := field.ArgumentMap(ec.Variables) 23410 args, err := ec.field_Mutation_requestBundleInstanceAuthDeletion_args(ctx, rawArgs) 23411 if err != nil { 23412 ec.Error(ctx, err) 23413 return graphql.Null 23414 } 23415 fc.Args = args 23416 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23417 directive0 := func(rctx context.Context) (interface{}, error) { 23418 ctx = rctx // use context from middleware stack in children 23419 return ec.resolvers.Mutation().RequestBundleInstanceAuthDeletion(rctx, args["authID"].(string)) 23420 } 23421 directive1 := func(ctx context.Context) (interface{}, error) { 23422 applicationProvider, err := ec.unmarshalNString2string(ctx, "GetApplicationIDByBundleInstanceAuth") 23423 if err != nil { 23424 return nil, err 23425 } 23426 idField, err := ec.unmarshalNString2string(ctx, "authID") 23427 if err != nil { 23428 return nil, err 23429 } 23430 if ec.directives.HasScenario == nil { 23431 return nil, errors.New("directive hasScenario is not implemented") 23432 } 23433 return ec.directives.HasScenario(ctx, nil, directive0, applicationProvider, idField) 23434 } 23435 directive2 := func(ctx context.Context) (interface{}, error) { 23436 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.requestBundleInstanceAuthDeletion") 23437 if err != nil { 23438 return nil, err 23439 } 23440 if ec.directives.HasScopes == nil { 23441 return nil, errors.New("directive hasScopes is not implemented") 23442 } 23443 return ec.directives.HasScopes(ctx, nil, directive1, path) 23444 } 23445 23446 tmp, err := directive2(rctx) 23447 if err != nil { 23448 return nil, err 23449 } 23450 if tmp == nil { 23451 return nil, nil 23452 } 23453 if data, ok := tmp.(*BundleInstanceAuth); ok { 23454 return data, nil 23455 } 23456 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuth`, tmp) 23457 }) 23458 if err != nil { 23459 ec.Error(ctx, err) 23460 return graphql.Null 23461 } 23462 if resTmp == nil { 23463 if !graphql.HasFieldError(ctx, fc) { 23464 ec.Errorf(ctx, "must not be null") 23465 } 23466 return graphql.Null 23467 } 23468 res := resTmp.(*BundleInstanceAuth) 23469 fc.Result = res 23470 return ec.marshalNBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx, field.Selections, res) 23471 } 23472 23473 func (ec *executionContext) _Mutation_createBundleInstanceAuth(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23474 defer func() { 23475 if r := recover(); r != nil { 23476 ec.Error(ctx, ec.Recover(ctx, r)) 23477 ret = graphql.Null 23478 } 23479 }() 23480 fc := &graphql.FieldContext{ 23481 Object: "Mutation", 23482 Field: field, 23483 Args: nil, 23484 IsMethod: true, 23485 } 23486 23487 ctx = graphql.WithFieldContext(ctx, fc) 23488 rawArgs := field.ArgumentMap(ec.Variables) 23489 args, err := ec.field_Mutation_createBundleInstanceAuth_args(ctx, rawArgs) 23490 if err != nil { 23491 ec.Error(ctx, err) 23492 return graphql.Null 23493 } 23494 fc.Args = args 23495 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23496 directive0 := func(rctx context.Context) (interface{}, error) { 23497 ctx = rctx // use context from middleware stack in children 23498 return ec.resolvers.Mutation().CreateBundleInstanceAuth(rctx, args["bundleID"].(string), args["in"].(BundleInstanceAuthCreateInput)) 23499 } 23500 directive1 := func(ctx context.Context) (interface{}, error) { 23501 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.createBundleInstanceAuth") 23502 if err != nil { 23503 return nil, err 23504 } 23505 if ec.directives.HasScopes == nil { 23506 return nil, errors.New("directive hasScopes is not implemented") 23507 } 23508 return ec.directives.HasScopes(ctx, nil, directive0, path) 23509 } 23510 23511 tmp, err := directive1(rctx) 23512 if err != nil { 23513 return nil, err 23514 } 23515 if tmp == nil { 23516 return nil, nil 23517 } 23518 if data, ok := tmp.(*BundleInstanceAuth); ok { 23519 return data, nil 23520 } 23521 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuth`, tmp) 23522 }) 23523 if err != nil { 23524 ec.Error(ctx, err) 23525 return graphql.Null 23526 } 23527 if resTmp == nil { 23528 if !graphql.HasFieldError(ctx, fc) { 23529 ec.Errorf(ctx, "must not be null") 23530 } 23531 return graphql.Null 23532 } 23533 res := resTmp.(*BundleInstanceAuth) 23534 fc.Result = res 23535 return ec.marshalNBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx, field.Selections, res) 23536 } 23537 23538 func (ec *executionContext) _Mutation_updateBundleInstanceAuth(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23539 defer func() { 23540 if r := recover(); r != nil { 23541 ec.Error(ctx, ec.Recover(ctx, r)) 23542 ret = graphql.Null 23543 } 23544 }() 23545 fc := &graphql.FieldContext{ 23546 Object: "Mutation", 23547 Field: field, 23548 Args: nil, 23549 IsMethod: true, 23550 } 23551 23552 ctx = graphql.WithFieldContext(ctx, fc) 23553 rawArgs := field.ArgumentMap(ec.Variables) 23554 args, err := ec.field_Mutation_updateBundleInstanceAuth_args(ctx, rawArgs) 23555 if err != nil { 23556 ec.Error(ctx, err) 23557 return graphql.Null 23558 } 23559 fc.Args = args 23560 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23561 directive0 := func(rctx context.Context) (interface{}, error) { 23562 ctx = rctx // use context from middleware stack in children 23563 return ec.resolvers.Mutation().UpdateBundleInstanceAuth(rctx, args["id"].(string), args["bundleID"].(string), args["in"].(BundleInstanceAuthUpdateInput)) 23564 } 23565 directive1 := func(ctx context.Context) (interface{}, error) { 23566 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateBundleInstanceAuth") 23567 if err != nil { 23568 return nil, err 23569 } 23570 if ec.directives.HasScopes == nil { 23571 return nil, errors.New("directive hasScopes is not implemented") 23572 } 23573 return ec.directives.HasScopes(ctx, nil, directive0, path) 23574 } 23575 23576 tmp, err := directive1(rctx) 23577 if err != nil { 23578 return nil, err 23579 } 23580 if tmp == nil { 23581 return nil, nil 23582 } 23583 if data, ok := tmp.(*BundleInstanceAuth); ok { 23584 return data, nil 23585 } 23586 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuth`, tmp) 23587 }) 23588 if err != nil { 23589 ec.Error(ctx, err) 23590 return graphql.Null 23591 } 23592 if resTmp == nil { 23593 if !graphql.HasFieldError(ctx, fc) { 23594 ec.Errorf(ctx, "must not be null") 23595 } 23596 return graphql.Null 23597 } 23598 res := resTmp.(*BundleInstanceAuth) 23599 fc.Result = res 23600 return ec.marshalNBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx, field.Selections, res) 23601 } 23602 23603 func (ec *executionContext) _Mutation_addBundle(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23604 defer func() { 23605 if r := recover(); r != nil { 23606 ec.Error(ctx, ec.Recover(ctx, r)) 23607 ret = graphql.Null 23608 } 23609 }() 23610 fc := &graphql.FieldContext{ 23611 Object: "Mutation", 23612 Field: field, 23613 Args: nil, 23614 IsMethod: true, 23615 } 23616 23617 ctx = graphql.WithFieldContext(ctx, fc) 23618 rawArgs := field.ArgumentMap(ec.Variables) 23619 args, err := ec.field_Mutation_addBundle_args(ctx, rawArgs) 23620 if err != nil { 23621 ec.Error(ctx, err) 23622 return graphql.Null 23623 } 23624 fc.Args = args 23625 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23626 directive0 := func(rctx context.Context) (interface{}, error) { 23627 ctx = rctx // use context from middleware stack in children 23628 return ec.resolvers.Mutation().AddBundle(rctx, args["applicationID"].(string), args["in"].(BundleCreateInput)) 23629 } 23630 directive1 := func(ctx context.Context) (interface{}, error) { 23631 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.addBundle") 23632 if err != nil { 23633 return nil, err 23634 } 23635 if ec.directives.HasScopes == nil { 23636 return nil, errors.New("directive hasScopes is not implemented") 23637 } 23638 return ec.directives.HasScopes(ctx, nil, directive0, path) 23639 } 23640 23641 tmp, err := directive1(rctx) 23642 if err != nil { 23643 return nil, err 23644 } 23645 if tmp == nil { 23646 return nil, nil 23647 } 23648 if data, ok := tmp.(*Bundle); ok { 23649 return data, nil 23650 } 23651 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Bundle`, tmp) 23652 }) 23653 if err != nil { 23654 ec.Error(ctx, err) 23655 return graphql.Null 23656 } 23657 if resTmp == nil { 23658 if !graphql.HasFieldError(ctx, fc) { 23659 ec.Errorf(ctx, "must not be null") 23660 } 23661 return graphql.Null 23662 } 23663 res := resTmp.(*Bundle) 23664 fc.Result = res 23665 return ec.marshalNBundle2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundle(ctx, field.Selections, res) 23666 } 23667 23668 func (ec *executionContext) _Mutation_updateBundle(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23669 defer func() { 23670 if r := recover(); r != nil { 23671 ec.Error(ctx, ec.Recover(ctx, r)) 23672 ret = graphql.Null 23673 } 23674 }() 23675 fc := &graphql.FieldContext{ 23676 Object: "Mutation", 23677 Field: field, 23678 Args: nil, 23679 IsMethod: true, 23680 } 23681 23682 ctx = graphql.WithFieldContext(ctx, fc) 23683 rawArgs := field.ArgumentMap(ec.Variables) 23684 args, err := ec.field_Mutation_updateBundle_args(ctx, rawArgs) 23685 if err != nil { 23686 ec.Error(ctx, err) 23687 return graphql.Null 23688 } 23689 fc.Args = args 23690 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23691 directive0 := func(rctx context.Context) (interface{}, error) { 23692 ctx = rctx // use context from middleware stack in children 23693 return ec.resolvers.Mutation().UpdateBundle(rctx, args["id"].(string), args["in"].(BundleUpdateInput)) 23694 } 23695 directive1 := func(ctx context.Context) (interface{}, error) { 23696 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateBundle") 23697 if err != nil { 23698 return nil, err 23699 } 23700 if ec.directives.HasScopes == nil { 23701 return nil, errors.New("directive hasScopes is not implemented") 23702 } 23703 return ec.directives.HasScopes(ctx, nil, directive0, path) 23704 } 23705 23706 tmp, err := directive1(rctx) 23707 if err != nil { 23708 return nil, err 23709 } 23710 if tmp == nil { 23711 return nil, nil 23712 } 23713 if data, ok := tmp.(*Bundle); ok { 23714 return data, nil 23715 } 23716 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Bundle`, tmp) 23717 }) 23718 if err != nil { 23719 ec.Error(ctx, err) 23720 return graphql.Null 23721 } 23722 if resTmp == nil { 23723 if !graphql.HasFieldError(ctx, fc) { 23724 ec.Errorf(ctx, "must not be null") 23725 } 23726 return graphql.Null 23727 } 23728 res := resTmp.(*Bundle) 23729 fc.Result = res 23730 return ec.marshalNBundle2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundle(ctx, field.Selections, res) 23731 } 23732 23733 func (ec *executionContext) _Mutation_deleteBundle(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23734 defer func() { 23735 if r := recover(); r != nil { 23736 ec.Error(ctx, ec.Recover(ctx, r)) 23737 ret = graphql.Null 23738 } 23739 }() 23740 fc := &graphql.FieldContext{ 23741 Object: "Mutation", 23742 Field: field, 23743 Args: nil, 23744 IsMethod: true, 23745 } 23746 23747 ctx = graphql.WithFieldContext(ctx, fc) 23748 rawArgs := field.ArgumentMap(ec.Variables) 23749 args, err := ec.field_Mutation_deleteBundle_args(ctx, rawArgs) 23750 if err != nil { 23751 ec.Error(ctx, err) 23752 return graphql.Null 23753 } 23754 fc.Args = args 23755 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23756 directive0 := func(rctx context.Context) (interface{}, error) { 23757 ctx = rctx // use context from middleware stack in children 23758 return ec.resolvers.Mutation().DeleteBundle(rctx, args["id"].(string)) 23759 } 23760 directive1 := func(ctx context.Context) (interface{}, error) { 23761 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteBundle") 23762 if err != nil { 23763 return nil, err 23764 } 23765 if ec.directives.HasScopes == nil { 23766 return nil, errors.New("directive hasScopes is not implemented") 23767 } 23768 return ec.directives.HasScopes(ctx, nil, directive0, path) 23769 } 23770 23771 tmp, err := directive1(rctx) 23772 if err != nil { 23773 return nil, err 23774 } 23775 if tmp == nil { 23776 return nil, nil 23777 } 23778 if data, ok := tmp.(*Bundle); ok { 23779 return data, nil 23780 } 23781 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Bundle`, tmp) 23782 }) 23783 if err != nil { 23784 ec.Error(ctx, err) 23785 return graphql.Null 23786 } 23787 if resTmp == nil { 23788 if !graphql.HasFieldError(ctx, fc) { 23789 ec.Errorf(ctx, "must not be null") 23790 } 23791 return graphql.Null 23792 } 23793 res := resTmp.(*Bundle) 23794 fc.Result = res 23795 return ec.marshalNBundle2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundle(ctx, field.Selections, res) 23796 } 23797 23798 func (ec *executionContext) _Mutation_writeTenants(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23799 defer func() { 23800 if r := recover(); r != nil { 23801 ec.Error(ctx, ec.Recover(ctx, r)) 23802 ret = graphql.Null 23803 } 23804 }() 23805 fc := &graphql.FieldContext{ 23806 Object: "Mutation", 23807 Field: field, 23808 Args: nil, 23809 IsMethod: true, 23810 } 23811 23812 ctx = graphql.WithFieldContext(ctx, fc) 23813 rawArgs := field.ArgumentMap(ec.Variables) 23814 args, err := ec.field_Mutation_writeTenants_args(ctx, rawArgs) 23815 if err != nil { 23816 ec.Error(ctx, err) 23817 return graphql.Null 23818 } 23819 fc.Args = args 23820 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23821 directive0 := func(rctx context.Context) (interface{}, error) { 23822 ctx = rctx // use context from middleware stack in children 23823 return ec.resolvers.Mutation().WriteTenants(rctx, args["in"].([]*BusinessTenantMappingInput)) 23824 } 23825 directive1 := func(ctx context.Context) (interface{}, error) { 23826 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.writeTenants") 23827 if err != nil { 23828 return nil, err 23829 } 23830 if ec.directives.HasScopes == nil { 23831 return nil, errors.New("directive hasScopes is not implemented") 23832 } 23833 return ec.directives.HasScopes(ctx, nil, directive0, path) 23834 } 23835 directive2 := func(ctx context.Context) (interface{}, error) { 23836 eventType, err := ec.unmarshalNEventType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventType(ctx, "NEW_MULTIPLE_TENANTS") 23837 if err != nil { 23838 return nil, err 23839 } 23840 if ec.directives.SynchronizeApplicationTenancy == nil { 23841 return nil, errors.New("directive synchronizeApplicationTenancy is not implemented") 23842 } 23843 return ec.directives.SynchronizeApplicationTenancy(ctx, nil, directive1, eventType) 23844 } 23845 23846 tmp, err := directive2(rctx) 23847 if err != nil { 23848 return nil, err 23849 } 23850 if tmp == nil { 23851 return nil, nil 23852 } 23853 if data, ok := tmp.([]string); ok { 23854 return data, nil 23855 } 23856 return nil, fmt.Errorf(`unexpected type %T from directive, should be []string`, tmp) 23857 }) 23858 if err != nil { 23859 ec.Error(ctx, err) 23860 return graphql.Null 23861 } 23862 if resTmp == nil { 23863 return graphql.Null 23864 } 23865 res := resTmp.([]string) 23866 fc.Result = res 23867 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) 23868 } 23869 23870 func (ec *executionContext) _Mutation_writeTenant(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23871 defer func() { 23872 if r := recover(); r != nil { 23873 ec.Error(ctx, ec.Recover(ctx, r)) 23874 ret = graphql.Null 23875 } 23876 }() 23877 fc := &graphql.FieldContext{ 23878 Object: "Mutation", 23879 Field: field, 23880 Args: nil, 23881 IsMethod: true, 23882 } 23883 23884 ctx = graphql.WithFieldContext(ctx, fc) 23885 rawArgs := field.ArgumentMap(ec.Variables) 23886 args, err := ec.field_Mutation_writeTenant_args(ctx, rawArgs) 23887 if err != nil { 23888 ec.Error(ctx, err) 23889 return graphql.Null 23890 } 23891 fc.Args = args 23892 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23893 directive0 := func(rctx context.Context) (interface{}, error) { 23894 ctx = rctx // use context from middleware stack in children 23895 return ec.resolvers.Mutation().WriteTenant(rctx, args["in"].(BusinessTenantMappingInput)) 23896 } 23897 directive1 := func(ctx context.Context) (interface{}, error) { 23898 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.writeTenants") 23899 if err != nil { 23900 return nil, err 23901 } 23902 if ec.directives.HasScopes == nil { 23903 return nil, errors.New("directive hasScopes is not implemented") 23904 } 23905 return ec.directives.HasScopes(ctx, nil, directive0, path) 23906 } 23907 directive2 := func(ctx context.Context) (interface{}, error) { 23908 eventType, err := ec.unmarshalNEventType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventType(ctx, "NEW_SINGLE_TENANT") 23909 if err != nil { 23910 return nil, err 23911 } 23912 if ec.directives.SynchronizeApplicationTenancy == nil { 23913 return nil, errors.New("directive synchronizeApplicationTenancy is not implemented") 23914 } 23915 return ec.directives.SynchronizeApplicationTenancy(ctx, nil, directive1, eventType) 23916 } 23917 23918 tmp, err := directive2(rctx) 23919 if err != nil { 23920 return nil, err 23921 } 23922 if tmp == nil { 23923 return nil, nil 23924 } 23925 if data, ok := tmp.(string); ok { 23926 return data, nil 23927 } 23928 return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 23929 }) 23930 if err != nil { 23931 ec.Error(ctx, err) 23932 return graphql.Null 23933 } 23934 if resTmp == nil { 23935 if !graphql.HasFieldError(ctx, fc) { 23936 ec.Errorf(ctx, "must not be null") 23937 } 23938 return graphql.Null 23939 } 23940 res := resTmp.(string) 23941 fc.Result = res 23942 return ec.marshalNString2string(ctx, field.Selections, res) 23943 } 23944 23945 func (ec *executionContext) _Mutation_deleteTenants(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 23946 defer func() { 23947 if r := recover(); r != nil { 23948 ec.Error(ctx, ec.Recover(ctx, r)) 23949 ret = graphql.Null 23950 } 23951 }() 23952 fc := &graphql.FieldContext{ 23953 Object: "Mutation", 23954 Field: field, 23955 Args: nil, 23956 IsMethod: true, 23957 } 23958 23959 ctx = graphql.WithFieldContext(ctx, fc) 23960 rawArgs := field.ArgumentMap(ec.Variables) 23961 args, err := ec.field_Mutation_deleteTenants_args(ctx, rawArgs) 23962 if err != nil { 23963 ec.Error(ctx, err) 23964 return graphql.Null 23965 } 23966 fc.Args = args 23967 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 23968 directive0 := func(rctx context.Context) (interface{}, error) { 23969 ctx = rctx // use context from middleware stack in children 23970 return ec.resolvers.Mutation().DeleteTenants(rctx, args["in"].([]string)) 23971 } 23972 directive1 := func(ctx context.Context) (interface{}, error) { 23973 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteTenants") 23974 if err != nil { 23975 return nil, err 23976 } 23977 if ec.directives.HasScopes == nil { 23978 return nil, errors.New("directive hasScopes is not implemented") 23979 } 23980 return ec.directives.HasScopes(ctx, nil, directive0, path) 23981 } 23982 23983 tmp, err := directive1(rctx) 23984 if err != nil { 23985 return nil, err 23986 } 23987 if tmp == nil { 23988 return nil, nil 23989 } 23990 if data, ok := tmp.(int); ok { 23991 return data, nil 23992 } 23993 return nil, fmt.Errorf(`unexpected type %T from directive, should be int`, tmp) 23994 }) 23995 if err != nil { 23996 ec.Error(ctx, err) 23997 return graphql.Null 23998 } 23999 if resTmp == nil { 24000 if !graphql.HasFieldError(ctx, fc) { 24001 ec.Errorf(ctx, "must not be null") 24002 } 24003 return graphql.Null 24004 } 24005 res := resTmp.(int) 24006 fc.Result = res 24007 return ec.marshalNInt2int(ctx, field.Selections, res) 24008 } 24009 24010 func (ec *executionContext) _Mutation_updateTenant(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24011 defer func() { 24012 if r := recover(); r != nil { 24013 ec.Error(ctx, ec.Recover(ctx, r)) 24014 ret = graphql.Null 24015 } 24016 }() 24017 fc := &graphql.FieldContext{ 24018 Object: "Mutation", 24019 Field: field, 24020 Args: nil, 24021 IsMethod: true, 24022 } 24023 24024 ctx = graphql.WithFieldContext(ctx, fc) 24025 rawArgs := field.ArgumentMap(ec.Variables) 24026 args, err := ec.field_Mutation_updateTenant_args(ctx, rawArgs) 24027 if err != nil { 24028 ec.Error(ctx, err) 24029 return graphql.Null 24030 } 24031 fc.Args = args 24032 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24033 directive0 := func(rctx context.Context) (interface{}, error) { 24034 ctx = rctx // use context from middleware stack in children 24035 return ec.resolvers.Mutation().UpdateTenant(rctx, args["id"].(string), args["in"].(BusinessTenantMappingInput)) 24036 } 24037 directive1 := func(ctx context.Context) (interface{}, error) { 24038 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateTenant") 24039 if err != nil { 24040 return nil, err 24041 } 24042 if ec.directives.HasScopes == nil { 24043 return nil, errors.New("directive hasScopes is not implemented") 24044 } 24045 return ec.directives.HasScopes(ctx, nil, directive0, path) 24046 } 24047 24048 tmp, err := directive1(rctx) 24049 if err != nil { 24050 return nil, err 24051 } 24052 if tmp == nil { 24053 return nil, nil 24054 } 24055 if data, ok := tmp.(*Tenant); ok { 24056 return data, nil 24057 } 24058 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Tenant`, tmp) 24059 }) 24060 if err != nil { 24061 ec.Error(ctx, err) 24062 return graphql.Null 24063 } 24064 if resTmp == nil { 24065 if !graphql.HasFieldError(ctx, fc) { 24066 ec.Errorf(ctx, "must not be null") 24067 } 24068 return graphql.Null 24069 } 24070 res := resTmp.(*Tenant) 24071 fc.Result = res 24072 return ec.marshalNTenant2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenant(ctx, field.Selections, res) 24073 } 24074 24075 func (ec *executionContext) _Mutation_subscribeTenant(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24076 defer func() { 24077 if r := recover(); r != nil { 24078 ec.Error(ctx, ec.Recover(ctx, r)) 24079 ret = graphql.Null 24080 } 24081 }() 24082 fc := &graphql.FieldContext{ 24083 Object: "Mutation", 24084 Field: field, 24085 Args: nil, 24086 IsMethod: true, 24087 } 24088 24089 ctx = graphql.WithFieldContext(ctx, fc) 24090 rawArgs := field.ArgumentMap(ec.Variables) 24091 args, err := ec.field_Mutation_subscribeTenant_args(ctx, rawArgs) 24092 if err != nil { 24093 ec.Error(ctx, err) 24094 return graphql.Null 24095 } 24096 fc.Args = args 24097 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24098 directive0 := func(rctx context.Context) (interface{}, error) { 24099 ctx = rctx // use context from middleware stack in children 24100 return ec.resolvers.Mutation().SubscribeTenant(rctx, args["providerID"].(string), args["subaccountID"].(string), args["providerSubaccountID"].(string), args["consumerTenantID"].(string), args["region"].(string), args["subscriptionAppName"].(string), args["subscriptionPayload"].(string)) 24101 } 24102 directive1 := func(ctx context.Context) (interface{}, error) { 24103 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.subscribeTenant") 24104 if err != nil { 24105 return nil, err 24106 } 24107 if ec.directives.HasScopes == nil { 24108 return nil, errors.New("directive hasScopes is not implemented") 24109 } 24110 return ec.directives.HasScopes(ctx, nil, directive0, path) 24111 } 24112 24113 tmp, err := directive1(rctx) 24114 if err != nil { 24115 return nil, err 24116 } 24117 if tmp == nil { 24118 return nil, nil 24119 } 24120 if data, ok := tmp.(bool); ok { 24121 return data, nil 24122 } 24123 return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) 24124 }) 24125 if err != nil { 24126 ec.Error(ctx, err) 24127 return graphql.Null 24128 } 24129 if resTmp == nil { 24130 if !graphql.HasFieldError(ctx, fc) { 24131 ec.Errorf(ctx, "must not be null") 24132 } 24133 return graphql.Null 24134 } 24135 res := resTmp.(bool) 24136 fc.Result = res 24137 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 24138 } 24139 24140 func (ec *executionContext) _Mutation_unsubscribeTenant(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24141 defer func() { 24142 if r := recover(); r != nil { 24143 ec.Error(ctx, ec.Recover(ctx, r)) 24144 ret = graphql.Null 24145 } 24146 }() 24147 fc := &graphql.FieldContext{ 24148 Object: "Mutation", 24149 Field: field, 24150 Args: nil, 24151 IsMethod: true, 24152 } 24153 24154 ctx = graphql.WithFieldContext(ctx, fc) 24155 rawArgs := field.ArgumentMap(ec.Variables) 24156 args, err := ec.field_Mutation_unsubscribeTenant_args(ctx, rawArgs) 24157 if err != nil { 24158 ec.Error(ctx, err) 24159 return graphql.Null 24160 } 24161 fc.Args = args 24162 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24163 directive0 := func(rctx context.Context) (interface{}, error) { 24164 ctx = rctx // use context from middleware stack in children 24165 return ec.resolvers.Mutation().UnsubscribeTenant(rctx, args["providerID"].(string), args["subaccountID"].(string), args["providerSubaccountID"].(string), args["consumerTenantID"].(string), args["region"].(string)) 24166 } 24167 directive1 := func(ctx context.Context) (interface{}, error) { 24168 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.unsubscribeTenant") 24169 if err != nil { 24170 return nil, err 24171 } 24172 if ec.directives.HasScopes == nil { 24173 return nil, errors.New("directive hasScopes is not implemented") 24174 } 24175 return ec.directives.HasScopes(ctx, nil, directive0, path) 24176 } 24177 24178 tmp, err := directive1(rctx) 24179 if err != nil { 24180 return nil, err 24181 } 24182 if tmp == nil { 24183 return nil, nil 24184 } 24185 if data, ok := tmp.(bool); ok { 24186 return data, nil 24187 } 24188 return nil, fmt.Errorf(`unexpected type %T from directive, should be bool`, tmp) 24189 }) 24190 if err != nil { 24191 ec.Error(ctx, err) 24192 return graphql.Null 24193 } 24194 if resTmp == nil { 24195 if !graphql.HasFieldError(ctx, fc) { 24196 ec.Errorf(ctx, "must not be null") 24197 } 24198 return graphql.Null 24199 } 24200 res := resTmp.(bool) 24201 fc.Result = res 24202 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 24203 } 24204 24205 func (ec *executionContext) _Mutation_createFormationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24206 defer func() { 24207 if r := recover(); r != nil { 24208 ec.Error(ctx, ec.Recover(ctx, r)) 24209 ret = graphql.Null 24210 } 24211 }() 24212 fc := &graphql.FieldContext{ 24213 Object: "Mutation", 24214 Field: field, 24215 Args: nil, 24216 IsMethod: true, 24217 } 24218 24219 ctx = graphql.WithFieldContext(ctx, fc) 24220 rawArgs := field.ArgumentMap(ec.Variables) 24221 args, err := ec.field_Mutation_createFormationTemplate_args(ctx, rawArgs) 24222 if err != nil { 24223 ec.Error(ctx, err) 24224 return graphql.Null 24225 } 24226 fc.Args = args 24227 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24228 directive0 := func(rctx context.Context) (interface{}, error) { 24229 ctx = rctx // use context from middleware stack in children 24230 return ec.resolvers.Mutation().CreateFormationTemplate(rctx, args["in"].(FormationTemplateInput)) 24231 } 24232 directive1 := func(ctx context.Context) (interface{}, error) { 24233 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.createFormationTemplate") 24234 if err != nil { 24235 return nil, err 24236 } 24237 if ec.directives.HasScopes == nil { 24238 return nil, errors.New("directive hasScopes is not implemented") 24239 } 24240 return ec.directives.HasScopes(ctx, nil, directive0, path) 24241 } 24242 24243 tmp, err := directive1(rctx) 24244 if err != nil { 24245 return nil, err 24246 } 24247 if tmp == nil { 24248 return nil, nil 24249 } 24250 if data, ok := tmp.(*FormationTemplate); ok { 24251 return data, nil 24252 } 24253 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationTemplate`, tmp) 24254 }) 24255 if err != nil { 24256 ec.Error(ctx, err) 24257 return graphql.Null 24258 } 24259 if resTmp == nil { 24260 return graphql.Null 24261 } 24262 res := resTmp.(*FormationTemplate) 24263 fc.Result = res 24264 return ec.marshalOFormationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplate(ctx, field.Selections, res) 24265 } 24266 24267 func (ec *executionContext) _Mutation_deleteFormationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24268 defer func() { 24269 if r := recover(); r != nil { 24270 ec.Error(ctx, ec.Recover(ctx, r)) 24271 ret = graphql.Null 24272 } 24273 }() 24274 fc := &graphql.FieldContext{ 24275 Object: "Mutation", 24276 Field: field, 24277 Args: nil, 24278 IsMethod: true, 24279 } 24280 24281 ctx = graphql.WithFieldContext(ctx, fc) 24282 rawArgs := field.ArgumentMap(ec.Variables) 24283 args, err := ec.field_Mutation_deleteFormationTemplate_args(ctx, rawArgs) 24284 if err != nil { 24285 ec.Error(ctx, err) 24286 return graphql.Null 24287 } 24288 fc.Args = args 24289 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24290 directive0 := func(rctx context.Context) (interface{}, error) { 24291 ctx = rctx // use context from middleware stack in children 24292 return ec.resolvers.Mutation().DeleteFormationTemplate(rctx, args["id"].(string)) 24293 } 24294 directive1 := func(ctx context.Context) (interface{}, error) { 24295 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteFormationTemplate") 24296 if err != nil { 24297 return nil, err 24298 } 24299 if ec.directives.HasScopes == nil { 24300 return nil, errors.New("directive hasScopes is not implemented") 24301 } 24302 return ec.directives.HasScopes(ctx, nil, directive0, path) 24303 } 24304 24305 tmp, err := directive1(rctx) 24306 if err != nil { 24307 return nil, err 24308 } 24309 if tmp == nil { 24310 return nil, nil 24311 } 24312 if data, ok := tmp.(*FormationTemplate); ok { 24313 return data, nil 24314 } 24315 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationTemplate`, tmp) 24316 }) 24317 if err != nil { 24318 ec.Error(ctx, err) 24319 return graphql.Null 24320 } 24321 if resTmp == nil { 24322 return graphql.Null 24323 } 24324 res := resTmp.(*FormationTemplate) 24325 fc.Result = res 24326 return ec.marshalOFormationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplate(ctx, field.Selections, res) 24327 } 24328 24329 func (ec *executionContext) _Mutation_updateFormationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24330 defer func() { 24331 if r := recover(); r != nil { 24332 ec.Error(ctx, ec.Recover(ctx, r)) 24333 ret = graphql.Null 24334 } 24335 }() 24336 fc := &graphql.FieldContext{ 24337 Object: "Mutation", 24338 Field: field, 24339 Args: nil, 24340 IsMethod: true, 24341 } 24342 24343 ctx = graphql.WithFieldContext(ctx, fc) 24344 rawArgs := field.ArgumentMap(ec.Variables) 24345 args, err := ec.field_Mutation_updateFormationTemplate_args(ctx, rawArgs) 24346 if err != nil { 24347 ec.Error(ctx, err) 24348 return graphql.Null 24349 } 24350 fc.Args = args 24351 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24352 directive0 := func(rctx context.Context) (interface{}, error) { 24353 ctx = rctx // use context from middleware stack in children 24354 return ec.resolvers.Mutation().UpdateFormationTemplate(rctx, args["id"].(string), args["in"].(FormationTemplateInput)) 24355 } 24356 directive1 := func(ctx context.Context) (interface{}, error) { 24357 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateFormationTemplate") 24358 if err != nil { 24359 return nil, err 24360 } 24361 if ec.directives.HasScopes == nil { 24362 return nil, errors.New("directive hasScopes is not implemented") 24363 } 24364 return ec.directives.HasScopes(ctx, nil, directive0, path) 24365 } 24366 24367 tmp, err := directive1(rctx) 24368 if err != nil { 24369 return nil, err 24370 } 24371 if tmp == nil { 24372 return nil, nil 24373 } 24374 if data, ok := tmp.(*FormationTemplate); ok { 24375 return data, nil 24376 } 24377 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationTemplate`, tmp) 24378 }) 24379 if err != nil { 24380 ec.Error(ctx, err) 24381 return graphql.Null 24382 } 24383 if resTmp == nil { 24384 return graphql.Null 24385 } 24386 res := resTmp.(*FormationTemplate) 24387 fc.Result = res 24388 return ec.marshalOFormationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplate(ctx, field.Selections, res) 24389 } 24390 24391 func (ec *executionContext) _Mutation_createCertificateSubjectMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24392 defer func() { 24393 if r := recover(); r != nil { 24394 ec.Error(ctx, ec.Recover(ctx, r)) 24395 ret = graphql.Null 24396 } 24397 }() 24398 fc := &graphql.FieldContext{ 24399 Object: "Mutation", 24400 Field: field, 24401 Args: nil, 24402 IsMethod: true, 24403 } 24404 24405 ctx = graphql.WithFieldContext(ctx, fc) 24406 rawArgs := field.ArgumentMap(ec.Variables) 24407 args, err := ec.field_Mutation_createCertificateSubjectMapping_args(ctx, rawArgs) 24408 if err != nil { 24409 ec.Error(ctx, err) 24410 return graphql.Null 24411 } 24412 fc.Args = args 24413 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24414 directive0 := func(rctx context.Context) (interface{}, error) { 24415 ctx = rctx // use context from middleware stack in children 24416 return ec.resolvers.Mutation().CreateCertificateSubjectMapping(rctx, args["in"].(CertificateSubjectMappingInput)) 24417 } 24418 directive1 := func(ctx context.Context) (interface{}, error) { 24419 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.createCertificateSubjectMapping") 24420 if err != nil { 24421 return nil, err 24422 } 24423 if ec.directives.HasScopes == nil { 24424 return nil, errors.New("directive hasScopes is not implemented") 24425 } 24426 return ec.directives.HasScopes(ctx, nil, directive0, path) 24427 } 24428 24429 tmp, err := directive1(rctx) 24430 if err != nil { 24431 return nil, err 24432 } 24433 if tmp == nil { 24434 return nil, nil 24435 } 24436 if data, ok := tmp.(*CertificateSubjectMapping); ok { 24437 return data, nil 24438 } 24439 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.CertificateSubjectMapping`, tmp) 24440 }) 24441 if err != nil { 24442 ec.Error(ctx, err) 24443 return graphql.Null 24444 } 24445 if resTmp == nil { 24446 return graphql.Null 24447 } 24448 res := resTmp.(*CertificateSubjectMapping) 24449 fc.Result = res 24450 return ec.marshalOCertificateSubjectMapping2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMapping(ctx, field.Selections, res) 24451 } 24452 24453 func (ec *executionContext) _Mutation_updateCertificateSubjectMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24454 defer func() { 24455 if r := recover(); r != nil { 24456 ec.Error(ctx, ec.Recover(ctx, r)) 24457 ret = graphql.Null 24458 } 24459 }() 24460 fc := &graphql.FieldContext{ 24461 Object: "Mutation", 24462 Field: field, 24463 Args: nil, 24464 IsMethod: true, 24465 } 24466 24467 ctx = graphql.WithFieldContext(ctx, fc) 24468 rawArgs := field.ArgumentMap(ec.Variables) 24469 args, err := ec.field_Mutation_updateCertificateSubjectMapping_args(ctx, rawArgs) 24470 if err != nil { 24471 ec.Error(ctx, err) 24472 return graphql.Null 24473 } 24474 fc.Args = args 24475 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24476 directive0 := func(rctx context.Context) (interface{}, error) { 24477 ctx = rctx // use context from middleware stack in children 24478 return ec.resolvers.Mutation().UpdateCertificateSubjectMapping(rctx, args["id"].(string), args["in"].(CertificateSubjectMappingInput)) 24479 } 24480 directive1 := func(ctx context.Context) (interface{}, error) { 24481 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.updateCertificateSubjectMapping") 24482 if err != nil { 24483 return nil, err 24484 } 24485 if ec.directives.HasScopes == nil { 24486 return nil, errors.New("directive hasScopes is not implemented") 24487 } 24488 return ec.directives.HasScopes(ctx, nil, directive0, path) 24489 } 24490 24491 tmp, err := directive1(rctx) 24492 if err != nil { 24493 return nil, err 24494 } 24495 if tmp == nil { 24496 return nil, nil 24497 } 24498 if data, ok := tmp.(*CertificateSubjectMapping); ok { 24499 return data, nil 24500 } 24501 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.CertificateSubjectMapping`, tmp) 24502 }) 24503 if err != nil { 24504 ec.Error(ctx, err) 24505 return graphql.Null 24506 } 24507 if resTmp == nil { 24508 return graphql.Null 24509 } 24510 res := resTmp.(*CertificateSubjectMapping) 24511 fc.Result = res 24512 return ec.marshalOCertificateSubjectMapping2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMapping(ctx, field.Selections, res) 24513 } 24514 24515 func (ec *executionContext) _Mutation_deleteCertificateSubjectMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24516 defer func() { 24517 if r := recover(); r != nil { 24518 ec.Error(ctx, ec.Recover(ctx, r)) 24519 ret = graphql.Null 24520 } 24521 }() 24522 fc := &graphql.FieldContext{ 24523 Object: "Mutation", 24524 Field: field, 24525 Args: nil, 24526 IsMethod: true, 24527 } 24528 24529 ctx = graphql.WithFieldContext(ctx, fc) 24530 rawArgs := field.ArgumentMap(ec.Variables) 24531 args, err := ec.field_Mutation_deleteCertificateSubjectMapping_args(ctx, rawArgs) 24532 if err != nil { 24533 ec.Error(ctx, err) 24534 return graphql.Null 24535 } 24536 fc.Args = args 24537 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24538 directive0 := func(rctx context.Context) (interface{}, error) { 24539 ctx = rctx // use context from middleware stack in children 24540 return ec.resolvers.Mutation().DeleteCertificateSubjectMapping(rctx, args["id"].(string)) 24541 } 24542 directive1 := func(ctx context.Context) (interface{}, error) { 24543 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.deleteCertificateSubjectMapping") 24544 if err != nil { 24545 return nil, err 24546 } 24547 if ec.directives.HasScopes == nil { 24548 return nil, errors.New("directive hasScopes is not implemented") 24549 } 24550 return ec.directives.HasScopes(ctx, nil, directive0, path) 24551 } 24552 24553 tmp, err := directive1(rctx) 24554 if err != nil { 24555 return nil, err 24556 } 24557 if tmp == nil { 24558 return nil, nil 24559 } 24560 if data, ok := tmp.(*CertificateSubjectMapping); ok { 24561 return data, nil 24562 } 24563 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.CertificateSubjectMapping`, tmp) 24564 }) 24565 if err != nil { 24566 ec.Error(ctx, err) 24567 return graphql.Null 24568 } 24569 if resTmp == nil { 24570 return graphql.Null 24571 } 24572 res := resTmp.(*CertificateSubjectMapping) 24573 fc.Result = res 24574 return ec.marshalOCertificateSubjectMapping2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMapping(ctx, field.Selections, res) 24575 } 24576 24577 func (ec *executionContext) _Mutation_addTenantAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24578 defer func() { 24579 if r := recover(); r != nil { 24580 ec.Error(ctx, ec.Recover(ctx, r)) 24581 ret = graphql.Null 24582 } 24583 }() 24584 fc := &graphql.FieldContext{ 24585 Object: "Mutation", 24586 Field: field, 24587 Args: nil, 24588 IsMethod: true, 24589 } 24590 24591 ctx = graphql.WithFieldContext(ctx, fc) 24592 rawArgs := field.ArgumentMap(ec.Variables) 24593 args, err := ec.field_Mutation_addTenantAccess_args(ctx, rawArgs) 24594 if err != nil { 24595 ec.Error(ctx, err) 24596 return graphql.Null 24597 } 24598 fc.Args = args 24599 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24600 directive0 := func(rctx context.Context) (interface{}, error) { 24601 ctx = rctx // use context from middleware stack in children 24602 return ec.resolvers.Mutation().AddTenantAccess(rctx, args["in"].(TenantAccessInput)) 24603 } 24604 directive1 := func(ctx context.Context) (interface{}, error) { 24605 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.addTenantAccess") 24606 if err != nil { 24607 return nil, err 24608 } 24609 if ec.directives.HasScopes == nil { 24610 return nil, errors.New("directive hasScopes is not implemented") 24611 } 24612 return ec.directives.HasScopes(ctx, nil, directive0, path) 24613 } 24614 24615 tmp, err := directive1(rctx) 24616 if err != nil { 24617 return nil, err 24618 } 24619 if tmp == nil { 24620 return nil, nil 24621 } 24622 if data, ok := tmp.(*TenantAccess); ok { 24623 return data, nil 24624 } 24625 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.TenantAccess`, tmp) 24626 }) 24627 if err != nil { 24628 ec.Error(ctx, err) 24629 return graphql.Null 24630 } 24631 if resTmp == nil { 24632 return graphql.Null 24633 } 24634 res := resTmp.(*TenantAccess) 24635 fc.Result = res 24636 return ec.marshalOTenantAccess2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccess(ctx, field.Selections, res) 24637 } 24638 24639 func (ec *executionContext) _Mutation_removeTenantAccess(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 24640 defer func() { 24641 if r := recover(); r != nil { 24642 ec.Error(ctx, ec.Recover(ctx, r)) 24643 ret = graphql.Null 24644 } 24645 }() 24646 fc := &graphql.FieldContext{ 24647 Object: "Mutation", 24648 Field: field, 24649 Args: nil, 24650 IsMethod: true, 24651 } 24652 24653 ctx = graphql.WithFieldContext(ctx, fc) 24654 rawArgs := field.ArgumentMap(ec.Variables) 24655 args, err := ec.field_Mutation_removeTenantAccess_args(ctx, rawArgs) 24656 if err != nil { 24657 ec.Error(ctx, err) 24658 return graphql.Null 24659 } 24660 fc.Args = args 24661 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24662 directive0 := func(rctx context.Context) (interface{}, error) { 24663 ctx = rctx // use context from middleware stack in children 24664 return ec.resolvers.Mutation().RemoveTenantAccess(rctx, args["tenantID"].(string), args["resourceID"].(string), args["resourceType"].(TenantAccessObjectType)) 24665 } 24666 directive1 := func(ctx context.Context) (interface{}, error) { 24667 path, err := ec.unmarshalNString2string(ctx, "graphql.mutation.removeTenantAccess") 24668 if err != nil { 24669 return nil, err 24670 } 24671 if ec.directives.HasScopes == nil { 24672 return nil, errors.New("directive hasScopes is not implemented") 24673 } 24674 return ec.directives.HasScopes(ctx, nil, directive0, path) 24675 } 24676 24677 tmp, err := directive1(rctx) 24678 if err != nil { 24679 return nil, err 24680 } 24681 if tmp == nil { 24682 return nil, nil 24683 } 24684 if data, ok := tmp.(*TenantAccess); ok { 24685 return data, nil 24686 } 24687 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.TenantAccess`, tmp) 24688 }) 24689 if err != nil { 24690 ec.Error(ctx, err) 24691 return graphql.Null 24692 } 24693 if resTmp == nil { 24694 return graphql.Null 24695 } 24696 res := resTmp.(*TenantAccess) 24697 fc.Result = res 24698 return ec.marshalOTenantAccess2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccess(ctx, field.Selections, res) 24699 } 24700 24701 func (ec *executionContext) _OAuthCredentialData_clientId(ctx context.Context, field graphql.CollectedField, obj *OAuthCredentialData) (ret graphql.Marshaler) { 24702 defer func() { 24703 if r := recover(); r != nil { 24704 ec.Error(ctx, ec.Recover(ctx, r)) 24705 ret = graphql.Null 24706 } 24707 }() 24708 fc := &graphql.FieldContext{ 24709 Object: "OAuthCredentialData", 24710 Field: field, 24711 Args: nil, 24712 IsMethod: false, 24713 } 24714 24715 ctx = graphql.WithFieldContext(ctx, fc) 24716 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24717 ctx = rctx // use context from middleware stack in children 24718 return obj.ClientID, nil 24719 }) 24720 if err != nil { 24721 ec.Error(ctx, err) 24722 return graphql.Null 24723 } 24724 if resTmp == nil { 24725 if !graphql.HasFieldError(ctx, fc) { 24726 ec.Errorf(ctx, "must not be null") 24727 } 24728 return graphql.Null 24729 } 24730 res := resTmp.(string) 24731 fc.Result = res 24732 return ec.marshalNID2string(ctx, field.Selections, res) 24733 } 24734 24735 func (ec *executionContext) _OAuthCredentialData_clientSecret(ctx context.Context, field graphql.CollectedField, obj *OAuthCredentialData) (ret graphql.Marshaler) { 24736 defer func() { 24737 if r := recover(); r != nil { 24738 ec.Error(ctx, ec.Recover(ctx, r)) 24739 ret = graphql.Null 24740 } 24741 }() 24742 fc := &graphql.FieldContext{ 24743 Object: "OAuthCredentialData", 24744 Field: field, 24745 Args: nil, 24746 IsMethod: false, 24747 } 24748 24749 ctx = graphql.WithFieldContext(ctx, fc) 24750 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24751 ctx = rctx // use context from middleware stack in children 24752 return obj.ClientSecret, nil 24753 }) 24754 if err != nil { 24755 ec.Error(ctx, err) 24756 return graphql.Null 24757 } 24758 if resTmp == nil { 24759 if !graphql.HasFieldError(ctx, fc) { 24760 ec.Errorf(ctx, "must not be null") 24761 } 24762 return graphql.Null 24763 } 24764 res := resTmp.(string) 24765 fc.Result = res 24766 return ec.marshalNString2string(ctx, field.Selections, res) 24767 } 24768 24769 func (ec *executionContext) _OAuthCredentialData_url(ctx context.Context, field graphql.CollectedField, obj *OAuthCredentialData) (ret graphql.Marshaler) { 24770 defer func() { 24771 if r := recover(); r != nil { 24772 ec.Error(ctx, ec.Recover(ctx, r)) 24773 ret = graphql.Null 24774 } 24775 }() 24776 fc := &graphql.FieldContext{ 24777 Object: "OAuthCredentialData", 24778 Field: field, 24779 Args: nil, 24780 IsMethod: false, 24781 } 24782 24783 ctx = graphql.WithFieldContext(ctx, fc) 24784 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24785 ctx = rctx // use context from middleware stack in children 24786 return obj.URL, nil 24787 }) 24788 if err != nil { 24789 ec.Error(ctx, err) 24790 return graphql.Null 24791 } 24792 if resTmp == nil { 24793 if !graphql.HasFieldError(ctx, fc) { 24794 ec.Errorf(ctx, "must not be null") 24795 } 24796 return graphql.Null 24797 } 24798 res := resTmp.(string) 24799 fc.Result = res 24800 return ec.marshalNString2string(ctx, field.Selections, res) 24801 } 24802 24803 func (ec *executionContext) _OneTimeTokenForApplication_token(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 24804 defer func() { 24805 if r := recover(); r != nil { 24806 ec.Error(ctx, ec.Recover(ctx, r)) 24807 ret = graphql.Null 24808 } 24809 }() 24810 fc := &graphql.FieldContext{ 24811 Object: "OneTimeTokenForApplication", 24812 Field: field, 24813 Args: nil, 24814 IsMethod: false, 24815 } 24816 24817 ctx = graphql.WithFieldContext(ctx, fc) 24818 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24819 ctx = rctx // use context from middleware stack in children 24820 return obj.Token, nil 24821 }) 24822 if err != nil { 24823 ec.Error(ctx, err) 24824 return graphql.Null 24825 } 24826 if resTmp == nil { 24827 if !graphql.HasFieldError(ctx, fc) { 24828 ec.Errorf(ctx, "must not be null") 24829 } 24830 return graphql.Null 24831 } 24832 res := resTmp.(string) 24833 fc.Result = res 24834 return ec.marshalNString2string(ctx, field.Selections, res) 24835 } 24836 24837 func (ec *executionContext) _OneTimeTokenForApplication_connectorURL(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 24838 defer func() { 24839 if r := recover(); r != nil { 24840 ec.Error(ctx, ec.Recover(ctx, r)) 24841 ret = graphql.Null 24842 } 24843 }() 24844 fc := &graphql.FieldContext{ 24845 Object: "OneTimeTokenForApplication", 24846 Field: field, 24847 Args: nil, 24848 IsMethod: false, 24849 } 24850 24851 ctx = graphql.WithFieldContext(ctx, fc) 24852 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24853 ctx = rctx // use context from middleware stack in children 24854 return obj.ConnectorURL, nil 24855 }) 24856 if err != nil { 24857 ec.Error(ctx, err) 24858 return graphql.Null 24859 } 24860 if resTmp == nil { 24861 if !graphql.HasFieldError(ctx, fc) { 24862 ec.Errorf(ctx, "must not be null") 24863 } 24864 return graphql.Null 24865 } 24866 res := resTmp.(string) 24867 fc.Result = res 24868 return ec.marshalNString2string(ctx, field.Selections, res) 24869 } 24870 24871 func (ec *executionContext) _OneTimeTokenForApplication_legacyConnectorURL(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 24872 defer func() { 24873 if r := recover(); r != nil { 24874 ec.Error(ctx, ec.Recover(ctx, r)) 24875 ret = graphql.Null 24876 } 24877 }() 24878 fc := &graphql.FieldContext{ 24879 Object: "OneTimeTokenForApplication", 24880 Field: field, 24881 Args: nil, 24882 IsMethod: false, 24883 } 24884 24885 ctx = graphql.WithFieldContext(ctx, fc) 24886 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24887 ctx = rctx // use context from middleware stack in children 24888 return obj.LegacyConnectorURL, nil 24889 }) 24890 if err != nil { 24891 ec.Error(ctx, err) 24892 return graphql.Null 24893 } 24894 if resTmp == nil { 24895 if !graphql.HasFieldError(ctx, fc) { 24896 ec.Errorf(ctx, "must not be null") 24897 } 24898 return graphql.Null 24899 } 24900 res := resTmp.(string) 24901 fc.Result = res 24902 return ec.marshalNString2string(ctx, field.Selections, res) 24903 } 24904 24905 func (ec *executionContext) _OneTimeTokenForApplication_used(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 24906 defer func() { 24907 if r := recover(); r != nil { 24908 ec.Error(ctx, ec.Recover(ctx, r)) 24909 ret = graphql.Null 24910 } 24911 }() 24912 fc := &graphql.FieldContext{ 24913 Object: "OneTimeTokenForApplication", 24914 Field: field, 24915 Args: nil, 24916 IsMethod: false, 24917 } 24918 24919 ctx = graphql.WithFieldContext(ctx, fc) 24920 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24921 ctx = rctx // use context from middleware stack in children 24922 return obj.Used, nil 24923 }) 24924 if err != nil { 24925 ec.Error(ctx, err) 24926 return graphql.Null 24927 } 24928 if resTmp == nil { 24929 if !graphql.HasFieldError(ctx, fc) { 24930 ec.Errorf(ctx, "must not be null") 24931 } 24932 return graphql.Null 24933 } 24934 res := resTmp.(bool) 24935 fc.Result = res 24936 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 24937 } 24938 24939 func (ec *executionContext) _OneTimeTokenForApplication_expiresAt(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 24940 defer func() { 24941 if r := recover(); r != nil { 24942 ec.Error(ctx, ec.Recover(ctx, r)) 24943 ret = graphql.Null 24944 } 24945 }() 24946 fc := &graphql.FieldContext{ 24947 Object: "OneTimeTokenForApplication", 24948 Field: field, 24949 Args: nil, 24950 IsMethod: false, 24951 } 24952 24953 ctx = graphql.WithFieldContext(ctx, fc) 24954 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24955 ctx = rctx // use context from middleware stack in children 24956 return obj.ExpiresAt, nil 24957 }) 24958 if err != nil { 24959 ec.Error(ctx, err) 24960 return graphql.Null 24961 } 24962 if resTmp == nil { 24963 if !graphql.HasFieldError(ctx, fc) { 24964 ec.Errorf(ctx, "must not be null") 24965 } 24966 return graphql.Null 24967 } 24968 res := resTmp.(*Timestamp) 24969 fc.Result = res 24970 return ec.marshalNTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 24971 } 24972 24973 func (ec *executionContext) _OneTimeTokenForApplication_createdAt(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 24974 defer func() { 24975 if r := recover(); r != nil { 24976 ec.Error(ctx, ec.Recover(ctx, r)) 24977 ret = graphql.Null 24978 } 24979 }() 24980 fc := &graphql.FieldContext{ 24981 Object: "OneTimeTokenForApplication", 24982 Field: field, 24983 Args: nil, 24984 IsMethod: false, 24985 } 24986 24987 ctx = graphql.WithFieldContext(ctx, fc) 24988 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 24989 ctx = rctx // use context from middleware stack in children 24990 return obj.CreatedAt, nil 24991 }) 24992 if err != nil { 24993 ec.Error(ctx, err) 24994 return graphql.Null 24995 } 24996 if resTmp == nil { 24997 return graphql.Null 24998 } 24999 res := resTmp.(*Timestamp) 25000 fc.Result = res 25001 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 25002 } 25003 25004 func (ec *executionContext) _OneTimeTokenForApplication_usedAt(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 25005 defer func() { 25006 if r := recover(); r != nil { 25007 ec.Error(ctx, ec.Recover(ctx, r)) 25008 ret = graphql.Null 25009 } 25010 }() 25011 fc := &graphql.FieldContext{ 25012 Object: "OneTimeTokenForApplication", 25013 Field: field, 25014 Args: nil, 25015 IsMethod: false, 25016 } 25017 25018 ctx = graphql.WithFieldContext(ctx, fc) 25019 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25020 ctx = rctx // use context from middleware stack in children 25021 return obj.UsedAt, nil 25022 }) 25023 if err != nil { 25024 ec.Error(ctx, err) 25025 return graphql.Null 25026 } 25027 if resTmp == nil { 25028 return graphql.Null 25029 } 25030 res := resTmp.(*Timestamp) 25031 fc.Result = res 25032 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 25033 } 25034 25035 func (ec *executionContext) _OneTimeTokenForApplication_raw(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 25036 defer func() { 25037 if r := recover(); r != nil { 25038 ec.Error(ctx, ec.Recover(ctx, r)) 25039 ret = graphql.Null 25040 } 25041 }() 25042 fc := &graphql.FieldContext{ 25043 Object: "OneTimeTokenForApplication", 25044 Field: field, 25045 Args: nil, 25046 IsMethod: true, 25047 } 25048 25049 ctx = graphql.WithFieldContext(ctx, fc) 25050 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25051 ctx = rctx // use context from middleware stack in children 25052 return ec.resolvers.OneTimeTokenForApplication().Raw(rctx, obj) 25053 }) 25054 if err != nil { 25055 ec.Error(ctx, err) 25056 return graphql.Null 25057 } 25058 if resTmp == nil { 25059 return graphql.Null 25060 } 25061 res := resTmp.(*string) 25062 fc.Result = res 25063 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 25064 } 25065 25066 func (ec *executionContext) _OneTimeTokenForApplication_rawEncoded(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 25067 defer func() { 25068 if r := recover(); r != nil { 25069 ec.Error(ctx, ec.Recover(ctx, r)) 25070 ret = graphql.Null 25071 } 25072 }() 25073 fc := &graphql.FieldContext{ 25074 Object: "OneTimeTokenForApplication", 25075 Field: field, 25076 Args: nil, 25077 IsMethod: true, 25078 } 25079 25080 ctx = graphql.WithFieldContext(ctx, fc) 25081 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25082 ctx = rctx // use context from middleware stack in children 25083 return ec.resolvers.OneTimeTokenForApplication().RawEncoded(rctx, obj) 25084 }) 25085 if err != nil { 25086 ec.Error(ctx, err) 25087 return graphql.Null 25088 } 25089 if resTmp == nil { 25090 return graphql.Null 25091 } 25092 res := resTmp.(*string) 25093 fc.Result = res 25094 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 25095 } 25096 25097 func (ec *executionContext) _OneTimeTokenForApplication_type(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 25098 defer func() { 25099 if r := recover(); r != nil { 25100 ec.Error(ctx, ec.Recover(ctx, r)) 25101 ret = graphql.Null 25102 } 25103 }() 25104 fc := &graphql.FieldContext{ 25105 Object: "OneTimeTokenForApplication", 25106 Field: field, 25107 Args: nil, 25108 IsMethod: false, 25109 } 25110 25111 ctx = graphql.WithFieldContext(ctx, fc) 25112 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25113 ctx = rctx // use context from middleware stack in children 25114 return obj.Type, nil 25115 }) 25116 if err != nil { 25117 ec.Error(ctx, err) 25118 return graphql.Null 25119 } 25120 if resTmp == nil { 25121 return graphql.Null 25122 } 25123 res := resTmp.(OneTimeTokenType) 25124 fc.Result = res 25125 return ec.marshalOOneTimeTokenType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenType(ctx, field.Selections, res) 25126 } 25127 25128 func (ec *executionContext) _OneTimeTokenForApplication_scenarioGroups(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForApplication) (ret graphql.Marshaler) { 25129 defer func() { 25130 if r := recover(); r != nil { 25131 ec.Error(ctx, ec.Recover(ctx, r)) 25132 ret = graphql.Null 25133 } 25134 }() 25135 fc := &graphql.FieldContext{ 25136 Object: "OneTimeTokenForApplication", 25137 Field: field, 25138 Args: nil, 25139 IsMethod: false, 25140 } 25141 25142 ctx = graphql.WithFieldContext(ctx, fc) 25143 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25144 ctx = rctx // use context from middleware stack in children 25145 return obj.ScenarioGroups, nil 25146 }) 25147 if err != nil { 25148 ec.Error(ctx, err) 25149 return graphql.Null 25150 } 25151 if resTmp == nil { 25152 return graphql.Null 25153 } 25154 res := resTmp.([]string) 25155 fc.Result = res 25156 return ec.marshalOString2ᚕstring(ctx, field.Selections, res) 25157 } 25158 25159 func (ec *executionContext) _OneTimeTokenForRuntime_token(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForRuntime) (ret graphql.Marshaler) { 25160 defer func() { 25161 if r := recover(); r != nil { 25162 ec.Error(ctx, ec.Recover(ctx, r)) 25163 ret = graphql.Null 25164 } 25165 }() 25166 fc := &graphql.FieldContext{ 25167 Object: "OneTimeTokenForRuntime", 25168 Field: field, 25169 Args: nil, 25170 IsMethod: false, 25171 } 25172 25173 ctx = graphql.WithFieldContext(ctx, fc) 25174 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25175 ctx = rctx // use context from middleware stack in children 25176 return obj.Token, nil 25177 }) 25178 if err != nil { 25179 ec.Error(ctx, err) 25180 return graphql.Null 25181 } 25182 if resTmp == nil { 25183 if !graphql.HasFieldError(ctx, fc) { 25184 ec.Errorf(ctx, "must not be null") 25185 } 25186 return graphql.Null 25187 } 25188 res := resTmp.(string) 25189 fc.Result = res 25190 return ec.marshalNString2string(ctx, field.Selections, res) 25191 } 25192 25193 func (ec *executionContext) _OneTimeTokenForRuntime_connectorURL(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForRuntime) (ret graphql.Marshaler) { 25194 defer func() { 25195 if r := recover(); r != nil { 25196 ec.Error(ctx, ec.Recover(ctx, r)) 25197 ret = graphql.Null 25198 } 25199 }() 25200 fc := &graphql.FieldContext{ 25201 Object: "OneTimeTokenForRuntime", 25202 Field: field, 25203 Args: nil, 25204 IsMethod: false, 25205 } 25206 25207 ctx = graphql.WithFieldContext(ctx, fc) 25208 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25209 ctx = rctx // use context from middleware stack in children 25210 return obj.ConnectorURL, nil 25211 }) 25212 if err != nil { 25213 ec.Error(ctx, err) 25214 return graphql.Null 25215 } 25216 if resTmp == nil { 25217 if !graphql.HasFieldError(ctx, fc) { 25218 ec.Errorf(ctx, "must not be null") 25219 } 25220 return graphql.Null 25221 } 25222 res := resTmp.(string) 25223 fc.Result = res 25224 return ec.marshalNString2string(ctx, field.Selections, res) 25225 } 25226 25227 func (ec *executionContext) _OneTimeTokenForRuntime_used(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForRuntime) (ret graphql.Marshaler) { 25228 defer func() { 25229 if r := recover(); r != nil { 25230 ec.Error(ctx, ec.Recover(ctx, r)) 25231 ret = graphql.Null 25232 } 25233 }() 25234 fc := &graphql.FieldContext{ 25235 Object: "OneTimeTokenForRuntime", 25236 Field: field, 25237 Args: nil, 25238 IsMethod: false, 25239 } 25240 25241 ctx = graphql.WithFieldContext(ctx, fc) 25242 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25243 ctx = rctx // use context from middleware stack in children 25244 return obj.Used, nil 25245 }) 25246 if err != nil { 25247 ec.Error(ctx, err) 25248 return graphql.Null 25249 } 25250 if resTmp == nil { 25251 if !graphql.HasFieldError(ctx, fc) { 25252 ec.Errorf(ctx, "must not be null") 25253 } 25254 return graphql.Null 25255 } 25256 res := resTmp.(bool) 25257 fc.Result = res 25258 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 25259 } 25260 25261 func (ec *executionContext) _OneTimeTokenForRuntime_expiresAt(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForRuntime) (ret graphql.Marshaler) { 25262 defer func() { 25263 if r := recover(); r != nil { 25264 ec.Error(ctx, ec.Recover(ctx, r)) 25265 ret = graphql.Null 25266 } 25267 }() 25268 fc := &graphql.FieldContext{ 25269 Object: "OneTimeTokenForRuntime", 25270 Field: field, 25271 Args: nil, 25272 IsMethod: false, 25273 } 25274 25275 ctx = graphql.WithFieldContext(ctx, fc) 25276 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25277 ctx = rctx // use context from middleware stack in children 25278 return obj.ExpiresAt, nil 25279 }) 25280 if err != nil { 25281 ec.Error(ctx, err) 25282 return graphql.Null 25283 } 25284 if resTmp == nil { 25285 if !graphql.HasFieldError(ctx, fc) { 25286 ec.Errorf(ctx, "must not be null") 25287 } 25288 return graphql.Null 25289 } 25290 res := resTmp.(*Timestamp) 25291 fc.Result = res 25292 return ec.marshalNTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 25293 } 25294 25295 func (ec *executionContext) _OneTimeTokenForRuntime_createdAt(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForRuntime) (ret graphql.Marshaler) { 25296 defer func() { 25297 if r := recover(); r != nil { 25298 ec.Error(ctx, ec.Recover(ctx, r)) 25299 ret = graphql.Null 25300 } 25301 }() 25302 fc := &graphql.FieldContext{ 25303 Object: "OneTimeTokenForRuntime", 25304 Field: field, 25305 Args: nil, 25306 IsMethod: false, 25307 } 25308 25309 ctx = graphql.WithFieldContext(ctx, fc) 25310 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25311 ctx = rctx // use context from middleware stack in children 25312 return obj.CreatedAt, nil 25313 }) 25314 if err != nil { 25315 ec.Error(ctx, err) 25316 return graphql.Null 25317 } 25318 if resTmp == nil { 25319 return graphql.Null 25320 } 25321 res := resTmp.(*Timestamp) 25322 fc.Result = res 25323 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 25324 } 25325 25326 func (ec *executionContext) _OneTimeTokenForRuntime_usedAt(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForRuntime) (ret graphql.Marshaler) { 25327 defer func() { 25328 if r := recover(); r != nil { 25329 ec.Error(ctx, ec.Recover(ctx, r)) 25330 ret = graphql.Null 25331 } 25332 }() 25333 fc := &graphql.FieldContext{ 25334 Object: "OneTimeTokenForRuntime", 25335 Field: field, 25336 Args: nil, 25337 IsMethod: false, 25338 } 25339 25340 ctx = graphql.WithFieldContext(ctx, fc) 25341 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25342 ctx = rctx // use context from middleware stack in children 25343 return obj.UsedAt, nil 25344 }) 25345 if err != nil { 25346 ec.Error(ctx, err) 25347 return graphql.Null 25348 } 25349 if resTmp == nil { 25350 return graphql.Null 25351 } 25352 res := resTmp.(*Timestamp) 25353 fc.Result = res 25354 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 25355 } 25356 25357 func (ec *executionContext) _OneTimeTokenForRuntime_raw(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForRuntime) (ret graphql.Marshaler) { 25358 defer func() { 25359 if r := recover(); r != nil { 25360 ec.Error(ctx, ec.Recover(ctx, r)) 25361 ret = graphql.Null 25362 } 25363 }() 25364 fc := &graphql.FieldContext{ 25365 Object: "OneTimeTokenForRuntime", 25366 Field: field, 25367 Args: nil, 25368 IsMethod: true, 25369 } 25370 25371 ctx = graphql.WithFieldContext(ctx, fc) 25372 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25373 ctx = rctx // use context from middleware stack in children 25374 return ec.resolvers.OneTimeTokenForRuntime().Raw(rctx, obj) 25375 }) 25376 if err != nil { 25377 ec.Error(ctx, err) 25378 return graphql.Null 25379 } 25380 if resTmp == nil { 25381 return graphql.Null 25382 } 25383 res := resTmp.(*string) 25384 fc.Result = res 25385 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 25386 } 25387 25388 func (ec *executionContext) _OneTimeTokenForRuntime_rawEncoded(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForRuntime) (ret graphql.Marshaler) { 25389 defer func() { 25390 if r := recover(); r != nil { 25391 ec.Error(ctx, ec.Recover(ctx, r)) 25392 ret = graphql.Null 25393 } 25394 }() 25395 fc := &graphql.FieldContext{ 25396 Object: "OneTimeTokenForRuntime", 25397 Field: field, 25398 Args: nil, 25399 IsMethod: true, 25400 } 25401 25402 ctx = graphql.WithFieldContext(ctx, fc) 25403 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25404 ctx = rctx // use context from middleware stack in children 25405 return ec.resolvers.OneTimeTokenForRuntime().RawEncoded(rctx, obj) 25406 }) 25407 if err != nil { 25408 ec.Error(ctx, err) 25409 return graphql.Null 25410 } 25411 if resTmp == nil { 25412 return graphql.Null 25413 } 25414 res := resTmp.(*string) 25415 fc.Result = res 25416 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 25417 } 25418 25419 func (ec *executionContext) _OneTimeTokenForRuntime_type(ctx context.Context, field graphql.CollectedField, obj *OneTimeTokenForRuntime) (ret graphql.Marshaler) { 25420 defer func() { 25421 if r := recover(); r != nil { 25422 ec.Error(ctx, ec.Recover(ctx, r)) 25423 ret = graphql.Null 25424 } 25425 }() 25426 fc := &graphql.FieldContext{ 25427 Object: "OneTimeTokenForRuntime", 25428 Field: field, 25429 Args: nil, 25430 IsMethod: false, 25431 } 25432 25433 ctx = graphql.WithFieldContext(ctx, fc) 25434 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25435 ctx = rctx // use context from middleware stack in children 25436 return obj.Type, nil 25437 }) 25438 if err != nil { 25439 ec.Error(ctx, err) 25440 return graphql.Null 25441 } 25442 if resTmp == nil { 25443 return graphql.Null 25444 } 25445 res := resTmp.(OneTimeTokenType) 25446 fc.Result = res 25447 return ec.marshalOOneTimeTokenType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenType(ctx, field.Selections, res) 25448 } 25449 25450 func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) { 25451 defer func() { 25452 if r := recover(); r != nil { 25453 ec.Error(ctx, ec.Recover(ctx, r)) 25454 ret = graphql.Null 25455 } 25456 }() 25457 fc := &graphql.FieldContext{ 25458 Object: "PageInfo", 25459 Field: field, 25460 Args: nil, 25461 IsMethod: false, 25462 } 25463 25464 ctx = graphql.WithFieldContext(ctx, fc) 25465 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25466 ctx = rctx // use context from middleware stack in children 25467 return obj.StartCursor, nil 25468 }) 25469 if err != nil { 25470 ec.Error(ctx, err) 25471 return graphql.Null 25472 } 25473 if resTmp == nil { 25474 if !graphql.HasFieldError(ctx, fc) { 25475 ec.Errorf(ctx, "must not be null") 25476 } 25477 return graphql.Null 25478 } 25479 res := resTmp.(PageCursor) 25480 fc.Result = res 25481 return ec.marshalNPageCursor2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, field.Selections, res) 25482 } 25483 25484 func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) { 25485 defer func() { 25486 if r := recover(); r != nil { 25487 ec.Error(ctx, ec.Recover(ctx, r)) 25488 ret = graphql.Null 25489 } 25490 }() 25491 fc := &graphql.FieldContext{ 25492 Object: "PageInfo", 25493 Field: field, 25494 Args: nil, 25495 IsMethod: false, 25496 } 25497 25498 ctx = graphql.WithFieldContext(ctx, fc) 25499 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25500 ctx = rctx // use context from middleware stack in children 25501 return obj.EndCursor, nil 25502 }) 25503 if err != nil { 25504 ec.Error(ctx, err) 25505 return graphql.Null 25506 } 25507 if resTmp == nil { 25508 if !graphql.HasFieldError(ctx, fc) { 25509 ec.Errorf(ctx, "must not be null") 25510 } 25511 return graphql.Null 25512 } 25513 res := resTmp.(PageCursor) 25514 fc.Result = res 25515 return ec.marshalNPageCursor2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, field.Selections, res) 25516 } 25517 25518 func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *PageInfo) (ret graphql.Marshaler) { 25519 defer func() { 25520 if r := recover(); r != nil { 25521 ec.Error(ctx, ec.Recover(ctx, r)) 25522 ret = graphql.Null 25523 } 25524 }() 25525 fc := &graphql.FieldContext{ 25526 Object: "PageInfo", 25527 Field: field, 25528 Args: nil, 25529 IsMethod: false, 25530 } 25531 25532 ctx = graphql.WithFieldContext(ctx, fc) 25533 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25534 ctx = rctx // use context from middleware stack in children 25535 return obj.HasNextPage, nil 25536 }) 25537 if err != nil { 25538 ec.Error(ctx, err) 25539 return graphql.Null 25540 } 25541 if resTmp == nil { 25542 if !graphql.HasFieldError(ctx, fc) { 25543 ec.Errorf(ctx, "must not be null") 25544 } 25545 return graphql.Null 25546 } 25547 res := resTmp.(bool) 25548 fc.Result = res 25549 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 25550 } 25551 25552 func (ec *executionContext) _PlaceholderDefinition_name(ctx context.Context, field graphql.CollectedField, obj *PlaceholderDefinition) (ret graphql.Marshaler) { 25553 defer func() { 25554 if r := recover(); r != nil { 25555 ec.Error(ctx, ec.Recover(ctx, r)) 25556 ret = graphql.Null 25557 } 25558 }() 25559 fc := &graphql.FieldContext{ 25560 Object: "PlaceholderDefinition", 25561 Field: field, 25562 Args: nil, 25563 IsMethod: false, 25564 } 25565 25566 ctx = graphql.WithFieldContext(ctx, fc) 25567 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25568 ctx = rctx // use context from middleware stack in children 25569 return obj.Name, nil 25570 }) 25571 if err != nil { 25572 ec.Error(ctx, err) 25573 return graphql.Null 25574 } 25575 if resTmp == nil { 25576 if !graphql.HasFieldError(ctx, fc) { 25577 ec.Errorf(ctx, "must not be null") 25578 } 25579 return graphql.Null 25580 } 25581 res := resTmp.(string) 25582 fc.Result = res 25583 return ec.marshalNString2string(ctx, field.Selections, res) 25584 } 25585 25586 func (ec *executionContext) _PlaceholderDefinition_description(ctx context.Context, field graphql.CollectedField, obj *PlaceholderDefinition) (ret graphql.Marshaler) { 25587 defer func() { 25588 if r := recover(); r != nil { 25589 ec.Error(ctx, ec.Recover(ctx, r)) 25590 ret = graphql.Null 25591 } 25592 }() 25593 fc := &graphql.FieldContext{ 25594 Object: "PlaceholderDefinition", 25595 Field: field, 25596 Args: nil, 25597 IsMethod: false, 25598 } 25599 25600 ctx = graphql.WithFieldContext(ctx, fc) 25601 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25602 ctx = rctx // use context from middleware stack in children 25603 return obj.Description, nil 25604 }) 25605 if err != nil { 25606 ec.Error(ctx, err) 25607 return graphql.Null 25608 } 25609 if resTmp == nil { 25610 return graphql.Null 25611 } 25612 res := resTmp.(*string) 25613 fc.Result = res 25614 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 25615 } 25616 25617 func (ec *executionContext) _PlaceholderDefinition_jsonPath(ctx context.Context, field graphql.CollectedField, obj *PlaceholderDefinition) (ret graphql.Marshaler) { 25618 defer func() { 25619 if r := recover(); r != nil { 25620 ec.Error(ctx, ec.Recover(ctx, r)) 25621 ret = graphql.Null 25622 } 25623 }() 25624 fc := &graphql.FieldContext{ 25625 Object: "PlaceholderDefinition", 25626 Field: field, 25627 Args: nil, 25628 IsMethod: false, 25629 } 25630 25631 ctx = graphql.WithFieldContext(ctx, fc) 25632 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25633 ctx = rctx // use context from middleware stack in children 25634 return obj.JSONPath, nil 25635 }) 25636 if err != nil { 25637 ec.Error(ctx, err) 25638 return graphql.Null 25639 } 25640 if resTmp == nil { 25641 return graphql.Null 25642 } 25643 res := resTmp.(*string) 25644 fc.Result = res 25645 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 25646 } 25647 25648 func (ec *executionContext) _PlaceholderDefinition_optional(ctx context.Context, field graphql.CollectedField, obj *PlaceholderDefinition) (ret graphql.Marshaler) { 25649 defer func() { 25650 if r := recover(); r != nil { 25651 ec.Error(ctx, ec.Recover(ctx, r)) 25652 ret = graphql.Null 25653 } 25654 }() 25655 fc := &graphql.FieldContext{ 25656 Object: "PlaceholderDefinition", 25657 Field: field, 25658 Args: nil, 25659 IsMethod: false, 25660 } 25661 25662 ctx = graphql.WithFieldContext(ctx, fc) 25663 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25664 ctx = rctx // use context from middleware stack in children 25665 return obj.Optional, nil 25666 }) 25667 if err != nil { 25668 ec.Error(ctx, err) 25669 return graphql.Null 25670 } 25671 if resTmp == nil { 25672 return graphql.Null 25673 } 25674 res := resTmp.(*bool) 25675 fc.Result = res 25676 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 25677 } 25678 25679 func (ec *executionContext) _Query_apisForApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 25680 defer func() { 25681 if r := recover(); r != nil { 25682 ec.Error(ctx, ec.Recover(ctx, r)) 25683 ret = graphql.Null 25684 } 25685 }() 25686 fc := &graphql.FieldContext{ 25687 Object: "Query", 25688 Field: field, 25689 Args: nil, 25690 IsMethod: true, 25691 } 25692 25693 ctx = graphql.WithFieldContext(ctx, fc) 25694 rawArgs := field.ArgumentMap(ec.Variables) 25695 args, err := ec.field_Query_apisForApplication_args(ctx, rawArgs) 25696 if err != nil { 25697 ec.Error(ctx, err) 25698 return graphql.Null 25699 } 25700 fc.Args = args 25701 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25702 directive0 := func(rctx context.Context) (interface{}, error) { 25703 ctx = rctx // use context from middleware stack in children 25704 return ec.resolvers.Query().ApisForApplication(rctx, args["appID"].(string), args["first"].(*int), args["after"].(*PageCursor)) 25705 } 25706 directive1 := func(ctx context.Context) (interface{}, error) { 25707 path, err := ec.unmarshalNString2string(ctx, "graphql.query.apisForApplication") 25708 if err != nil { 25709 return nil, err 25710 } 25711 if ec.directives.HasScopes == nil { 25712 return nil, errors.New("directive hasScopes is not implemented") 25713 } 25714 return ec.directives.HasScopes(ctx, nil, directive0, path) 25715 } 25716 25717 tmp, err := directive1(rctx) 25718 if err != nil { 25719 return nil, err 25720 } 25721 if tmp == nil { 25722 return nil, nil 25723 } 25724 if data, ok := tmp.(*APIDefinitionPage); ok { 25725 return data, nil 25726 } 25727 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.APIDefinitionPage`, tmp) 25728 }) 25729 if err != nil { 25730 ec.Error(ctx, err) 25731 return graphql.Null 25732 } 25733 if resTmp == nil { 25734 return graphql.Null 25735 } 25736 res := resTmp.(*APIDefinitionPage) 25737 fc.Result = res 25738 return ec.marshalOAPIDefinitionPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionPage(ctx, field.Selections, res) 25739 } 25740 25741 func (ec *executionContext) _Query_eventsForApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 25742 defer func() { 25743 if r := recover(); r != nil { 25744 ec.Error(ctx, ec.Recover(ctx, r)) 25745 ret = graphql.Null 25746 } 25747 }() 25748 fc := &graphql.FieldContext{ 25749 Object: "Query", 25750 Field: field, 25751 Args: nil, 25752 IsMethod: true, 25753 } 25754 25755 ctx = graphql.WithFieldContext(ctx, fc) 25756 rawArgs := field.ArgumentMap(ec.Variables) 25757 args, err := ec.field_Query_eventsForApplication_args(ctx, rawArgs) 25758 if err != nil { 25759 ec.Error(ctx, err) 25760 return graphql.Null 25761 } 25762 fc.Args = args 25763 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25764 directive0 := func(rctx context.Context) (interface{}, error) { 25765 ctx = rctx // use context from middleware stack in children 25766 return ec.resolvers.Query().EventsForApplication(rctx, args["appID"].(string), args["first"].(*int), args["after"].(*PageCursor)) 25767 } 25768 directive1 := func(ctx context.Context) (interface{}, error) { 25769 path, err := ec.unmarshalNString2string(ctx, "graphql.query.eventsForApplication") 25770 if err != nil { 25771 return nil, err 25772 } 25773 if ec.directives.HasScopes == nil { 25774 return nil, errors.New("directive hasScopes is not implemented") 25775 } 25776 return ec.directives.HasScopes(ctx, nil, directive0, path) 25777 } 25778 25779 tmp, err := directive1(rctx) 25780 if err != nil { 25781 return nil, err 25782 } 25783 if tmp == nil { 25784 return nil, nil 25785 } 25786 if data, ok := tmp.(*EventDefinitionPage); ok { 25787 return data, nil 25788 } 25789 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.EventDefinitionPage`, tmp) 25790 }) 25791 if err != nil { 25792 ec.Error(ctx, err) 25793 return graphql.Null 25794 } 25795 if resTmp == nil { 25796 return graphql.Null 25797 } 25798 res := resTmp.(*EventDefinitionPage) 25799 fc.Result = res 25800 return ec.marshalOEventDefinitionPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionPage(ctx, field.Selections, res) 25801 } 25802 25803 func (ec *executionContext) _Query_applications(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 25804 defer func() { 25805 if r := recover(); r != nil { 25806 ec.Error(ctx, ec.Recover(ctx, r)) 25807 ret = graphql.Null 25808 } 25809 }() 25810 fc := &graphql.FieldContext{ 25811 Object: "Query", 25812 Field: field, 25813 Args: nil, 25814 IsMethod: true, 25815 } 25816 25817 ctx = graphql.WithFieldContext(ctx, fc) 25818 rawArgs := field.ArgumentMap(ec.Variables) 25819 args, err := ec.field_Query_applications_args(ctx, rawArgs) 25820 if err != nil { 25821 ec.Error(ctx, err) 25822 return graphql.Null 25823 } 25824 fc.Args = args 25825 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25826 directive0 := func(rctx context.Context) (interface{}, error) { 25827 ctx = rctx // use context from middleware stack in children 25828 return ec.resolvers.Query().Applications(rctx, args["filter"].([]*LabelFilter), args["first"].(*int), args["after"].(*PageCursor)) 25829 } 25830 directive1 := func(ctx context.Context) (interface{}, error) { 25831 path, err := ec.unmarshalNString2string(ctx, "graphql.query.applications") 25832 if err != nil { 25833 return nil, err 25834 } 25835 if ec.directives.HasScopes == nil { 25836 return nil, errors.New("directive hasScopes is not implemented") 25837 } 25838 return ec.directives.HasScopes(ctx, nil, directive0, path) 25839 } 25840 25841 tmp, err := directive1(rctx) 25842 if err != nil { 25843 return nil, err 25844 } 25845 if tmp == nil { 25846 return nil, nil 25847 } 25848 if data, ok := tmp.(*ApplicationPage); ok { 25849 return data, nil 25850 } 25851 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationPage`, tmp) 25852 }) 25853 if err != nil { 25854 ec.Error(ctx, err) 25855 return graphql.Null 25856 } 25857 if resTmp == nil { 25858 if !graphql.HasFieldError(ctx, fc) { 25859 ec.Errorf(ctx, "must not be null") 25860 } 25861 return graphql.Null 25862 } 25863 res := resTmp.(*ApplicationPage) 25864 fc.Result = res 25865 return ec.marshalNApplicationPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationPage(ctx, field.Selections, res) 25866 } 25867 25868 func (ec *executionContext) _Query_application(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 25869 defer func() { 25870 if r := recover(); r != nil { 25871 ec.Error(ctx, ec.Recover(ctx, r)) 25872 ret = graphql.Null 25873 } 25874 }() 25875 fc := &graphql.FieldContext{ 25876 Object: "Query", 25877 Field: field, 25878 Args: nil, 25879 IsMethod: true, 25880 } 25881 25882 ctx = graphql.WithFieldContext(ctx, fc) 25883 rawArgs := field.ArgumentMap(ec.Variables) 25884 args, err := ec.field_Query_application_args(ctx, rawArgs) 25885 if err != nil { 25886 ec.Error(ctx, err) 25887 return graphql.Null 25888 } 25889 fc.Args = args 25890 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25891 directive0 := func(rctx context.Context) (interface{}, error) { 25892 ctx = rctx // use context from middleware stack in children 25893 return ec.resolvers.Query().Application(rctx, args["id"].(string)) 25894 } 25895 directive1 := func(ctx context.Context) (interface{}, error) { 25896 applicationProvider, err := ec.unmarshalNString2string(ctx, "GetApplicationID") 25897 if err != nil { 25898 return nil, err 25899 } 25900 idField, err := ec.unmarshalNString2string(ctx, "id") 25901 if err != nil { 25902 return nil, err 25903 } 25904 if ec.directives.HasScenario == nil { 25905 return nil, errors.New("directive hasScenario is not implemented") 25906 } 25907 return ec.directives.HasScenario(ctx, nil, directive0, applicationProvider, idField) 25908 } 25909 directive2 := func(ctx context.Context) (interface{}, error) { 25910 path, err := ec.unmarshalNString2string(ctx, "graphql.query.application") 25911 if err != nil { 25912 return nil, err 25913 } 25914 if ec.directives.HasScopes == nil { 25915 return nil, errors.New("directive hasScopes is not implemented") 25916 } 25917 return ec.directives.HasScopes(ctx, nil, directive1, path) 25918 } 25919 25920 tmp, err := directive2(rctx) 25921 if err != nil { 25922 return nil, err 25923 } 25924 if tmp == nil { 25925 return nil, nil 25926 } 25927 if data, ok := tmp.(*Application); ok { 25928 return data, nil 25929 } 25930 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Application`, tmp) 25931 }) 25932 if err != nil { 25933 ec.Error(ctx, err) 25934 return graphql.Null 25935 } 25936 if resTmp == nil { 25937 return graphql.Null 25938 } 25939 res := resTmp.(*Application) 25940 fc.Result = res 25941 return ec.marshalOApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx, field.Selections, res) 25942 } 25943 25944 func (ec *executionContext) _Query_applicationBySystemNumber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 25945 defer func() { 25946 if r := recover(); r != nil { 25947 ec.Error(ctx, ec.Recover(ctx, r)) 25948 ret = graphql.Null 25949 } 25950 }() 25951 fc := &graphql.FieldContext{ 25952 Object: "Query", 25953 Field: field, 25954 Args: nil, 25955 IsMethod: true, 25956 } 25957 25958 ctx = graphql.WithFieldContext(ctx, fc) 25959 rawArgs := field.ArgumentMap(ec.Variables) 25960 args, err := ec.field_Query_applicationBySystemNumber_args(ctx, rawArgs) 25961 if err != nil { 25962 ec.Error(ctx, err) 25963 return graphql.Null 25964 } 25965 fc.Args = args 25966 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 25967 directive0 := func(rctx context.Context) (interface{}, error) { 25968 ctx = rctx // use context from middleware stack in children 25969 return ec.resolvers.Query().ApplicationBySystemNumber(rctx, args["systemNumber"].(string)) 25970 } 25971 directive1 := func(ctx context.Context) (interface{}, error) { 25972 path, err := ec.unmarshalNString2string(ctx, "graphql.query.applicationBySystemNumber") 25973 if err != nil { 25974 return nil, err 25975 } 25976 if ec.directives.HasScopes == nil { 25977 return nil, errors.New("directive hasScopes is not implemented") 25978 } 25979 return ec.directives.HasScopes(ctx, nil, directive0, path) 25980 } 25981 25982 tmp, err := directive1(rctx) 25983 if err != nil { 25984 return nil, err 25985 } 25986 if tmp == nil { 25987 return nil, nil 25988 } 25989 if data, ok := tmp.(*Application); ok { 25990 return data, nil 25991 } 25992 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Application`, tmp) 25993 }) 25994 if err != nil { 25995 ec.Error(ctx, err) 25996 return graphql.Null 25997 } 25998 if resTmp == nil { 25999 return graphql.Null 26000 } 26001 res := resTmp.(*Application) 26002 fc.Result = res 26003 return ec.marshalOApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx, field.Selections, res) 26004 } 26005 26006 func (ec *executionContext) _Query_applicationsForRuntime(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26007 defer func() { 26008 if r := recover(); r != nil { 26009 ec.Error(ctx, ec.Recover(ctx, r)) 26010 ret = graphql.Null 26011 } 26012 }() 26013 fc := &graphql.FieldContext{ 26014 Object: "Query", 26015 Field: field, 26016 Args: nil, 26017 IsMethod: true, 26018 } 26019 26020 ctx = graphql.WithFieldContext(ctx, fc) 26021 rawArgs := field.ArgumentMap(ec.Variables) 26022 args, err := ec.field_Query_applicationsForRuntime_args(ctx, rawArgs) 26023 if err != nil { 26024 ec.Error(ctx, err) 26025 return graphql.Null 26026 } 26027 fc.Args = args 26028 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26029 directive0 := func(rctx context.Context) (interface{}, error) { 26030 ctx = rctx // use context from middleware stack in children 26031 return ec.resolvers.Query().ApplicationsForRuntime(rctx, args["runtimeID"].(string), args["first"].(*int), args["after"].(*PageCursor)) 26032 } 26033 directive1 := func(ctx context.Context) (interface{}, error) { 26034 path, err := ec.unmarshalNString2string(ctx, "graphql.query.applicationsForRuntime") 26035 if err != nil { 26036 return nil, err 26037 } 26038 if ec.directives.HasScopes == nil { 26039 return nil, errors.New("directive hasScopes is not implemented") 26040 } 26041 return ec.directives.HasScopes(ctx, nil, directive0, path) 26042 } 26043 26044 tmp, err := directive1(rctx) 26045 if err != nil { 26046 return nil, err 26047 } 26048 if tmp == nil { 26049 return nil, nil 26050 } 26051 if data, ok := tmp.(*ApplicationPage); ok { 26052 return data, nil 26053 } 26054 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationPage`, tmp) 26055 }) 26056 if err != nil { 26057 ec.Error(ctx, err) 26058 return graphql.Null 26059 } 26060 if resTmp == nil { 26061 if !graphql.HasFieldError(ctx, fc) { 26062 ec.Errorf(ctx, "must not be null") 26063 } 26064 return graphql.Null 26065 } 26066 res := resTmp.(*ApplicationPage) 26067 fc.Result = res 26068 return ec.marshalNApplicationPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationPage(ctx, field.Selections, res) 26069 } 26070 26071 func (ec *executionContext) _Query_applicationTemplates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26072 defer func() { 26073 if r := recover(); r != nil { 26074 ec.Error(ctx, ec.Recover(ctx, r)) 26075 ret = graphql.Null 26076 } 26077 }() 26078 fc := &graphql.FieldContext{ 26079 Object: "Query", 26080 Field: field, 26081 Args: nil, 26082 IsMethod: true, 26083 } 26084 26085 ctx = graphql.WithFieldContext(ctx, fc) 26086 rawArgs := field.ArgumentMap(ec.Variables) 26087 args, err := ec.field_Query_applicationTemplates_args(ctx, rawArgs) 26088 if err != nil { 26089 ec.Error(ctx, err) 26090 return graphql.Null 26091 } 26092 fc.Args = args 26093 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26094 directive0 := func(rctx context.Context) (interface{}, error) { 26095 ctx = rctx // use context from middleware stack in children 26096 return ec.resolvers.Query().ApplicationTemplates(rctx, args["filter"].([]*LabelFilter), args["first"].(*int), args["after"].(*PageCursor)) 26097 } 26098 directive1 := func(ctx context.Context) (interface{}, error) { 26099 path, err := ec.unmarshalNString2string(ctx, "graphql.query.applicationTemplates") 26100 if err != nil { 26101 return nil, err 26102 } 26103 if ec.directives.HasScopes == nil { 26104 return nil, errors.New("directive hasScopes is not implemented") 26105 } 26106 return ec.directives.HasScopes(ctx, nil, directive0, path) 26107 } 26108 26109 tmp, err := directive1(rctx) 26110 if err != nil { 26111 return nil, err 26112 } 26113 if tmp == nil { 26114 return nil, nil 26115 } 26116 if data, ok := tmp.(*ApplicationTemplatePage); ok { 26117 return data, nil 26118 } 26119 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationTemplatePage`, tmp) 26120 }) 26121 if err != nil { 26122 ec.Error(ctx, err) 26123 return graphql.Null 26124 } 26125 if resTmp == nil { 26126 if !graphql.HasFieldError(ctx, fc) { 26127 ec.Errorf(ctx, "must not be null") 26128 } 26129 return graphql.Null 26130 } 26131 res := resTmp.(*ApplicationTemplatePage) 26132 fc.Result = res 26133 return ec.marshalNApplicationTemplatePage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplatePage(ctx, field.Selections, res) 26134 } 26135 26136 func (ec *executionContext) _Query_applicationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26137 defer func() { 26138 if r := recover(); r != nil { 26139 ec.Error(ctx, ec.Recover(ctx, r)) 26140 ret = graphql.Null 26141 } 26142 }() 26143 fc := &graphql.FieldContext{ 26144 Object: "Query", 26145 Field: field, 26146 Args: nil, 26147 IsMethod: true, 26148 } 26149 26150 ctx = graphql.WithFieldContext(ctx, fc) 26151 rawArgs := field.ArgumentMap(ec.Variables) 26152 args, err := ec.field_Query_applicationTemplate_args(ctx, rawArgs) 26153 if err != nil { 26154 ec.Error(ctx, err) 26155 return graphql.Null 26156 } 26157 fc.Args = args 26158 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26159 directive0 := func(rctx context.Context) (interface{}, error) { 26160 ctx = rctx // use context from middleware stack in children 26161 return ec.resolvers.Query().ApplicationTemplate(rctx, args["id"].(string)) 26162 } 26163 directive1 := func(ctx context.Context) (interface{}, error) { 26164 path, err := ec.unmarshalNString2string(ctx, "graphql.query.applicationTemplate") 26165 if err != nil { 26166 return nil, err 26167 } 26168 if ec.directives.HasScopes == nil { 26169 return nil, errors.New("directive hasScopes is not implemented") 26170 } 26171 return ec.directives.HasScopes(ctx, nil, directive0, path) 26172 } 26173 26174 tmp, err := directive1(rctx) 26175 if err != nil { 26176 return nil, err 26177 } 26178 if tmp == nil { 26179 return nil, nil 26180 } 26181 if data, ok := tmp.(*ApplicationTemplate); ok { 26182 return data, nil 26183 } 26184 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.ApplicationTemplate`, tmp) 26185 }) 26186 if err != nil { 26187 ec.Error(ctx, err) 26188 return graphql.Null 26189 } 26190 if resTmp == nil { 26191 return graphql.Null 26192 } 26193 res := resTmp.(*ApplicationTemplate) 26194 fc.Result = res 26195 return ec.marshalOApplicationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplate(ctx, field.Selections, res) 26196 } 26197 26198 func (ec *executionContext) _Query_runtimes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26199 defer func() { 26200 if r := recover(); r != nil { 26201 ec.Error(ctx, ec.Recover(ctx, r)) 26202 ret = graphql.Null 26203 } 26204 }() 26205 fc := &graphql.FieldContext{ 26206 Object: "Query", 26207 Field: field, 26208 Args: nil, 26209 IsMethod: true, 26210 } 26211 26212 ctx = graphql.WithFieldContext(ctx, fc) 26213 rawArgs := field.ArgumentMap(ec.Variables) 26214 args, err := ec.field_Query_runtimes_args(ctx, rawArgs) 26215 if err != nil { 26216 ec.Error(ctx, err) 26217 return graphql.Null 26218 } 26219 fc.Args = args 26220 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26221 directive0 := func(rctx context.Context) (interface{}, error) { 26222 ctx = rctx // use context from middleware stack in children 26223 return ec.resolvers.Query().Runtimes(rctx, args["filter"].([]*LabelFilter), args["first"].(*int), args["after"].(*PageCursor)) 26224 } 26225 directive1 := func(ctx context.Context) (interface{}, error) { 26226 path, err := ec.unmarshalNString2string(ctx, "graphql.query.runtimes") 26227 if err != nil { 26228 return nil, err 26229 } 26230 if ec.directives.HasScopes == nil { 26231 return nil, errors.New("directive hasScopes is not implemented") 26232 } 26233 return ec.directives.HasScopes(ctx, nil, directive0, path) 26234 } 26235 26236 tmp, err := directive1(rctx) 26237 if err != nil { 26238 return nil, err 26239 } 26240 if tmp == nil { 26241 return nil, nil 26242 } 26243 if data, ok := tmp.(*RuntimePage); ok { 26244 return data, nil 26245 } 26246 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.RuntimePage`, tmp) 26247 }) 26248 if err != nil { 26249 ec.Error(ctx, err) 26250 return graphql.Null 26251 } 26252 if resTmp == nil { 26253 if !graphql.HasFieldError(ctx, fc) { 26254 ec.Errorf(ctx, "must not be null") 26255 } 26256 return graphql.Null 26257 } 26258 res := resTmp.(*RuntimePage) 26259 fc.Result = res 26260 return ec.marshalNRuntimePage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimePage(ctx, field.Selections, res) 26261 } 26262 26263 func (ec *executionContext) _Query_runtime(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26264 defer func() { 26265 if r := recover(); r != nil { 26266 ec.Error(ctx, ec.Recover(ctx, r)) 26267 ret = graphql.Null 26268 } 26269 }() 26270 fc := &graphql.FieldContext{ 26271 Object: "Query", 26272 Field: field, 26273 Args: nil, 26274 IsMethod: true, 26275 } 26276 26277 ctx = graphql.WithFieldContext(ctx, fc) 26278 rawArgs := field.ArgumentMap(ec.Variables) 26279 args, err := ec.field_Query_runtime_args(ctx, rawArgs) 26280 if err != nil { 26281 ec.Error(ctx, err) 26282 return graphql.Null 26283 } 26284 fc.Args = args 26285 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26286 directive0 := func(rctx context.Context) (interface{}, error) { 26287 ctx = rctx // use context from middleware stack in children 26288 return ec.resolvers.Query().Runtime(rctx, args["id"].(string)) 26289 } 26290 directive1 := func(ctx context.Context) (interface{}, error) { 26291 path, err := ec.unmarshalNString2string(ctx, "graphql.query.runtime") 26292 if err != nil { 26293 return nil, err 26294 } 26295 if ec.directives.HasScopes == nil { 26296 return nil, errors.New("directive hasScopes is not implemented") 26297 } 26298 return ec.directives.HasScopes(ctx, nil, directive0, path) 26299 } 26300 26301 tmp, err := directive1(rctx) 26302 if err != nil { 26303 return nil, err 26304 } 26305 if tmp == nil { 26306 return nil, nil 26307 } 26308 if data, ok := tmp.(*Runtime); ok { 26309 return data, nil 26310 } 26311 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Runtime`, tmp) 26312 }) 26313 if err != nil { 26314 ec.Error(ctx, err) 26315 return graphql.Null 26316 } 26317 if resTmp == nil { 26318 return graphql.Null 26319 } 26320 res := resTmp.(*Runtime) 26321 fc.Result = res 26322 return ec.marshalORuntime2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntime(ctx, field.Selections, res) 26323 } 26324 26325 func (ec *executionContext) _Query_runtimeByTokenIssuer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26326 defer func() { 26327 if r := recover(); r != nil { 26328 ec.Error(ctx, ec.Recover(ctx, r)) 26329 ret = graphql.Null 26330 } 26331 }() 26332 fc := &graphql.FieldContext{ 26333 Object: "Query", 26334 Field: field, 26335 Args: nil, 26336 IsMethod: true, 26337 } 26338 26339 ctx = graphql.WithFieldContext(ctx, fc) 26340 rawArgs := field.ArgumentMap(ec.Variables) 26341 args, err := ec.field_Query_runtimeByTokenIssuer_args(ctx, rawArgs) 26342 if err != nil { 26343 ec.Error(ctx, err) 26344 return graphql.Null 26345 } 26346 fc.Args = args 26347 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26348 ctx = rctx // use context from middleware stack in children 26349 return ec.resolvers.Query().RuntimeByTokenIssuer(rctx, args["issuer"].(string)) 26350 }) 26351 if err != nil { 26352 ec.Error(ctx, err) 26353 return graphql.Null 26354 } 26355 if resTmp == nil { 26356 return graphql.Null 26357 } 26358 res := resTmp.(*Runtime) 26359 fc.Result = res 26360 return ec.marshalORuntime2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntime(ctx, field.Selections, res) 26361 } 26362 26363 func (ec *executionContext) _Query_labelDefinitions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26364 defer func() { 26365 if r := recover(); r != nil { 26366 ec.Error(ctx, ec.Recover(ctx, r)) 26367 ret = graphql.Null 26368 } 26369 }() 26370 fc := &graphql.FieldContext{ 26371 Object: "Query", 26372 Field: field, 26373 Args: nil, 26374 IsMethod: true, 26375 } 26376 26377 ctx = graphql.WithFieldContext(ctx, fc) 26378 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26379 directive0 := func(rctx context.Context) (interface{}, error) { 26380 ctx = rctx // use context from middleware stack in children 26381 return ec.resolvers.Query().LabelDefinitions(rctx) 26382 } 26383 directive1 := func(ctx context.Context) (interface{}, error) { 26384 path, err := ec.unmarshalNString2string(ctx, "graphql.query.labelDefinitions") 26385 if err != nil { 26386 return nil, err 26387 } 26388 if ec.directives.HasScopes == nil { 26389 return nil, errors.New("directive hasScopes is not implemented") 26390 } 26391 return ec.directives.HasScopes(ctx, nil, directive0, path) 26392 } 26393 26394 tmp, err := directive1(rctx) 26395 if err != nil { 26396 return nil, err 26397 } 26398 if tmp == nil { 26399 return nil, nil 26400 } 26401 if data, ok := tmp.([]*LabelDefinition); ok { 26402 return data, nil 26403 } 26404 return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kyma-incubator/compass/components/director/pkg/graphql.LabelDefinition`, tmp) 26405 }) 26406 if err != nil { 26407 ec.Error(ctx, err) 26408 return graphql.Null 26409 } 26410 if resTmp == nil { 26411 if !graphql.HasFieldError(ctx, fc) { 26412 ec.Errorf(ctx, "must not be null") 26413 } 26414 return graphql.Null 26415 } 26416 res := resTmp.([]*LabelDefinition) 26417 fc.Result = res 26418 return ec.marshalNLabelDefinition2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinitionᚄ(ctx, field.Selections, res) 26419 } 26420 26421 func (ec *executionContext) _Query_labelDefinition(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26422 defer func() { 26423 if r := recover(); r != nil { 26424 ec.Error(ctx, ec.Recover(ctx, r)) 26425 ret = graphql.Null 26426 } 26427 }() 26428 fc := &graphql.FieldContext{ 26429 Object: "Query", 26430 Field: field, 26431 Args: nil, 26432 IsMethod: true, 26433 } 26434 26435 ctx = graphql.WithFieldContext(ctx, fc) 26436 rawArgs := field.ArgumentMap(ec.Variables) 26437 args, err := ec.field_Query_labelDefinition_args(ctx, rawArgs) 26438 if err != nil { 26439 ec.Error(ctx, err) 26440 return graphql.Null 26441 } 26442 fc.Args = args 26443 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26444 directive0 := func(rctx context.Context) (interface{}, error) { 26445 ctx = rctx // use context from middleware stack in children 26446 return ec.resolvers.Query().LabelDefinition(rctx, args["key"].(string)) 26447 } 26448 directive1 := func(ctx context.Context) (interface{}, error) { 26449 path, err := ec.unmarshalNString2string(ctx, "graphql.query.labelDefinition") 26450 if err != nil { 26451 return nil, err 26452 } 26453 if ec.directives.HasScopes == nil { 26454 return nil, errors.New("directive hasScopes is not implemented") 26455 } 26456 return ec.directives.HasScopes(ctx, nil, directive0, path) 26457 } 26458 26459 tmp, err := directive1(rctx) 26460 if err != nil { 26461 return nil, err 26462 } 26463 if tmp == nil { 26464 return nil, nil 26465 } 26466 if data, ok := tmp.(*LabelDefinition); ok { 26467 return data, nil 26468 } 26469 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.LabelDefinition`, tmp) 26470 }) 26471 if err != nil { 26472 ec.Error(ctx, err) 26473 return graphql.Null 26474 } 26475 if resTmp == nil { 26476 return graphql.Null 26477 } 26478 res := resTmp.(*LabelDefinition) 26479 fc.Result = res 26480 return ec.marshalOLabelDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinition(ctx, field.Selections, res) 26481 } 26482 26483 func (ec *executionContext) _Query_bundleByInstanceAuth(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26484 defer func() { 26485 if r := recover(); r != nil { 26486 ec.Error(ctx, ec.Recover(ctx, r)) 26487 ret = graphql.Null 26488 } 26489 }() 26490 fc := &graphql.FieldContext{ 26491 Object: "Query", 26492 Field: field, 26493 Args: nil, 26494 IsMethod: true, 26495 } 26496 26497 ctx = graphql.WithFieldContext(ctx, fc) 26498 rawArgs := field.ArgumentMap(ec.Variables) 26499 args, err := ec.field_Query_bundleByInstanceAuth_args(ctx, rawArgs) 26500 if err != nil { 26501 ec.Error(ctx, err) 26502 return graphql.Null 26503 } 26504 fc.Args = args 26505 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26506 directive0 := func(rctx context.Context) (interface{}, error) { 26507 ctx = rctx // use context from middleware stack in children 26508 return ec.resolvers.Query().BundleByInstanceAuth(rctx, args["authID"].(string)) 26509 } 26510 directive1 := func(ctx context.Context) (interface{}, error) { 26511 path, err := ec.unmarshalNString2string(ctx, "graphql.query.bundleByInstanceAuth") 26512 if err != nil { 26513 return nil, err 26514 } 26515 if ec.directives.HasScopes == nil { 26516 return nil, errors.New("directive hasScopes is not implemented") 26517 } 26518 return ec.directives.HasScopes(ctx, nil, directive0, path) 26519 } 26520 26521 tmp, err := directive1(rctx) 26522 if err != nil { 26523 return nil, err 26524 } 26525 if tmp == nil { 26526 return nil, nil 26527 } 26528 if data, ok := tmp.(*Bundle); ok { 26529 return data, nil 26530 } 26531 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Bundle`, tmp) 26532 }) 26533 if err != nil { 26534 ec.Error(ctx, err) 26535 return graphql.Null 26536 } 26537 if resTmp == nil { 26538 return graphql.Null 26539 } 26540 res := resTmp.(*Bundle) 26541 fc.Result = res 26542 return ec.marshalOBundle2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundle(ctx, field.Selections, res) 26543 } 26544 26545 func (ec *executionContext) _Query_bundleInstanceAuth(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26546 defer func() { 26547 if r := recover(); r != nil { 26548 ec.Error(ctx, ec.Recover(ctx, r)) 26549 ret = graphql.Null 26550 } 26551 }() 26552 fc := &graphql.FieldContext{ 26553 Object: "Query", 26554 Field: field, 26555 Args: nil, 26556 IsMethod: true, 26557 } 26558 26559 ctx = graphql.WithFieldContext(ctx, fc) 26560 rawArgs := field.ArgumentMap(ec.Variables) 26561 args, err := ec.field_Query_bundleInstanceAuth_args(ctx, rawArgs) 26562 if err != nil { 26563 ec.Error(ctx, err) 26564 return graphql.Null 26565 } 26566 fc.Args = args 26567 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26568 directive0 := func(rctx context.Context) (interface{}, error) { 26569 ctx = rctx // use context from middleware stack in children 26570 return ec.resolvers.Query().BundleInstanceAuth(rctx, args["id"].(string)) 26571 } 26572 directive1 := func(ctx context.Context) (interface{}, error) { 26573 path, err := ec.unmarshalNString2string(ctx, "graphql.query.bundleInstanceAuth") 26574 if err != nil { 26575 return nil, err 26576 } 26577 if ec.directives.HasScopes == nil { 26578 return nil, errors.New("directive hasScopes is not implemented") 26579 } 26580 return ec.directives.HasScopes(ctx, nil, directive0, path) 26581 } 26582 26583 tmp, err := directive1(rctx) 26584 if err != nil { 26585 return nil, err 26586 } 26587 if tmp == nil { 26588 return nil, nil 26589 } 26590 if data, ok := tmp.(*BundleInstanceAuth); ok { 26591 return data, nil 26592 } 26593 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.BundleInstanceAuth`, tmp) 26594 }) 26595 if err != nil { 26596 ec.Error(ctx, err) 26597 return graphql.Null 26598 } 26599 if resTmp == nil { 26600 return graphql.Null 26601 } 26602 res := resTmp.(*BundleInstanceAuth) 26603 fc.Result = res 26604 return ec.marshalOBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx, field.Selections, res) 26605 } 26606 26607 func (ec *executionContext) _Query_healthChecks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26608 defer func() { 26609 if r := recover(); r != nil { 26610 ec.Error(ctx, ec.Recover(ctx, r)) 26611 ret = graphql.Null 26612 } 26613 }() 26614 fc := &graphql.FieldContext{ 26615 Object: "Query", 26616 Field: field, 26617 Args: nil, 26618 IsMethod: true, 26619 } 26620 26621 ctx = graphql.WithFieldContext(ctx, fc) 26622 rawArgs := field.ArgumentMap(ec.Variables) 26623 args, err := ec.field_Query_healthChecks_args(ctx, rawArgs) 26624 if err != nil { 26625 ec.Error(ctx, err) 26626 return graphql.Null 26627 } 26628 fc.Args = args 26629 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26630 directive0 := func(rctx context.Context) (interface{}, error) { 26631 ctx = rctx // use context from middleware stack in children 26632 return ec.resolvers.Query().HealthChecks(rctx, args["types"].([]HealthCheckType), args["origin"].(*string), args["first"].(*int), args["after"].(*PageCursor)) 26633 } 26634 directive1 := func(ctx context.Context) (interface{}, error) { 26635 path, err := ec.unmarshalNString2string(ctx, "graphql.query.healthChecks") 26636 if err != nil { 26637 return nil, err 26638 } 26639 if ec.directives.HasScopes == nil { 26640 return nil, errors.New("directive hasScopes is not implemented") 26641 } 26642 return ec.directives.HasScopes(ctx, nil, directive0, path) 26643 } 26644 26645 tmp, err := directive1(rctx) 26646 if err != nil { 26647 return nil, err 26648 } 26649 if tmp == nil { 26650 return nil, nil 26651 } 26652 if data, ok := tmp.(*HealthCheckPage); ok { 26653 return data, nil 26654 } 26655 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.HealthCheckPage`, tmp) 26656 }) 26657 if err != nil { 26658 ec.Error(ctx, err) 26659 return graphql.Null 26660 } 26661 if resTmp == nil { 26662 if !graphql.HasFieldError(ctx, fc) { 26663 ec.Errorf(ctx, "must not be null") 26664 } 26665 return graphql.Null 26666 } 26667 res := resTmp.(*HealthCheckPage) 26668 fc.Result = res 26669 return ec.marshalNHealthCheckPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckPage(ctx, field.Selections, res) 26670 } 26671 26672 func (ec *executionContext) _Query_integrationSystems(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26673 defer func() { 26674 if r := recover(); r != nil { 26675 ec.Error(ctx, ec.Recover(ctx, r)) 26676 ret = graphql.Null 26677 } 26678 }() 26679 fc := &graphql.FieldContext{ 26680 Object: "Query", 26681 Field: field, 26682 Args: nil, 26683 IsMethod: true, 26684 } 26685 26686 ctx = graphql.WithFieldContext(ctx, fc) 26687 rawArgs := field.ArgumentMap(ec.Variables) 26688 args, err := ec.field_Query_integrationSystems_args(ctx, rawArgs) 26689 if err != nil { 26690 ec.Error(ctx, err) 26691 return graphql.Null 26692 } 26693 fc.Args = args 26694 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26695 directive0 := func(rctx context.Context) (interface{}, error) { 26696 ctx = rctx // use context from middleware stack in children 26697 return ec.resolvers.Query().IntegrationSystems(rctx, args["first"].(*int), args["after"].(*PageCursor)) 26698 } 26699 directive1 := func(ctx context.Context) (interface{}, error) { 26700 path, err := ec.unmarshalNString2string(ctx, "graphql.query.integrationSystems") 26701 if err != nil { 26702 return nil, err 26703 } 26704 if ec.directives.HasScopes == nil { 26705 return nil, errors.New("directive hasScopes is not implemented") 26706 } 26707 return ec.directives.HasScopes(ctx, nil, directive0, path) 26708 } 26709 26710 tmp, err := directive1(rctx) 26711 if err != nil { 26712 return nil, err 26713 } 26714 if tmp == nil { 26715 return nil, nil 26716 } 26717 if data, ok := tmp.(*IntegrationSystemPage); ok { 26718 return data, nil 26719 } 26720 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.IntegrationSystemPage`, tmp) 26721 }) 26722 if err != nil { 26723 ec.Error(ctx, err) 26724 return graphql.Null 26725 } 26726 if resTmp == nil { 26727 if !graphql.HasFieldError(ctx, fc) { 26728 ec.Errorf(ctx, "must not be null") 26729 } 26730 return graphql.Null 26731 } 26732 res := resTmp.(*IntegrationSystemPage) 26733 fc.Result = res 26734 return ec.marshalNIntegrationSystemPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystemPage(ctx, field.Selections, res) 26735 } 26736 26737 func (ec *executionContext) _Query_integrationSystem(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26738 defer func() { 26739 if r := recover(); r != nil { 26740 ec.Error(ctx, ec.Recover(ctx, r)) 26741 ret = graphql.Null 26742 } 26743 }() 26744 fc := &graphql.FieldContext{ 26745 Object: "Query", 26746 Field: field, 26747 Args: nil, 26748 IsMethod: true, 26749 } 26750 26751 ctx = graphql.WithFieldContext(ctx, fc) 26752 rawArgs := field.ArgumentMap(ec.Variables) 26753 args, err := ec.field_Query_integrationSystem_args(ctx, rawArgs) 26754 if err != nil { 26755 ec.Error(ctx, err) 26756 return graphql.Null 26757 } 26758 fc.Args = args 26759 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26760 directive0 := func(rctx context.Context) (interface{}, error) { 26761 ctx = rctx // use context from middleware stack in children 26762 return ec.resolvers.Query().IntegrationSystem(rctx, args["id"].(string)) 26763 } 26764 directive1 := func(ctx context.Context) (interface{}, error) { 26765 path, err := ec.unmarshalNString2string(ctx, "graphql.query.integrationSystem") 26766 if err != nil { 26767 return nil, err 26768 } 26769 if ec.directives.HasScopes == nil { 26770 return nil, errors.New("directive hasScopes is not implemented") 26771 } 26772 return ec.directives.HasScopes(ctx, nil, directive0, path) 26773 } 26774 26775 tmp, err := directive1(rctx) 26776 if err != nil { 26777 return nil, err 26778 } 26779 if tmp == nil { 26780 return nil, nil 26781 } 26782 if data, ok := tmp.(*IntegrationSystem); ok { 26783 return data, nil 26784 } 26785 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.IntegrationSystem`, tmp) 26786 }) 26787 if err != nil { 26788 ec.Error(ctx, err) 26789 return graphql.Null 26790 } 26791 if resTmp == nil { 26792 return graphql.Null 26793 } 26794 res := resTmp.(*IntegrationSystem) 26795 fc.Result = res 26796 return ec.marshalOIntegrationSystem2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystem(ctx, field.Selections, res) 26797 } 26798 26799 func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26800 defer func() { 26801 if r := recover(); r != nil { 26802 ec.Error(ctx, ec.Recover(ctx, r)) 26803 ret = graphql.Null 26804 } 26805 }() 26806 fc := &graphql.FieldContext{ 26807 Object: "Query", 26808 Field: field, 26809 Args: nil, 26810 IsMethod: true, 26811 } 26812 26813 ctx = graphql.WithFieldContext(ctx, fc) 26814 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26815 directive0 := func(rctx context.Context) (interface{}, error) { 26816 ctx = rctx // use context from middleware stack in children 26817 return ec.resolvers.Query().Viewer(rctx) 26818 } 26819 directive1 := func(ctx context.Context) (interface{}, error) { 26820 path, err := ec.unmarshalNString2string(ctx, "graphql.query.viewer") 26821 if err != nil { 26822 return nil, err 26823 } 26824 if ec.directives.HasScopes == nil { 26825 return nil, errors.New("directive hasScopes is not implemented") 26826 } 26827 return ec.directives.HasScopes(ctx, nil, directive0, path) 26828 } 26829 26830 tmp, err := directive1(rctx) 26831 if err != nil { 26832 return nil, err 26833 } 26834 if tmp == nil { 26835 return nil, nil 26836 } 26837 if data, ok := tmp.(*Viewer); ok { 26838 return data, nil 26839 } 26840 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Viewer`, tmp) 26841 }) 26842 if err != nil { 26843 ec.Error(ctx, err) 26844 return graphql.Null 26845 } 26846 if resTmp == nil { 26847 if !graphql.HasFieldError(ctx, fc) { 26848 ec.Errorf(ctx, "must not be null") 26849 } 26850 return graphql.Null 26851 } 26852 res := resTmp.(*Viewer) 26853 fc.Result = res 26854 return ec.marshalNViewer2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐViewer(ctx, field.Selections, res) 26855 } 26856 26857 func (ec *executionContext) _Query_tenants(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26858 defer func() { 26859 if r := recover(); r != nil { 26860 ec.Error(ctx, ec.Recover(ctx, r)) 26861 ret = graphql.Null 26862 } 26863 }() 26864 fc := &graphql.FieldContext{ 26865 Object: "Query", 26866 Field: field, 26867 Args: nil, 26868 IsMethod: true, 26869 } 26870 26871 ctx = graphql.WithFieldContext(ctx, fc) 26872 rawArgs := field.ArgumentMap(ec.Variables) 26873 args, err := ec.field_Query_tenants_args(ctx, rawArgs) 26874 if err != nil { 26875 ec.Error(ctx, err) 26876 return graphql.Null 26877 } 26878 fc.Args = args 26879 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26880 directive0 := func(rctx context.Context) (interface{}, error) { 26881 ctx = rctx // use context from middleware stack in children 26882 return ec.resolvers.Query().Tenants(rctx, args["first"].(*int), args["after"].(*PageCursor), args["searchTerm"].(*string)) 26883 } 26884 directive1 := func(ctx context.Context) (interface{}, error) { 26885 path, err := ec.unmarshalNString2string(ctx, "graphql.query.tenants") 26886 if err != nil { 26887 return nil, err 26888 } 26889 if ec.directives.HasScopes == nil { 26890 return nil, errors.New("directive hasScopes is not implemented") 26891 } 26892 return ec.directives.HasScopes(ctx, nil, directive0, path) 26893 } 26894 26895 tmp, err := directive1(rctx) 26896 if err != nil { 26897 return nil, err 26898 } 26899 if tmp == nil { 26900 return nil, nil 26901 } 26902 if data, ok := tmp.(*TenantPage); ok { 26903 return data, nil 26904 } 26905 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.TenantPage`, tmp) 26906 }) 26907 if err != nil { 26908 ec.Error(ctx, err) 26909 return graphql.Null 26910 } 26911 if resTmp == nil { 26912 if !graphql.HasFieldError(ctx, fc) { 26913 ec.Errorf(ctx, "must not be null") 26914 } 26915 return graphql.Null 26916 } 26917 res := resTmp.(*TenantPage) 26918 fc.Result = res 26919 return ec.marshalNTenantPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantPage(ctx, field.Selections, res) 26920 } 26921 26922 func (ec *executionContext) _Query_tenantByExternalID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26923 defer func() { 26924 if r := recover(); r != nil { 26925 ec.Error(ctx, ec.Recover(ctx, r)) 26926 ret = graphql.Null 26927 } 26928 }() 26929 fc := &graphql.FieldContext{ 26930 Object: "Query", 26931 Field: field, 26932 Args: nil, 26933 IsMethod: true, 26934 } 26935 26936 ctx = graphql.WithFieldContext(ctx, fc) 26937 rawArgs := field.ArgumentMap(ec.Variables) 26938 args, err := ec.field_Query_tenantByExternalID_args(ctx, rawArgs) 26939 if err != nil { 26940 ec.Error(ctx, err) 26941 return graphql.Null 26942 } 26943 fc.Args = args 26944 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 26945 directive0 := func(rctx context.Context) (interface{}, error) { 26946 ctx = rctx // use context from middleware stack in children 26947 return ec.resolvers.Query().TenantByExternalID(rctx, args["id"].(string)) 26948 } 26949 directive1 := func(ctx context.Context) (interface{}, error) { 26950 path, err := ec.unmarshalNString2string(ctx, "graphql.query.tenants") 26951 if err != nil { 26952 return nil, err 26953 } 26954 if ec.directives.HasScopes == nil { 26955 return nil, errors.New("directive hasScopes is not implemented") 26956 } 26957 return ec.directives.HasScopes(ctx, nil, directive0, path) 26958 } 26959 26960 tmp, err := directive1(rctx) 26961 if err != nil { 26962 return nil, err 26963 } 26964 if tmp == nil { 26965 return nil, nil 26966 } 26967 if data, ok := tmp.(*Tenant); ok { 26968 return data, nil 26969 } 26970 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Tenant`, tmp) 26971 }) 26972 if err != nil { 26973 ec.Error(ctx, err) 26974 return graphql.Null 26975 } 26976 if resTmp == nil { 26977 return graphql.Null 26978 } 26979 res := resTmp.(*Tenant) 26980 fc.Result = res 26981 return ec.marshalOTenant2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenant(ctx, field.Selections, res) 26982 } 26983 26984 func (ec *executionContext) _Query_tenantByInternalID(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 26985 defer func() { 26986 if r := recover(); r != nil { 26987 ec.Error(ctx, ec.Recover(ctx, r)) 26988 ret = graphql.Null 26989 } 26990 }() 26991 fc := &graphql.FieldContext{ 26992 Object: "Query", 26993 Field: field, 26994 Args: nil, 26995 IsMethod: true, 26996 } 26997 26998 ctx = graphql.WithFieldContext(ctx, fc) 26999 rawArgs := field.ArgumentMap(ec.Variables) 27000 args, err := ec.field_Query_tenantByInternalID_args(ctx, rawArgs) 27001 if err != nil { 27002 ec.Error(ctx, err) 27003 return graphql.Null 27004 } 27005 fc.Args = args 27006 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27007 directive0 := func(rctx context.Context) (interface{}, error) { 27008 ctx = rctx // use context from middleware stack in children 27009 return ec.resolvers.Query().TenantByInternalID(rctx, args["id"].(string)) 27010 } 27011 directive1 := func(ctx context.Context) (interface{}, error) { 27012 path, err := ec.unmarshalNString2string(ctx, "graphql.query.tenantByInternalID") 27013 if err != nil { 27014 return nil, err 27015 } 27016 if ec.directives.HasScopes == nil { 27017 return nil, errors.New("directive hasScopes is not implemented") 27018 } 27019 return ec.directives.HasScopes(ctx, nil, directive0, path) 27020 } 27021 27022 tmp, err := directive1(rctx) 27023 if err != nil { 27024 return nil, err 27025 } 27026 if tmp == nil { 27027 return nil, nil 27028 } 27029 if data, ok := tmp.(*Tenant); ok { 27030 return data, nil 27031 } 27032 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Tenant`, tmp) 27033 }) 27034 if err != nil { 27035 ec.Error(ctx, err) 27036 return graphql.Null 27037 } 27038 if resTmp == nil { 27039 return graphql.Null 27040 } 27041 res := resTmp.(*Tenant) 27042 fc.Result = res 27043 return ec.marshalOTenant2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenant(ctx, field.Selections, res) 27044 } 27045 27046 func (ec *executionContext) _Query_tenantByLowestOwnerForResource(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27047 defer func() { 27048 if r := recover(); r != nil { 27049 ec.Error(ctx, ec.Recover(ctx, r)) 27050 ret = graphql.Null 27051 } 27052 }() 27053 fc := &graphql.FieldContext{ 27054 Object: "Query", 27055 Field: field, 27056 Args: nil, 27057 IsMethod: true, 27058 } 27059 27060 ctx = graphql.WithFieldContext(ctx, fc) 27061 rawArgs := field.ArgumentMap(ec.Variables) 27062 args, err := ec.field_Query_tenantByLowestOwnerForResource_args(ctx, rawArgs) 27063 if err != nil { 27064 ec.Error(ctx, err) 27065 return graphql.Null 27066 } 27067 fc.Args = args 27068 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27069 directive0 := func(rctx context.Context) (interface{}, error) { 27070 ctx = rctx // use context from middleware stack in children 27071 return ec.resolvers.Query().TenantByLowestOwnerForResource(rctx, args["id"].(string), args["resource"].(string)) 27072 } 27073 directive1 := func(ctx context.Context) (interface{}, error) { 27074 path, err := ec.unmarshalNString2string(ctx, "graphql.query.tenantByLowestOwnerForResource") 27075 if err != nil { 27076 return nil, err 27077 } 27078 if ec.directives.HasScopes == nil { 27079 return nil, errors.New("directive hasScopes is not implemented") 27080 } 27081 return ec.directives.HasScopes(ctx, nil, directive0, path) 27082 } 27083 27084 tmp, err := directive1(rctx) 27085 if err != nil { 27086 return nil, err 27087 } 27088 if tmp == nil { 27089 return nil, nil 27090 } 27091 if data, ok := tmp.(string); ok { 27092 return data, nil 27093 } 27094 return nil, fmt.Errorf(`unexpected type %T from directive, should be string`, tmp) 27095 }) 27096 if err != nil { 27097 ec.Error(ctx, err) 27098 return graphql.Null 27099 } 27100 if resTmp == nil { 27101 if !graphql.HasFieldError(ctx, fc) { 27102 ec.Errorf(ctx, "must not be null") 27103 } 27104 return graphql.Null 27105 } 27106 res := resTmp.(string) 27107 fc.Result = res 27108 return ec.marshalNString2string(ctx, field.Selections, res) 27109 } 27110 27111 func (ec *executionContext) _Query_automaticScenarioAssignmentForScenario(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27112 defer func() { 27113 if r := recover(); r != nil { 27114 ec.Error(ctx, ec.Recover(ctx, r)) 27115 ret = graphql.Null 27116 } 27117 }() 27118 fc := &graphql.FieldContext{ 27119 Object: "Query", 27120 Field: field, 27121 Args: nil, 27122 IsMethod: true, 27123 } 27124 27125 ctx = graphql.WithFieldContext(ctx, fc) 27126 rawArgs := field.ArgumentMap(ec.Variables) 27127 args, err := ec.field_Query_automaticScenarioAssignmentForScenario_args(ctx, rawArgs) 27128 if err != nil { 27129 ec.Error(ctx, err) 27130 return graphql.Null 27131 } 27132 fc.Args = args 27133 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27134 directive0 := func(rctx context.Context) (interface{}, error) { 27135 ctx = rctx // use context from middleware stack in children 27136 return ec.resolvers.Query().AutomaticScenarioAssignmentForScenario(rctx, args["scenarioName"].(string)) 27137 } 27138 directive1 := func(ctx context.Context) (interface{}, error) { 27139 path, err := ec.unmarshalNString2string(ctx, "graphql.query.automaticScenarioAssignmentForScenario") 27140 if err != nil { 27141 return nil, err 27142 } 27143 if ec.directives.HasScopes == nil { 27144 return nil, errors.New("directive hasScopes is not implemented") 27145 } 27146 return ec.directives.HasScopes(ctx, nil, directive0, path) 27147 } 27148 27149 tmp, err := directive1(rctx) 27150 if err != nil { 27151 return nil, err 27152 } 27153 if tmp == nil { 27154 return nil, nil 27155 } 27156 if data, ok := tmp.(*AutomaticScenarioAssignment); ok { 27157 return data, nil 27158 } 27159 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.AutomaticScenarioAssignment`, tmp) 27160 }) 27161 if err != nil { 27162 ec.Error(ctx, err) 27163 return graphql.Null 27164 } 27165 if resTmp == nil { 27166 return graphql.Null 27167 } 27168 res := resTmp.(*AutomaticScenarioAssignment) 27169 fc.Result = res 27170 return ec.marshalOAutomaticScenarioAssignment2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignment(ctx, field.Selections, res) 27171 } 27172 27173 func (ec *executionContext) _Query_automaticScenarioAssignmentsForSelector(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27174 defer func() { 27175 if r := recover(); r != nil { 27176 ec.Error(ctx, ec.Recover(ctx, r)) 27177 ret = graphql.Null 27178 } 27179 }() 27180 fc := &graphql.FieldContext{ 27181 Object: "Query", 27182 Field: field, 27183 Args: nil, 27184 IsMethod: true, 27185 } 27186 27187 ctx = graphql.WithFieldContext(ctx, fc) 27188 rawArgs := field.ArgumentMap(ec.Variables) 27189 args, err := ec.field_Query_automaticScenarioAssignmentsForSelector_args(ctx, rawArgs) 27190 if err != nil { 27191 ec.Error(ctx, err) 27192 return graphql.Null 27193 } 27194 fc.Args = args 27195 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27196 directive0 := func(rctx context.Context) (interface{}, error) { 27197 ctx = rctx // use context from middleware stack in children 27198 return ec.resolvers.Query().AutomaticScenarioAssignmentsForSelector(rctx, args["selector"].(LabelSelectorInput)) 27199 } 27200 directive1 := func(ctx context.Context) (interface{}, error) { 27201 path, err := ec.unmarshalNString2string(ctx, "graphql.query.automaticScenarioAssignmentsForSelector") 27202 if err != nil { 27203 return nil, err 27204 } 27205 if ec.directives.HasScopes == nil { 27206 return nil, errors.New("directive hasScopes is not implemented") 27207 } 27208 return ec.directives.HasScopes(ctx, nil, directive0, path) 27209 } 27210 27211 tmp, err := directive1(rctx) 27212 if err != nil { 27213 return nil, err 27214 } 27215 if tmp == nil { 27216 return nil, nil 27217 } 27218 if data, ok := tmp.([]*AutomaticScenarioAssignment); ok { 27219 return data, nil 27220 } 27221 return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kyma-incubator/compass/components/director/pkg/graphql.AutomaticScenarioAssignment`, tmp) 27222 }) 27223 if err != nil { 27224 ec.Error(ctx, err) 27225 return graphql.Null 27226 } 27227 if resTmp == nil { 27228 if !graphql.HasFieldError(ctx, fc) { 27229 ec.Errorf(ctx, "must not be null") 27230 } 27231 return graphql.Null 27232 } 27233 res := resTmp.([]*AutomaticScenarioAssignment) 27234 fc.Result = res 27235 return ec.marshalNAutomaticScenarioAssignment2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignmentᚄ(ctx, field.Selections, res) 27236 } 27237 27238 func (ec *executionContext) _Query_automaticScenarioAssignments(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27239 defer func() { 27240 if r := recover(); r != nil { 27241 ec.Error(ctx, ec.Recover(ctx, r)) 27242 ret = graphql.Null 27243 } 27244 }() 27245 fc := &graphql.FieldContext{ 27246 Object: "Query", 27247 Field: field, 27248 Args: nil, 27249 IsMethod: true, 27250 } 27251 27252 ctx = graphql.WithFieldContext(ctx, fc) 27253 rawArgs := field.ArgumentMap(ec.Variables) 27254 args, err := ec.field_Query_automaticScenarioAssignments_args(ctx, rawArgs) 27255 if err != nil { 27256 ec.Error(ctx, err) 27257 return graphql.Null 27258 } 27259 fc.Args = args 27260 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27261 directive0 := func(rctx context.Context) (interface{}, error) { 27262 ctx = rctx // use context from middleware stack in children 27263 return ec.resolvers.Query().AutomaticScenarioAssignments(rctx, args["first"].(*int), args["after"].(*PageCursor)) 27264 } 27265 directive1 := func(ctx context.Context) (interface{}, error) { 27266 path, err := ec.unmarshalNString2string(ctx, "graphql.query.automaticScenarioAssignments") 27267 if err != nil { 27268 return nil, err 27269 } 27270 if ec.directives.HasScopes == nil { 27271 return nil, errors.New("directive hasScopes is not implemented") 27272 } 27273 return ec.directives.HasScopes(ctx, nil, directive0, path) 27274 } 27275 27276 tmp, err := directive1(rctx) 27277 if err != nil { 27278 return nil, err 27279 } 27280 if tmp == nil { 27281 return nil, nil 27282 } 27283 if data, ok := tmp.(*AutomaticScenarioAssignmentPage); ok { 27284 return data, nil 27285 } 27286 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.AutomaticScenarioAssignmentPage`, tmp) 27287 }) 27288 if err != nil { 27289 ec.Error(ctx, err) 27290 return graphql.Null 27291 } 27292 if resTmp == nil { 27293 return graphql.Null 27294 } 27295 res := resTmp.(*AutomaticScenarioAssignmentPage) 27296 fc.Result = res 27297 return ec.marshalOAutomaticScenarioAssignmentPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignmentPage(ctx, field.Selections, res) 27298 } 27299 27300 func (ec *executionContext) _Query_systemAuth(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27301 defer func() { 27302 if r := recover(); r != nil { 27303 ec.Error(ctx, ec.Recover(ctx, r)) 27304 ret = graphql.Null 27305 } 27306 }() 27307 fc := &graphql.FieldContext{ 27308 Object: "Query", 27309 Field: field, 27310 Args: nil, 27311 IsMethod: true, 27312 } 27313 27314 ctx = graphql.WithFieldContext(ctx, fc) 27315 rawArgs := field.ArgumentMap(ec.Variables) 27316 args, err := ec.field_Query_systemAuth_args(ctx, rawArgs) 27317 if err != nil { 27318 ec.Error(ctx, err) 27319 return graphql.Null 27320 } 27321 fc.Args = args 27322 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27323 directive0 := func(rctx context.Context) (interface{}, error) { 27324 ctx = rctx // use context from middleware stack in children 27325 return ec.resolvers.Query().SystemAuth(rctx, args["id"].(string)) 27326 } 27327 directive1 := func(ctx context.Context) (interface{}, error) { 27328 path, err := ec.unmarshalNString2string(ctx, "graphql.query.systemAuth") 27329 if err != nil { 27330 return nil, err 27331 } 27332 if ec.directives.HasScopes == nil { 27333 return nil, errors.New("directive hasScopes is not implemented") 27334 } 27335 return ec.directives.HasScopes(ctx, nil, directive0, path) 27336 } 27337 27338 tmp, err := directive1(rctx) 27339 if err != nil { 27340 return nil, err 27341 } 27342 if tmp == nil { 27343 return nil, nil 27344 } 27345 if data, ok := tmp.(SystemAuth); ok { 27346 return data, nil 27347 } 27348 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.SystemAuth`, tmp) 27349 }) 27350 if err != nil { 27351 ec.Error(ctx, err) 27352 return graphql.Null 27353 } 27354 if resTmp == nil { 27355 return graphql.Null 27356 } 27357 res := resTmp.(SystemAuth) 27358 fc.Result = res 27359 return ec.marshalOSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx, field.Selections, res) 27360 } 27361 27362 func (ec *executionContext) _Query_systemAuthByToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27363 defer func() { 27364 if r := recover(); r != nil { 27365 ec.Error(ctx, ec.Recover(ctx, r)) 27366 ret = graphql.Null 27367 } 27368 }() 27369 fc := &graphql.FieldContext{ 27370 Object: "Query", 27371 Field: field, 27372 Args: nil, 27373 IsMethod: true, 27374 } 27375 27376 ctx = graphql.WithFieldContext(ctx, fc) 27377 rawArgs := field.ArgumentMap(ec.Variables) 27378 args, err := ec.field_Query_systemAuthByToken_args(ctx, rawArgs) 27379 if err != nil { 27380 ec.Error(ctx, err) 27381 return graphql.Null 27382 } 27383 fc.Args = args 27384 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27385 directive0 := func(rctx context.Context) (interface{}, error) { 27386 ctx = rctx // use context from middleware stack in children 27387 return ec.resolvers.Query().SystemAuthByToken(rctx, args["token"].(string)) 27388 } 27389 directive1 := func(ctx context.Context) (interface{}, error) { 27390 path, err := ec.unmarshalNString2string(ctx, "graphql.query.systemAuthByToken") 27391 if err != nil { 27392 return nil, err 27393 } 27394 if ec.directives.HasScopes == nil { 27395 return nil, errors.New("directive hasScopes is not implemented") 27396 } 27397 return ec.directives.HasScopes(ctx, nil, directive0, path) 27398 } 27399 27400 tmp, err := directive1(rctx) 27401 if err != nil { 27402 return nil, err 27403 } 27404 if tmp == nil { 27405 return nil, nil 27406 } 27407 if data, ok := tmp.(SystemAuth); ok { 27408 return data, nil 27409 } 27410 return nil, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.SystemAuth`, tmp) 27411 }) 27412 if err != nil { 27413 ec.Error(ctx, err) 27414 return graphql.Null 27415 } 27416 if resTmp == nil { 27417 return graphql.Null 27418 } 27419 res := resTmp.(SystemAuth) 27420 fc.Result = res 27421 return ec.marshalOSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx, field.Selections, res) 27422 } 27423 27424 func (ec *executionContext) _Query_formation(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27425 defer func() { 27426 if r := recover(); r != nil { 27427 ec.Error(ctx, ec.Recover(ctx, r)) 27428 ret = graphql.Null 27429 } 27430 }() 27431 fc := &graphql.FieldContext{ 27432 Object: "Query", 27433 Field: field, 27434 Args: nil, 27435 IsMethod: true, 27436 } 27437 27438 ctx = graphql.WithFieldContext(ctx, fc) 27439 rawArgs := field.ArgumentMap(ec.Variables) 27440 args, err := ec.field_Query_formation_args(ctx, rawArgs) 27441 if err != nil { 27442 ec.Error(ctx, err) 27443 return graphql.Null 27444 } 27445 fc.Args = args 27446 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27447 directive0 := func(rctx context.Context) (interface{}, error) { 27448 ctx = rctx // use context from middleware stack in children 27449 return ec.resolvers.Query().Formation(rctx, args["id"].(string)) 27450 } 27451 directive1 := func(ctx context.Context) (interface{}, error) { 27452 path, err := ec.unmarshalNString2string(ctx, "graphql.query.formation") 27453 if err != nil { 27454 return nil, err 27455 } 27456 if ec.directives.HasScopes == nil { 27457 return nil, errors.New("directive hasScopes is not implemented") 27458 } 27459 return ec.directives.HasScopes(ctx, nil, directive0, path) 27460 } 27461 27462 tmp, err := directive1(rctx) 27463 if err != nil { 27464 return nil, err 27465 } 27466 if tmp == nil { 27467 return nil, nil 27468 } 27469 if data, ok := tmp.(*Formation); ok { 27470 return data, nil 27471 } 27472 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Formation`, tmp) 27473 }) 27474 if err != nil { 27475 ec.Error(ctx, err) 27476 return graphql.Null 27477 } 27478 if resTmp == nil { 27479 return graphql.Null 27480 } 27481 res := resTmp.(*Formation) 27482 fc.Result = res 27483 return ec.marshalOFormation2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx, field.Selections, res) 27484 } 27485 27486 func (ec *executionContext) _Query_formationByName(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27487 defer func() { 27488 if r := recover(); r != nil { 27489 ec.Error(ctx, ec.Recover(ctx, r)) 27490 ret = graphql.Null 27491 } 27492 }() 27493 fc := &graphql.FieldContext{ 27494 Object: "Query", 27495 Field: field, 27496 Args: nil, 27497 IsMethod: true, 27498 } 27499 27500 ctx = graphql.WithFieldContext(ctx, fc) 27501 rawArgs := field.ArgumentMap(ec.Variables) 27502 args, err := ec.field_Query_formationByName_args(ctx, rawArgs) 27503 if err != nil { 27504 ec.Error(ctx, err) 27505 return graphql.Null 27506 } 27507 fc.Args = args 27508 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27509 directive0 := func(rctx context.Context) (interface{}, error) { 27510 ctx = rctx // use context from middleware stack in children 27511 return ec.resolvers.Query().FormationByName(rctx, args["name"].(string)) 27512 } 27513 directive1 := func(ctx context.Context) (interface{}, error) { 27514 path, err := ec.unmarshalNString2string(ctx, "graphql.query.formationByName") 27515 if err != nil { 27516 return nil, err 27517 } 27518 if ec.directives.HasScopes == nil { 27519 return nil, errors.New("directive hasScopes is not implemented") 27520 } 27521 return ec.directives.HasScopes(ctx, nil, directive0, path) 27522 } 27523 27524 tmp, err := directive1(rctx) 27525 if err != nil { 27526 return nil, err 27527 } 27528 if tmp == nil { 27529 return nil, nil 27530 } 27531 if data, ok := tmp.(*Formation); ok { 27532 return data, nil 27533 } 27534 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Formation`, tmp) 27535 }) 27536 if err != nil { 27537 ec.Error(ctx, err) 27538 return graphql.Null 27539 } 27540 if resTmp == nil { 27541 return graphql.Null 27542 } 27543 res := resTmp.(*Formation) 27544 fc.Result = res 27545 return ec.marshalOFormation2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx, field.Selections, res) 27546 } 27547 27548 func (ec *executionContext) _Query_formations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27549 defer func() { 27550 if r := recover(); r != nil { 27551 ec.Error(ctx, ec.Recover(ctx, r)) 27552 ret = graphql.Null 27553 } 27554 }() 27555 fc := &graphql.FieldContext{ 27556 Object: "Query", 27557 Field: field, 27558 Args: nil, 27559 IsMethod: true, 27560 } 27561 27562 ctx = graphql.WithFieldContext(ctx, fc) 27563 rawArgs := field.ArgumentMap(ec.Variables) 27564 args, err := ec.field_Query_formations_args(ctx, rawArgs) 27565 if err != nil { 27566 ec.Error(ctx, err) 27567 return graphql.Null 27568 } 27569 fc.Args = args 27570 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27571 directive0 := func(rctx context.Context) (interface{}, error) { 27572 ctx = rctx // use context from middleware stack in children 27573 return ec.resolvers.Query().Formations(rctx, args["first"].(*int), args["after"].(*PageCursor)) 27574 } 27575 directive1 := func(ctx context.Context) (interface{}, error) { 27576 path, err := ec.unmarshalNString2string(ctx, "graphql.query.formations") 27577 if err != nil { 27578 return nil, err 27579 } 27580 if ec.directives.HasScopes == nil { 27581 return nil, errors.New("directive hasScopes is not implemented") 27582 } 27583 return ec.directives.HasScopes(ctx, nil, directive0, path) 27584 } 27585 27586 tmp, err := directive1(rctx) 27587 if err != nil { 27588 return nil, err 27589 } 27590 if tmp == nil { 27591 return nil, nil 27592 } 27593 if data, ok := tmp.(*FormationPage); ok { 27594 return data, nil 27595 } 27596 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationPage`, tmp) 27597 }) 27598 if err != nil { 27599 ec.Error(ctx, err) 27600 return graphql.Null 27601 } 27602 if resTmp == nil { 27603 if !graphql.HasFieldError(ctx, fc) { 27604 ec.Errorf(ctx, "must not be null") 27605 } 27606 return graphql.Null 27607 } 27608 res := resTmp.(*FormationPage) 27609 fc.Result = res 27610 return ec.marshalNFormationPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationPage(ctx, field.Selections, res) 27611 } 27612 27613 func (ec *executionContext) _Query_formationConstraints(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27614 defer func() { 27615 if r := recover(); r != nil { 27616 ec.Error(ctx, ec.Recover(ctx, r)) 27617 ret = graphql.Null 27618 } 27619 }() 27620 fc := &graphql.FieldContext{ 27621 Object: "Query", 27622 Field: field, 27623 Args: nil, 27624 IsMethod: true, 27625 } 27626 27627 ctx = graphql.WithFieldContext(ctx, fc) 27628 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27629 directive0 := func(rctx context.Context) (interface{}, error) { 27630 ctx = rctx // use context from middleware stack in children 27631 return ec.resolvers.Query().FormationConstraints(rctx) 27632 } 27633 directive1 := func(ctx context.Context) (interface{}, error) { 27634 path, err := ec.unmarshalNString2string(ctx, "graphql.query.formationConstraints") 27635 if err != nil { 27636 return nil, err 27637 } 27638 if ec.directives.HasScopes == nil { 27639 return nil, errors.New("directive hasScopes is not implemented") 27640 } 27641 return ec.directives.HasScopes(ctx, nil, directive0, path) 27642 } 27643 27644 tmp, err := directive1(rctx) 27645 if err != nil { 27646 return nil, err 27647 } 27648 if tmp == nil { 27649 return nil, nil 27650 } 27651 if data, ok := tmp.([]*FormationConstraint); ok { 27652 return data, nil 27653 } 27654 return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationConstraint`, tmp) 27655 }) 27656 if err != nil { 27657 ec.Error(ctx, err) 27658 return graphql.Null 27659 } 27660 if resTmp == nil { 27661 if !graphql.HasFieldError(ctx, fc) { 27662 ec.Errorf(ctx, "must not be null") 27663 } 27664 return graphql.Null 27665 } 27666 res := resTmp.([]*FormationConstraint) 27667 fc.Result = res 27668 return ec.marshalNFormationConstraint2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraintᚄ(ctx, field.Selections, res) 27669 } 27670 27671 func (ec *executionContext) _Query_formationConstraint(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27672 defer func() { 27673 if r := recover(); r != nil { 27674 ec.Error(ctx, ec.Recover(ctx, r)) 27675 ret = graphql.Null 27676 } 27677 }() 27678 fc := &graphql.FieldContext{ 27679 Object: "Query", 27680 Field: field, 27681 Args: nil, 27682 IsMethod: true, 27683 } 27684 27685 ctx = graphql.WithFieldContext(ctx, fc) 27686 rawArgs := field.ArgumentMap(ec.Variables) 27687 args, err := ec.field_Query_formationConstraint_args(ctx, rawArgs) 27688 if err != nil { 27689 ec.Error(ctx, err) 27690 return graphql.Null 27691 } 27692 fc.Args = args 27693 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27694 directive0 := func(rctx context.Context) (interface{}, error) { 27695 ctx = rctx // use context from middleware stack in children 27696 return ec.resolvers.Query().FormationConstraint(rctx, args["id"].(string)) 27697 } 27698 directive1 := func(ctx context.Context) (interface{}, error) { 27699 path, err := ec.unmarshalNString2string(ctx, "graphql.query.formationConstraint") 27700 if err != nil { 27701 return nil, err 27702 } 27703 if ec.directives.HasScopes == nil { 27704 return nil, errors.New("directive hasScopes is not implemented") 27705 } 27706 return ec.directives.HasScopes(ctx, nil, directive0, path) 27707 } 27708 27709 tmp, err := directive1(rctx) 27710 if err != nil { 27711 return nil, err 27712 } 27713 if tmp == nil { 27714 return nil, nil 27715 } 27716 if data, ok := tmp.(*FormationConstraint); ok { 27717 return data, nil 27718 } 27719 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationConstraint`, tmp) 27720 }) 27721 if err != nil { 27722 ec.Error(ctx, err) 27723 return graphql.Null 27724 } 27725 if resTmp == nil { 27726 if !graphql.HasFieldError(ctx, fc) { 27727 ec.Errorf(ctx, "must not be null") 27728 } 27729 return graphql.Null 27730 } 27731 res := resTmp.(*FormationConstraint) 27732 fc.Result = res 27733 return ec.marshalNFormationConstraint2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraint(ctx, field.Selections, res) 27734 } 27735 27736 func (ec *executionContext) _Query_formationConstraintsByFormationType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27737 defer func() { 27738 if r := recover(); r != nil { 27739 ec.Error(ctx, ec.Recover(ctx, r)) 27740 ret = graphql.Null 27741 } 27742 }() 27743 fc := &graphql.FieldContext{ 27744 Object: "Query", 27745 Field: field, 27746 Args: nil, 27747 IsMethod: true, 27748 } 27749 27750 ctx = graphql.WithFieldContext(ctx, fc) 27751 rawArgs := field.ArgumentMap(ec.Variables) 27752 args, err := ec.field_Query_formationConstraintsByFormationType_args(ctx, rawArgs) 27753 if err != nil { 27754 ec.Error(ctx, err) 27755 return graphql.Null 27756 } 27757 fc.Args = args 27758 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27759 directive0 := func(rctx context.Context) (interface{}, error) { 27760 ctx = rctx // use context from middleware stack in children 27761 return ec.resolvers.Query().FormationConstraintsByFormationType(rctx, args["formationTemplateID"].(string)) 27762 } 27763 directive1 := func(ctx context.Context) (interface{}, error) { 27764 path, err := ec.unmarshalNString2string(ctx, "graphql.query.formationConstraints") 27765 if err != nil { 27766 return nil, err 27767 } 27768 if ec.directives.HasScopes == nil { 27769 return nil, errors.New("directive hasScopes is not implemented") 27770 } 27771 return ec.directives.HasScopes(ctx, nil, directive0, path) 27772 } 27773 27774 tmp, err := directive1(rctx) 27775 if err != nil { 27776 return nil, err 27777 } 27778 if tmp == nil { 27779 return nil, nil 27780 } 27781 if data, ok := tmp.([]*FormationConstraint); ok { 27782 return data, nil 27783 } 27784 return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationConstraint`, tmp) 27785 }) 27786 if err != nil { 27787 ec.Error(ctx, err) 27788 return graphql.Null 27789 } 27790 if resTmp == nil { 27791 if !graphql.HasFieldError(ctx, fc) { 27792 ec.Errorf(ctx, "must not be null") 27793 } 27794 return graphql.Null 27795 } 27796 res := resTmp.([]*FormationConstraint) 27797 fc.Result = res 27798 return ec.marshalNFormationConstraint2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraintᚄ(ctx, field.Selections, res) 27799 } 27800 27801 func (ec *executionContext) _Query_formationTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27802 defer func() { 27803 if r := recover(); r != nil { 27804 ec.Error(ctx, ec.Recover(ctx, r)) 27805 ret = graphql.Null 27806 } 27807 }() 27808 fc := &graphql.FieldContext{ 27809 Object: "Query", 27810 Field: field, 27811 Args: nil, 27812 IsMethod: true, 27813 } 27814 27815 ctx = graphql.WithFieldContext(ctx, fc) 27816 rawArgs := field.ArgumentMap(ec.Variables) 27817 args, err := ec.field_Query_formationTemplate_args(ctx, rawArgs) 27818 if err != nil { 27819 ec.Error(ctx, err) 27820 return graphql.Null 27821 } 27822 fc.Args = args 27823 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27824 directive0 := func(rctx context.Context) (interface{}, error) { 27825 ctx = rctx // use context from middleware stack in children 27826 return ec.resolvers.Query().FormationTemplate(rctx, args["id"].(string)) 27827 } 27828 directive1 := func(ctx context.Context) (interface{}, error) { 27829 path, err := ec.unmarshalNString2string(ctx, "graphql.query.formationTemplate") 27830 if err != nil { 27831 return nil, err 27832 } 27833 if ec.directives.HasScopes == nil { 27834 return nil, errors.New("directive hasScopes is not implemented") 27835 } 27836 return ec.directives.HasScopes(ctx, nil, directive0, path) 27837 } 27838 27839 tmp, err := directive1(rctx) 27840 if err != nil { 27841 return nil, err 27842 } 27843 if tmp == nil { 27844 return nil, nil 27845 } 27846 if data, ok := tmp.(*FormationTemplate); ok { 27847 return data, nil 27848 } 27849 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationTemplate`, tmp) 27850 }) 27851 if err != nil { 27852 ec.Error(ctx, err) 27853 return graphql.Null 27854 } 27855 if resTmp == nil { 27856 return graphql.Null 27857 } 27858 res := resTmp.(*FormationTemplate) 27859 fc.Result = res 27860 return ec.marshalOFormationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplate(ctx, field.Selections, res) 27861 } 27862 27863 func (ec *executionContext) _Query_formationTemplates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27864 defer func() { 27865 if r := recover(); r != nil { 27866 ec.Error(ctx, ec.Recover(ctx, r)) 27867 ret = graphql.Null 27868 } 27869 }() 27870 fc := &graphql.FieldContext{ 27871 Object: "Query", 27872 Field: field, 27873 Args: nil, 27874 IsMethod: true, 27875 } 27876 27877 ctx = graphql.WithFieldContext(ctx, fc) 27878 rawArgs := field.ArgumentMap(ec.Variables) 27879 args, err := ec.field_Query_formationTemplates_args(ctx, rawArgs) 27880 if err != nil { 27881 ec.Error(ctx, err) 27882 return graphql.Null 27883 } 27884 fc.Args = args 27885 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27886 directive0 := func(rctx context.Context) (interface{}, error) { 27887 ctx = rctx // use context from middleware stack in children 27888 return ec.resolvers.Query().FormationTemplates(rctx, args["first"].(*int), args["after"].(*PageCursor)) 27889 } 27890 directive1 := func(ctx context.Context) (interface{}, error) { 27891 path, err := ec.unmarshalNString2string(ctx, "graphql.query.formationTemplates") 27892 if err != nil { 27893 return nil, err 27894 } 27895 if ec.directives.HasScopes == nil { 27896 return nil, errors.New("directive hasScopes is not implemented") 27897 } 27898 return ec.directives.HasScopes(ctx, nil, directive0, path) 27899 } 27900 27901 tmp, err := directive1(rctx) 27902 if err != nil { 27903 return nil, err 27904 } 27905 if tmp == nil { 27906 return nil, nil 27907 } 27908 if data, ok := tmp.(*FormationTemplatePage); ok { 27909 return data, nil 27910 } 27911 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.FormationTemplatePage`, tmp) 27912 }) 27913 if err != nil { 27914 ec.Error(ctx, err) 27915 return graphql.Null 27916 } 27917 if resTmp == nil { 27918 if !graphql.HasFieldError(ctx, fc) { 27919 ec.Errorf(ctx, "must not be null") 27920 } 27921 return graphql.Null 27922 } 27923 res := resTmp.(*FormationTemplatePage) 27924 fc.Result = res 27925 return ec.marshalNFormationTemplatePage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplatePage(ctx, field.Selections, res) 27926 } 27927 27928 func (ec *executionContext) _Query_certificateSubjectMapping(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27929 defer func() { 27930 if r := recover(); r != nil { 27931 ec.Error(ctx, ec.Recover(ctx, r)) 27932 ret = graphql.Null 27933 } 27934 }() 27935 fc := &graphql.FieldContext{ 27936 Object: "Query", 27937 Field: field, 27938 Args: nil, 27939 IsMethod: true, 27940 } 27941 27942 ctx = graphql.WithFieldContext(ctx, fc) 27943 rawArgs := field.ArgumentMap(ec.Variables) 27944 args, err := ec.field_Query_certificateSubjectMapping_args(ctx, rawArgs) 27945 if err != nil { 27946 ec.Error(ctx, err) 27947 return graphql.Null 27948 } 27949 fc.Args = args 27950 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 27951 directive0 := func(rctx context.Context) (interface{}, error) { 27952 ctx = rctx // use context from middleware stack in children 27953 return ec.resolvers.Query().CertificateSubjectMapping(rctx, args["id"].(string)) 27954 } 27955 directive1 := func(ctx context.Context) (interface{}, error) { 27956 path, err := ec.unmarshalNString2string(ctx, "graphql.query.certificateSubjectMapping") 27957 if err != nil { 27958 return nil, err 27959 } 27960 if ec.directives.HasScopes == nil { 27961 return nil, errors.New("directive hasScopes is not implemented") 27962 } 27963 return ec.directives.HasScopes(ctx, nil, directive0, path) 27964 } 27965 27966 tmp, err := directive1(rctx) 27967 if err != nil { 27968 return nil, err 27969 } 27970 if tmp == nil { 27971 return nil, nil 27972 } 27973 if data, ok := tmp.(*CertificateSubjectMapping); ok { 27974 return data, nil 27975 } 27976 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.CertificateSubjectMapping`, tmp) 27977 }) 27978 if err != nil { 27979 ec.Error(ctx, err) 27980 return graphql.Null 27981 } 27982 if resTmp == nil { 27983 if !graphql.HasFieldError(ctx, fc) { 27984 ec.Errorf(ctx, "must not be null") 27985 } 27986 return graphql.Null 27987 } 27988 res := resTmp.(*CertificateSubjectMapping) 27989 fc.Result = res 27990 return ec.marshalNCertificateSubjectMapping2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMapping(ctx, field.Selections, res) 27991 } 27992 27993 func (ec *executionContext) _Query_certificateSubjectMappings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 27994 defer func() { 27995 if r := recover(); r != nil { 27996 ec.Error(ctx, ec.Recover(ctx, r)) 27997 ret = graphql.Null 27998 } 27999 }() 28000 fc := &graphql.FieldContext{ 28001 Object: "Query", 28002 Field: field, 28003 Args: nil, 28004 IsMethod: true, 28005 } 28006 28007 ctx = graphql.WithFieldContext(ctx, fc) 28008 rawArgs := field.ArgumentMap(ec.Variables) 28009 args, err := ec.field_Query_certificateSubjectMappings_args(ctx, rawArgs) 28010 if err != nil { 28011 ec.Error(ctx, err) 28012 return graphql.Null 28013 } 28014 fc.Args = args 28015 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28016 directive0 := func(rctx context.Context) (interface{}, error) { 28017 ctx = rctx // use context from middleware stack in children 28018 return ec.resolvers.Query().CertificateSubjectMappings(rctx, args["first"].(*int), args["after"].(*PageCursor)) 28019 } 28020 directive1 := func(ctx context.Context) (interface{}, error) { 28021 path, err := ec.unmarshalNString2string(ctx, "graphql.query.certificateSubjectMappings") 28022 if err != nil { 28023 return nil, err 28024 } 28025 if ec.directives.HasScopes == nil { 28026 return nil, errors.New("directive hasScopes is not implemented") 28027 } 28028 return ec.directives.HasScopes(ctx, nil, directive0, path) 28029 } 28030 28031 tmp, err := directive1(rctx) 28032 if err != nil { 28033 return nil, err 28034 } 28035 if tmp == nil { 28036 return nil, nil 28037 } 28038 if data, ok := tmp.(*CertificateSubjectMappingPage); ok { 28039 return data, nil 28040 } 28041 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.CertificateSubjectMappingPage`, tmp) 28042 }) 28043 if err != nil { 28044 ec.Error(ctx, err) 28045 return graphql.Null 28046 } 28047 if resTmp == nil { 28048 if !graphql.HasFieldError(ctx, fc) { 28049 ec.Errorf(ctx, "must not be null") 28050 } 28051 return graphql.Null 28052 } 28053 res := resTmp.(*CertificateSubjectMappingPage) 28054 fc.Result = res 28055 return ec.marshalNCertificateSubjectMappingPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMappingPage(ctx, field.Selections, res) 28056 } 28057 28058 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 28059 defer func() { 28060 if r := recover(); r != nil { 28061 ec.Error(ctx, ec.Recover(ctx, r)) 28062 ret = graphql.Null 28063 } 28064 }() 28065 fc := &graphql.FieldContext{ 28066 Object: "Query", 28067 Field: field, 28068 Args: nil, 28069 IsMethod: true, 28070 } 28071 28072 ctx = graphql.WithFieldContext(ctx, fc) 28073 rawArgs := field.ArgumentMap(ec.Variables) 28074 args, err := ec.field_Query___type_args(ctx, rawArgs) 28075 if err != nil { 28076 ec.Error(ctx, err) 28077 return graphql.Null 28078 } 28079 fc.Args = args 28080 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28081 ctx = rctx // use context from middleware stack in children 28082 return ec.introspectType(args["name"].(string)) 28083 }) 28084 if err != nil { 28085 ec.Error(ctx, err) 28086 return graphql.Null 28087 } 28088 if resTmp == nil { 28089 return graphql.Null 28090 } 28091 res := resTmp.(*introspection.Type) 28092 fc.Result = res 28093 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 28094 } 28095 28096 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { 28097 defer func() { 28098 if r := recover(); r != nil { 28099 ec.Error(ctx, ec.Recover(ctx, r)) 28100 ret = graphql.Null 28101 } 28102 }() 28103 fc := &graphql.FieldContext{ 28104 Object: "Query", 28105 Field: field, 28106 Args: nil, 28107 IsMethod: true, 28108 } 28109 28110 ctx = graphql.WithFieldContext(ctx, fc) 28111 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28112 ctx = rctx // use context from middleware stack in children 28113 return ec.introspectSchema() 28114 }) 28115 if err != nil { 28116 ec.Error(ctx, err) 28117 return graphql.Null 28118 } 28119 if resTmp == nil { 28120 return graphql.Null 28121 } 28122 res := resTmp.(*introspection.Schema) 28123 fc.Result = res 28124 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) 28125 } 28126 28127 func (ec *executionContext) _Runtime_id(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28128 defer func() { 28129 if r := recover(); r != nil { 28130 ec.Error(ctx, ec.Recover(ctx, r)) 28131 ret = graphql.Null 28132 } 28133 }() 28134 fc := &graphql.FieldContext{ 28135 Object: "Runtime", 28136 Field: field, 28137 Args: nil, 28138 IsMethod: false, 28139 } 28140 28141 ctx = graphql.WithFieldContext(ctx, fc) 28142 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28143 ctx = rctx // use context from middleware stack in children 28144 return obj.ID, nil 28145 }) 28146 if err != nil { 28147 ec.Error(ctx, err) 28148 return graphql.Null 28149 } 28150 if resTmp == nil { 28151 if !graphql.HasFieldError(ctx, fc) { 28152 ec.Errorf(ctx, "must not be null") 28153 } 28154 return graphql.Null 28155 } 28156 res := resTmp.(string) 28157 fc.Result = res 28158 return ec.marshalNID2string(ctx, field.Selections, res) 28159 } 28160 28161 func (ec *executionContext) _Runtime_metadata(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28162 defer func() { 28163 if r := recover(); r != nil { 28164 ec.Error(ctx, ec.Recover(ctx, r)) 28165 ret = graphql.Null 28166 } 28167 }() 28168 fc := &graphql.FieldContext{ 28169 Object: "Runtime", 28170 Field: field, 28171 Args: nil, 28172 IsMethod: false, 28173 } 28174 28175 ctx = graphql.WithFieldContext(ctx, fc) 28176 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28177 ctx = rctx // use context from middleware stack in children 28178 return obj.Metadata, nil 28179 }) 28180 if err != nil { 28181 ec.Error(ctx, err) 28182 return graphql.Null 28183 } 28184 if resTmp == nil { 28185 if !graphql.HasFieldError(ctx, fc) { 28186 ec.Errorf(ctx, "must not be null") 28187 } 28188 return graphql.Null 28189 } 28190 res := resTmp.(*RuntimeMetadata) 28191 fc.Result = res 28192 return ec.marshalNRuntimeMetadata2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeMetadata(ctx, field.Selections, res) 28193 } 28194 28195 func (ec *executionContext) _Runtime_name(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28196 defer func() { 28197 if r := recover(); r != nil { 28198 ec.Error(ctx, ec.Recover(ctx, r)) 28199 ret = graphql.Null 28200 } 28201 }() 28202 fc := &graphql.FieldContext{ 28203 Object: "Runtime", 28204 Field: field, 28205 Args: nil, 28206 IsMethod: false, 28207 } 28208 28209 ctx = graphql.WithFieldContext(ctx, fc) 28210 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28211 ctx = rctx // use context from middleware stack in children 28212 return obj.Name, nil 28213 }) 28214 if err != nil { 28215 ec.Error(ctx, err) 28216 return graphql.Null 28217 } 28218 if resTmp == nil { 28219 if !graphql.HasFieldError(ctx, fc) { 28220 ec.Errorf(ctx, "must not be null") 28221 } 28222 return graphql.Null 28223 } 28224 res := resTmp.(string) 28225 fc.Result = res 28226 return ec.marshalNString2string(ctx, field.Selections, res) 28227 } 28228 28229 func (ec *executionContext) _Runtime_description(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28230 defer func() { 28231 if r := recover(); r != nil { 28232 ec.Error(ctx, ec.Recover(ctx, r)) 28233 ret = graphql.Null 28234 } 28235 }() 28236 fc := &graphql.FieldContext{ 28237 Object: "Runtime", 28238 Field: field, 28239 Args: nil, 28240 IsMethod: false, 28241 } 28242 28243 ctx = graphql.WithFieldContext(ctx, fc) 28244 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28245 ctx = rctx // use context from middleware stack in children 28246 return obj.Description, nil 28247 }) 28248 if err != nil { 28249 ec.Error(ctx, err) 28250 return graphql.Null 28251 } 28252 if resTmp == nil { 28253 return graphql.Null 28254 } 28255 res := resTmp.(*string) 28256 fc.Result = res 28257 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 28258 } 28259 28260 func (ec *executionContext) _Runtime_labels(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28261 defer func() { 28262 if r := recover(); r != nil { 28263 ec.Error(ctx, ec.Recover(ctx, r)) 28264 ret = graphql.Null 28265 } 28266 }() 28267 fc := &graphql.FieldContext{ 28268 Object: "Runtime", 28269 Field: field, 28270 Args: nil, 28271 IsMethod: true, 28272 } 28273 28274 ctx = graphql.WithFieldContext(ctx, fc) 28275 rawArgs := field.ArgumentMap(ec.Variables) 28276 args, err := ec.field_Runtime_labels_args(ctx, rawArgs) 28277 if err != nil { 28278 ec.Error(ctx, err) 28279 return graphql.Null 28280 } 28281 fc.Args = args 28282 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28283 ctx = rctx // use context from middleware stack in children 28284 return ec.resolvers.Runtime().Labels(rctx, obj, args["key"].(*string)) 28285 }) 28286 if err != nil { 28287 ec.Error(ctx, err) 28288 return graphql.Null 28289 } 28290 if resTmp == nil { 28291 return graphql.Null 28292 } 28293 res := resTmp.(Labels) 28294 fc.Result = res 28295 return ec.marshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, field.Selections, res) 28296 } 28297 28298 func (ec *executionContext) _Runtime_webhooks(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28299 defer func() { 28300 if r := recover(); r != nil { 28301 ec.Error(ctx, ec.Recover(ctx, r)) 28302 ret = graphql.Null 28303 } 28304 }() 28305 fc := &graphql.FieldContext{ 28306 Object: "Runtime", 28307 Field: field, 28308 Args: nil, 28309 IsMethod: true, 28310 } 28311 28312 ctx = graphql.WithFieldContext(ctx, fc) 28313 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28314 directive0 := func(rctx context.Context) (interface{}, error) { 28315 ctx = rctx // use context from middleware stack in children 28316 return ec.resolvers.Runtime().Webhooks(rctx, obj) 28317 } 28318 directive1 := func(ctx context.Context) (interface{}, error) { 28319 path, err := ec.unmarshalNString2string(ctx, "graphql.field.runtime.webhooks") 28320 if err != nil { 28321 return nil, err 28322 } 28323 if ec.directives.Sanitize == nil { 28324 return nil, errors.New("directive sanitize is not implemented") 28325 } 28326 return ec.directives.Sanitize(ctx, obj, directive0, path) 28327 } 28328 28329 tmp, err := directive1(rctx) 28330 if err != nil { 28331 return nil, err 28332 } 28333 if tmp == nil { 28334 return nil, nil 28335 } 28336 if data, ok := tmp.([]*Webhook); ok { 28337 return data, nil 28338 } 28339 return nil, fmt.Errorf(`unexpected type %T from directive, should be []*github.com/kyma-incubator/compass/components/director/pkg/graphql.Webhook`, tmp) 28340 }) 28341 if err != nil { 28342 ec.Error(ctx, err) 28343 return graphql.Null 28344 } 28345 if resTmp == nil { 28346 return graphql.Null 28347 } 28348 res := resTmp.([]*Webhook) 28349 fc.Result = res 28350 return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookᚄ(ctx, field.Selections, res) 28351 } 28352 28353 func (ec *executionContext) _Runtime_status(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28354 defer func() { 28355 if r := recover(); r != nil { 28356 ec.Error(ctx, ec.Recover(ctx, r)) 28357 ret = graphql.Null 28358 } 28359 }() 28360 fc := &graphql.FieldContext{ 28361 Object: "Runtime", 28362 Field: field, 28363 Args: nil, 28364 IsMethod: false, 28365 } 28366 28367 ctx = graphql.WithFieldContext(ctx, fc) 28368 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28369 ctx = rctx // use context from middleware stack in children 28370 return obj.Status, nil 28371 }) 28372 if err != nil { 28373 ec.Error(ctx, err) 28374 return graphql.Null 28375 } 28376 if resTmp == nil { 28377 if !graphql.HasFieldError(ctx, fc) { 28378 ec.Errorf(ctx, "must not be null") 28379 } 28380 return graphql.Null 28381 } 28382 res := resTmp.(*RuntimeStatus) 28383 fc.Result = res 28384 return ec.marshalNRuntimeStatus2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatus(ctx, field.Selections, res) 28385 } 28386 28387 func (ec *executionContext) _Runtime_auths(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28388 defer func() { 28389 if r := recover(); r != nil { 28390 ec.Error(ctx, ec.Recover(ctx, r)) 28391 ret = graphql.Null 28392 } 28393 }() 28394 fc := &graphql.FieldContext{ 28395 Object: "Runtime", 28396 Field: field, 28397 Args: nil, 28398 IsMethod: true, 28399 } 28400 28401 ctx = graphql.WithFieldContext(ctx, fc) 28402 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28403 ctx = rctx // use context from middleware stack in children 28404 return ec.resolvers.Runtime().Auths(rctx, obj) 28405 }) 28406 if err != nil { 28407 ec.Error(ctx, err) 28408 return graphql.Null 28409 } 28410 if resTmp == nil { 28411 return graphql.Null 28412 } 28413 res := resTmp.([]*RuntimeSystemAuth) 28414 fc.Result = res 28415 return ec.marshalORuntimeSystemAuth2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeSystemAuthᚄ(ctx, field.Selections, res) 28416 } 28417 28418 func (ec *executionContext) _Runtime_eventingConfiguration(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28419 defer func() { 28420 if r := recover(); r != nil { 28421 ec.Error(ctx, ec.Recover(ctx, r)) 28422 ret = graphql.Null 28423 } 28424 }() 28425 fc := &graphql.FieldContext{ 28426 Object: "Runtime", 28427 Field: field, 28428 Args: nil, 28429 IsMethod: true, 28430 } 28431 28432 ctx = graphql.WithFieldContext(ctx, fc) 28433 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28434 ctx = rctx // use context from middleware stack in children 28435 return ec.resolvers.Runtime().EventingConfiguration(rctx, obj) 28436 }) 28437 if err != nil { 28438 ec.Error(ctx, err) 28439 return graphql.Null 28440 } 28441 if resTmp == nil { 28442 return graphql.Null 28443 } 28444 res := resTmp.(*RuntimeEventingConfiguration) 28445 fc.Result = res 28446 return ec.marshalORuntimeEventingConfiguration2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeEventingConfiguration(ctx, field.Selections, res) 28447 } 28448 28449 func (ec *executionContext) _Runtime_runtimeContext(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28450 defer func() { 28451 if r := recover(); r != nil { 28452 ec.Error(ctx, ec.Recover(ctx, r)) 28453 ret = graphql.Null 28454 } 28455 }() 28456 fc := &graphql.FieldContext{ 28457 Object: "Runtime", 28458 Field: field, 28459 Args: nil, 28460 IsMethod: true, 28461 } 28462 28463 ctx = graphql.WithFieldContext(ctx, fc) 28464 rawArgs := field.ArgumentMap(ec.Variables) 28465 args, err := ec.field_Runtime_runtimeContext_args(ctx, rawArgs) 28466 if err != nil { 28467 ec.Error(ctx, err) 28468 return graphql.Null 28469 } 28470 fc.Args = args 28471 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28472 ctx = rctx // use context from middleware stack in children 28473 return ec.resolvers.Runtime().RuntimeContext(rctx, obj, args["id"].(string)) 28474 }) 28475 if err != nil { 28476 ec.Error(ctx, err) 28477 return graphql.Null 28478 } 28479 if resTmp == nil { 28480 return graphql.Null 28481 } 28482 res := resTmp.(*RuntimeContext) 28483 fc.Result = res 28484 return ec.marshalORuntimeContext2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContext(ctx, field.Selections, res) 28485 } 28486 28487 func (ec *executionContext) _Runtime_runtimeContexts(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28488 defer func() { 28489 if r := recover(); r != nil { 28490 ec.Error(ctx, ec.Recover(ctx, r)) 28491 ret = graphql.Null 28492 } 28493 }() 28494 fc := &graphql.FieldContext{ 28495 Object: "Runtime", 28496 Field: field, 28497 Args: nil, 28498 IsMethod: true, 28499 } 28500 28501 ctx = graphql.WithFieldContext(ctx, fc) 28502 rawArgs := field.ArgumentMap(ec.Variables) 28503 args, err := ec.field_Runtime_runtimeContexts_args(ctx, rawArgs) 28504 if err != nil { 28505 ec.Error(ctx, err) 28506 return graphql.Null 28507 } 28508 fc.Args = args 28509 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28510 ctx = rctx // use context from middleware stack in children 28511 return ec.resolvers.Runtime().RuntimeContexts(rctx, obj, args["first"].(*int), args["after"].(*PageCursor)) 28512 }) 28513 if err != nil { 28514 ec.Error(ctx, err) 28515 return graphql.Null 28516 } 28517 if resTmp == nil { 28518 return graphql.Null 28519 } 28520 res := resTmp.(*RuntimeContextPage) 28521 fc.Result = res 28522 return ec.marshalORuntimeContextPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContextPage(ctx, field.Selections, res) 28523 } 28524 28525 func (ec *executionContext) _Runtime_applicationNamespace(ctx context.Context, field graphql.CollectedField, obj *Runtime) (ret graphql.Marshaler) { 28526 defer func() { 28527 if r := recover(); r != nil { 28528 ec.Error(ctx, ec.Recover(ctx, r)) 28529 ret = graphql.Null 28530 } 28531 }() 28532 fc := &graphql.FieldContext{ 28533 Object: "Runtime", 28534 Field: field, 28535 Args: nil, 28536 IsMethod: false, 28537 } 28538 28539 ctx = graphql.WithFieldContext(ctx, fc) 28540 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28541 ctx = rctx // use context from middleware stack in children 28542 return obj.ApplicationNamespace, nil 28543 }) 28544 if err != nil { 28545 ec.Error(ctx, err) 28546 return graphql.Null 28547 } 28548 if resTmp == nil { 28549 return graphql.Null 28550 } 28551 res := resTmp.(*string) 28552 fc.Result = res 28553 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 28554 } 28555 28556 func (ec *executionContext) _RuntimeContext_id(ctx context.Context, field graphql.CollectedField, obj *RuntimeContext) (ret graphql.Marshaler) { 28557 defer func() { 28558 if r := recover(); r != nil { 28559 ec.Error(ctx, ec.Recover(ctx, r)) 28560 ret = graphql.Null 28561 } 28562 }() 28563 fc := &graphql.FieldContext{ 28564 Object: "RuntimeContext", 28565 Field: field, 28566 Args: nil, 28567 IsMethod: false, 28568 } 28569 28570 ctx = graphql.WithFieldContext(ctx, fc) 28571 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28572 ctx = rctx // use context from middleware stack in children 28573 return obj.ID, nil 28574 }) 28575 if err != nil { 28576 ec.Error(ctx, err) 28577 return graphql.Null 28578 } 28579 if resTmp == nil { 28580 if !graphql.HasFieldError(ctx, fc) { 28581 ec.Errorf(ctx, "must not be null") 28582 } 28583 return graphql.Null 28584 } 28585 res := resTmp.(string) 28586 fc.Result = res 28587 return ec.marshalNID2string(ctx, field.Selections, res) 28588 } 28589 28590 func (ec *executionContext) _RuntimeContext_key(ctx context.Context, field graphql.CollectedField, obj *RuntimeContext) (ret graphql.Marshaler) { 28591 defer func() { 28592 if r := recover(); r != nil { 28593 ec.Error(ctx, ec.Recover(ctx, r)) 28594 ret = graphql.Null 28595 } 28596 }() 28597 fc := &graphql.FieldContext{ 28598 Object: "RuntimeContext", 28599 Field: field, 28600 Args: nil, 28601 IsMethod: false, 28602 } 28603 28604 ctx = graphql.WithFieldContext(ctx, fc) 28605 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28606 ctx = rctx // use context from middleware stack in children 28607 return obj.Key, nil 28608 }) 28609 if err != nil { 28610 ec.Error(ctx, err) 28611 return graphql.Null 28612 } 28613 if resTmp == nil { 28614 if !graphql.HasFieldError(ctx, fc) { 28615 ec.Errorf(ctx, "must not be null") 28616 } 28617 return graphql.Null 28618 } 28619 res := resTmp.(string) 28620 fc.Result = res 28621 return ec.marshalNString2string(ctx, field.Selections, res) 28622 } 28623 28624 func (ec *executionContext) _RuntimeContext_value(ctx context.Context, field graphql.CollectedField, obj *RuntimeContext) (ret graphql.Marshaler) { 28625 defer func() { 28626 if r := recover(); r != nil { 28627 ec.Error(ctx, ec.Recover(ctx, r)) 28628 ret = graphql.Null 28629 } 28630 }() 28631 fc := &graphql.FieldContext{ 28632 Object: "RuntimeContext", 28633 Field: field, 28634 Args: nil, 28635 IsMethod: false, 28636 } 28637 28638 ctx = graphql.WithFieldContext(ctx, fc) 28639 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28640 ctx = rctx // use context from middleware stack in children 28641 return obj.Value, nil 28642 }) 28643 if err != nil { 28644 ec.Error(ctx, err) 28645 return graphql.Null 28646 } 28647 if resTmp == nil { 28648 if !graphql.HasFieldError(ctx, fc) { 28649 ec.Errorf(ctx, "must not be null") 28650 } 28651 return graphql.Null 28652 } 28653 res := resTmp.(string) 28654 fc.Result = res 28655 return ec.marshalNString2string(ctx, field.Selections, res) 28656 } 28657 28658 func (ec *executionContext) _RuntimeContext_labels(ctx context.Context, field graphql.CollectedField, obj *RuntimeContext) (ret graphql.Marshaler) { 28659 defer func() { 28660 if r := recover(); r != nil { 28661 ec.Error(ctx, ec.Recover(ctx, r)) 28662 ret = graphql.Null 28663 } 28664 }() 28665 fc := &graphql.FieldContext{ 28666 Object: "RuntimeContext", 28667 Field: field, 28668 Args: nil, 28669 IsMethod: true, 28670 } 28671 28672 ctx = graphql.WithFieldContext(ctx, fc) 28673 rawArgs := field.ArgumentMap(ec.Variables) 28674 args, err := ec.field_RuntimeContext_labels_args(ctx, rawArgs) 28675 if err != nil { 28676 ec.Error(ctx, err) 28677 return graphql.Null 28678 } 28679 fc.Args = args 28680 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28681 ctx = rctx // use context from middleware stack in children 28682 return ec.resolvers.RuntimeContext().Labels(rctx, obj, args["key"].(*string)) 28683 }) 28684 if err != nil { 28685 ec.Error(ctx, err) 28686 return graphql.Null 28687 } 28688 if resTmp == nil { 28689 return graphql.Null 28690 } 28691 res := resTmp.(Labels) 28692 fc.Result = res 28693 return ec.marshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, field.Selections, res) 28694 } 28695 28696 func (ec *executionContext) _RuntimeContextPage_data(ctx context.Context, field graphql.CollectedField, obj *RuntimeContextPage) (ret graphql.Marshaler) { 28697 defer func() { 28698 if r := recover(); r != nil { 28699 ec.Error(ctx, ec.Recover(ctx, r)) 28700 ret = graphql.Null 28701 } 28702 }() 28703 fc := &graphql.FieldContext{ 28704 Object: "RuntimeContextPage", 28705 Field: field, 28706 Args: nil, 28707 IsMethod: false, 28708 } 28709 28710 ctx = graphql.WithFieldContext(ctx, fc) 28711 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28712 ctx = rctx // use context from middleware stack in children 28713 return obj.Data, nil 28714 }) 28715 if err != nil { 28716 ec.Error(ctx, err) 28717 return graphql.Null 28718 } 28719 if resTmp == nil { 28720 if !graphql.HasFieldError(ctx, fc) { 28721 ec.Errorf(ctx, "must not be null") 28722 } 28723 return graphql.Null 28724 } 28725 res := resTmp.([]*RuntimeContext) 28726 fc.Result = res 28727 return ec.marshalNRuntimeContext2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContextᚄ(ctx, field.Selections, res) 28728 } 28729 28730 func (ec *executionContext) _RuntimeContextPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *RuntimeContextPage) (ret graphql.Marshaler) { 28731 defer func() { 28732 if r := recover(); r != nil { 28733 ec.Error(ctx, ec.Recover(ctx, r)) 28734 ret = graphql.Null 28735 } 28736 }() 28737 fc := &graphql.FieldContext{ 28738 Object: "RuntimeContextPage", 28739 Field: field, 28740 Args: nil, 28741 IsMethod: false, 28742 } 28743 28744 ctx = graphql.WithFieldContext(ctx, fc) 28745 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28746 ctx = rctx // use context from middleware stack in children 28747 return obj.PageInfo, nil 28748 }) 28749 if err != nil { 28750 ec.Error(ctx, err) 28751 return graphql.Null 28752 } 28753 if resTmp == nil { 28754 if !graphql.HasFieldError(ctx, fc) { 28755 ec.Errorf(ctx, "must not be null") 28756 } 28757 return graphql.Null 28758 } 28759 res := resTmp.(*PageInfo) 28760 fc.Result = res 28761 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 28762 } 28763 28764 func (ec *executionContext) _RuntimeContextPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *RuntimeContextPage) (ret graphql.Marshaler) { 28765 defer func() { 28766 if r := recover(); r != nil { 28767 ec.Error(ctx, ec.Recover(ctx, r)) 28768 ret = graphql.Null 28769 } 28770 }() 28771 fc := &graphql.FieldContext{ 28772 Object: "RuntimeContextPage", 28773 Field: field, 28774 Args: nil, 28775 IsMethod: false, 28776 } 28777 28778 ctx = graphql.WithFieldContext(ctx, fc) 28779 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28780 ctx = rctx // use context from middleware stack in children 28781 return obj.TotalCount, nil 28782 }) 28783 if err != nil { 28784 ec.Error(ctx, err) 28785 return graphql.Null 28786 } 28787 if resTmp == nil { 28788 if !graphql.HasFieldError(ctx, fc) { 28789 ec.Errorf(ctx, "must not be null") 28790 } 28791 return graphql.Null 28792 } 28793 res := resTmp.(int) 28794 fc.Result = res 28795 return ec.marshalNInt2int(ctx, field.Selections, res) 28796 } 28797 28798 func (ec *executionContext) _RuntimeEventingConfiguration_defaultURL(ctx context.Context, field graphql.CollectedField, obj *RuntimeEventingConfiguration) (ret graphql.Marshaler) { 28799 defer func() { 28800 if r := recover(); r != nil { 28801 ec.Error(ctx, ec.Recover(ctx, r)) 28802 ret = graphql.Null 28803 } 28804 }() 28805 fc := &graphql.FieldContext{ 28806 Object: "RuntimeEventingConfiguration", 28807 Field: field, 28808 Args: nil, 28809 IsMethod: false, 28810 } 28811 28812 ctx = graphql.WithFieldContext(ctx, fc) 28813 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28814 ctx = rctx // use context from middleware stack in children 28815 return obj.DefaultURL, nil 28816 }) 28817 if err != nil { 28818 ec.Error(ctx, err) 28819 return graphql.Null 28820 } 28821 if resTmp == nil { 28822 if !graphql.HasFieldError(ctx, fc) { 28823 ec.Errorf(ctx, "must not be null") 28824 } 28825 return graphql.Null 28826 } 28827 res := resTmp.(string) 28828 fc.Result = res 28829 return ec.marshalNString2string(ctx, field.Selections, res) 28830 } 28831 28832 func (ec *executionContext) _RuntimeMetadata_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *RuntimeMetadata) (ret graphql.Marshaler) { 28833 defer func() { 28834 if r := recover(); r != nil { 28835 ec.Error(ctx, ec.Recover(ctx, r)) 28836 ret = graphql.Null 28837 } 28838 }() 28839 fc := &graphql.FieldContext{ 28840 Object: "RuntimeMetadata", 28841 Field: field, 28842 Args: nil, 28843 IsMethod: false, 28844 } 28845 28846 ctx = graphql.WithFieldContext(ctx, fc) 28847 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28848 ctx = rctx // use context from middleware stack in children 28849 return obj.CreationTimestamp, nil 28850 }) 28851 if err != nil { 28852 ec.Error(ctx, err) 28853 return graphql.Null 28854 } 28855 if resTmp == nil { 28856 if !graphql.HasFieldError(ctx, fc) { 28857 ec.Errorf(ctx, "must not be null") 28858 } 28859 return graphql.Null 28860 } 28861 res := resTmp.(Timestamp) 28862 fc.Result = res 28863 return ec.marshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 28864 } 28865 28866 func (ec *executionContext) _RuntimePage_data(ctx context.Context, field graphql.CollectedField, obj *RuntimePage) (ret graphql.Marshaler) { 28867 defer func() { 28868 if r := recover(); r != nil { 28869 ec.Error(ctx, ec.Recover(ctx, r)) 28870 ret = graphql.Null 28871 } 28872 }() 28873 fc := &graphql.FieldContext{ 28874 Object: "RuntimePage", 28875 Field: field, 28876 Args: nil, 28877 IsMethod: false, 28878 } 28879 28880 ctx = graphql.WithFieldContext(ctx, fc) 28881 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28882 ctx = rctx // use context from middleware stack in children 28883 return obj.Data, nil 28884 }) 28885 if err != nil { 28886 ec.Error(ctx, err) 28887 return graphql.Null 28888 } 28889 if resTmp == nil { 28890 if !graphql.HasFieldError(ctx, fc) { 28891 ec.Errorf(ctx, "must not be null") 28892 } 28893 return graphql.Null 28894 } 28895 res := resTmp.([]*Runtime) 28896 fc.Result = res 28897 return ec.marshalNRuntime2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeᚄ(ctx, field.Selections, res) 28898 } 28899 28900 func (ec *executionContext) _RuntimePage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *RuntimePage) (ret graphql.Marshaler) { 28901 defer func() { 28902 if r := recover(); r != nil { 28903 ec.Error(ctx, ec.Recover(ctx, r)) 28904 ret = graphql.Null 28905 } 28906 }() 28907 fc := &graphql.FieldContext{ 28908 Object: "RuntimePage", 28909 Field: field, 28910 Args: nil, 28911 IsMethod: false, 28912 } 28913 28914 ctx = graphql.WithFieldContext(ctx, fc) 28915 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28916 ctx = rctx // use context from middleware stack in children 28917 return obj.PageInfo, nil 28918 }) 28919 if err != nil { 28920 ec.Error(ctx, err) 28921 return graphql.Null 28922 } 28923 if resTmp == nil { 28924 if !graphql.HasFieldError(ctx, fc) { 28925 ec.Errorf(ctx, "must not be null") 28926 } 28927 return graphql.Null 28928 } 28929 res := resTmp.(*PageInfo) 28930 fc.Result = res 28931 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 28932 } 28933 28934 func (ec *executionContext) _RuntimePage_totalCount(ctx context.Context, field graphql.CollectedField, obj *RuntimePage) (ret graphql.Marshaler) { 28935 defer func() { 28936 if r := recover(); r != nil { 28937 ec.Error(ctx, ec.Recover(ctx, r)) 28938 ret = graphql.Null 28939 } 28940 }() 28941 fc := &graphql.FieldContext{ 28942 Object: "RuntimePage", 28943 Field: field, 28944 Args: nil, 28945 IsMethod: false, 28946 } 28947 28948 ctx = graphql.WithFieldContext(ctx, fc) 28949 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28950 ctx = rctx // use context from middleware stack in children 28951 return obj.TotalCount, nil 28952 }) 28953 if err != nil { 28954 ec.Error(ctx, err) 28955 return graphql.Null 28956 } 28957 if resTmp == nil { 28958 if !graphql.HasFieldError(ctx, fc) { 28959 ec.Errorf(ctx, "must not be null") 28960 } 28961 return graphql.Null 28962 } 28963 res := resTmp.(int) 28964 fc.Result = res 28965 return ec.marshalNInt2int(ctx, field.Selections, res) 28966 } 28967 28968 func (ec *executionContext) _RuntimeStatus_condition(ctx context.Context, field graphql.CollectedField, obj *RuntimeStatus) (ret graphql.Marshaler) { 28969 defer func() { 28970 if r := recover(); r != nil { 28971 ec.Error(ctx, ec.Recover(ctx, r)) 28972 ret = graphql.Null 28973 } 28974 }() 28975 fc := &graphql.FieldContext{ 28976 Object: "RuntimeStatus", 28977 Field: field, 28978 Args: nil, 28979 IsMethod: false, 28980 } 28981 28982 ctx = graphql.WithFieldContext(ctx, fc) 28983 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 28984 ctx = rctx // use context from middleware stack in children 28985 return obj.Condition, nil 28986 }) 28987 if err != nil { 28988 ec.Error(ctx, err) 28989 return graphql.Null 28990 } 28991 if resTmp == nil { 28992 if !graphql.HasFieldError(ctx, fc) { 28993 ec.Errorf(ctx, "must not be null") 28994 } 28995 return graphql.Null 28996 } 28997 res := resTmp.(RuntimeStatusCondition) 28998 fc.Result = res 28999 return ec.marshalNRuntimeStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatusCondition(ctx, field.Selections, res) 29000 } 29001 29002 func (ec *executionContext) _RuntimeStatus_timestamp(ctx context.Context, field graphql.CollectedField, obj *RuntimeStatus) (ret graphql.Marshaler) { 29003 defer func() { 29004 if r := recover(); r != nil { 29005 ec.Error(ctx, ec.Recover(ctx, r)) 29006 ret = graphql.Null 29007 } 29008 }() 29009 fc := &graphql.FieldContext{ 29010 Object: "RuntimeStatus", 29011 Field: field, 29012 Args: nil, 29013 IsMethod: false, 29014 } 29015 29016 ctx = graphql.WithFieldContext(ctx, fc) 29017 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29018 ctx = rctx // use context from middleware stack in children 29019 return obj.Timestamp, nil 29020 }) 29021 if err != nil { 29022 ec.Error(ctx, err) 29023 return graphql.Null 29024 } 29025 if resTmp == nil { 29026 if !graphql.HasFieldError(ctx, fc) { 29027 ec.Errorf(ctx, "must not be null") 29028 } 29029 return graphql.Null 29030 } 29031 res := resTmp.(Timestamp) 29032 fc.Result = res 29033 return ec.marshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 29034 } 29035 29036 func (ec *executionContext) _RuntimeSystemAuth_id(ctx context.Context, field graphql.CollectedField, obj *RuntimeSystemAuth) (ret graphql.Marshaler) { 29037 defer func() { 29038 if r := recover(); r != nil { 29039 ec.Error(ctx, ec.Recover(ctx, r)) 29040 ret = graphql.Null 29041 } 29042 }() 29043 fc := &graphql.FieldContext{ 29044 Object: "RuntimeSystemAuth", 29045 Field: field, 29046 Args: nil, 29047 IsMethod: false, 29048 } 29049 29050 ctx = graphql.WithFieldContext(ctx, fc) 29051 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29052 ctx = rctx // use context from middleware stack in children 29053 return obj.ID, nil 29054 }) 29055 if err != nil { 29056 ec.Error(ctx, err) 29057 return graphql.Null 29058 } 29059 if resTmp == nil { 29060 if !graphql.HasFieldError(ctx, fc) { 29061 ec.Errorf(ctx, "must not be null") 29062 } 29063 return graphql.Null 29064 } 29065 res := resTmp.(string) 29066 fc.Result = res 29067 return ec.marshalNID2string(ctx, field.Selections, res) 29068 } 29069 29070 func (ec *executionContext) _RuntimeSystemAuth_auth(ctx context.Context, field graphql.CollectedField, obj *RuntimeSystemAuth) (ret graphql.Marshaler) { 29071 defer func() { 29072 if r := recover(); r != nil { 29073 ec.Error(ctx, ec.Recover(ctx, r)) 29074 ret = graphql.Null 29075 } 29076 }() 29077 fc := &graphql.FieldContext{ 29078 Object: "RuntimeSystemAuth", 29079 Field: field, 29080 Args: nil, 29081 IsMethod: false, 29082 } 29083 29084 ctx = graphql.WithFieldContext(ctx, fc) 29085 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29086 directive0 := func(rctx context.Context) (interface{}, error) { 29087 ctx = rctx // use context from middleware stack in children 29088 return obj.Auth, nil 29089 } 29090 directive1 := func(ctx context.Context) (interface{}, error) { 29091 path, err := ec.unmarshalNString2string(ctx, "graphql.field.runtime.auths") 29092 if err != nil { 29093 return nil, err 29094 } 29095 if ec.directives.Sanitize == nil { 29096 return nil, errors.New("directive sanitize is not implemented") 29097 } 29098 return ec.directives.Sanitize(ctx, obj, directive0, path) 29099 } 29100 29101 tmp, err := directive1(rctx) 29102 if err != nil { 29103 return nil, err 29104 } 29105 if tmp == nil { 29106 return nil, nil 29107 } 29108 if data, ok := tmp.(*Auth); ok { 29109 return data, nil 29110 } 29111 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Auth`, tmp) 29112 }) 29113 if err != nil { 29114 ec.Error(ctx, err) 29115 return graphql.Null 29116 } 29117 if resTmp == nil { 29118 return graphql.Null 29119 } 29120 res := resTmp.(*Auth) 29121 fc.Result = res 29122 return ec.marshalOAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuth(ctx, field.Selections, res) 29123 } 29124 29125 func (ec *executionContext) _RuntimeSystemAuth_type(ctx context.Context, field graphql.CollectedField, obj *RuntimeSystemAuth) (ret graphql.Marshaler) { 29126 defer func() { 29127 if r := recover(); r != nil { 29128 ec.Error(ctx, ec.Recover(ctx, r)) 29129 ret = graphql.Null 29130 } 29131 }() 29132 fc := &graphql.FieldContext{ 29133 Object: "RuntimeSystemAuth", 29134 Field: field, 29135 Args: nil, 29136 IsMethod: false, 29137 } 29138 29139 ctx = graphql.WithFieldContext(ctx, fc) 29140 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29141 ctx = rctx // use context from middleware stack in children 29142 return obj.Type, nil 29143 }) 29144 if err != nil { 29145 ec.Error(ctx, err) 29146 return graphql.Null 29147 } 29148 if resTmp == nil { 29149 return graphql.Null 29150 } 29151 res := resTmp.(*SystemAuthReferenceType) 29152 fc.Result = res 29153 return ec.marshalOSystemAuthReferenceType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuthReferenceType(ctx, field.Selections, res) 29154 } 29155 29156 func (ec *executionContext) _RuntimeSystemAuth_tenantId(ctx context.Context, field graphql.CollectedField, obj *RuntimeSystemAuth) (ret graphql.Marshaler) { 29157 defer func() { 29158 if r := recover(); r != nil { 29159 ec.Error(ctx, ec.Recover(ctx, r)) 29160 ret = graphql.Null 29161 } 29162 }() 29163 fc := &graphql.FieldContext{ 29164 Object: "RuntimeSystemAuth", 29165 Field: field, 29166 Args: nil, 29167 IsMethod: false, 29168 } 29169 29170 ctx = graphql.WithFieldContext(ctx, fc) 29171 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29172 ctx = rctx // use context from middleware stack in children 29173 return obj.TenantID, nil 29174 }) 29175 if err != nil { 29176 ec.Error(ctx, err) 29177 return graphql.Null 29178 } 29179 if resTmp == nil { 29180 return graphql.Null 29181 } 29182 res := resTmp.(*string) 29183 fc.Result = res 29184 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 29185 } 29186 29187 func (ec *executionContext) _RuntimeSystemAuth_referenceObjectId(ctx context.Context, field graphql.CollectedField, obj *RuntimeSystemAuth) (ret graphql.Marshaler) { 29188 defer func() { 29189 if r := recover(); r != nil { 29190 ec.Error(ctx, ec.Recover(ctx, r)) 29191 ret = graphql.Null 29192 } 29193 }() 29194 fc := &graphql.FieldContext{ 29195 Object: "RuntimeSystemAuth", 29196 Field: field, 29197 Args: nil, 29198 IsMethod: false, 29199 } 29200 29201 ctx = graphql.WithFieldContext(ctx, fc) 29202 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29203 ctx = rctx // use context from middleware stack in children 29204 return obj.ReferenceObjectID, nil 29205 }) 29206 if err != nil { 29207 ec.Error(ctx, err) 29208 return graphql.Null 29209 } 29210 if resTmp == nil { 29211 return graphql.Null 29212 } 29213 res := resTmp.(*string) 29214 fc.Result = res 29215 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 29216 } 29217 29218 func (ec *executionContext) _Tenant_id(ctx context.Context, field graphql.CollectedField, obj *Tenant) (ret graphql.Marshaler) { 29219 defer func() { 29220 if r := recover(); r != nil { 29221 ec.Error(ctx, ec.Recover(ctx, r)) 29222 ret = graphql.Null 29223 } 29224 }() 29225 fc := &graphql.FieldContext{ 29226 Object: "Tenant", 29227 Field: field, 29228 Args: nil, 29229 IsMethod: false, 29230 } 29231 29232 ctx = graphql.WithFieldContext(ctx, fc) 29233 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29234 ctx = rctx // use context from middleware stack in children 29235 return obj.ID, nil 29236 }) 29237 if err != nil { 29238 ec.Error(ctx, err) 29239 return graphql.Null 29240 } 29241 if resTmp == nil { 29242 if !graphql.HasFieldError(ctx, fc) { 29243 ec.Errorf(ctx, "must not be null") 29244 } 29245 return graphql.Null 29246 } 29247 res := resTmp.(string) 29248 fc.Result = res 29249 return ec.marshalNID2string(ctx, field.Selections, res) 29250 } 29251 29252 func (ec *executionContext) _Tenant_internalID(ctx context.Context, field graphql.CollectedField, obj *Tenant) (ret graphql.Marshaler) { 29253 defer func() { 29254 if r := recover(); r != nil { 29255 ec.Error(ctx, ec.Recover(ctx, r)) 29256 ret = graphql.Null 29257 } 29258 }() 29259 fc := &graphql.FieldContext{ 29260 Object: "Tenant", 29261 Field: field, 29262 Args: nil, 29263 IsMethod: false, 29264 } 29265 29266 ctx = graphql.WithFieldContext(ctx, fc) 29267 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29268 ctx = rctx // use context from middleware stack in children 29269 return obj.InternalID, nil 29270 }) 29271 if err != nil { 29272 ec.Error(ctx, err) 29273 return graphql.Null 29274 } 29275 if resTmp == nil { 29276 if !graphql.HasFieldError(ctx, fc) { 29277 ec.Errorf(ctx, "must not be null") 29278 } 29279 return graphql.Null 29280 } 29281 res := resTmp.(string) 29282 fc.Result = res 29283 return ec.marshalNID2string(ctx, field.Selections, res) 29284 } 29285 29286 func (ec *executionContext) _Tenant_name(ctx context.Context, field graphql.CollectedField, obj *Tenant) (ret graphql.Marshaler) { 29287 defer func() { 29288 if r := recover(); r != nil { 29289 ec.Error(ctx, ec.Recover(ctx, r)) 29290 ret = graphql.Null 29291 } 29292 }() 29293 fc := &graphql.FieldContext{ 29294 Object: "Tenant", 29295 Field: field, 29296 Args: nil, 29297 IsMethod: false, 29298 } 29299 29300 ctx = graphql.WithFieldContext(ctx, fc) 29301 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29302 ctx = rctx // use context from middleware stack in children 29303 return obj.Name, nil 29304 }) 29305 if err != nil { 29306 ec.Error(ctx, err) 29307 return graphql.Null 29308 } 29309 if resTmp == nil { 29310 return graphql.Null 29311 } 29312 res := resTmp.(*string) 29313 fc.Result = res 29314 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 29315 } 29316 29317 func (ec *executionContext) _Tenant_type(ctx context.Context, field graphql.CollectedField, obj *Tenant) (ret graphql.Marshaler) { 29318 defer func() { 29319 if r := recover(); r != nil { 29320 ec.Error(ctx, ec.Recover(ctx, r)) 29321 ret = graphql.Null 29322 } 29323 }() 29324 fc := &graphql.FieldContext{ 29325 Object: "Tenant", 29326 Field: field, 29327 Args: nil, 29328 IsMethod: false, 29329 } 29330 29331 ctx = graphql.WithFieldContext(ctx, fc) 29332 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29333 ctx = rctx // use context from middleware stack in children 29334 return obj.Type, nil 29335 }) 29336 if err != nil { 29337 ec.Error(ctx, err) 29338 return graphql.Null 29339 } 29340 if resTmp == nil { 29341 return graphql.Null 29342 } 29343 res := resTmp.(string) 29344 fc.Result = res 29345 return ec.marshalOString2string(ctx, field.Selections, res) 29346 } 29347 29348 func (ec *executionContext) _Tenant_parentID(ctx context.Context, field graphql.CollectedField, obj *Tenant) (ret graphql.Marshaler) { 29349 defer func() { 29350 if r := recover(); r != nil { 29351 ec.Error(ctx, ec.Recover(ctx, r)) 29352 ret = graphql.Null 29353 } 29354 }() 29355 fc := &graphql.FieldContext{ 29356 Object: "Tenant", 29357 Field: field, 29358 Args: nil, 29359 IsMethod: false, 29360 } 29361 29362 ctx = graphql.WithFieldContext(ctx, fc) 29363 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29364 ctx = rctx // use context from middleware stack in children 29365 return obj.ParentID, nil 29366 }) 29367 if err != nil { 29368 ec.Error(ctx, err) 29369 return graphql.Null 29370 } 29371 if resTmp == nil { 29372 return graphql.Null 29373 } 29374 res := resTmp.(string) 29375 fc.Result = res 29376 return ec.marshalOID2string(ctx, field.Selections, res) 29377 } 29378 29379 func (ec *executionContext) _Tenant_initialized(ctx context.Context, field graphql.CollectedField, obj *Tenant) (ret graphql.Marshaler) { 29380 defer func() { 29381 if r := recover(); r != nil { 29382 ec.Error(ctx, ec.Recover(ctx, r)) 29383 ret = graphql.Null 29384 } 29385 }() 29386 fc := &graphql.FieldContext{ 29387 Object: "Tenant", 29388 Field: field, 29389 Args: nil, 29390 IsMethod: false, 29391 } 29392 29393 ctx = graphql.WithFieldContext(ctx, fc) 29394 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29395 ctx = rctx // use context from middleware stack in children 29396 return obj.Initialized, nil 29397 }) 29398 if err != nil { 29399 ec.Error(ctx, err) 29400 return graphql.Null 29401 } 29402 if resTmp == nil { 29403 return graphql.Null 29404 } 29405 res := resTmp.(*bool) 29406 fc.Result = res 29407 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 29408 } 29409 29410 func (ec *executionContext) _Tenant_labels(ctx context.Context, field graphql.CollectedField, obj *Tenant) (ret graphql.Marshaler) { 29411 defer func() { 29412 if r := recover(); r != nil { 29413 ec.Error(ctx, ec.Recover(ctx, r)) 29414 ret = graphql.Null 29415 } 29416 }() 29417 fc := &graphql.FieldContext{ 29418 Object: "Tenant", 29419 Field: field, 29420 Args: nil, 29421 IsMethod: true, 29422 } 29423 29424 ctx = graphql.WithFieldContext(ctx, fc) 29425 rawArgs := field.ArgumentMap(ec.Variables) 29426 args, err := ec.field_Tenant_labels_args(ctx, rawArgs) 29427 if err != nil { 29428 ec.Error(ctx, err) 29429 return graphql.Null 29430 } 29431 fc.Args = args 29432 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29433 ctx = rctx // use context from middleware stack in children 29434 return ec.resolvers.Tenant().Labels(rctx, obj, args["key"].(*string)) 29435 }) 29436 if err != nil { 29437 ec.Error(ctx, err) 29438 return graphql.Null 29439 } 29440 if resTmp == nil { 29441 return graphql.Null 29442 } 29443 res := resTmp.(Labels) 29444 fc.Result = res 29445 return ec.marshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, field.Selections, res) 29446 } 29447 29448 func (ec *executionContext) _Tenant_provider(ctx context.Context, field graphql.CollectedField, obj *Tenant) (ret graphql.Marshaler) { 29449 defer func() { 29450 if r := recover(); r != nil { 29451 ec.Error(ctx, ec.Recover(ctx, r)) 29452 ret = graphql.Null 29453 } 29454 }() 29455 fc := &graphql.FieldContext{ 29456 Object: "Tenant", 29457 Field: field, 29458 Args: nil, 29459 IsMethod: false, 29460 } 29461 29462 ctx = graphql.WithFieldContext(ctx, fc) 29463 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29464 ctx = rctx // use context from middleware stack in children 29465 return obj.Provider, nil 29466 }) 29467 if err != nil { 29468 ec.Error(ctx, err) 29469 return graphql.Null 29470 } 29471 if resTmp == nil { 29472 if !graphql.HasFieldError(ctx, fc) { 29473 ec.Errorf(ctx, "must not be null") 29474 } 29475 return graphql.Null 29476 } 29477 res := resTmp.(string) 29478 fc.Result = res 29479 return ec.marshalNString2string(ctx, field.Selections, res) 29480 } 29481 29482 func (ec *executionContext) _TenantAccess_tenantID(ctx context.Context, field graphql.CollectedField, obj *TenantAccess) (ret graphql.Marshaler) { 29483 defer func() { 29484 if r := recover(); r != nil { 29485 ec.Error(ctx, ec.Recover(ctx, r)) 29486 ret = graphql.Null 29487 } 29488 }() 29489 fc := &graphql.FieldContext{ 29490 Object: "TenantAccess", 29491 Field: field, 29492 Args: nil, 29493 IsMethod: false, 29494 } 29495 29496 ctx = graphql.WithFieldContext(ctx, fc) 29497 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29498 ctx = rctx // use context from middleware stack in children 29499 return obj.TenantID, nil 29500 }) 29501 if err != nil { 29502 ec.Error(ctx, err) 29503 return graphql.Null 29504 } 29505 if resTmp == nil { 29506 if !graphql.HasFieldError(ctx, fc) { 29507 ec.Errorf(ctx, "must not be null") 29508 } 29509 return graphql.Null 29510 } 29511 res := resTmp.(string) 29512 fc.Result = res 29513 return ec.marshalNID2string(ctx, field.Selections, res) 29514 } 29515 29516 func (ec *executionContext) _TenantAccess_resourceType(ctx context.Context, field graphql.CollectedField, obj *TenantAccess) (ret graphql.Marshaler) { 29517 defer func() { 29518 if r := recover(); r != nil { 29519 ec.Error(ctx, ec.Recover(ctx, r)) 29520 ret = graphql.Null 29521 } 29522 }() 29523 fc := &graphql.FieldContext{ 29524 Object: "TenantAccess", 29525 Field: field, 29526 Args: nil, 29527 IsMethod: false, 29528 } 29529 29530 ctx = graphql.WithFieldContext(ctx, fc) 29531 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29532 ctx = rctx // use context from middleware stack in children 29533 return obj.ResourceType, nil 29534 }) 29535 if err != nil { 29536 ec.Error(ctx, err) 29537 return graphql.Null 29538 } 29539 if resTmp == nil { 29540 if !graphql.HasFieldError(ctx, fc) { 29541 ec.Errorf(ctx, "must not be null") 29542 } 29543 return graphql.Null 29544 } 29545 res := resTmp.(TenantAccessObjectType) 29546 fc.Result = res 29547 return ec.marshalNTenantAccessObjectType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccessObjectType(ctx, field.Selections, res) 29548 } 29549 29550 func (ec *executionContext) _TenantAccess_resourceID(ctx context.Context, field graphql.CollectedField, obj *TenantAccess) (ret graphql.Marshaler) { 29551 defer func() { 29552 if r := recover(); r != nil { 29553 ec.Error(ctx, ec.Recover(ctx, r)) 29554 ret = graphql.Null 29555 } 29556 }() 29557 fc := &graphql.FieldContext{ 29558 Object: "TenantAccess", 29559 Field: field, 29560 Args: nil, 29561 IsMethod: false, 29562 } 29563 29564 ctx = graphql.WithFieldContext(ctx, fc) 29565 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29566 ctx = rctx // use context from middleware stack in children 29567 return obj.ResourceID, nil 29568 }) 29569 if err != nil { 29570 ec.Error(ctx, err) 29571 return graphql.Null 29572 } 29573 if resTmp == nil { 29574 if !graphql.HasFieldError(ctx, fc) { 29575 ec.Errorf(ctx, "must not be null") 29576 } 29577 return graphql.Null 29578 } 29579 res := resTmp.(string) 29580 fc.Result = res 29581 return ec.marshalNID2string(ctx, field.Selections, res) 29582 } 29583 29584 func (ec *executionContext) _TenantAccess_owner(ctx context.Context, field graphql.CollectedField, obj *TenantAccess) (ret graphql.Marshaler) { 29585 defer func() { 29586 if r := recover(); r != nil { 29587 ec.Error(ctx, ec.Recover(ctx, r)) 29588 ret = graphql.Null 29589 } 29590 }() 29591 fc := &graphql.FieldContext{ 29592 Object: "TenantAccess", 29593 Field: field, 29594 Args: nil, 29595 IsMethod: false, 29596 } 29597 29598 ctx = graphql.WithFieldContext(ctx, fc) 29599 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29600 ctx = rctx // use context from middleware stack in children 29601 return obj.Owner, nil 29602 }) 29603 if err != nil { 29604 ec.Error(ctx, err) 29605 return graphql.Null 29606 } 29607 if resTmp == nil { 29608 if !graphql.HasFieldError(ctx, fc) { 29609 ec.Errorf(ctx, "must not be null") 29610 } 29611 return graphql.Null 29612 } 29613 res := resTmp.(bool) 29614 fc.Result = res 29615 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 29616 } 29617 29618 func (ec *executionContext) _TenantBusinessType_id(ctx context.Context, field graphql.CollectedField, obj *TenantBusinessType) (ret graphql.Marshaler) { 29619 defer func() { 29620 if r := recover(); r != nil { 29621 ec.Error(ctx, ec.Recover(ctx, r)) 29622 ret = graphql.Null 29623 } 29624 }() 29625 fc := &graphql.FieldContext{ 29626 Object: "TenantBusinessType", 29627 Field: field, 29628 Args: nil, 29629 IsMethod: false, 29630 } 29631 29632 ctx = graphql.WithFieldContext(ctx, fc) 29633 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29634 ctx = rctx // use context from middleware stack in children 29635 return obj.ID, nil 29636 }) 29637 if err != nil { 29638 ec.Error(ctx, err) 29639 return graphql.Null 29640 } 29641 if resTmp == nil { 29642 if !graphql.HasFieldError(ctx, fc) { 29643 ec.Errorf(ctx, "must not be null") 29644 } 29645 return graphql.Null 29646 } 29647 res := resTmp.(string) 29648 fc.Result = res 29649 return ec.marshalNID2string(ctx, field.Selections, res) 29650 } 29651 29652 func (ec *executionContext) _TenantBusinessType_code(ctx context.Context, field graphql.CollectedField, obj *TenantBusinessType) (ret graphql.Marshaler) { 29653 defer func() { 29654 if r := recover(); r != nil { 29655 ec.Error(ctx, ec.Recover(ctx, r)) 29656 ret = graphql.Null 29657 } 29658 }() 29659 fc := &graphql.FieldContext{ 29660 Object: "TenantBusinessType", 29661 Field: field, 29662 Args: nil, 29663 IsMethod: false, 29664 } 29665 29666 ctx = graphql.WithFieldContext(ctx, fc) 29667 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29668 ctx = rctx // use context from middleware stack in children 29669 return obj.Code, nil 29670 }) 29671 if err != nil { 29672 ec.Error(ctx, err) 29673 return graphql.Null 29674 } 29675 if resTmp == nil { 29676 if !graphql.HasFieldError(ctx, fc) { 29677 ec.Errorf(ctx, "must not be null") 29678 } 29679 return graphql.Null 29680 } 29681 res := resTmp.(string) 29682 fc.Result = res 29683 return ec.marshalNString2string(ctx, field.Selections, res) 29684 } 29685 29686 func (ec *executionContext) _TenantBusinessType_name(ctx context.Context, field graphql.CollectedField, obj *TenantBusinessType) (ret graphql.Marshaler) { 29687 defer func() { 29688 if r := recover(); r != nil { 29689 ec.Error(ctx, ec.Recover(ctx, r)) 29690 ret = graphql.Null 29691 } 29692 }() 29693 fc := &graphql.FieldContext{ 29694 Object: "TenantBusinessType", 29695 Field: field, 29696 Args: nil, 29697 IsMethod: false, 29698 } 29699 29700 ctx = graphql.WithFieldContext(ctx, fc) 29701 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29702 ctx = rctx // use context from middleware stack in children 29703 return obj.Name, nil 29704 }) 29705 if err != nil { 29706 ec.Error(ctx, err) 29707 return graphql.Null 29708 } 29709 if resTmp == nil { 29710 if !graphql.HasFieldError(ctx, fc) { 29711 ec.Errorf(ctx, "must not be null") 29712 } 29713 return graphql.Null 29714 } 29715 res := resTmp.(string) 29716 fc.Result = res 29717 return ec.marshalNString2string(ctx, field.Selections, res) 29718 } 29719 29720 func (ec *executionContext) _TenantPage_data(ctx context.Context, field graphql.CollectedField, obj *TenantPage) (ret graphql.Marshaler) { 29721 defer func() { 29722 if r := recover(); r != nil { 29723 ec.Error(ctx, ec.Recover(ctx, r)) 29724 ret = graphql.Null 29725 } 29726 }() 29727 fc := &graphql.FieldContext{ 29728 Object: "TenantPage", 29729 Field: field, 29730 Args: nil, 29731 IsMethod: false, 29732 } 29733 29734 ctx = graphql.WithFieldContext(ctx, fc) 29735 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29736 ctx = rctx // use context from middleware stack in children 29737 return obj.Data, nil 29738 }) 29739 if err != nil { 29740 ec.Error(ctx, err) 29741 return graphql.Null 29742 } 29743 if resTmp == nil { 29744 if !graphql.HasFieldError(ctx, fc) { 29745 ec.Errorf(ctx, "must not be null") 29746 } 29747 return graphql.Null 29748 } 29749 res := resTmp.([]*Tenant) 29750 fc.Result = res 29751 return ec.marshalNTenant2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantᚄ(ctx, field.Selections, res) 29752 } 29753 29754 func (ec *executionContext) _TenantPage_pageInfo(ctx context.Context, field graphql.CollectedField, obj *TenantPage) (ret graphql.Marshaler) { 29755 defer func() { 29756 if r := recover(); r != nil { 29757 ec.Error(ctx, ec.Recover(ctx, r)) 29758 ret = graphql.Null 29759 } 29760 }() 29761 fc := &graphql.FieldContext{ 29762 Object: "TenantPage", 29763 Field: field, 29764 Args: nil, 29765 IsMethod: false, 29766 } 29767 29768 ctx = graphql.WithFieldContext(ctx, fc) 29769 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29770 ctx = rctx // use context from middleware stack in children 29771 return obj.PageInfo, nil 29772 }) 29773 if err != nil { 29774 ec.Error(ctx, err) 29775 return graphql.Null 29776 } 29777 if resTmp == nil { 29778 if !graphql.HasFieldError(ctx, fc) { 29779 ec.Errorf(ctx, "must not be null") 29780 } 29781 return graphql.Null 29782 } 29783 res := resTmp.(*PageInfo) 29784 fc.Result = res 29785 return ec.marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx, field.Selections, res) 29786 } 29787 29788 func (ec *executionContext) _TenantPage_totalCount(ctx context.Context, field graphql.CollectedField, obj *TenantPage) (ret graphql.Marshaler) { 29789 defer func() { 29790 if r := recover(); r != nil { 29791 ec.Error(ctx, ec.Recover(ctx, r)) 29792 ret = graphql.Null 29793 } 29794 }() 29795 fc := &graphql.FieldContext{ 29796 Object: "TenantPage", 29797 Field: field, 29798 Args: nil, 29799 IsMethod: false, 29800 } 29801 29802 ctx = graphql.WithFieldContext(ctx, fc) 29803 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29804 ctx = rctx // use context from middleware stack in children 29805 return obj.TotalCount, nil 29806 }) 29807 if err != nil { 29808 ec.Error(ctx, err) 29809 return graphql.Null 29810 } 29811 if resTmp == nil { 29812 if !graphql.HasFieldError(ctx, fc) { 29813 ec.Errorf(ctx, "must not be null") 29814 } 29815 return graphql.Null 29816 } 29817 res := resTmp.(int) 29818 fc.Result = res 29819 return ec.marshalNInt2int(ctx, field.Selections, res) 29820 } 29821 29822 func (ec *executionContext) _Version_value(ctx context.Context, field graphql.CollectedField, obj *Version) (ret graphql.Marshaler) { 29823 defer func() { 29824 if r := recover(); r != nil { 29825 ec.Error(ctx, ec.Recover(ctx, r)) 29826 ret = graphql.Null 29827 } 29828 }() 29829 fc := &graphql.FieldContext{ 29830 Object: "Version", 29831 Field: field, 29832 Args: nil, 29833 IsMethod: false, 29834 } 29835 29836 ctx = graphql.WithFieldContext(ctx, fc) 29837 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29838 ctx = rctx // use context from middleware stack in children 29839 return obj.Value, nil 29840 }) 29841 if err != nil { 29842 ec.Error(ctx, err) 29843 return graphql.Null 29844 } 29845 if resTmp == nil { 29846 if !graphql.HasFieldError(ctx, fc) { 29847 ec.Errorf(ctx, "must not be null") 29848 } 29849 return graphql.Null 29850 } 29851 res := resTmp.(string) 29852 fc.Result = res 29853 return ec.marshalNString2string(ctx, field.Selections, res) 29854 } 29855 29856 func (ec *executionContext) _Version_deprecated(ctx context.Context, field graphql.CollectedField, obj *Version) (ret graphql.Marshaler) { 29857 defer func() { 29858 if r := recover(); r != nil { 29859 ec.Error(ctx, ec.Recover(ctx, r)) 29860 ret = graphql.Null 29861 } 29862 }() 29863 fc := &graphql.FieldContext{ 29864 Object: "Version", 29865 Field: field, 29866 Args: nil, 29867 IsMethod: false, 29868 } 29869 29870 ctx = graphql.WithFieldContext(ctx, fc) 29871 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29872 ctx = rctx // use context from middleware stack in children 29873 return obj.Deprecated, nil 29874 }) 29875 if err != nil { 29876 ec.Error(ctx, err) 29877 return graphql.Null 29878 } 29879 if resTmp == nil { 29880 return graphql.Null 29881 } 29882 res := resTmp.(*bool) 29883 fc.Result = res 29884 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 29885 } 29886 29887 func (ec *executionContext) _Version_deprecatedSince(ctx context.Context, field graphql.CollectedField, obj *Version) (ret graphql.Marshaler) { 29888 defer func() { 29889 if r := recover(); r != nil { 29890 ec.Error(ctx, ec.Recover(ctx, r)) 29891 ret = graphql.Null 29892 } 29893 }() 29894 fc := &graphql.FieldContext{ 29895 Object: "Version", 29896 Field: field, 29897 Args: nil, 29898 IsMethod: false, 29899 } 29900 29901 ctx = graphql.WithFieldContext(ctx, fc) 29902 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29903 ctx = rctx // use context from middleware stack in children 29904 return obj.DeprecatedSince, nil 29905 }) 29906 if err != nil { 29907 ec.Error(ctx, err) 29908 return graphql.Null 29909 } 29910 if resTmp == nil { 29911 return graphql.Null 29912 } 29913 res := resTmp.(*string) 29914 fc.Result = res 29915 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 29916 } 29917 29918 func (ec *executionContext) _Version_forRemoval(ctx context.Context, field graphql.CollectedField, obj *Version) (ret graphql.Marshaler) { 29919 defer func() { 29920 if r := recover(); r != nil { 29921 ec.Error(ctx, ec.Recover(ctx, r)) 29922 ret = graphql.Null 29923 } 29924 }() 29925 fc := &graphql.FieldContext{ 29926 Object: "Version", 29927 Field: field, 29928 Args: nil, 29929 IsMethod: false, 29930 } 29931 29932 ctx = graphql.WithFieldContext(ctx, fc) 29933 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29934 ctx = rctx // use context from middleware stack in children 29935 return obj.ForRemoval, nil 29936 }) 29937 if err != nil { 29938 ec.Error(ctx, err) 29939 return graphql.Null 29940 } 29941 if resTmp == nil { 29942 return graphql.Null 29943 } 29944 res := resTmp.(*bool) 29945 fc.Result = res 29946 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) 29947 } 29948 29949 func (ec *executionContext) _Viewer_id(ctx context.Context, field graphql.CollectedField, obj *Viewer) (ret graphql.Marshaler) { 29950 defer func() { 29951 if r := recover(); r != nil { 29952 ec.Error(ctx, ec.Recover(ctx, r)) 29953 ret = graphql.Null 29954 } 29955 }() 29956 fc := &graphql.FieldContext{ 29957 Object: "Viewer", 29958 Field: field, 29959 Args: nil, 29960 IsMethod: false, 29961 } 29962 29963 ctx = graphql.WithFieldContext(ctx, fc) 29964 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29965 ctx = rctx // use context from middleware stack in children 29966 return obj.ID, nil 29967 }) 29968 if err != nil { 29969 ec.Error(ctx, err) 29970 return graphql.Null 29971 } 29972 if resTmp == nil { 29973 if !graphql.HasFieldError(ctx, fc) { 29974 ec.Errorf(ctx, "must not be null") 29975 } 29976 return graphql.Null 29977 } 29978 res := resTmp.(string) 29979 fc.Result = res 29980 return ec.marshalNID2string(ctx, field.Selections, res) 29981 } 29982 29983 func (ec *executionContext) _Viewer_type(ctx context.Context, field graphql.CollectedField, obj *Viewer) (ret graphql.Marshaler) { 29984 defer func() { 29985 if r := recover(); r != nil { 29986 ec.Error(ctx, ec.Recover(ctx, r)) 29987 ret = graphql.Null 29988 } 29989 }() 29990 fc := &graphql.FieldContext{ 29991 Object: "Viewer", 29992 Field: field, 29993 Args: nil, 29994 IsMethod: false, 29995 } 29996 29997 ctx = graphql.WithFieldContext(ctx, fc) 29998 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 29999 ctx = rctx // use context from middleware stack in children 30000 return obj.Type, nil 30001 }) 30002 if err != nil { 30003 ec.Error(ctx, err) 30004 return graphql.Null 30005 } 30006 if resTmp == nil { 30007 if !graphql.HasFieldError(ctx, fc) { 30008 ec.Errorf(ctx, "must not be null") 30009 } 30010 return graphql.Null 30011 } 30012 res := resTmp.(ViewerType) 30013 fc.Result = res 30014 return ec.marshalNViewerType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐViewerType(ctx, field.Selections, res) 30015 } 30016 30017 func (ec *executionContext) _Webhook_id(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30018 defer func() { 30019 if r := recover(); r != nil { 30020 ec.Error(ctx, ec.Recover(ctx, r)) 30021 ret = graphql.Null 30022 } 30023 }() 30024 fc := &graphql.FieldContext{ 30025 Object: "Webhook", 30026 Field: field, 30027 Args: nil, 30028 IsMethod: false, 30029 } 30030 30031 ctx = graphql.WithFieldContext(ctx, fc) 30032 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30033 ctx = rctx // use context from middleware stack in children 30034 return obj.ID, nil 30035 }) 30036 if err != nil { 30037 ec.Error(ctx, err) 30038 return graphql.Null 30039 } 30040 if resTmp == nil { 30041 if !graphql.HasFieldError(ctx, fc) { 30042 ec.Errorf(ctx, "must not be null") 30043 } 30044 return graphql.Null 30045 } 30046 res := resTmp.(string) 30047 fc.Result = res 30048 return ec.marshalNID2string(ctx, field.Selections, res) 30049 } 30050 30051 func (ec *executionContext) _Webhook_applicationID(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30052 defer func() { 30053 if r := recover(); r != nil { 30054 ec.Error(ctx, ec.Recover(ctx, r)) 30055 ret = graphql.Null 30056 } 30057 }() 30058 fc := &graphql.FieldContext{ 30059 Object: "Webhook", 30060 Field: field, 30061 Args: nil, 30062 IsMethod: false, 30063 } 30064 30065 ctx = graphql.WithFieldContext(ctx, fc) 30066 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30067 ctx = rctx // use context from middleware stack in children 30068 return obj.ApplicationID, nil 30069 }) 30070 if err != nil { 30071 ec.Error(ctx, err) 30072 return graphql.Null 30073 } 30074 if resTmp == nil { 30075 return graphql.Null 30076 } 30077 res := resTmp.(*string) 30078 fc.Result = res 30079 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 30080 } 30081 30082 func (ec *executionContext) _Webhook_applicationTemplateID(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30083 defer func() { 30084 if r := recover(); r != nil { 30085 ec.Error(ctx, ec.Recover(ctx, r)) 30086 ret = graphql.Null 30087 } 30088 }() 30089 fc := &graphql.FieldContext{ 30090 Object: "Webhook", 30091 Field: field, 30092 Args: nil, 30093 IsMethod: false, 30094 } 30095 30096 ctx = graphql.WithFieldContext(ctx, fc) 30097 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30098 ctx = rctx // use context from middleware stack in children 30099 return obj.ApplicationTemplateID, nil 30100 }) 30101 if err != nil { 30102 ec.Error(ctx, err) 30103 return graphql.Null 30104 } 30105 if resTmp == nil { 30106 return graphql.Null 30107 } 30108 res := resTmp.(*string) 30109 fc.Result = res 30110 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 30111 } 30112 30113 func (ec *executionContext) _Webhook_runtimeID(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30114 defer func() { 30115 if r := recover(); r != nil { 30116 ec.Error(ctx, ec.Recover(ctx, r)) 30117 ret = graphql.Null 30118 } 30119 }() 30120 fc := &graphql.FieldContext{ 30121 Object: "Webhook", 30122 Field: field, 30123 Args: nil, 30124 IsMethod: false, 30125 } 30126 30127 ctx = graphql.WithFieldContext(ctx, fc) 30128 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30129 ctx = rctx // use context from middleware stack in children 30130 return obj.RuntimeID, nil 30131 }) 30132 if err != nil { 30133 ec.Error(ctx, err) 30134 return graphql.Null 30135 } 30136 if resTmp == nil { 30137 return graphql.Null 30138 } 30139 res := resTmp.(*string) 30140 fc.Result = res 30141 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 30142 } 30143 30144 func (ec *executionContext) _Webhook_integrationSystemID(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30145 defer func() { 30146 if r := recover(); r != nil { 30147 ec.Error(ctx, ec.Recover(ctx, r)) 30148 ret = graphql.Null 30149 } 30150 }() 30151 fc := &graphql.FieldContext{ 30152 Object: "Webhook", 30153 Field: field, 30154 Args: nil, 30155 IsMethod: false, 30156 } 30157 30158 ctx = graphql.WithFieldContext(ctx, fc) 30159 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30160 ctx = rctx // use context from middleware stack in children 30161 return obj.IntegrationSystemID, nil 30162 }) 30163 if err != nil { 30164 ec.Error(ctx, err) 30165 return graphql.Null 30166 } 30167 if resTmp == nil { 30168 return graphql.Null 30169 } 30170 res := resTmp.(*string) 30171 fc.Result = res 30172 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 30173 } 30174 30175 func (ec *executionContext) _Webhook_formationTemplateID(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30176 defer func() { 30177 if r := recover(); r != nil { 30178 ec.Error(ctx, ec.Recover(ctx, r)) 30179 ret = graphql.Null 30180 } 30181 }() 30182 fc := &graphql.FieldContext{ 30183 Object: "Webhook", 30184 Field: field, 30185 Args: nil, 30186 IsMethod: false, 30187 } 30188 30189 ctx = graphql.WithFieldContext(ctx, fc) 30190 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30191 ctx = rctx // use context from middleware stack in children 30192 return obj.FormationTemplateID, nil 30193 }) 30194 if err != nil { 30195 ec.Error(ctx, err) 30196 return graphql.Null 30197 } 30198 if resTmp == nil { 30199 return graphql.Null 30200 } 30201 res := resTmp.(*string) 30202 fc.Result = res 30203 return ec.marshalOID2ᚖstring(ctx, field.Selections, res) 30204 } 30205 30206 func (ec *executionContext) _Webhook_type(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30207 defer func() { 30208 if r := recover(); r != nil { 30209 ec.Error(ctx, ec.Recover(ctx, r)) 30210 ret = graphql.Null 30211 } 30212 }() 30213 fc := &graphql.FieldContext{ 30214 Object: "Webhook", 30215 Field: field, 30216 Args: nil, 30217 IsMethod: false, 30218 } 30219 30220 ctx = graphql.WithFieldContext(ctx, fc) 30221 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30222 ctx = rctx // use context from middleware stack in children 30223 return obj.Type, nil 30224 }) 30225 if err != nil { 30226 ec.Error(ctx, err) 30227 return graphql.Null 30228 } 30229 if resTmp == nil { 30230 if !graphql.HasFieldError(ctx, fc) { 30231 ec.Errorf(ctx, "must not be null") 30232 } 30233 return graphql.Null 30234 } 30235 res := resTmp.(WebhookType) 30236 fc.Result = res 30237 return ec.marshalNWebhookType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx, field.Selections, res) 30238 } 30239 30240 func (ec *executionContext) _Webhook_mode(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30241 defer func() { 30242 if r := recover(); r != nil { 30243 ec.Error(ctx, ec.Recover(ctx, r)) 30244 ret = graphql.Null 30245 } 30246 }() 30247 fc := &graphql.FieldContext{ 30248 Object: "Webhook", 30249 Field: field, 30250 Args: nil, 30251 IsMethod: false, 30252 } 30253 30254 ctx = graphql.WithFieldContext(ctx, fc) 30255 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30256 ctx = rctx // use context from middleware stack in children 30257 return obj.Mode, nil 30258 }) 30259 if err != nil { 30260 ec.Error(ctx, err) 30261 return graphql.Null 30262 } 30263 if resTmp == nil { 30264 return graphql.Null 30265 } 30266 res := resTmp.(*WebhookMode) 30267 fc.Result = res 30268 return ec.marshalOWebhookMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookMode(ctx, field.Selections, res) 30269 } 30270 30271 func (ec *executionContext) _Webhook_correlationIdKey(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30272 defer func() { 30273 if r := recover(); r != nil { 30274 ec.Error(ctx, ec.Recover(ctx, r)) 30275 ret = graphql.Null 30276 } 30277 }() 30278 fc := &graphql.FieldContext{ 30279 Object: "Webhook", 30280 Field: field, 30281 Args: nil, 30282 IsMethod: false, 30283 } 30284 30285 ctx = graphql.WithFieldContext(ctx, fc) 30286 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30287 ctx = rctx // use context from middleware stack in children 30288 return obj.CorrelationIDKey, nil 30289 }) 30290 if err != nil { 30291 ec.Error(ctx, err) 30292 return graphql.Null 30293 } 30294 if resTmp == nil { 30295 return graphql.Null 30296 } 30297 res := resTmp.(*string) 30298 fc.Result = res 30299 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 30300 } 30301 30302 func (ec *executionContext) _Webhook_retryInterval(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30303 defer func() { 30304 if r := recover(); r != nil { 30305 ec.Error(ctx, ec.Recover(ctx, r)) 30306 ret = graphql.Null 30307 } 30308 }() 30309 fc := &graphql.FieldContext{ 30310 Object: "Webhook", 30311 Field: field, 30312 Args: nil, 30313 IsMethod: false, 30314 } 30315 30316 ctx = graphql.WithFieldContext(ctx, fc) 30317 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30318 ctx = rctx // use context from middleware stack in children 30319 return obj.RetryInterval, nil 30320 }) 30321 if err != nil { 30322 ec.Error(ctx, err) 30323 return graphql.Null 30324 } 30325 if resTmp == nil { 30326 return graphql.Null 30327 } 30328 res := resTmp.(*int) 30329 fc.Result = res 30330 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 30331 } 30332 30333 func (ec *executionContext) _Webhook_timeout(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30334 defer func() { 30335 if r := recover(); r != nil { 30336 ec.Error(ctx, ec.Recover(ctx, r)) 30337 ret = graphql.Null 30338 } 30339 }() 30340 fc := &graphql.FieldContext{ 30341 Object: "Webhook", 30342 Field: field, 30343 Args: nil, 30344 IsMethod: false, 30345 } 30346 30347 ctx = graphql.WithFieldContext(ctx, fc) 30348 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30349 ctx = rctx // use context from middleware stack in children 30350 return obj.Timeout, nil 30351 }) 30352 if err != nil { 30353 ec.Error(ctx, err) 30354 return graphql.Null 30355 } 30356 if resTmp == nil { 30357 return graphql.Null 30358 } 30359 res := resTmp.(*int) 30360 fc.Result = res 30361 return ec.marshalOInt2ᚖint(ctx, field.Selections, res) 30362 } 30363 30364 func (ec *executionContext) _Webhook_url(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30365 defer func() { 30366 if r := recover(); r != nil { 30367 ec.Error(ctx, ec.Recover(ctx, r)) 30368 ret = graphql.Null 30369 } 30370 }() 30371 fc := &graphql.FieldContext{ 30372 Object: "Webhook", 30373 Field: field, 30374 Args: nil, 30375 IsMethod: false, 30376 } 30377 30378 ctx = graphql.WithFieldContext(ctx, fc) 30379 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30380 ctx = rctx // use context from middleware stack in children 30381 return obj.URL, nil 30382 }) 30383 if err != nil { 30384 ec.Error(ctx, err) 30385 return graphql.Null 30386 } 30387 if resTmp == nil { 30388 return graphql.Null 30389 } 30390 res := resTmp.(*string) 30391 fc.Result = res 30392 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 30393 } 30394 30395 func (ec *executionContext) _Webhook_auth(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30396 defer func() { 30397 if r := recover(); r != nil { 30398 ec.Error(ctx, ec.Recover(ctx, r)) 30399 ret = graphql.Null 30400 } 30401 }() 30402 fc := &graphql.FieldContext{ 30403 Object: "Webhook", 30404 Field: field, 30405 Args: nil, 30406 IsMethod: false, 30407 } 30408 30409 ctx = graphql.WithFieldContext(ctx, fc) 30410 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30411 directive0 := func(rctx context.Context) (interface{}, error) { 30412 ctx = rctx // use context from middleware stack in children 30413 return obj.Auth, nil 30414 } 30415 directive1 := func(ctx context.Context) (interface{}, error) { 30416 path, err := ec.unmarshalNString2string(ctx, "graphql.field.webhooks.auth") 30417 if err != nil { 30418 return nil, err 30419 } 30420 if ec.directives.Sanitize == nil { 30421 return nil, errors.New("directive sanitize is not implemented") 30422 } 30423 return ec.directives.Sanitize(ctx, obj, directive0, path) 30424 } 30425 30426 tmp, err := directive1(rctx) 30427 if err != nil { 30428 return nil, err 30429 } 30430 if tmp == nil { 30431 return nil, nil 30432 } 30433 if data, ok := tmp.(*Auth); ok { 30434 return data, nil 30435 } 30436 return nil, fmt.Errorf(`unexpected type %T from directive, should be *github.com/kyma-incubator/compass/components/director/pkg/graphql.Auth`, tmp) 30437 }) 30438 if err != nil { 30439 ec.Error(ctx, err) 30440 return graphql.Null 30441 } 30442 if resTmp == nil { 30443 return graphql.Null 30444 } 30445 res := resTmp.(*Auth) 30446 fc.Result = res 30447 return ec.marshalOAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuth(ctx, field.Selections, res) 30448 } 30449 30450 func (ec *executionContext) _Webhook_urlTemplate(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30451 defer func() { 30452 if r := recover(); r != nil { 30453 ec.Error(ctx, ec.Recover(ctx, r)) 30454 ret = graphql.Null 30455 } 30456 }() 30457 fc := &graphql.FieldContext{ 30458 Object: "Webhook", 30459 Field: field, 30460 Args: nil, 30461 IsMethod: false, 30462 } 30463 30464 ctx = graphql.WithFieldContext(ctx, fc) 30465 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30466 ctx = rctx // use context from middleware stack in children 30467 return obj.URLTemplate, nil 30468 }) 30469 if err != nil { 30470 ec.Error(ctx, err) 30471 return graphql.Null 30472 } 30473 if resTmp == nil { 30474 return graphql.Null 30475 } 30476 res := resTmp.(*string) 30477 fc.Result = res 30478 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 30479 } 30480 30481 func (ec *executionContext) _Webhook_inputTemplate(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30482 defer func() { 30483 if r := recover(); r != nil { 30484 ec.Error(ctx, ec.Recover(ctx, r)) 30485 ret = graphql.Null 30486 } 30487 }() 30488 fc := &graphql.FieldContext{ 30489 Object: "Webhook", 30490 Field: field, 30491 Args: nil, 30492 IsMethod: false, 30493 } 30494 30495 ctx = graphql.WithFieldContext(ctx, fc) 30496 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30497 ctx = rctx // use context from middleware stack in children 30498 return obj.InputTemplate, nil 30499 }) 30500 if err != nil { 30501 ec.Error(ctx, err) 30502 return graphql.Null 30503 } 30504 if resTmp == nil { 30505 return graphql.Null 30506 } 30507 res := resTmp.(*string) 30508 fc.Result = res 30509 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 30510 } 30511 30512 func (ec *executionContext) _Webhook_headerTemplate(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30513 defer func() { 30514 if r := recover(); r != nil { 30515 ec.Error(ctx, ec.Recover(ctx, r)) 30516 ret = graphql.Null 30517 } 30518 }() 30519 fc := &graphql.FieldContext{ 30520 Object: "Webhook", 30521 Field: field, 30522 Args: nil, 30523 IsMethod: false, 30524 } 30525 30526 ctx = graphql.WithFieldContext(ctx, fc) 30527 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30528 ctx = rctx // use context from middleware stack in children 30529 return obj.HeaderTemplate, nil 30530 }) 30531 if err != nil { 30532 ec.Error(ctx, err) 30533 return graphql.Null 30534 } 30535 if resTmp == nil { 30536 return graphql.Null 30537 } 30538 res := resTmp.(*string) 30539 fc.Result = res 30540 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 30541 } 30542 30543 func (ec *executionContext) _Webhook_outputTemplate(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30544 defer func() { 30545 if r := recover(); r != nil { 30546 ec.Error(ctx, ec.Recover(ctx, r)) 30547 ret = graphql.Null 30548 } 30549 }() 30550 fc := &graphql.FieldContext{ 30551 Object: "Webhook", 30552 Field: field, 30553 Args: nil, 30554 IsMethod: false, 30555 } 30556 30557 ctx = graphql.WithFieldContext(ctx, fc) 30558 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30559 ctx = rctx // use context from middleware stack in children 30560 return obj.OutputTemplate, nil 30561 }) 30562 if err != nil { 30563 ec.Error(ctx, err) 30564 return graphql.Null 30565 } 30566 if resTmp == nil { 30567 return graphql.Null 30568 } 30569 res := resTmp.(*string) 30570 fc.Result = res 30571 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 30572 } 30573 30574 func (ec *executionContext) _Webhook_statusTemplate(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30575 defer func() { 30576 if r := recover(); r != nil { 30577 ec.Error(ctx, ec.Recover(ctx, r)) 30578 ret = graphql.Null 30579 } 30580 }() 30581 fc := &graphql.FieldContext{ 30582 Object: "Webhook", 30583 Field: field, 30584 Args: nil, 30585 IsMethod: false, 30586 } 30587 30588 ctx = graphql.WithFieldContext(ctx, fc) 30589 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30590 ctx = rctx // use context from middleware stack in children 30591 return obj.StatusTemplate, nil 30592 }) 30593 if err != nil { 30594 ec.Error(ctx, err) 30595 return graphql.Null 30596 } 30597 if resTmp == nil { 30598 return graphql.Null 30599 } 30600 res := resTmp.(*string) 30601 fc.Result = res 30602 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 30603 } 30604 30605 func (ec *executionContext) _Webhook_createdAt(ctx context.Context, field graphql.CollectedField, obj *Webhook) (ret graphql.Marshaler) { 30606 defer func() { 30607 if r := recover(); r != nil { 30608 ec.Error(ctx, ec.Recover(ctx, r)) 30609 ret = graphql.Null 30610 } 30611 }() 30612 fc := &graphql.FieldContext{ 30613 Object: "Webhook", 30614 Field: field, 30615 Args: nil, 30616 IsMethod: false, 30617 } 30618 30619 ctx = graphql.WithFieldContext(ctx, fc) 30620 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30621 ctx = rctx // use context from middleware stack in children 30622 return obj.CreatedAt, nil 30623 }) 30624 if err != nil { 30625 ec.Error(ctx, err) 30626 return graphql.Null 30627 } 30628 if resTmp == nil { 30629 return graphql.Null 30630 } 30631 res := resTmp.(*Timestamp) 30632 fc.Result = res 30633 return ec.marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, field.Selections, res) 30634 } 30635 30636 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 30637 defer func() { 30638 if r := recover(); r != nil { 30639 ec.Error(ctx, ec.Recover(ctx, r)) 30640 ret = graphql.Null 30641 } 30642 }() 30643 fc := &graphql.FieldContext{ 30644 Object: "__Directive", 30645 Field: field, 30646 Args: nil, 30647 IsMethod: false, 30648 } 30649 30650 ctx = graphql.WithFieldContext(ctx, fc) 30651 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30652 ctx = rctx // use context from middleware stack in children 30653 return obj.Name, nil 30654 }) 30655 if err != nil { 30656 ec.Error(ctx, err) 30657 return graphql.Null 30658 } 30659 if resTmp == nil { 30660 if !graphql.HasFieldError(ctx, fc) { 30661 ec.Errorf(ctx, "must not be null") 30662 } 30663 return graphql.Null 30664 } 30665 res := resTmp.(string) 30666 fc.Result = res 30667 return ec.marshalNString2string(ctx, field.Selections, res) 30668 } 30669 30670 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 30671 defer func() { 30672 if r := recover(); r != nil { 30673 ec.Error(ctx, ec.Recover(ctx, r)) 30674 ret = graphql.Null 30675 } 30676 }() 30677 fc := &graphql.FieldContext{ 30678 Object: "__Directive", 30679 Field: field, 30680 Args: nil, 30681 IsMethod: false, 30682 } 30683 30684 ctx = graphql.WithFieldContext(ctx, fc) 30685 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30686 ctx = rctx // use context from middleware stack in children 30687 return obj.Description, nil 30688 }) 30689 if err != nil { 30690 ec.Error(ctx, err) 30691 return graphql.Null 30692 } 30693 if resTmp == nil { 30694 return graphql.Null 30695 } 30696 res := resTmp.(string) 30697 fc.Result = res 30698 return ec.marshalOString2string(ctx, field.Selections, res) 30699 } 30700 30701 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 30702 defer func() { 30703 if r := recover(); r != nil { 30704 ec.Error(ctx, ec.Recover(ctx, r)) 30705 ret = graphql.Null 30706 } 30707 }() 30708 fc := &graphql.FieldContext{ 30709 Object: "__Directive", 30710 Field: field, 30711 Args: nil, 30712 IsMethod: false, 30713 } 30714 30715 ctx = graphql.WithFieldContext(ctx, fc) 30716 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30717 ctx = rctx // use context from middleware stack in children 30718 return obj.Locations, nil 30719 }) 30720 if err != nil { 30721 ec.Error(ctx, err) 30722 return graphql.Null 30723 } 30724 if resTmp == nil { 30725 if !graphql.HasFieldError(ctx, fc) { 30726 ec.Errorf(ctx, "must not be null") 30727 } 30728 return graphql.Null 30729 } 30730 res := resTmp.([]string) 30731 fc.Result = res 30732 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) 30733 } 30734 30735 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { 30736 defer func() { 30737 if r := recover(); r != nil { 30738 ec.Error(ctx, ec.Recover(ctx, r)) 30739 ret = graphql.Null 30740 } 30741 }() 30742 fc := &graphql.FieldContext{ 30743 Object: "__Directive", 30744 Field: field, 30745 Args: nil, 30746 IsMethod: false, 30747 } 30748 30749 ctx = graphql.WithFieldContext(ctx, fc) 30750 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30751 ctx = rctx // use context from middleware stack in children 30752 return obj.Args, nil 30753 }) 30754 if err != nil { 30755 ec.Error(ctx, err) 30756 return graphql.Null 30757 } 30758 if resTmp == nil { 30759 if !graphql.HasFieldError(ctx, fc) { 30760 ec.Errorf(ctx, "must not be null") 30761 } 30762 return graphql.Null 30763 } 30764 res := resTmp.([]introspection.InputValue) 30765 fc.Result = res 30766 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 30767 } 30768 30769 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 30770 defer func() { 30771 if r := recover(); r != nil { 30772 ec.Error(ctx, ec.Recover(ctx, r)) 30773 ret = graphql.Null 30774 } 30775 }() 30776 fc := &graphql.FieldContext{ 30777 Object: "__EnumValue", 30778 Field: field, 30779 Args: nil, 30780 IsMethod: false, 30781 } 30782 30783 ctx = graphql.WithFieldContext(ctx, fc) 30784 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30785 ctx = rctx // use context from middleware stack in children 30786 return obj.Name, nil 30787 }) 30788 if err != nil { 30789 ec.Error(ctx, err) 30790 return graphql.Null 30791 } 30792 if resTmp == nil { 30793 if !graphql.HasFieldError(ctx, fc) { 30794 ec.Errorf(ctx, "must not be null") 30795 } 30796 return graphql.Null 30797 } 30798 res := resTmp.(string) 30799 fc.Result = res 30800 return ec.marshalNString2string(ctx, field.Selections, res) 30801 } 30802 30803 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 30804 defer func() { 30805 if r := recover(); r != nil { 30806 ec.Error(ctx, ec.Recover(ctx, r)) 30807 ret = graphql.Null 30808 } 30809 }() 30810 fc := &graphql.FieldContext{ 30811 Object: "__EnumValue", 30812 Field: field, 30813 Args: nil, 30814 IsMethod: false, 30815 } 30816 30817 ctx = graphql.WithFieldContext(ctx, fc) 30818 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30819 ctx = rctx // use context from middleware stack in children 30820 return obj.Description, nil 30821 }) 30822 if err != nil { 30823 ec.Error(ctx, err) 30824 return graphql.Null 30825 } 30826 if resTmp == nil { 30827 return graphql.Null 30828 } 30829 res := resTmp.(string) 30830 fc.Result = res 30831 return ec.marshalOString2string(ctx, field.Selections, res) 30832 } 30833 30834 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 30835 defer func() { 30836 if r := recover(); r != nil { 30837 ec.Error(ctx, ec.Recover(ctx, r)) 30838 ret = graphql.Null 30839 } 30840 }() 30841 fc := &graphql.FieldContext{ 30842 Object: "__EnumValue", 30843 Field: field, 30844 Args: nil, 30845 IsMethod: true, 30846 } 30847 30848 ctx = graphql.WithFieldContext(ctx, fc) 30849 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30850 ctx = rctx // use context from middleware stack in children 30851 return obj.IsDeprecated(), nil 30852 }) 30853 if err != nil { 30854 ec.Error(ctx, err) 30855 return graphql.Null 30856 } 30857 if resTmp == nil { 30858 if !graphql.HasFieldError(ctx, fc) { 30859 ec.Errorf(ctx, "must not be null") 30860 } 30861 return graphql.Null 30862 } 30863 res := resTmp.(bool) 30864 fc.Result = res 30865 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 30866 } 30867 30868 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { 30869 defer func() { 30870 if r := recover(); r != nil { 30871 ec.Error(ctx, ec.Recover(ctx, r)) 30872 ret = graphql.Null 30873 } 30874 }() 30875 fc := &graphql.FieldContext{ 30876 Object: "__EnumValue", 30877 Field: field, 30878 Args: nil, 30879 IsMethod: true, 30880 } 30881 30882 ctx = graphql.WithFieldContext(ctx, fc) 30883 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30884 ctx = rctx // use context from middleware stack in children 30885 return obj.DeprecationReason(), nil 30886 }) 30887 if err != nil { 30888 ec.Error(ctx, err) 30889 return graphql.Null 30890 } 30891 if resTmp == nil { 30892 return graphql.Null 30893 } 30894 res := resTmp.(*string) 30895 fc.Result = res 30896 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 30897 } 30898 30899 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 30900 defer func() { 30901 if r := recover(); r != nil { 30902 ec.Error(ctx, ec.Recover(ctx, r)) 30903 ret = graphql.Null 30904 } 30905 }() 30906 fc := &graphql.FieldContext{ 30907 Object: "__Field", 30908 Field: field, 30909 Args: nil, 30910 IsMethod: false, 30911 } 30912 30913 ctx = graphql.WithFieldContext(ctx, fc) 30914 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30915 ctx = rctx // use context from middleware stack in children 30916 return obj.Name, nil 30917 }) 30918 if err != nil { 30919 ec.Error(ctx, err) 30920 return graphql.Null 30921 } 30922 if resTmp == nil { 30923 if !graphql.HasFieldError(ctx, fc) { 30924 ec.Errorf(ctx, "must not be null") 30925 } 30926 return graphql.Null 30927 } 30928 res := resTmp.(string) 30929 fc.Result = res 30930 return ec.marshalNString2string(ctx, field.Selections, res) 30931 } 30932 30933 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 30934 defer func() { 30935 if r := recover(); r != nil { 30936 ec.Error(ctx, ec.Recover(ctx, r)) 30937 ret = graphql.Null 30938 } 30939 }() 30940 fc := &graphql.FieldContext{ 30941 Object: "__Field", 30942 Field: field, 30943 Args: nil, 30944 IsMethod: false, 30945 } 30946 30947 ctx = graphql.WithFieldContext(ctx, fc) 30948 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30949 ctx = rctx // use context from middleware stack in children 30950 return obj.Description, nil 30951 }) 30952 if err != nil { 30953 ec.Error(ctx, err) 30954 return graphql.Null 30955 } 30956 if resTmp == nil { 30957 return graphql.Null 30958 } 30959 res := resTmp.(string) 30960 fc.Result = res 30961 return ec.marshalOString2string(ctx, field.Selections, res) 30962 } 30963 30964 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 30965 defer func() { 30966 if r := recover(); r != nil { 30967 ec.Error(ctx, ec.Recover(ctx, r)) 30968 ret = graphql.Null 30969 } 30970 }() 30971 fc := &graphql.FieldContext{ 30972 Object: "__Field", 30973 Field: field, 30974 Args: nil, 30975 IsMethod: false, 30976 } 30977 30978 ctx = graphql.WithFieldContext(ctx, fc) 30979 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 30980 ctx = rctx // use context from middleware stack in children 30981 return obj.Args, nil 30982 }) 30983 if err != nil { 30984 ec.Error(ctx, err) 30985 return graphql.Null 30986 } 30987 if resTmp == nil { 30988 if !graphql.HasFieldError(ctx, fc) { 30989 ec.Errorf(ctx, "must not be null") 30990 } 30991 return graphql.Null 30992 } 30993 res := resTmp.([]introspection.InputValue) 30994 fc.Result = res 30995 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 30996 } 30997 30998 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 30999 defer func() { 31000 if r := recover(); r != nil { 31001 ec.Error(ctx, ec.Recover(ctx, r)) 31002 ret = graphql.Null 31003 } 31004 }() 31005 fc := &graphql.FieldContext{ 31006 Object: "__Field", 31007 Field: field, 31008 Args: nil, 31009 IsMethod: false, 31010 } 31011 31012 ctx = graphql.WithFieldContext(ctx, fc) 31013 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31014 ctx = rctx // use context from middleware stack in children 31015 return obj.Type, nil 31016 }) 31017 if err != nil { 31018 ec.Error(ctx, err) 31019 return graphql.Null 31020 } 31021 if resTmp == nil { 31022 if !graphql.HasFieldError(ctx, fc) { 31023 ec.Errorf(ctx, "must not be null") 31024 } 31025 return graphql.Null 31026 } 31027 res := resTmp.(*introspection.Type) 31028 fc.Result = res 31029 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 31030 } 31031 31032 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 31033 defer func() { 31034 if r := recover(); r != nil { 31035 ec.Error(ctx, ec.Recover(ctx, r)) 31036 ret = graphql.Null 31037 } 31038 }() 31039 fc := &graphql.FieldContext{ 31040 Object: "__Field", 31041 Field: field, 31042 Args: nil, 31043 IsMethod: true, 31044 } 31045 31046 ctx = graphql.WithFieldContext(ctx, fc) 31047 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31048 ctx = rctx // use context from middleware stack in children 31049 return obj.IsDeprecated(), nil 31050 }) 31051 if err != nil { 31052 ec.Error(ctx, err) 31053 return graphql.Null 31054 } 31055 if resTmp == nil { 31056 if !graphql.HasFieldError(ctx, fc) { 31057 ec.Errorf(ctx, "must not be null") 31058 } 31059 return graphql.Null 31060 } 31061 res := resTmp.(bool) 31062 fc.Result = res 31063 return ec.marshalNBoolean2bool(ctx, field.Selections, res) 31064 } 31065 31066 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { 31067 defer func() { 31068 if r := recover(); r != nil { 31069 ec.Error(ctx, ec.Recover(ctx, r)) 31070 ret = graphql.Null 31071 } 31072 }() 31073 fc := &graphql.FieldContext{ 31074 Object: "__Field", 31075 Field: field, 31076 Args: nil, 31077 IsMethod: true, 31078 } 31079 31080 ctx = graphql.WithFieldContext(ctx, fc) 31081 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31082 ctx = rctx // use context from middleware stack in children 31083 return obj.DeprecationReason(), nil 31084 }) 31085 if err != nil { 31086 ec.Error(ctx, err) 31087 return graphql.Null 31088 } 31089 if resTmp == nil { 31090 return graphql.Null 31091 } 31092 res := resTmp.(*string) 31093 fc.Result = res 31094 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 31095 } 31096 31097 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 31098 defer func() { 31099 if r := recover(); r != nil { 31100 ec.Error(ctx, ec.Recover(ctx, r)) 31101 ret = graphql.Null 31102 } 31103 }() 31104 fc := &graphql.FieldContext{ 31105 Object: "__InputValue", 31106 Field: field, 31107 Args: nil, 31108 IsMethod: false, 31109 } 31110 31111 ctx = graphql.WithFieldContext(ctx, fc) 31112 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31113 ctx = rctx // use context from middleware stack in children 31114 return obj.Name, nil 31115 }) 31116 if err != nil { 31117 ec.Error(ctx, err) 31118 return graphql.Null 31119 } 31120 if resTmp == nil { 31121 if !graphql.HasFieldError(ctx, fc) { 31122 ec.Errorf(ctx, "must not be null") 31123 } 31124 return graphql.Null 31125 } 31126 res := resTmp.(string) 31127 fc.Result = res 31128 return ec.marshalNString2string(ctx, field.Selections, res) 31129 } 31130 31131 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 31132 defer func() { 31133 if r := recover(); r != nil { 31134 ec.Error(ctx, ec.Recover(ctx, r)) 31135 ret = graphql.Null 31136 } 31137 }() 31138 fc := &graphql.FieldContext{ 31139 Object: "__InputValue", 31140 Field: field, 31141 Args: nil, 31142 IsMethod: false, 31143 } 31144 31145 ctx = graphql.WithFieldContext(ctx, fc) 31146 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31147 ctx = rctx // use context from middleware stack in children 31148 return obj.Description, nil 31149 }) 31150 if err != nil { 31151 ec.Error(ctx, err) 31152 return graphql.Null 31153 } 31154 if resTmp == nil { 31155 return graphql.Null 31156 } 31157 res := resTmp.(string) 31158 fc.Result = res 31159 return ec.marshalOString2string(ctx, field.Selections, res) 31160 } 31161 31162 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 31163 defer func() { 31164 if r := recover(); r != nil { 31165 ec.Error(ctx, ec.Recover(ctx, r)) 31166 ret = graphql.Null 31167 } 31168 }() 31169 fc := &graphql.FieldContext{ 31170 Object: "__InputValue", 31171 Field: field, 31172 Args: nil, 31173 IsMethod: false, 31174 } 31175 31176 ctx = graphql.WithFieldContext(ctx, fc) 31177 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31178 ctx = rctx // use context from middleware stack in children 31179 return obj.Type, nil 31180 }) 31181 if err != nil { 31182 ec.Error(ctx, err) 31183 return graphql.Null 31184 } 31185 if resTmp == nil { 31186 if !graphql.HasFieldError(ctx, fc) { 31187 ec.Errorf(ctx, "must not be null") 31188 } 31189 return graphql.Null 31190 } 31191 res := resTmp.(*introspection.Type) 31192 fc.Result = res 31193 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 31194 } 31195 31196 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { 31197 defer func() { 31198 if r := recover(); r != nil { 31199 ec.Error(ctx, ec.Recover(ctx, r)) 31200 ret = graphql.Null 31201 } 31202 }() 31203 fc := &graphql.FieldContext{ 31204 Object: "__InputValue", 31205 Field: field, 31206 Args: nil, 31207 IsMethod: false, 31208 } 31209 31210 ctx = graphql.WithFieldContext(ctx, fc) 31211 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31212 ctx = rctx // use context from middleware stack in children 31213 return obj.DefaultValue, nil 31214 }) 31215 if err != nil { 31216 ec.Error(ctx, err) 31217 return graphql.Null 31218 } 31219 if resTmp == nil { 31220 return graphql.Null 31221 } 31222 res := resTmp.(*string) 31223 fc.Result = res 31224 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 31225 } 31226 31227 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 31228 defer func() { 31229 if r := recover(); r != nil { 31230 ec.Error(ctx, ec.Recover(ctx, r)) 31231 ret = graphql.Null 31232 } 31233 }() 31234 fc := &graphql.FieldContext{ 31235 Object: "__Schema", 31236 Field: field, 31237 Args: nil, 31238 IsMethod: true, 31239 } 31240 31241 ctx = graphql.WithFieldContext(ctx, fc) 31242 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31243 ctx = rctx // use context from middleware stack in children 31244 return obj.Types(), nil 31245 }) 31246 if err != nil { 31247 ec.Error(ctx, err) 31248 return graphql.Null 31249 } 31250 if resTmp == nil { 31251 if !graphql.HasFieldError(ctx, fc) { 31252 ec.Errorf(ctx, "must not be null") 31253 } 31254 return graphql.Null 31255 } 31256 res := resTmp.([]introspection.Type) 31257 fc.Result = res 31258 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 31259 } 31260 31261 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 31262 defer func() { 31263 if r := recover(); r != nil { 31264 ec.Error(ctx, ec.Recover(ctx, r)) 31265 ret = graphql.Null 31266 } 31267 }() 31268 fc := &graphql.FieldContext{ 31269 Object: "__Schema", 31270 Field: field, 31271 Args: nil, 31272 IsMethod: true, 31273 } 31274 31275 ctx = graphql.WithFieldContext(ctx, fc) 31276 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31277 ctx = rctx // use context from middleware stack in children 31278 return obj.QueryType(), nil 31279 }) 31280 if err != nil { 31281 ec.Error(ctx, err) 31282 return graphql.Null 31283 } 31284 if resTmp == nil { 31285 if !graphql.HasFieldError(ctx, fc) { 31286 ec.Errorf(ctx, "must not be null") 31287 } 31288 return graphql.Null 31289 } 31290 res := resTmp.(*introspection.Type) 31291 fc.Result = res 31292 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 31293 } 31294 31295 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 31296 defer func() { 31297 if r := recover(); r != nil { 31298 ec.Error(ctx, ec.Recover(ctx, r)) 31299 ret = graphql.Null 31300 } 31301 }() 31302 fc := &graphql.FieldContext{ 31303 Object: "__Schema", 31304 Field: field, 31305 Args: nil, 31306 IsMethod: true, 31307 } 31308 31309 ctx = graphql.WithFieldContext(ctx, fc) 31310 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31311 ctx = rctx // use context from middleware stack in children 31312 return obj.MutationType(), nil 31313 }) 31314 if err != nil { 31315 ec.Error(ctx, err) 31316 return graphql.Null 31317 } 31318 if resTmp == nil { 31319 return graphql.Null 31320 } 31321 res := resTmp.(*introspection.Type) 31322 fc.Result = res 31323 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 31324 } 31325 31326 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 31327 defer func() { 31328 if r := recover(); r != nil { 31329 ec.Error(ctx, ec.Recover(ctx, r)) 31330 ret = graphql.Null 31331 } 31332 }() 31333 fc := &graphql.FieldContext{ 31334 Object: "__Schema", 31335 Field: field, 31336 Args: nil, 31337 IsMethod: true, 31338 } 31339 31340 ctx = graphql.WithFieldContext(ctx, fc) 31341 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31342 ctx = rctx // use context from middleware stack in children 31343 return obj.SubscriptionType(), nil 31344 }) 31345 if err != nil { 31346 ec.Error(ctx, err) 31347 return graphql.Null 31348 } 31349 if resTmp == nil { 31350 return graphql.Null 31351 } 31352 res := resTmp.(*introspection.Type) 31353 fc.Result = res 31354 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 31355 } 31356 31357 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { 31358 defer func() { 31359 if r := recover(); r != nil { 31360 ec.Error(ctx, ec.Recover(ctx, r)) 31361 ret = graphql.Null 31362 } 31363 }() 31364 fc := &graphql.FieldContext{ 31365 Object: "__Schema", 31366 Field: field, 31367 Args: nil, 31368 IsMethod: true, 31369 } 31370 31371 ctx = graphql.WithFieldContext(ctx, fc) 31372 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31373 ctx = rctx // use context from middleware stack in children 31374 return obj.Directives(), nil 31375 }) 31376 if err != nil { 31377 ec.Error(ctx, err) 31378 return graphql.Null 31379 } 31380 if resTmp == nil { 31381 if !graphql.HasFieldError(ctx, fc) { 31382 ec.Errorf(ctx, "must not be null") 31383 } 31384 return graphql.Null 31385 } 31386 res := resTmp.([]introspection.Directive) 31387 fc.Result = res 31388 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) 31389 } 31390 31391 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 31392 defer func() { 31393 if r := recover(); r != nil { 31394 ec.Error(ctx, ec.Recover(ctx, r)) 31395 ret = graphql.Null 31396 } 31397 }() 31398 fc := &graphql.FieldContext{ 31399 Object: "__Type", 31400 Field: field, 31401 Args: nil, 31402 IsMethod: true, 31403 } 31404 31405 ctx = graphql.WithFieldContext(ctx, fc) 31406 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31407 ctx = rctx // use context from middleware stack in children 31408 return obj.Kind(), nil 31409 }) 31410 if err != nil { 31411 ec.Error(ctx, err) 31412 return graphql.Null 31413 } 31414 if resTmp == nil { 31415 if !graphql.HasFieldError(ctx, fc) { 31416 ec.Errorf(ctx, "must not be null") 31417 } 31418 return graphql.Null 31419 } 31420 res := resTmp.(string) 31421 fc.Result = res 31422 return ec.marshalN__TypeKind2string(ctx, field.Selections, res) 31423 } 31424 31425 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 31426 defer func() { 31427 if r := recover(); r != nil { 31428 ec.Error(ctx, ec.Recover(ctx, r)) 31429 ret = graphql.Null 31430 } 31431 }() 31432 fc := &graphql.FieldContext{ 31433 Object: "__Type", 31434 Field: field, 31435 Args: nil, 31436 IsMethod: true, 31437 } 31438 31439 ctx = graphql.WithFieldContext(ctx, fc) 31440 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31441 ctx = rctx // use context from middleware stack in children 31442 return obj.Name(), nil 31443 }) 31444 if err != nil { 31445 ec.Error(ctx, err) 31446 return graphql.Null 31447 } 31448 if resTmp == nil { 31449 return graphql.Null 31450 } 31451 res := resTmp.(*string) 31452 fc.Result = res 31453 return ec.marshalOString2ᚖstring(ctx, field.Selections, res) 31454 } 31455 31456 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 31457 defer func() { 31458 if r := recover(); r != nil { 31459 ec.Error(ctx, ec.Recover(ctx, r)) 31460 ret = graphql.Null 31461 } 31462 }() 31463 fc := &graphql.FieldContext{ 31464 Object: "__Type", 31465 Field: field, 31466 Args: nil, 31467 IsMethod: true, 31468 } 31469 31470 ctx = graphql.WithFieldContext(ctx, fc) 31471 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31472 ctx = rctx // use context from middleware stack in children 31473 return obj.Description(), nil 31474 }) 31475 if err != nil { 31476 ec.Error(ctx, err) 31477 return graphql.Null 31478 } 31479 if resTmp == nil { 31480 return graphql.Null 31481 } 31482 res := resTmp.(string) 31483 fc.Result = res 31484 return ec.marshalOString2string(ctx, field.Selections, res) 31485 } 31486 31487 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 31488 defer func() { 31489 if r := recover(); r != nil { 31490 ec.Error(ctx, ec.Recover(ctx, r)) 31491 ret = graphql.Null 31492 } 31493 }() 31494 fc := &graphql.FieldContext{ 31495 Object: "__Type", 31496 Field: field, 31497 Args: nil, 31498 IsMethod: true, 31499 } 31500 31501 ctx = graphql.WithFieldContext(ctx, fc) 31502 rawArgs := field.ArgumentMap(ec.Variables) 31503 args, err := ec.field___Type_fields_args(ctx, rawArgs) 31504 if err != nil { 31505 ec.Error(ctx, err) 31506 return graphql.Null 31507 } 31508 fc.Args = args 31509 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31510 ctx = rctx // use context from middleware stack in children 31511 return obj.Fields(args["includeDeprecated"].(bool)), nil 31512 }) 31513 if err != nil { 31514 ec.Error(ctx, err) 31515 return graphql.Null 31516 } 31517 if resTmp == nil { 31518 return graphql.Null 31519 } 31520 res := resTmp.([]introspection.Field) 31521 fc.Result = res 31522 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) 31523 } 31524 31525 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 31526 defer func() { 31527 if r := recover(); r != nil { 31528 ec.Error(ctx, ec.Recover(ctx, r)) 31529 ret = graphql.Null 31530 } 31531 }() 31532 fc := &graphql.FieldContext{ 31533 Object: "__Type", 31534 Field: field, 31535 Args: nil, 31536 IsMethod: true, 31537 } 31538 31539 ctx = graphql.WithFieldContext(ctx, fc) 31540 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31541 ctx = rctx // use context from middleware stack in children 31542 return obj.Interfaces(), nil 31543 }) 31544 if err != nil { 31545 ec.Error(ctx, err) 31546 return graphql.Null 31547 } 31548 if resTmp == nil { 31549 return graphql.Null 31550 } 31551 res := resTmp.([]introspection.Type) 31552 fc.Result = res 31553 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 31554 } 31555 31556 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 31557 defer func() { 31558 if r := recover(); r != nil { 31559 ec.Error(ctx, ec.Recover(ctx, r)) 31560 ret = graphql.Null 31561 } 31562 }() 31563 fc := &graphql.FieldContext{ 31564 Object: "__Type", 31565 Field: field, 31566 Args: nil, 31567 IsMethod: true, 31568 } 31569 31570 ctx = graphql.WithFieldContext(ctx, fc) 31571 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31572 ctx = rctx // use context from middleware stack in children 31573 return obj.PossibleTypes(), nil 31574 }) 31575 if err != nil { 31576 ec.Error(ctx, err) 31577 return graphql.Null 31578 } 31579 if resTmp == nil { 31580 return graphql.Null 31581 } 31582 res := resTmp.([]introspection.Type) 31583 fc.Result = res 31584 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) 31585 } 31586 31587 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 31588 defer func() { 31589 if r := recover(); r != nil { 31590 ec.Error(ctx, ec.Recover(ctx, r)) 31591 ret = graphql.Null 31592 } 31593 }() 31594 fc := &graphql.FieldContext{ 31595 Object: "__Type", 31596 Field: field, 31597 Args: nil, 31598 IsMethod: true, 31599 } 31600 31601 ctx = graphql.WithFieldContext(ctx, fc) 31602 rawArgs := field.ArgumentMap(ec.Variables) 31603 args, err := ec.field___Type_enumValues_args(ctx, rawArgs) 31604 if err != nil { 31605 ec.Error(ctx, err) 31606 return graphql.Null 31607 } 31608 fc.Args = args 31609 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31610 ctx = rctx // use context from middleware stack in children 31611 return obj.EnumValues(args["includeDeprecated"].(bool)), nil 31612 }) 31613 if err != nil { 31614 ec.Error(ctx, err) 31615 return graphql.Null 31616 } 31617 if resTmp == nil { 31618 return graphql.Null 31619 } 31620 res := resTmp.([]introspection.EnumValue) 31621 fc.Result = res 31622 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) 31623 } 31624 31625 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 31626 defer func() { 31627 if r := recover(); r != nil { 31628 ec.Error(ctx, ec.Recover(ctx, r)) 31629 ret = graphql.Null 31630 } 31631 }() 31632 fc := &graphql.FieldContext{ 31633 Object: "__Type", 31634 Field: field, 31635 Args: nil, 31636 IsMethod: true, 31637 } 31638 31639 ctx = graphql.WithFieldContext(ctx, fc) 31640 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31641 ctx = rctx // use context from middleware stack in children 31642 return obj.InputFields(), nil 31643 }) 31644 if err != nil { 31645 ec.Error(ctx, err) 31646 return graphql.Null 31647 } 31648 if resTmp == nil { 31649 return graphql.Null 31650 } 31651 res := resTmp.([]introspection.InputValue) 31652 fc.Result = res 31653 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) 31654 } 31655 31656 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { 31657 defer func() { 31658 if r := recover(); r != nil { 31659 ec.Error(ctx, ec.Recover(ctx, r)) 31660 ret = graphql.Null 31661 } 31662 }() 31663 fc := &graphql.FieldContext{ 31664 Object: "__Type", 31665 Field: field, 31666 Args: nil, 31667 IsMethod: true, 31668 } 31669 31670 ctx = graphql.WithFieldContext(ctx, fc) 31671 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { 31672 ctx = rctx // use context from middleware stack in children 31673 return obj.OfType(), nil 31674 }) 31675 if err != nil { 31676 ec.Error(ctx, err) 31677 return graphql.Null 31678 } 31679 if resTmp == nil { 31680 return graphql.Null 31681 } 31682 res := resTmp.(*introspection.Type) 31683 fc.Result = res 31684 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) 31685 } 31686 31687 // endregion **************************** field.gotpl ***************************** 31688 31689 // region **************************** input.gotpl ***************************** 31690 31691 func (ec *executionContext) unmarshalInputAPIDefinitionInput(ctx context.Context, obj interface{}) (APIDefinitionInput, error) { 31692 var it APIDefinitionInput 31693 var asMap = obj.(map[string]interface{}) 31694 31695 for k, v := range asMap { 31696 switch k { 31697 case "name": 31698 var err error 31699 it.Name, err = ec.unmarshalNString2string(ctx, v) 31700 if err != nil { 31701 return it, err 31702 } 31703 case "description": 31704 var err error 31705 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 31706 if err != nil { 31707 return it, err 31708 } 31709 case "targetURL": 31710 var err error 31711 it.TargetURL, err = ec.unmarshalNString2string(ctx, v) 31712 if err != nil { 31713 return it, err 31714 } 31715 case "group": 31716 var err error 31717 it.Group, err = ec.unmarshalOString2ᚖstring(ctx, v) 31718 if err != nil { 31719 return it, err 31720 } 31721 case "spec": 31722 var err error 31723 it.Spec, err = ec.unmarshalOAPISpecInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpecInput(ctx, v) 31724 if err != nil { 31725 return it, err 31726 } 31727 case "version": 31728 var err error 31729 it.Version, err = ec.unmarshalOVersionInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐVersionInput(ctx, v) 31730 if err != nil { 31731 return it, err 31732 } 31733 } 31734 } 31735 31736 return it, nil 31737 } 31738 31739 func (ec *executionContext) unmarshalInputAPISpecInput(ctx context.Context, obj interface{}) (APISpecInput, error) { 31740 var it APISpecInput 31741 var asMap = obj.(map[string]interface{}) 31742 31743 for k, v := range asMap { 31744 switch k { 31745 case "data": 31746 var err error 31747 it.Data, err = ec.unmarshalOCLOB2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx, v) 31748 if err != nil { 31749 return it, err 31750 } 31751 case "type": 31752 var err error 31753 it.Type, err = ec.unmarshalNAPISpecType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpecType(ctx, v) 31754 if err != nil { 31755 return it, err 31756 } 31757 case "format": 31758 var err error 31759 it.Format, err = ec.unmarshalNSpecFormat2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSpecFormat(ctx, v) 31760 if err != nil { 31761 return it, err 31762 } 31763 case "fetchRequest": 31764 var err error 31765 it.FetchRequest, err = ec.unmarshalOFetchRequestInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestInput(ctx, v) 31766 if err != nil { 31767 return it, err 31768 } 31769 } 31770 } 31771 31772 return it, nil 31773 } 31774 31775 func (ec *executionContext) unmarshalInputApplicationFromTemplateInput(ctx context.Context, obj interface{}) (ApplicationFromTemplateInput, error) { 31776 var it ApplicationFromTemplateInput 31777 var asMap = obj.(map[string]interface{}) 31778 31779 for k, v := range asMap { 31780 switch k { 31781 case "id": 31782 var err error 31783 it.ID, err = ec.unmarshalOID2ᚖstring(ctx, v) 31784 if err != nil { 31785 return it, err 31786 } 31787 case "templateName": 31788 var err error 31789 it.TemplateName, err = ec.unmarshalNString2string(ctx, v) 31790 if err != nil { 31791 return it, err 31792 } 31793 case "values": 31794 var err error 31795 it.Values, err = ec.unmarshalOTemplateValueInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTemplateValueInput(ctx, v) 31796 if err != nil { 31797 return it, err 31798 } 31799 case "placeholdersPayload": 31800 var err error 31801 it.PlaceholdersPayload, err = ec.unmarshalOString2ᚖstring(ctx, v) 31802 if err != nil { 31803 return it, err 31804 } 31805 case "labels": 31806 var err error 31807 it.Labels, err = ec.unmarshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, v) 31808 if err != nil { 31809 return it, err 31810 } 31811 } 31812 } 31813 31814 return it, nil 31815 } 31816 31817 func (ec *executionContext) unmarshalInputApplicationJSONInput(ctx context.Context, obj interface{}) (ApplicationJSONInput, error) { 31818 var it ApplicationJSONInput 31819 var asMap = obj.(map[string]interface{}) 31820 31821 for k, v := range asMap { 31822 switch k { 31823 case "name": 31824 var err error 31825 it.Name, err = ec.unmarshalNString2string(ctx, v) 31826 if err != nil { 31827 return it, err 31828 } 31829 case "providerName": 31830 var err error 31831 it.ProviderName, err = ec.unmarshalOString2ᚖstring(ctx, v) 31832 if err != nil { 31833 return it, err 31834 } 31835 case "description": 31836 var err error 31837 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 31838 if err != nil { 31839 return it, err 31840 } 31841 case "labels": 31842 var err error 31843 it.Labels, err = ec.unmarshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, v) 31844 if err != nil { 31845 return it, err 31846 } 31847 case "webhooks": 31848 var err error 31849 it.Webhooks, err = ec.unmarshalOWebhookInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInputᚄ(ctx, v) 31850 if err != nil { 31851 return it, err 31852 } 31853 case "healthCheckURL": 31854 var err error 31855 it.HealthCheckURL, err = ec.unmarshalOString2ᚖstring(ctx, v) 31856 if err != nil { 31857 return it, err 31858 } 31859 case "baseUrl": 31860 var err error 31861 it.BaseURL, err = ec.unmarshalOString2ᚖstring(ctx, v) 31862 if err != nil { 31863 return it, err 31864 } 31865 case "applicationNamespace": 31866 var err error 31867 it.ApplicationNamespace, err = ec.unmarshalOString2ᚖstring(ctx, v) 31868 if err != nil { 31869 return it, err 31870 } 31871 case "integrationSystemID": 31872 var err error 31873 it.IntegrationSystemID, err = ec.unmarshalOID2ᚖstring(ctx, v) 31874 if err != nil { 31875 return it, err 31876 } 31877 case "statusCondition": 31878 var err error 31879 it.StatusCondition, err = ec.unmarshalOApplicationStatusCondition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx, v) 31880 if err != nil { 31881 return it, err 31882 } 31883 case "localTenantID": 31884 var err error 31885 it.LocalTenantID, err = ec.unmarshalOString2ᚖstring(ctx, v) 31886 if err != nil { 31887 return it, err 31888 } 31889 case "bundles": 31890 var err error 31891 it.Bundles, err = ec.unmarshalOBundleCreateInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleCreateInputᚄ(ctx, v) 31892 if err != nil { 31893 return it, err 31894 } 31895 } 31896 } 31897 31898 return it, nil 31899 } 31900 31901 func (ec *executionContext) unmarshalInputApplicationRegisterInput(ctx context.Context, obj interface{}) (ApplicationRegisterInput, error) { 31902 var it ApplicationRegisterInput 31903 var asMap = obj.(map[string]interface{}) 31904 31905 for k, v := range asMap { 31906 switch k { 31907 case "name": 31908 var err error 31909 it.Name, err = ec.unmarshalNString2string(ctx, v) 31910 if err != nil { 31911 return it, err 31912 } 31913 case "providerName": 31914 var err error 31915 it.ProviderName, err = ec.unmarshalOString2ᚖstring(ctx, v) 31916 if err != nil { 31917 return it, err 31918 } 31919 case "description": 31920 var err error 31921 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 31922 if err != nil { 31923 return it, err 31924 } 31925 case "labels": 31926 var err error 31927 it.Labels, err = ec.unmarshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, v) 31928 if err != nil { 31929 return it, err 31930 } 31931 case "webhooks": 31932 var err error 31933 it.Webhooks, err = ec.unmarshalOWebhookInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInputᚄ(ctx, v) 31934 if err != nil { 31935 return it, err 31936 } 31937 case "healthCheckURL": 31938 var err error 31939 it.HealthCheckURL, err = ec.unmarshalOString2ᚖstring(ctx, v) 31940 if err != nil { 31941 return it, err 31942 } 31943 case "baseUrl": 31944 var err error 31945 it.BaseURL, err = ec.unmarshalOString2ᚖstring(ctx, v) 31946 if err != nil { 31947 return it, err 31948 } 31949 case "applicationNamespace": 31950 var err error 31951 it.ApplicationNamespace, err = ec.unmarshalOString2ᚖstring(ctx, v) 31952 if err != nil { 31953 return it, err 31954 } 31955 case "integrationSystemID": 31956 var err error 31957 it.IntegrationSystemID, err = ec.unmarshalOID2ᚖstring(ctx, v) 31958 if err != nil { 31959 return it, err 31960 } 31961 case "statusCondition": 31962 var err error 31963 it.StatusCondition, err = ec.unmarshalOApplicationStatusCondition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx, v) 31964 if err != nil { 31965 return it, err 31966 } 31967 case "localTenantID": 31968 var err error 31969 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } 31970 directive1 := func(ctx context.Context) (interface{}, error) { 31971 path, err := ec.unmarshalNString2string(ctx, "graphql.input.application.localTenantID") 31972 if err != nil { 31973 return nil, err 31974 } 31975 if ec.directives.HasScopes == nil { 31976 return nil, errors.New("directive hasScopes is not implemented") 31977 } 31978 return ec.directives.HasScopes(ctx, obj, directive0, path) 31979 } 31980 31981 tmp, err := directive1(ctx) 31982 if err != nil { 31983 return it, err 31984 } 31985 if data, ok := tmp.(*string); ok { 31986 it.LocalTenantID = data 31987 } else if tmp == nil { 31988 it.LocalTenantID = nil 31989 } else { 31990 return it, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 31991 } 31992 case "bundles": 31993 var err error 31994 it.Bundles, err = ec.unmarshalOBundleCreateInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleCreateInputᚄ(ctx, v) 31995 if err != nil { 31996 return it, err 31997 } 31998 } 31999 } 32000 32001 return it, nil 32002 } 32003 32004 func (ec *executionContext) unmarshalInputApplicationTemplateInput(ctx context.Context, obj interface{}) (ApplicationTemplateInput, error) { 32005 var it ApplicationTemplateInput 32006 var asMap = obj.(map[string]interface{}) 32007 32008 for k, v := range asMap { 32009 switch k { 32010 case "name": 32011 var err error 32012 it.Name, err = ec.unmarshalNString2string(ctx, v) 32013 if err != nil { 32014 return it, err 32015 } 32016 case "webhooks": 32017 var err error 32018 it.Webhooks, err = ec.unmarshalOWebhookInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInputᚄ(ctx, v) 32019 if err != nil { 32020 return it, err 32021 } 32022 case "description": 32023 var err error 32024 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 32025 if err != nil { 32026 return it, err 32027 } 32028 case "labels": 32029 var err error 32030 it.Labels, err = ec.unmarshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, v) 32031 if err != nil { 32032 return it, err 32033 } 32034 case "applicationInput": 32035 var err error 32036 it.ApplicationInput, err = ec.unmarshalNApplicationJSONInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationJSONInput(ctx, v) 32037 if err != nil { 32038 return it, err 32039 } 32040 case "placeholders": 32041 var err error 32042 it.Placeholders, err = ec.unmarshalOPlaceholderDefinitionInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinitionInputᚄ(ctx, v) 32043 if err != nil { 32044 return it, err 32045 } 32046 case "accessLevel": 32047 var err error 32048 it.AccessLevel, err = ec.unmarshalNApplicationTemplateAccessLevel2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateAccessLevel(ctx, v) 32049 if err != nil { 32050 return it, err 32051 } 32052 case "applicationNamespace": 32053 var err error 32054 it.ApplicationNamespace, err = ec.unmarshalOString2ᚖstring(ctx, v) 32055 if err != nil { 32056 return it, err 32057 } 32058 } 32059 } 32060 32061 return it, nil 32062 } 32063 32064 func (ec *executionContext) unmarshalInputApplicationTemplateUpdateInput(ctx context.Context, obj interface{}) (ApplicationTemplateUpdateInput, error) { 32065 var it ApplicationTemplateUpdateInput 32066 var asMap = obj.(map[string]interface{}) 32067 32068 for k, v := range asMap { 32069 switch k { 32070 case "name": 32071 var err error 32072 it.Name, err = ec.unmarshalNString2string(ctx, v) 32073 if err != nil { 32074 return it, err 32075 } 32076 case "webhooks": 32077 var err error 32078 it.Webhooks, err = ec.unmarshalOWebhookInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInputᚄ(ctx, v) 32079 if err != nil { 32080 return it, err 32081 } 32082 case "description": 32083 var err error 32084 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 32085 if err != nil { 32086 return it, err 32087 } 32088 case "applicationInput": 32089 var err error 32090 it.ApplicationInput, err = ec.unmarshalNApplicationJSONInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationJSONInput(ctx, v) 32091 if err != nil { 32092 return it, err 32093 } 32094 case "placeholders": 32095 var err error 32096 it.Placeholders, err = ec.unmarshalOPlaceholderDefinitionInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinitionInputᚄ(ctx, v) 32097 if err != nil { 32098 return it, err 32099 } 32100 case "labels": 32101 var err error 32102 directive0 := func(ctx context.Context) (interface{}, error) { 32103 return ec.unmarshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, v) 32104 } 32105 directive1 := func(ctx context.Context) (interface{}, error) { 32106 path, err := ec.unmarshalNString2string(ctx, "graphql.input.application_template.labels") 32107 if err != nil { 32108 return nil, err 32109 } 32110 if ec.directives.HasScopes == nil { 32111 return nil, errors.New("directive hasScopes is not implemented") 32112 } 32113 return ec.directives.HasScopes(ctx, obj, directive0, path) 32114 } 32115 32116 tmp, err := directive1(ctx) 32117 if err != nil { 32118 return it, err 32119 } 32120 if data, ok := tmp.(Labels); ok { 32121 it.Labels = data 32122 } else if tmp == nil { 32123 it.Labels = nil 32124 } else { 32125 return it, fmt.Errorf(`unexpected type %T from directive, should be github.com/kyma-incubator/compass/components/director/pkg/graphql.Labels`, tmp) 32126 } 32127 case "accessLevel": 32128 var err error 32129 it.AccessLevel, err = ec.unmarshalNApplicationTemplateAccessLevel2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateAccessLevel(ctx, v) 32130 if err != nil { 32131 return it, err 32132 } 32133 case "applicationNamespace": 32134 var err error 32135 it.ApplicationNamespace, err = ec.unmarshalOString2ᚖstring(ctx, v) 32136 if err != nil { 32137 return it, err 32138 } 32139 } 32140 } 32141 32142 return it, nil 32143 } 32144 32145 func (ec *executionContext) unmarshalInputApplicationUpdateInput(ctx context.Context, obj interface{}) (ApplicationUpdateInput, error) { 32146 var it ApplicationUpdateInput 32147 var asMap = obj.(map[string]interface{}) 32148 32149 for k, v := range asMap { 32150 switch k { 32151 case "providerName": 32152 var err error 32153 it.ProviderName, err = ec.unmarshalOString2ᚖstring(ctx, v) 32154 if err != nil { 32155 return it, err 32156 } 32157 case "description": 32158 var err error 32159 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 32160 if err != nil { 32161 return it, err 32162 } 32163 case "healthCheckURL": 32164 var err error 32165 it.HealthCheckURL, err = ec.unmarshalOString2ᚖstring(ctx, v) 32166 if err != nil { 32167 return it, err 32168 } 32169 case "baseUrl": 32170 var err error 32171 it.BaseURL, err = ec.unmarshalOString2ᚖstring(ctx, v) 32172 if err != nil { 32173 return it, err 32174 } 32175 case "applicationNamespace": 32176 var err error 32177 it.ApplicationNamespace, err = ec.unmarshalOString2ᚖstring(ctx, v) 32178 if err != nil { 32179 return it, err 32180 } 32181 case "integrationSystemID": 32182 var err error 32183 it.IntegrationSystemID, err = ec.unmarshalOID2ᚖstring(ctx, v) 32184 if err != nil { 32185 return it, err 32186 } 32187 case "statusCondition": 32188 var err error 32189 it.StatusCondition, err = ec.unmarshalOApplicationStatusCondition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx, v) 32190 if err != nil { 32191 return it, err 32192 } 32193 case "localTenantID": 32194 var err error 32195 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } 32196 directive1 := func(ctx context.Context) (interface{}, error) { 32197 path, err := ec.unmarshalNString2string(ctx, "graphql.input.application.localTenantID") 32198 if err != nil { 32199 return nil, err 32200 } 32201 if ec.directives.HasScopes == nil { 32202 return nil, errors.New("directive hasScopes is not implemented") 32203 } 32204 return ec.directives.HasScopes(ctx, obj, directive0, path) 32205 } 32206 32207 tmp, err := directive1(ctx) 32208 if err != nil { 32209 return it, err 32210 } 32211 if data, ok := tmp.(*string); ok { 32212 it.LocalTenantID = data 32213 } else if tmp == nil { 32214 it.LocalTenantID = nil 32215 } else { 32216 return it, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 32217 } 32218 } 32219 } 32220 32221 return it, nil 32222 } 32223 32224 func (ec *executionContext) unmarshalInputAuthInput(ctx context.Context, obj interface{}) (AuthInput, error) { 32225 var it AuthInput 32226 var asMap = obj.(map[string]interface{}) 32227 32228 for k, v := range asMap { 32229 switch k { 32230 case "credential": 32231 var err error 32232 it.Credential, err = ec.unmarshalOCredentialDataInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialDataInput(ctx, v) 32233 if err != nil { 32234 return it, err 32235 } 32236 case "accessStrategy": 32237 var err error 32238 it.AccessStrategy, err = ec.unmarshalOString2ᚖstring(ctx, v) 32239 if err != nil { 32240 return it, err 32241 } 32242 case "additionalHeaders": 32243 var err error 32244 it.AdditionalHeaders, err = ec.unmarshalOHttpHeaders2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeaders(ctx, v) 32245 if err != nil { 32246 return it, err 32247 } 32248 case "additionalHeadersSerialized": 32249 var err error 32250 it.AdditionalHeadersSerialized, err = ec.unmarshalOHttpHeadersSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeadersSerialized(ctx, v) 32251 if err != nil { 32252 return it, err 32253 } 32254 case "additionalQueryParams": 32255 var err error 32256 it.AdditionalQueryParams, err = ec.unmarshalOQueryParams2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParams(ctx, v) 32257 if err != nil { 32258 return it, err 32259 } 32260 case "additionalQueryParamsSerialized": 32261 var err error 32262 it.AdditionalQueryParamsSerialized, err = ec.unmarshalOQueryParamsSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParamsSerialized(ctx, v) 32263 if err != nil { 32264 return it, err 32265 } 32266 case "requestAuth": 32267 var err error 32268 it.RequestAuth, err = ec.unmarshalOCredentialRequestAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialRequestAuthInput(ctx, v) 32269 if err != nil { 32270 return it, err 32271 } 32272 case "certCommonName": 32273 var err error 32274 it.CertCommonName, err = ec.unmarshalOString2ᚖstring(ctx, v) 32275 if err != nil { 32276 return it, err 32277 } 32278 case "oneTimeToken": 32279 var err error 32280 it.OneTimeToken, err = ec.unmarshalOOneTimeTokenInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenInput(ctx, v) 32281 if err != nil { 32282 return it, err 32283 } 32284 } 32285 } 32286 32287 return it, nil 32288 } 32289 32290 func (ec *executionContext) unmarshalInputBasicCredentialDataInput(ctx context.Context, obj interface{}) (BasicCredentialDataInput, error) { 32291 var it BasicCredentialDataInput 32292 var asMap = obj.(map[string]interface{}) 32293 32294 for k, v := range asMap { 32295 switch k { 32296 case "username": 32297 var err error 32298 it.Username, err = ec.unmarshalNString2string(ctx, v) 32299 if err != nil { 32300 return it, err 32301 } 32302 case "password": 32303 var err error 32304 it.Password, err = ec.unmarshalNString2string(ctx, v) 32305 if err != nil { 32306 return it, err 32307 } 32308 } 32309 } 32310 32311 return it, nil 32312 } 32313 32314 func (ec *executionContext) unmarshalInputBundleCreateInput(ctx context.Context, obj interface{}) (BundleCreateInput, error) { 32315 var it BundleCreateInput 32316 var asMap = obj.(map[string]interface{}) 32317 32318 for k, v := range asMap { 32319 switch k { 32320 case "name": 32321 var err error 32322 it.Name, err = ec.unmarshalNString2string(ctx, v) 32323 if err != nil { 32324 return it, err 32325 } 32326 case "description": 32327 var err error 32328 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 32329 if err != nil { 32330 return it, err 32331 } 32332 case "instanceAuthRequestInputSchema": 32333 var err error 32334 it.InstanceAuthRequestInputSchema, err = ec.unmarshalOJSONSchema2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSONSchema(ctx, v) 32335 if err != nil { 32336 return it, err 32337 } 32338 case "defaultInstanceAuth": 32339 var err error 32340 it.DefaultInstanceAuth, err = ec.unmarshalOAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, v) 32341 if err != nil { 32342 return it, err 32343 } 32344 case "apiDefinitions": 32345 var err error 32346 it.APIDefinitions, err = ec.unmarshalOAPIDefinitionInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionInputᚄ(ctx, v) 32347 if err != nil { 32348 return it, err 32349 } 32350 case "eventDefinitions": 32351 var err error 32352 it.EventDefinitions, err = ec.unmarshalOEventDefinitionInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionInputᚄ(ctx, v) 32353 if err != nil { 32354 return it, err 32355 } 32356 case "documents": 32357 var err error 32358 it.Documents, err = ec.unmarshalODocumentInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentInputᚄ(ctx, v) 32359 if err != nil { 32360 return it, err 32361 } 32362 case "correlationIDs": 32363 var err error 32364 it.CorrelationIDs, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) 32365 if err != nil { 32366 return it, err 32367 } 32368 } 32369 } 32370 32371 return it, nil 32372 } 32373 32374 func (ec *executionContext) unmarshalInputBundleInstanceAuthCreateInput(ctx context.Context, obj interface{}) (BundleInstanceAuthCreateInput, error) { 32375 var it BundleInstanceAuthCreateInput 32376 var asMap = obj.(map[string]interface{}) 32377 32378 for k, v := range asMap { 32379 switch k { 32380 case "context": 32381 var err error 32382 it.Context, err = ec.unmarshalOJSON2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx, v) 32383 if err != nil { 32384 return it, err 32385 } 32386 case "inputParams": 32387 var err error 32388 it.InputParams, err = ec.unmarshalOJSON2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx, v) 32389 if err != nil { 32390 return it, err 32391 } 32392 case "auth": 32393 var err error 32394 it.Auth, err = ec.unmarshalNAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, v) 32395 if err != nil { 32396 return it, err 32397 } 32398 case "runtimeID": 32399 var err error 32400 it.RuntimeID, err = ec.unmarshalOID2ᚖstring(ctx, v) 32401 if err != nil { 32402 return it, err 32403 } 32404 case "runtimeContextID": 32405 var err error 32406 it.RuntimeContextID, err = ec.unmarshalOID2ᚖstring(ctx, v) 32407 if err != nil { 32408 return it, err 32409 } 32410 } 32411 } 32412 32413 return it, nil 32414 } 32415 32416 func (ec *executionContext) unmarshalInputBundleInstanceAuthRequestInput(ctx context.Context, obj interface{}) (BundleInstanceAuthRequestInput, error) { 32417 var it BundleInstanceAuthRequestInput 32418 var asMap = obj.(map[string]interface{}) 32419 32420 for k, v := range asMap { 32421 switch k { 32422 case "id": 32423 var err error 32424 it.ID, err = ec.unmarshalOID2ᚖstring(ctx, v) 32425 if err != nil { 32426 return it, err 32427 } 32428 case "context": 32429 var err error 32430 it.Context, err = ec.unmarshalOJSON2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx, v) 32431 if err != nil { 32432 return it, err 32433 } 32434 case "inputParams": 32435 var err error 32436 it.InputParams, err = ec.unmarshalOJSON2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx, v) 32437 if err != nil { 32438 return it, err 32439 } 32440 } 32441 } 32442 32443 return it, nil 32444 } 32445 32446 func (ec *executionContext) unmarshalInputBundleInstanceAuthSetInput(ctx context.Context, obj interface{}) (BundleInstanceAuthSetInput, error) { 32447 var it BundleInstanceAuthSetInput 32448 var asMap = obj.(map[string]interface{}) 32449 32450 for k, v := range asMap { 32451 switch k { 32452 case "auth": 32453 var err error 32454 it.Auth, err = ec.unmarshalOAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, v) 32455 if err != nil { 32456 return it, err 32457 } 32458 case "status": 32459 var err error 32460 it.Status, err = ec.unmarshalOBundleInstanceAuthStatusInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthStatusInput(ctx, v) 32461 if err != nil { 32462 return it, err 32463 } 32464 } 32465 } 32466 32467 return it, nil 32468 } 32469 32470 func (ec *executionContext) unmarshalInputBundleInstanceAuthStatusInput(ctx context.Context, obj interface{}) (BundleInstanceAuthStatusInput, error) { 32471 var it BundleInstanceAuthStatusInput 32472 var asMap = obj.(map[string]interface{}) 32473 32474 if _, present := asMap["condition"]; !present { 32475 asMap["condition"] = "SUCCEEDED" 32476 } 32477 32478 for k, v := range asMap { 32479 switch k { 32480 case "condition": 32481 var err error 32482 it.Condition, err = ec.unmarshalNBundleInstanceAuthSetStatusConditionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthSetStatusConditionInput(ctx, v) 32483 if err != nil { 32484 return it, err 32485 } 32486 case "message": 32487 var err error 32488 it.Message, err = ec.unmarshalNString2string(ctx, v) 32489 if err != nil { 32490 return it, err 32491 } 32492 case "reason": 32493 var err error 32494 it.Reason, err = ec.unmarshalNString2string(ctx, v) 32495 if err != nil { 32496 return it, err 32497 } 32498 } 32499 } 32500 32501 return it, nil 32502 } 32503 32504 func (ec *executionContext) unmarshalInputBundleInstanceAuthUpdateInput(ctx context.Context, obj interface{}) (BundleInstanceAuthUpdateInput, error) { 32505 var it BundleInstanceAuthUpdateInput 32506 var asMap = obj.(map[string]interface{}) 32507 32508 for k, v := range asMap { 32509 switch k { 32510 case "context": 32511 var err error 32512 it.Context, err = ec.unmarshalOJSON2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx, v) 32513 if err != nil { 32514 return it, err 32515 } 32516 case "inputParams": 32517 var err error 32518 it.InputParams, err = ec.unmarshalOJSON2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx, v) 32519 if err != nil { 32520 return it, err 32521 } 32522 case "auth": 32523 var err error 32524 it.Auth, err = ec.unmarshalOAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, v) 32525 if err != nil { 32526 return it, err 32527 } 32528 } 32529 } 32530 32531 return it, nil 32532 } 32533 32534 func (ec *executionContext) unmarshalInputBundleUpdateInput(ctx context.Context, obj interface{}) (BundleUpdateInput, error) { 32535 var it BundleUpdateInput 32536 var asMap = obj.(map[string]interface{}) 32537 32538 for k, v := range asMap { 32539 switch k { 32540 case "name": 32541 var err error 32542 it.Name, err = ec.unmarshalNString2string(ctx, v) 32543 if err != nil { 32544 return it, err 32545 } 32546 case "description": 32547 var err error 32548 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 32549 if err != nil { 32550 return it, err 32551 } 32552 case "instanceAuthRequestInputSchema": 32553 var err error 32554 it.InstanceAuthRequestInputSchema, err = ec.unmarshalOJSONSchema2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSONSchema(ctx, v) 32555 if err != nil { 32556 return it, err 32557 } 32558 case "defaultInstanceAuth": 32559 var err error 32560 it.DefaultInstanceAuth, err = ec.unmarshalOAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, v) 32561 if err != nil { 32562 return it, err 32563 } 32564 } 32565 } 32566 32567 return it, nil 32568 } 32569 32570 func (ec *executionContext) unmarshalInputBusinessTenantMappingInput(ctx context.Context, obj interface{}) (BusinessTenantMappingInput, error) { 32571 var it BusinessTenantMappingInput 32572 var asMap = obj.(map[string]interface{}) 32573 32574 for k, v := range asMap { 32575 switch k { 32576 case "name": 32577 var err error 32578 it.Name, err = ec.unmarshalNString2string(ctx, v) 32579 if err != nil { 32580 return it, err 32581 } 32582 case "externalTenant": 32583 var err error 32584 it.ExternalTenant, err = ec.unmarshalNString2string(ctx, v) 32585 if err != nil { 32586 return it, err 32587 } 32588 case "parent": 32589 var err error 32590 it.Parent, err = ec.unmarshalOString2ᚖstring(ctx, v) 32591 if err != nil { 32592 return it, err 32593 } 32594 case "subdomain": 32595 var err error 32596 it.Subdomain, err = ec.unmarshalOString2ᚖstring(ctx, v) 32597 if err != nil { 32598 return it, err 32599 } 32600 case "region": 32601 var err error 32602 it.Region, err = ec.unmarshalOString2ᚖstring(ctx, v) 32603 if err != nil { 32604 return it, err 32605 } 32606 case "type": 32607 var err error 32608 it.Type, err = ec.unmarshalNString2string(ctx, v) 32609 if err != nil { 32610 return it, err 32611 } 32612 case "provider": 32613 var err error 32614 it.Provider, err = ec.unmarshalNString2string(ctx, v) 32615 if err != nil { 32616 return it, err 32617 } 32618 case "licenseType": 32619 var err error 32620 it.LicenseType, err = ec.unmarshalOString2ᚖstring(ctx, v) 32621 if err != nil { 32622 return it, err 32623 } 32624 } 32625 } 32626 32627 return it, nil 32628 } 32629 32630 func (ec *executionContext) unmarshalInputCSRFTokenCredentialRequestAuthInput(ctx context.Context, obj interface{}) (CSRFTokenCredentialRequestAuthInput, error) { 32631 var it CSRFTokenCredentialRequestAuthInput 32632 var asMap = obj.(map[string]interface{}) 32633 32634 for k, v := range asMap { 32635 switch k { 32636 case "tokenEndpointURL": 32637 var err error 32638 it.TokenEndpointURL, err = ec.unmarshalNString2string(ctx, v) 32639 if err != nil { 32640 return it, err 32641 } 32642 case "credential": 32643 var err error 32644 it.Credential, err = ec.unmarshalOCredentialDataInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialDataInput(ctx, v) 32645 if err != nil { 32646 return it, err 32647 } 32648 case "additionalHeaders": 32649 var err error 32650 it.AdditionalHeaders, err = ec.unmarshalOHttpHeaders2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeaders(ctx, v) 32651 if err != nil { 32652 return it, err 32653 } 32654 case "additionalHeadersSerialized": 32655 var err error 32656 it.AdditionalHeadersSerialized, err = ec.unmarshalOHttpHeadersSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeadersSerialized(ctx, v) 32657 if err != nil { 32658 return it, err 32659 } 32660 case "additionalQueryParams": 32661 var err error 32662 it.AdditionalQueryParams, err = ec.unmarshalOQueryParams2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParams(ctx, v) 32663 if err != nil { 32664 return it, err 32665 } 32666 case "additionalQueryParamsSerialized": 32667 var err error 32668 it.AdditionalQueryParamsSerialized, err = ec.unmarshalOQueryParamsSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParamsSerialized(ctx, v) 32669 if err != nil { 32670 return it, err 32671 } 32672 } 32673 } 32674 32675 return it, nil 32676 } 32677 32678 func (ec *executionContext) unmarshalInputCertificateOAuthCredentialDataInput(ctx context.Context, obj interface{}) (CertificateOAuthCredentialDataInput, error) { 32679 var it CertificateOAuthCredentialDataInput 32680 var asMap = obj.(map[string]interface{}) 32681 32682 for k, v := range asMap { 32683 switch k { 32684 case "clientId": 32685 var err error 32686 it.ClientID, err = ec.unmarshalNID2string(ctx, v) 32687 if err != nil { 32688 return it, err 32689 } 32690 case "certificate": 32691 var err error 32692 it.Certificate, err = ec.unmarshalNString2string(ctx, v) 32693 if err != nil { 32694 return it, err 32695 } 32696 case "url": 32697 var err error 32698 it.URL, err = ec.unmarshalNString2string(ctx, v) 32699 if err != nil { 32700 return it, err 32701 } 32702 } 32703 } 32704 32705 return it, nil 32706 } 32707 32708 func (ec *executionContext) unmarshalInputCertificateSubjectMappingInput(ctx context.Context, obj interface{}) (CertificateSubjectMappingInput, error) { 32709 var it CertificateSubjectMappingInput 32710 var asMap = obj.(map[string]interface{}) 32711 32712 for k, v := range asMap { 32713 switch k { 32714 case "subject": 32715 var err error 32716 it.Subject, err = ec.unmarshalNString2string(ctx, v) 32717 if err != nil { 32718 return it, err 32719 } 32720 case "consumerType": 32721 var err error 32722 it.ConsumerType, err = ec.unmarshalNString2string(ctx, v) 32723 if err != nil { 32724 return it, err 32725 } 32726 case "internalConsumerID": 32727 var err error 32728 it.InternalConsumerID, err = ec.unmarshalOString2ᚖstring(ctx, v) 32729 if err != nil { 32730 return it, err 32731 } 32732 case "tenantAccessLevels": 32733 var err error 32734 it.TenantAccessLevels, err = ec.unmarshalNString2ᚕstringᚄ(ctx, v) 32735 if err != nil { 32736 return it, err 32737 } 32738 } 32739 } 32740 32741 return it, nil 32742 } 32743 32744 func (ec *executionContext) unmarshalInputCredentialDataInput(ctx context.Context, obj interface{}) (CredentialDataInput, error) { 32745 var it CredentialDataInput 32746 var asMap = obj.(map[string]interface{}) 32747 32748 for k, v := range asMap { 32749 switch k { 32750 case "basic": 32751 var err error 32752 it.Basic, err = ec.unmarshalOBasicCredentialDataInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBasicCredentialDataInput(ctx, v) 32753 if err != nil { 32754 return it, err 32755 } 32756 case "oauth": 32757 var err error 32758 it.Oauth, err = ec.unmarshalOOAuthCredentialDataInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOAuthCredentialDataInput(ctx, v) 32759 if err != nil { 32760 return it, err 32761 } 32762 case "certificateOAuth": 32763 var err error 32764 it.CertificateOAuth, err = ec.unmarshalOCertificateOAuthCredentialDataInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateOAuthCredentialDataInput(ctx, v) 32765 if err != nil { 32766 return it, err 32767 } 32768 } 32769 } 32770 32771 return it, nil 32772 } 32773 32774 func (ec *executionContext) unmarshalInputCredentialRequestAuthInput(ctx context.Context, obj interface{}) (CredentialRequestAuthInput, error) { 32775 var it CredentialRequestAuthInput 32776 var asMap = obj.(map[string]interface{}) 32777 32778 for k, v := range asMap { 32779 switch k { 32780 case "csrf": 32781 var err error 32782 it.Csrf, err = ec.unmarshalOCSRFTokenCredentialRequestAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCSRFTokenCredentialRequestAuthInput(ctx, v) 32783 if err != nil { 32784 return it, err 32785 } 32786 } 32787 } 32788 32789 return it, nil 32790 } 32791 32792 func (ec *executionContext) unmarshalInputDocumentInput(ctx context.Context, obj interface{}) (DocumentInput, error) { 32793 var it DocumentInput 32794 var asMap = obj.(map[string]interface{}) 32795 32796 for k, v := range asMap { 32797 switch k { 32798 case "title": 32799 var err error 32800 it.Title, err = ec.unmarshalNString2string(ctx, v) 32801 if err != nil { 32802 return it, err 32803 } 32804 case "displayName": 32805 var err error 32806 it.DisplayName, err = ec.unmarshalNString2string(ctx, v) 32807 if err != nil { 32808 return it, err 32809 } 32810 case "description": 32811 var err error 32812 it.Description, err = ec.unmarshalNString2string(ctx, v) 32813 if err != nil { 32814 return it, err 32815 } 32816 case "format": 32817 var err error 32818 it.Format, err = ec.unmarshalNDocumentFormat2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentFormat(ctx, v) 32819 if err != nil { 32820 return it, err 32821 } 32822 case "kind": 32823 var err error 32824 it.Kind, err = ec.unmarshalOString2ᚖstring(ctx, v) 32825 if err != nil { 32826 return it, err 32827 } 32828 case "data": 32829 var err error 32830 it.Data, err = ec.unmarshalOCLOB2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx, v) 32831 if err != nil { 32832 return it, err 32833 } 32834 case "fetchRequest": 32835 var err error 32836 it.FetchRequest, err = ec.unmarshalOFetchRequestInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestInput(ctx, v) 32837 if err != nil { 32838 return it, err 32839 } 32840 } 32841 } 32842 32843 return it, nil 32844 } 32845 32846 func (ec *executionContext) unmarshalInputEventDefinitionInput(ctx context.Context, obj interface{}) (EventDefinitionInput, error) { 32847 var it EventDefinitionInput 32848 var asMap = obj.(map[string]interface{}) 32849 32850 for k, v := range asMap { 32851 switch k { 32852 case "name": 32853 var err error 32854 it.Name, err = ec.unmarshalNString2string(ctx, v) 32855 if err != nil { 32856 return it, err 32857 } 32858 case "description": 32859 var err error 32860 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 32861 if err != nil { 32862 return it, err 32863 } 32864 case "spec": 32865 var err error 32866 it.Spec, err = ec.unmarshalOEventSpecInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpecInput(ctx, v) 32867 if err != nil { 32868 return it, err 32869 } 32870 case "group": 32871 var err error 32872 it.Group, err = ec.unmarshalOString2ᚖstring(ctx, v) 32873 if err != nil { 32874 return it, err 32875 } 32876 case "version": 32877 var err error 32878 it.Version, err = ec.unmarshalOVersionInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐVersionInput(ctx, v) 32879 if err != nil { 32880 return it, err 32881 } 32882 } 32883 } 32884 32885 return it, nil 32886 } 32887 32888 func (ec *executionContext) unmarshalInputEventSpecInput(ctx context.Context, obj interface{}) (EventSpecInput, error) { 32889 var it EventSpecInput 32890 var asMap = obj.(map[string]interface{}) 32891 32892 for k, v := range asMap { 32893 switch k { 32894 case "data": 32895 var err error 32896 it.Data, err = ec.unmarshalOCLOB2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx, v) 32897 if err != nil { 32898 return it, err 32899 } 32900 case "type": 32901 var err error 32902 it.Type, err = ec.unmarshalNEventSpecType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpecType(ctx, v) 32903 if err != nil { 32904 return it, err 32905 } 32906 case "format": 32907 var err error 32908 it.Format, err = ec.unmarshalNSpecFormat2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSpecFormat(ctx, v) 32909 if err != nil { 32910 return it, err 32911 } 32912 case "fetchRequest": 32913 var err error 32914 it.FetchRequest, err = ec.unmarshalOFetchRequestInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestInput(ctx, v) 32915 if err != nil { 32916 return it, err 32917 } 32918 } 32919 } 32920 32921 return it, nil 32922 } 32923 32924 func (ec *executionContext) unmarshalInputFetchRequestInput(ctx context.Context, obj interface{}) (FetchRequestInput, error) { 32925 var it FetchRequestInput 32926 var asMap = obj.(map[string]interface{}) 32927 32928 if _, present := asMap["mode"]; !present { 32929 asMap["mode"] = "SINGLE" 32930 } 32931 32932 for k, v := range asMap { 32933 switch k { 32934 case "url": 32935 var err error 32936 it.URL, err = ec.unmarshalNString2string(ctx, v) 32937 if err != nil { 32938 return it, err 32939 } 32940 case "auth": 32941 var err error 32942 it.Auth, err = ec.unmarshalOAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, v) 32943 if err != nil { 32944 return it, err 32945 } 32946 case "mode": 32947 var err error 32948 it.Mode, err = ec.unmarshalOFetchMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchMode(ctx, v) 32949 if err != nil { 32950 return it, err 32951 } 32952 case "filter": 32953 var err error 32954 it.Filter, err = ec.unmarshalOString2ᚖstring(ctx, v) 32955 if err != nil { 32956 return it, err 32957 } 32958 } 32959 } 32960 32961 return it, nil 32962 } 32963 32964 func (ec *executionContext) unmarshalInputFormationConstraintInput(ctx context.Context, obj interface{}) (FormationConstraintInput, error) { 32965 var it FormationConstraintInput 32966 var asMap = obj.(map[string]interface{}) 32967 32968 for k, v := range asMap { 32969 switch k { 32970 case "name": 32971 var err error 32972 it.Name, err = ec.unmarshalNString2string(ctx, v) 32973 if err != nil { 32974 return it, err 32975 } 32976 case "constraintType": 32977 var err error 32978 it.ConstraintType, err = ec.unmarshalNConstraintType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐConstraintType(ctx, v) 32979 if err != nil { 32980 return it, err 32981 } 32982 case "targetOperation": 32983 var err error 32984 it.TargetOperation, err = ec.unmarshalNTargetOperation2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTargetOperation(ctx, v) 32985 if err != nil { 32986 return it, err 32987 } 32988 case "operator": 32989 var err error 32990 it.Operator, err = ec.unmarshalNString2string(ctx, v) 32991 if err != nil { 32992 return it, err 32993 } 32994 case "resourceType": 32995 var err error 32996 it.ResourceType, err = ec.unmarshalNResourceType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐResourceType(ctx, v) 32997 if err != nil { 32998 return it, err 32999 } 33000 case "resourceSubtype": 33001 var err error 33002 it.ResourceSubtype, err = ec.unmarshalNString2string(ctx, v) 33003 if err != nil { 33004 return it, err 33005 } 33006 case "inputTemplate": 33007 var err error 33008 it.InputTemplate, err = ec.unmarshalNString2string(ctx, v) 33009 if err != nil { 33010 return it, err 33011 } 33012 case "constraintScope": 33013 var err error 33014 it.ConstraintScope, err = ec.unmarshalNConstraintScope2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐConstraintScope(ctx, v) 33015 if err != nil { 33016 return it, err 33017 } 33018 } 33019 } 33020 33021 return it, nil 33022 } 33023 33024 func (ec *executionContext) unmarshalInputFormationConstraintUpdateInput(ctx context.Context, obj interface{}) (FormationConstraintUpdateInput, error) { 33025 var it FormationConstraintUpdateInput 33026 var asMap = obj.(map[string]interface{}) 33027 33028 for k, v := range asMap { 33029 switch k { 33030 case "inputTemplate": 33031 var err error 33032 it.InputTemplate, err = ec.unmarshalNString2string(ctx, v) 33033 if err != nil { 33034 return it, err 33035 } 33036 } 33037 } 33038 33039 return it, nil 33040 } 33041 33042 func (ec *executionContext) unmarshalInputFormationInput(ctx context.Context, obj interface{}) (FormationInput, error) { 33043 var it FormationInput 33044 var asMap = obj.(map[string]interface{}) 33045 33046 for k, v := range asMap { 33047 switch k { 33048 case "name": 33049 var err error 33050 it.Name, err = ec.unmarshalNString2string(ctx, v) 33051 if err != nil { 33052 return it, err 33053 } 33054 case "templateName": 33055 var err error 33056 it.TemplateName, err = ec.unmarshalOString2ᚖstring(ctx, v) 33057 if err != nil { 33058 return it, err 33059 } 33060 case "state": 33061 var err error 33062 directive0 := func(ctx context.Context) (interface{}, error) { return ec.unmarshalOString2ᚖstring(ctx, v) } 33063 directive1 := func(ctx context.Context) (interface{}, error) { 33064 path, err := ec.unmarshalNString2string(ctx, "graphql.input.formation.state") 33065 if err != nil { 33066 return nil, err 33067 } 33068 if ec.directives.HasScopes == nil { 33069 return nil, errors.New("directive hasScopes is not implemented") 33070 } 33071 return ec.directives.HasScopes(ctx, obj, directive0, path) 33072 } 33073 33074 tmp, err := directive1(ctx) 33075 if err != nil { 33076 return it, err 33077 } 33078 if data, ok := tmp.(*string); ok { 33079 it.State = data 33080 } else if tmp == nil { 33081 it.State = nil 33082 } else { 33083 return it, fmt.Errorf(`unexpected type %T from directive, should be *string`, tmp) 33084 } 33085 } 33086 } 33087 33088 return it, nil 33089 } 33090 33091 func (ec *executionContext) unmarshalInputFormationTemplateInput(ctx context.Context, obj interface{}) (FormationTemplateInput, error) { 33092 var it FormationTemplateInput 33093 var asMap = obj.(map[string]interface{}) 33094 33095 for k, v := range asMap { 33096 switch k { 33097 case "name": 33098 var err error 33099 it.Name, err = ec.unmarshalNString2string(ctx, v) 33100 if err != nil { 33101 return it, err 33102 } 33103 case "applicationTypes": 33104 var err error 33105 it.ApplicationTypes, err = ec.unmarshalNString2ᚕstringᚄ(ctx, v) 33106 if err != nil { 33107 return it, err 33108 } 33109 case "runtimeTypes": 33110 var err error 33111 it.RuntimeTypes, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) 33112 if err != nil { 33113 return it, err 33114 } 33115 case "runtimeTypeDisplayName": 33116 var err error 33117 it.RuntimeTypeDisplayName, err = ec.unmarshalOString2ᚖstring(ctx, v) 33118 if err != nil { 33119 return it, err 33120 } 33121 case "runtimeArtifactKind": 33122 var err error 33123 it.RuntimeArtifactKind, err = ec.unmarshalOArtifactType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐArtifactType(ctx, v) 33124 if err != nil { 33125 return it, err 33126 } 33127 case "webhooks": 33128 var err error 33129 it.Webhooks, err = ec.unmarshalOWebhookInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInputᚄ(ctx, v) 33130 if err != nil { 33131 return it, err 33132 } 33133 case "leadingProductIDs": 33134 var err error 33135 it.LeadingProductIDs, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v) 33136 if err != nil { 33137 return it, err 33138 } 33139 } 33140 } 33141 33142 return it, nil 33143 } 33144 33145 func (ec *executionContext) unmarshalInputIntegrationSystemInput(ctx context.Context, obj interface{}) (IntegrationSystemInput, error) { 33146 var it IntegrationSystemInput 33147 var asMap = obj.(map[string]interface{}) 33148 33149 for k, v := range asMap { 33150 switch k { 33151 case "name": 33152 var err error 33153 it.Name, err = ec.unmarshalNString2string(ctx, v) 33154 if err != nil { 33155 return it, err 33156 } 33157 case "description": 33158 var err error 33159 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 33160 if err != nil { 33161 return it, err 33162 } 33163 } 33164 } 33165 33166 return it, nil 33167 } 33168 33169 func (ec *executionContext) unmarshalInputLabelDefinitionInput(ctx context.Context, obj interface{}) (LabelDefinitionInput, error) { 33170 var it LabelDefinitionInput 33171 var asMap = obj.(map[string]interface{}) 33172 33173 for k, v := range asMap { 33174 switch k { 33175 case "key": 33176 var err error 33177 it.Key, err = ec.unmarshalNString2string(ctx, v) 33178 if err != nil { 33179 return it, err 33180 } 33181 case "schema": 33182 var err error 33183 it.Schema, err = ec.unmarshalOJSONSchema2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSONSchema(ctx, v) 33184 if err != nil { 33185 return it, err 33186 } 33187 } 33188 } 33189 33190 return it, nil 33191 } 33192 33193 func (ec *executionContext) unmarshalInputLabelFilter(ctx context.Context, obj interface{}) (LabelFilter, error) { 33194 var it LabelFilter 33195 var asMap = obj.(map[string]interface{}) 33196 33197 for k, v := range asMap { 33198 switch k { 33199 case "key": 33200 var err error 33201 it.Key, err = ec.unmarshalNString2string(ctx, v) 33202 if err != nil { 33203 return it, err 33204 } 33205 case "query": 33206 var err error 33207 it.Query, err = ec.unmarshalOString2ᚖstring(ctx, v) 33208 if err != nil { 33209 return it, err 33210 } 33211 } 33212 } 33213 33214 return it, nil 33215 } 33216 33217 func (ec *executionContext) unmarshalInputLabelInput(ctx context.Context, obj interface{}) (LabelInput, error) { 33218 var it LabelInput 33219 var asMap = obj.(map[string]interface{}) 33220 33221 for k, v := range asMap { 33222 switch k { 33223 case "key": 33224 var err error 33225 it.Key, err = ec.unmarshalNString2string(ctx, v) 33226 if err != nil { 33227 return it, err 33228 } 33229 case "value": 33230 var err error 33231 it.Value, err = ec.unmarshalNAny2interface(ctx, v) 33232 if err != nil { 33233 return it, err 33234 } 33235 } 33236 } 33237 33238 return it, nil 33239 } 33240 33241 func (ec *executionContext) unmarshalInputLabelSelectorInput(ctx context.Context, obj interface{}) (LabelSelectorInput, error) { 33242 var it LabelSelectorInput 33243 var asMap = obj.(map[string]interface{}) 33244 33245 for k, v := range asMap { 33246 switch k { 33247 case "key": 33248 var err error 33249 it.Key, err = ec.unmarshalNString2string(ctx, v) 33250 if err != nil { 33251 return it, err 33252 } 33253 case "value": 33254 var err error 33255 it.Value, err = ec.unmarshalNString2string(ctx, v) 33256 if err != nil { 33257 return it, err 33258 } 33259 } 33260 } 33261 33262 return it, nil 33263 } 33264 33265 func (ec *executionContext) unmarshalInputOAuthCredentialDataInput(ctx context.Context, obj interface{}) (OAuthCredentialDataInput, error) { 33266 var it OAuthCredentialDataInput 33267 var asMap = obj.(map[string]interface{}) 33268 33269 for k, v := range asMap { 33270 switch k { 33271 case "clientId": 33272 var err error 33273 it.ClientID, err = ec.unmarshalNID2string(ctx, v) 33274 if err != nil { 33275 return it, err 33276 } 33277 case "clientSecret": 33278 var err error 33279 it.ClientSecret, err = ec.unmarshalNString2string(ctx, v) 33280 if err != nil { 33281 return it, err 33282 } 33283 case "url": 33284 var err error 33285 it.URL, err = ec.unmarshalNString2string(ctx, v) 33286 if err != nil { 33287 return it, err 33288 } 33289 } 33290 } 33291 33292 return it, nil 33293 } 33294 33295 func (ec *executionContext) unmarshalInputOneTimeTokenInput(ctx context.Context, obj interface{}) (OneTimeTokenInput, error) { 33296 var it OneTimeTokenInput 33297 var asMap = obj.(map[string]interface{}) 33298 33299 for k, v := range asMap { 33300 switch k { 33301 case "token": 33302 var err error 33303 it.Token, err = ec.unmarshalNString2string(ctx, v) 33304 if err != nil { 33305 return it, err 33306 } 33307 case "connectorURL": 33308 var err error 33309 it.ConnectorURL, err = ec.unmarshalOString2ᚖstring(ctx, v) 33310 if err != nil { 33311 return it, err 33312 } 33313 case "used": 33314 var err error 33315 it.Used, err = ec.unmarshalNBoolean2bool(ctx, v) 33316 if err != nil { 33317 return it, err 33318 } 33319 case "expiresAt": 33320 var err error 33321 it.ExpiresAt, err = ec.unmarshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, v) 33322 if err != nil { 33323 return it, err 33324 } 33325 case "createdAt": 33326 var err error 33327 it.CreatedAt, err = ec.unmarshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, v) 33328 if err != nil { 33329 return it, err 33330 } 33331 case "usedAt": 33332 var err error 33333 it.UsedAt, err = ec.unmarshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, v) 33334 if err != nil { 33335 return it, err 33336 } 33337 case "raw": 33338 var err error 33339 it.Raw, err = ec.unmarshalOString2ᚖstring(ctx, v) 33340 if err != nil { 33341 return it, err 33342 } 33343 case "rawEncoded": 33344 var err error 33345 it.RawEncoded, err = ec.unmarshalOString2ᚖstring(ctx, v) 33346 if err != nil { 33347 return it, err 33348 } 33349 case "type": 33350 var err error 33351 it.Type, err = ec.unmarshalOOneTimeTokenType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenType(ctx, v) 33352 if err != nil { 33353 return it, err 33354 } 33355 } 33356 } 33357 33358 return it, nil 33359 } 33360 33361 func (ec *executionContext) unmarshalInputPlaceholderDefinitionInput(ctx context.Context, obj interface{}) (PlaceholderDefinitionInput, error) { 33362 var it PlaceholderDefinitionInput 33363 var asMap = obj.(map[string]interface{}) 33364 33365 for k, v := range asMap { 33366 switch k { 33367 case "name": 33368 var err error 33369 it.Name, err = ec.unmarshalNString2string(ctx, v) 33370 if err != nil { 33371 return it, err 33372 } 33373 case "description": 33374 var err error 33375 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 33376 if err != nil { 33377 return it, err 33378 } 33379 case "jsonPath": 33380 var err error 33381 it.JSONPath, err = ec.unmarshalOString2ᚖstring(ctx, v) 33382 if err != nil { 33383 return it, err 33384 } 33385 case "optional": 33386 var err error 33387 it.Optional, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) 33388 if err != nil { 33389 return it, err 33390 } 33391 } 33392 } 33393 33394 return it, nil 33395 } 33396 33397 func (ec *executionContext) unmarshalInputRuntimeContextInput(ctx context.Context, obj interface{}) (RuntimeContextInput, error) { 33398 var it RuntimeContextInput 33399 var asMap = obj.(map[string]interface{}) 33400 33401 for k, v := range asMap { 33402 switch k { 33403 case "key": 33404 var err error 33405 it.Key, err = ec.unmarshalNString2string(ctx, v) 33406 if err != nil { 33407 return it, err 33408 } 33409 case "value": 33410 var err error 33411 it.Value, err = ec.unmarshalNString2string(ctx, v) 33412 if err != nil { 33413 return it, err 33414 } 33415 } 33416 } 33417 33418 return it, nil 33419 } 33420 33421 func (ec *executionContext) unmarshalInputRuntimeRegisterInput(ctx context.Context, obj interface{}) (RuntimeRegisterInput, error) { 33422 var it RuntimeRegisterInput 33423 var asMap = obj.(map[string]interface{}) 33424 33425 for k, v := range asMap { 33426 switch k { 33427 case "name": 33428 var err error 33429 it.Name, err = ec.unmarshalNString2string(ctx, v) 33430 if err != nil { 33431 return it, err 33432 } 33433 case "description": 33434 var err error 33435 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 33436 if err != nil { 33437 return it, err 33438 } 33439 case "labels": 33440 var err error 33441 it.Labels, err = ec.unmarshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, v) 33442 if err != nil { 33443 return it, err 33444 } 33445 case "webhooks": 33446 var err error 33447 it.Webhooks, err = ec.unmarshalOWebhookInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInputᚄ(ctx, v) 33448 if err != nil { 33449 return it, err 33450 } 33451 case "statusCondition": 33452 var err error 33453 it.StatusCondition, err = ec.unmarshalORuntimeStatusCondition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatusCondition(ctx, v) 33454 if err != nil { 33455 return it, err 33456 } 33457 case "applicationNamespace": 33458 var err error 33459 it.ApplicationNamespace, err = ec.unmarshalOString2ᚖstring(ctx, v) 33460 if err != nil { 33461 return it, err 33462 } 33463 } 33464 } 33465 33466 return it, nil 33467 } 33468 33469 func (ec *executionContext) unmarshalInputRuntimeUpdateInput(ctx context.Context, obj interface{}) (RuntimeUpdateInput, error) { 33470 var it RuntimeUpdateInput 33471 var asMap = obj.(map[string]interface{}) 33472 33473 for k, v := range asMap { 33474 switch k { 33475 case "name": 33476 var err error 33477 it.Name, err = ec.unmarshalNString2string(ctx, v) 33478 if err != nil { 33479 return it, err 33480 } 33481 case "description": 33482 var err error 33483 it.Description, err = ec.unmarshalOString2ᚖstring(ctx, v) 33484 if err != nil { 33485 return it, err 33486 } 33487 case "labels": 33488 var err error 33489 it.Labels, err = ec.unmarshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx, v) 33490 if err != nil { 33491 return it, err 33492 } 33493 case "statusCondition": 33494 var err error 33495 it.StatusCondition, err = ec.unmarshalORuntimeStatusCondition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatusCondition(ctx, v) 33496 if err != nil { 33497 return it, err 33498 } 33499 case "applicationNamespace": 33500 var err error 33501 it.ApplicationNamespace, err = ec.unmarshalOString2ᚖstring(ctx, v) 33502 if err != nil { 33503 return it, err 33504 } 33505 } 33506 } 33507 33508 return it, nil 33509 } 33510 33511 func (ec *executionContext) unmarshalInputSystemAuthUpdateInput(ctx context.Context, obj interface{}) (SystemAuthUpdateInput, error) { 33512 var it SystemAuthUpdateInput 33513 var asMap = obj.(map[string]interface{}) 33514 33515 for k, v := range asMap { 33516 switch k { 33517 case "auth": 33518 var err error 33519 it.Auth, err = ec.unmarshalOAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, v) 33520 if err != nil { 33521 return it, err 33522 } 33523 } 33524 } 33525 33526 return it, nil 33527 } 33528 33529 func (ec *executionContext) unmarshalInputTemplateValueInput(ctx context.Context, obj interface{}) (TemplateValueInput, error) { 33530 var it TemplateValueInput 33531 var asMap = obj.(map[string]interface{}) 33532 33533 for k, v := range asMap { 33534 switch k { 33535 case "placeholder": 33536 var err error 33537 it.Placeholder, err = ec.unmarshalNString2string(ctx, v) 33538 if err != nil { 33539 return it, err 33540 } 33541 case "value": 33542 var err error 33543 it.Value, err = ec.unmarshalNString2string(ctx, v) 33544 if err != nil { 33545 return it, err 33546 } 33547 } 33548 } 33549 33550 return it, nil 33551 } 33552 33553 func (ec *executionContext) unmarshalInputTenantAccessInput(ctx context.Context, obj interface{}) (TenantAccessInput, error) { 33554 var it TenantAccessInput 33555 var asMap = obj.(map[string]interface{}) 33556 33557 for k, v := range asMap { 33558 switch k { 33559 case "tenantID": 33560 var err error 33561 it.TenantID, err = ec.unmarshalNID2string(ctx, v) 33562 if err != nil { 33563 return it, err 33564 } 33565 case "resourceType": 33566 var err error 33567 it.ResourceType, err = ec.unmarshalNTenantAccessObjectType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccessObjectType(ctx, v) 33568 if err != nil { 33569 return it, err 33570 } 33571 case "resourceID": 33572 var err error 33573 it.ResourceID, err = ec.unmarshalNID2string(ctx, v) 33574 if err != nil { 33575 return it, err 33576 } 33577 case "owner": 33578 var err error 33579 it.Owner, err = ec.unmarshalNBoolean2bool(ctx, v) 33580 if err != nil { 33581 return it, err 33582 } 33583 } 33584 } 33585 33586 return it, nil 33587 } 33588 33589 func (ec *executionContext) unmarshalInputVersionInput(ctx context.Context, obj interface{}) (VersionInput, error) { 33590 var it VersionInput 33591 var asMap = obj.(map[string]interface{}) 33592 33593 for k, v := range asMap { 33594 switch k { 33595 case "value": 33596 var err error 33597 it.Value, err = ec.unmarshalNString2string(ctx, v) 33598 if err != nil { 33599 return it, err 33600 } 33601 case "deprecated": 33602 var err error 33603 it.Deprecated, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) 33604 if err != nil { 33605 return it, err 33606 } 33607 case "deprecatedSince": 33608 var err error 33609 it.DeprecatedSince, err = ec.unmarshalOString2ᚖstring(ctx, v) 33610 if err != nil { 33611 return it, err 33612 } 33613 case "forRemoval": 33614 var err error 33615 it.ForRemoval, err = ec.unmarshalOBoolean2ᚖbool(ctx, v) 33616 if err != nil { 33617 return it, err 33618 } 33619 } 33620 } 33621 33622 return it, nil 33623 } 33624 33625 func (ec *executionContext) unmarshalInputWebhookInput(ctx context.Context, obj interface{}) (WebhookInput, error) { 33626 var it WebhookInput 33627 var asMap = obj.(map[string]interface{}) 33628 33629 for k, v := range asMap { 33630 switch k { 33631 case "type": 33632 var err error 33633 it.Type, err = ec.unmarshalNWebhookType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx, v) 33634 if err != nil { 33635 return it, err 33636 } 33637 case "url": 33638 var err error 33639 it.URL, err = ec.unmarshalOString2ᚖstring(ctx, v) 33640 if err != nil { 33641 return it, err 33642 } 33643 case "auth": 33644 var err error 33645 it.Auth, err = ec.unmarshalOAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, v) 33646 if err != nil { 33647 return it, err 33648 } 33649 case "mode": 33650 var err error 33651 it.Mode, err = ec.unmarshalOWebhookMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookMode(ctx, v) 33652 if err != nil { 33653 return it, err 33654 } 33655 case "version": 33656 var err error 33657 it.Version, err = ec.unmarshalOString2ᚖstring(ctx, v) 33658 if err != nil { 33659 return it, err 33660 } 33661 case "correlationIdKey": 33662 var err error 33663 it.CorrelationIDKey, err = ec.unmarshalOString2ᚖstring(ctx, v) 33664 if err != nil { 33665 return it, err 33666 } 33667 case "retryInterval": 33668 var err error 33669 it.RetryInterval, err = ec.unmarshalOInt2ᚖint(ctx, v) 33670 if err != nil { 33671 return it, err 33672 } 33673 case "timeout": 33674 var err error 33675 it.Timeout, err = ec.unmarshalOInt2ᚖint(ctx, v) 33676 if err != nil { 33677 return it, err 33678 } 33679 case "urlTemplate": 33680 var err error 33681 it.URLTemplate, err = ec.unmarshalOString2ᚖstring(ctx, v) 33682 if err != nil { 33683 return it, err 33684 } 33685 case "inputTemplate": 33686 var err error 33687 it.InputTemplate, err = ec.unmarshalOString2ᚖstring(ctx, v) 33688 if err != nil { 33689 return it, err 33690 } 33691 case "headerTemplate": 33692 var err error 33693 it.HeaderTemplate, err = ec.unmarshalOString2ᚖstring(ctx, v) 33694 if err != nil { 33695 return it, err 33696 } 33697 case "outputTemplate": 33698 var err error 33699 it.OutputTemplate, err = ec.unmarshalOString2ᚖstring(ctx, v) 33700 if err != nil { 33701 return it, err 33702 } 33703 case "statusTemplate": 33704 var err error 33705 it.StatusTemplate, err = ec.unmarshalOString2ᚖstring(ctx, v) 33706 if err != nil { 33707 return it, err 33708 } 33709 } 33710 } 33711 33712 return it, nil 33713 } 33714 33715 // endregion **************************** input.gotpl ***************************** 33716 33717 // region ************************** interface.gotpl *************************** 33718 33719 func (ec *executionContext) _CredentialData(ctx context.Context, sel ast.SelectionSet, obj CredentialData) graphql.Marshaler { 33720 switch obj := (obj).(type) { 33721 case nil: 33722 return graphql.Null 33723 case BasicCredentialData: 33724 return ec._BasicCredentialData(ctx, sel, &obj) 33725 case *BasicCredentialData: 33726 if obj == nil { 33727 return graphql.Null 33728 } 33729 return ec._BasicCredentialData(ctx, sel, obj) 33730 case OAuthCredentialData: 33731 return ec._OAuthCredentialData(ctx, sel, &obj) 33732 case *OAuthCredentialData: 33733 if obj == nil { 33734 return graphql.Null 33735 } 33736 return ec._OAuthCredentialData(ctx, sel, obj) 33737 case CertificateOAuthCredentialData: 33738 return ec._CertificateOAuthCredentialData(ctx, sel, &obj) 33739 case *CertificateOAuthCredentialData: 33740 if obj == nil { 33741 return graphql.Null 33742 } 33743 return ec._CertificateOAuthCredentialData(ctx, sel, obj) 33744 default: 33745 panic(fmt.Errorf("unexpected type %T", obj)) 33746 } 33747 } 33748 33749 func (ec *executionContext) _OneTimeToken(ctx context.Context, sel ast.SelectionSet, obj OneTimeToken) graphql.Marshaler { 33750 switch obj := (obj).(type) { 33751 case nil: 33752 return graphql.Null 33753 case *OneTimeTokenForApplication: 33754 if obj == nil { 33755 return graphql.Null 33756 } 33757 return ec._OneTimeTokenForApplication(ctx, sel, obj) 33758 case *OneTimeTokenForRuntime: 33759 if obj == nil { 33760 return graphql.Null 33761 } 33762 return ec._OneTimeTokenForRuntime(ctx, sel, obj) 33763 default: 33764 panic(fmt.Errorf("unexpected type %T", obj)) 33765 } 33766 } 33767 33768 func (ec *executionContext) _Pageable(ctx context.Context, sel ast.SelectionSet, obj Pageable) graphql.Marshaler { 33769 switch obj := (obj).(type) { 33770 case nil: 33771 return graphql.Null 33772 case APIDefinitionPage: 33773 return ec._APIDefinitionPage(ctx, sel, &obj) 33774 case *APIDefinitionPage: 33775 if obj == nil { 33776 return graphql.Null 33777 } 33778 return ec._APIDefinitionPage(ctx, sel, obj) 33779 case ApplicationPage: 33780 return ec._ApplicationPage(ctx, sel, &obj) 33781 case *ApplicationPage: 33782 if obj == nil { 33783 return graphql.Null 33784 } 33785 return ec._ApplicationPage(ctx, sel, obj) 33786 case ApplicationTemplatePage: 33787 return ec._ApplicationTemplatePage(ctx, sel, &obj) 33788 case *ApplicationTemplatePage: 33789 if obj == nil { 33790 return graphql.Null 33791 } 33792 return ec._ApplicationTemplatePage(ctx, sel, obj) 33793 case AutomaticScenarioAssignmentPage: 33794 return ec._AutomaticScenarioAssignmentPage(ctx, sel, &obj) 33795 case *AutomaticScenarioAssignmentPage: 33796 if obj == nil { 33797 return graphql.Null 33798 } 33799 return ec._AutomaticScenarioAssignmentPage(ctx, sel, obj) 33800 case BundlePage: 33801 return ec._BundlePage(ctx, sel, &obj) 33802 case *BundlePage: 33803 if obj == nil { 33804 return graphql.Null 33805 } 33806 return ec._BundlePage(ctx, sel, obj) 33807 case CertificateSubjectMappingPage: 33808 return ec._CertificateSubjectMappingPage(ctx, sel, &obj) 33809 case *CertificateSubjectMappingPage: 33810 if obj == nil { 33811 return graphql.Null 33812 } 33813 return ec._CertificateSubjectMappingPage(ctx, sel, obj) 33814 case DocumentPage: 33815 return ec._DocumentPage(ctx, sel, &obj) 33816 case *DocumentPage: 33817 if obj == nil { 33818 return graphql.Null 33819 } 33820 return ec._DocumentPage(ctx, sel, obj) 33821 case EventDefinitionPage: 33822 return ec._EventDefinitionPage(ctx, sel, &obj) 33823 case *EventDefinitionPage: 33824 if obj == nil { 33825 return graphql.Null 33826 } 33827 return ec._EventDefinitionPage(ctx, sel, obj) 33828 case FormationAssignmentPage: 33829 return ec._FormationAssignmentPage(ctx, sel, &obj) 33830 case *FormationAssignmentPage: 33831 if obj == nil { 33832 return graphql.Null 33833 } 33834 return ec._FormationAssignmentPage(ctx, sel, obj) 33835 case FormationPage: 33836 return ec._FormationPage(ctx, sel, &obj) 33837 case *FormationPage: 33838 if obj == nil { 33839 return graphql.Null 33840 } 33841 return ec._FormationPage(ctx, sel, obj) 33842 case FormationTemplatePage: 33843 return ec._FormationTemplatePage(ctx, sel, &obj) 33844 case *FormationTemplatePage: 33845 if obj == nil { 33846 return graphql.Null 33847 } 33848 return ec._FormationTemplatePage(ctx, sel, obj) 33849 case HealthCheckPage: 33850 return ec._HealthCheckPage(ctx, sel, &obj) 33851 case *HealthCheckPage: 33852 if obj == nil { 33853 return graphql.Null 33854 } 33855 return ec._HealthCheckPage(ctx, sel, obj) 33856 case IntegrationSystemPage: 33857 return ec._IntegrationSystemPage(ctx, sel, &obj) 33858 case *IntegrationSystemPage: 33859 if obj == nil { 33860 return graphql.Null 33861 } 33862 return ec._IntegrationSystemPage(ctx, sel, obj) 33863 case RuntimeContextPage: 33864 return ec._RuntimeContextPage(ctx, sel, &obj) 33865 case *RuntimeContextPage: 33866 if obj == nil { 33867 return graphql.Null 33868 } 33869 return ec._RuntimeContextPage(ctx, sel, obj) 33870 case RuntimePage: 33871 return ec._RuntimePage(ctx, sel, &obj) 33872 case *RuntimePage: 33873 if obj == nil { 33874 return graphql.Null 33875 } 33876 return ec._RuntimePage(ctx, sel, obj) 33877 case TenantPage: 33878 return ec._TenantPage(ctx, sel, &obj) 33879 case *TenantPage: 33880 if obj == nil { 33881 return graphql.Null 33882 } 33883 return ec._TenantPage(ctx, sel, obj) 33884 default: 33885 panic(fmt.Errorf("unexpected type %T", obj)) 33886 } 33887 } 33888 33889 func (ec *executionContext) _SystemAuth(ctx context.Context, sel ast.SelectionSet, obj SystemAuth) graphql.Marshaler { 33890 switch obj := (obj).(type) { 33891 case nil: 33892 return graphql.Null 33893 case AppSystemAuth: 33894 return ec._AppSystemAuth(ctx, sel, &obj) 33895 case *AppSystemAuth: 33896 if obj == nil { 33897 return graphql.Null 33898 } 33899 return ec._AppSystemAuth(ctx, sel, obj) 33900 case IntSysSystemAuth: 33901 return ec._IntSysSystemAuth(ctx, sel, &obj) 33902 case *IntSysSystemAuth: 33903 if obj == nil { 33904 return graphql.Null 33905 } 33906 return ec._IntSysSystemAuth(ctx, sel, obj) 33907 case RuntimeSystemAuth: 33908 return ec._RuntimeSystemAuth(ctx, sel, &obj) 33909 case *RuntimeSystemAuth: 33910 if obj == nil { 33911 return graphql.Null 33912 } 33913 return ec._RuntimeSystemAuth(ctx, sel, obj) 33914 default: 33915 panic(fmt.Errorf("unexpected type %T", obj)) 33916 } 33917 } 33918 33919 // endregion ************************** interface.gotpl *************************** 33920 33921 // region **************************** object.gotpl **************************** 33922 33923 var aPIDefinitionImplementors = []string{"APIDefinition"} 33924 33925 func (ec *executionContext) _APIDefinition(ctx context.Context, sel ast.SelectionSet, obj *APIDefinition) graphql.Marshaler { 33926 fields := graphql.CollectFields(ec.OperationContext, sel, aPIDefinitionImplementors) 33927 33928 out := graphql.NewFieldSet(fields) 33929 var invalids uint32 33930 for i, field := range fields { 33931 switch field.Name { 33932 case "__typename": 33933 out.Values[i] = graphql.MarshalString("APIDefinition") 33934 case "id": 33935 out.Values[i] = ec._APIDefinition_id(ctx, field, obj) 33936 if out.Values[i] == graphql.Null { 33937 invalids++ 33938 } 33939 case "name": 33940 out.Values[i] = ec._APIDefinition_name(ctx, field, obj) 33941 if out.Values[i] == graphql.Null { 33942 invalids++ 33943 } 33944 case "description": 33945 out.Values[i] = ec._APIDefinition_description(ctx, field, obj) 33946 case "spec": 33947 out.Values[i] = ec._APIDefinition_spec(ctx, field, obj) 33948 case "targetURL": 33949 out.Values[i] = ec._APIDefinition_targetURL(ctx, field, obj) 33950 if out.Values[i] == graphql.Null { 33951 invalids++ 33952 } 33953 case "group": 33954 out.Values[i] = ec._APIDefinition_group(ctx, field, obj) 33955 case "version": 33956 out.Values[i] = ec._APIDefinition_version(ctx, field, obj) 33957 case "created_at": 33958 out.Values[i] = ec._APIDefinition_created_at(ctx, field, obj) 33959 case "updated_at": 33960 out.Values[i] = ec._APIDefinition_updated_at(ctx, field, obj) 33961 case "deleted_at": 33962 out.Values[i] = ec._APIDefinition_deleted_at(ctx, field, obj) 33963 case "error": 33964 out.Values[i] = ec._APIDefinition_error(ctx, field, obj) 33965 default: 33966 panic("unknown field " + strconv.Quote(field.Name)) 33967 } 33968 } 33969 out.Dispatch() 33970 if invalids > 0 { 33971 return graphql.Null 33972 } 33973 return out 33974 } 33975 33976 var aPIDefinitionPageImplementors = []string{"APIDefinitionPage", "Pageable"} 33977 33978 func (ec *executionContext) _APIDefinitionPage(ctx context.Context, sel ast.SelectionSet, obj *APIDefinitionPage) graphql.Marshaler { 33979 fields := graphql.CollectFields(ec.OperationContext, sel, aPIDefinitionPageImplementors) 33980 33981 out := graphql.NewFieldSet(fields) 33982 var invalids uint32 33983 for i, field := range fields { 33984 switch field.Name { 33985 case "__typename": 33986 out.Values[i] = graphql.MarshalString("APIDefinitionPage") 33987 case "data": 33988 out.Values[i] = ec._APIDefinitionPage_data(ctx, field, obj) 33989 if out.Values[i] == graphql.Null { 33990 invalids++ 33991 } 33992 case "pageInfo": 33993 out.Values[i] = ec._APIDefinitionPage_pageInfo(ctx, field, obj) 33994 if out.Values[i] == graphql.Null { 33995 invalids++ 33996 } 33997 case "totalCount": 33998 out.Values[i] = ec._APIDefinitionPage_totalCount(ctx, field, obj) 33999 if out.Values[i] == graphql.Null { 34000 invalids++ 34001 } 34002 default: 34003 panic("unknown field " + strconv.Quote(field.Name)) 34004 } 34005 } 34006 out.Dispatch() 34007 if invalids > 0 { 34008 return graphql.Null 34009 } 34010 return out 34011 } 34012 34013 var aPISpecImplementors = []string{"APISpec"} 34014 34015 func (ec *executionContext) _APISpec(ctx context.Context, sel ast.SelectionSet, obj *APISpec) graphql.Marshaler { 34016 fields := graphql.CollectFields(ec.OperationContext, sel, aPISpecImplementors) 34017 34018 out := graphql.NewFieldSet(fields) 34019 var invalids uint32 34020 for i, field := range fields { 34021 switch field.Name { 34022 case "__typename": 34023 out.Values[i] = graphql.MarshalString("APISpec") 34024 case "id": 34025 out.Values[i] = ec._APISpec_id(ctx, field, obj) 34026 if out.Values[i] == graphql.Null { 34027 atomic.AddUint32(&invalids, 1) 34028 } 34029 case "data": 34030 out.Values[i] = ec._APISpec_data(ctx, field, obj) 34031 case "format": 34032 out.Values[i] = ec._APISpec_format(ctx, field, obj) 34033 if out.Values[i] == graphql.Null { 34034 atomic.AddUint32(&invalids, 1) 34035 } 34036 case "type": 34037 out.Values[i] = ec._APISpec_type(ctx, field, obj) 34038 if out.Values[i] == graphql.Null { 34039 atomic.AddUint32(&invalids, 1) 34040 } 34041 case "fetchRequest": 34042 field := field 34043 out.Concurrently(i, func() (res graphql.Marshaler) { 34044 defer func() { 34045 if r := recover(); r != nil { 34046 ec.Error(ctx, ec.Recover(ctx, r)) 34047 } 34048 }() 34049 res = ec._APISpec_fetchRequest(ctx, field, obj) 34050 return res 34051 }) 34052 default: 34053 panic("unknown field " + strconv.Quote(field.Name)) 34054 } 34055 } 34056 out.Dispatch() 34057 if invalids > 0 { 34058 return graphql.Null 34059 } 34060 return out 34061 } 34062 34063 var appSystemAuthImplementors = []string{"AppSystemAuth", "SystemAuth"} 34064 34065 func (ec *executionContext) _AppSystemAuth(ctx context.Context, sel ast.SelectionSet, obj *AppSystemAuth) graphql.Marshaler { 34066 fields := graphql.CollectFields(ec.OperationContext, sel, appSystemAuthImplementors) 34067 34068 out := graphql.NewFieldSet(fields) 34069 var invalids uint32 34070 for i, field := range fields { 34071 switch field.Name { 34072 case "__typename": 34073 out.Values[i] = graphql.MarshalString("AppSystemAuth") 34074 case "id": 34075 out.Values[i] = ec._AppSystemAuth_id(ctx, field, obj) 34076 if out.Values[i] == graphql.Null { 34077 invalids++ 34078 } 34079 case "auth": 34080 out.Values[i] = ec._AppSystemAuth_auth(ctx, field, obj) 34081 case "type": 34082 out.Values[i] = ec._AppSystemAuth_type(ctx, field, obj) 34083 case "tenantId": 34084 out.Values[i] = ec._AppSystemAuth_tenantId(ctx, field, obj) 34085 case "referenceObjectId": 34086 out.Values[i] = ec._AppSystemAuth_referenceObjectId(ctx, field, obj) 34087 default: 34088 panic("unknown field " + strconv.Quote(field.Name)) 34089 } 34090 } 34091 out.Dispatch() 34092 if invalids > 0 { 34093 return graphql.Null 34094 } 34095 return out 34096 } 34097 34098 var applicationImplementors = []string{"Application"} 34099 34100 func (ec *executionContext) _Application(ctx context.Context, sel ast.SelectionSet, obj *Application) graphql.Marshaler { 34101 fields := graphql.CollectFields(ec.OperationContext, sel, applicationImplementors) 34102 34103 out := graphql.NewFieldSet(fields) 34104 var invalids uint32 34105 for i, field := range fields { 34106 switch field.Name { 34107 case "__typename": 34108 out.Values[i] = graphql.MarshalString("Application") 34109 case "id": 34110 out.Values[i] = ec._Application_id(ctx, field, obj) 34111 if out.Values[i] == graphql.Null { 34112 atomic.AddUint32(&invalids, 1) 34113 } 34114 case "name": 34115 out.Values[i] = ec._Application_name(ctx, field, obj) 34116 if out.Values[i] == graphql.Null { 34117 atomic.AddUint32(&invalids, 1) 34118 } 34119 case "systemNumber": 34120 out.Values[i] = ec._Application_systemNumber(ctx, field, obj) 34121 case "localTenantID": 34122 out.Values[i] = ec._Application_localTenantID(ctx, field, obj) 34123 case "baseUrl": 34124 out.Values[i] = ec._Application_baseUrl(ctx, field, obj) 34125 case "providerName": 34126 out.Values[i] = ec._Application_providerName(ctx, field, obj) 34127 case "description": 34128 out.Values[i] = ec._Application_description(ctx, field, obj) 34129 case "integrationSystemID": 34130 out.Values[i] = ec._Application_integrationSystemID(ctx, field, obj) 34131 case "applicationTemplateID": 34132 out.Values[i] = ec._Application_applicationTemplateID(ctx, field, obj) 34133 case "applicationTemplate": 34134 field := field 34135 out.Concurrently(i, func() (res graphql.Marshaler) { 34136 defer func() { 34137 if r := recover(); r != nil { 34138 ec.Error(ctx, ec.Recover(ctx, r)) 34139 } 34140 }() 34141 res = ec._Application_applicationTemplate(ctx, field, obj) 34142 return res 34143 }) 34144 case "tenantBusinessType": 34145 field := field 34146 out.Concurrently(i, func() (res graphql.Marshaler) { 34147 defer func() { 34148 if r := recover(); r != nil { 34149 ec.Error(ctx, ec.Recover(ctx, r)) 34150 } 34151 }() 34152 res = ec._Application_tenantBusinessType(ctx, field, obj) 34153 return res 34154 }) 34155 case "labels": 34156 field := field 34157 out.Concurrently(i, func() (res graphql.Marshaler) { 34158 defer func() { 34159 if r := recover(); r != nil { 34160 ec.Error(ctx, ec.Recover(ctx, r)) 34161 } 34162 }() 34163 res = ec._Application_labels(ctx, field, obj) 34164 return res 34165 }) 34166 case "status": 34167 out.Values[i] = ec._Application_status(ctx, field, obj) 34168 if out.Values[i] == graphql.Null { 34169 atomic.AddUint32(&invalids, 1) 34170 } 34171 case "webhooks": 34172 field := field 34173 out.Concurrently(i, func() (res graphql.Marshaler) { 34174 defer func() { 34175 if r := recover(); r != nil { 34176 ec.Error(ctx, ec.Recover(ctx, r)) 34177 } 34178 }() 34179 res = ec._Application_webhooks(ctx, field, obj) 34180 return res 34181 }) 34182 case "healthCheckURL": 34183 out.Values[i] = ec._Application_healthCheckURL(ctx, field, obj) 34184 case "bundles": 34185 field := field 34186 out.Concurrently(i, func() (res graphql.Marshaler) { 34187 defer func() { 34188 if r := recover(); r != nil { 34189 ec.Error(ctx, ec.Recover(ctx, r)) 34190 } 34191 }() 34192 res = ec._Application_bundles(ctx, field, obj) 34193 return res 34194 }) 34195 case "bundle": 34196 field := field 34197 out.Concurrently(i, func() (res graphql.Marshaler) { 34198 defer func() { 34199 if r := recover(); r != nil { 34200 ec.Error(ctx, ec.Recover(ctx, r)) 34201 } 34202 }() 34203 res = ec._Application_bundle(ctx, field, obj) 34204 return res 34205 }) 34206 case "auths": 34207 field := field 34208 out.Concurrently(i, func() (res graphql.Marshaler) { 34209 defer func() { 34210 if r := recover(); r != nil { 34211 ec.Error(ctx, ec.Recover(ctx, r)) 34212 } 34213 }() 34214 res = ec._Application_auths(ctx, field, obj) 34215 return res 34216 }) 34217 case "eventingConfiguration": 34218 field := field 34219 out.Concurrently(i, func() (res graphql.Marshaler) { 34220 defer func() { 34221 if r := recover(); r != nil { 34222 ec.Error(ctx, ec.Recover(ctx, r)) 34223 } 34224 }() 34225 res = ec._Application_eventingConfiguration(ctx, field, obj) 34226 return res 34227 }) 34228 case "applicationNamespace": 34229 out.Values[i] = ec._Application_applicationNamespace(ctx, field, obj) 34230 case "createdAt": 34231 out.Values[i] = ec._Application_createdAt(ctx, field, obj) 34232 case "updatedAt": 34233 out.Values[i] = ec._Application_updatedAt(ctx, field, obj) 34234 case "deletedAt": 34235 out.Values[i] = ec._Application_deletedAt(ctx, field, obj) 34236 case "systemStatus": 34237 out.Values[i] = ec._Application_systemStatus(ctx, field, obj) 34238 case "error": 34239 out.Values[i] = ec._Application_error(ctx, field, obj) 34240 default: 34241 panic("unknown field " + strconv.Quote(field.Name)) 34242 } 34243 } 34244 out.Dispatch() 34245 if invalids > 0 { 34246 return graphql.Null 34247 } 34248 return out 34249 } 34250 34251 var applicationEventingConfigurationImplementors = []string{"ApplicationEventingConfiguration"} 34252 34253 func (ec *executionContext) _ApplicationEventingConfiguration(ctx context.Context, sel ast.SelectionSet, obj *ApplicationEventingConfiguration) graphql.Marshaler { 34254 fields := graphql.CollectFields(ec.OperationContext, sel, applicationEventingConfigurationImplementors) 34255 34256 out := graphql.NewFieldSet(fields) 34257 var invalids uint32 34258 for i, field := range fields { 34259 switch field.Name { 34260 case "__typename": 34261 out.Values[i] = graphql.MarshalString("ApplicationEventingConfiguration") 34262 case "defaultURL": 34263 out.Values[i] = ec._ApplicationEventingConfiguration_defaultURL(ctx, field, obj) 34264 if out.Values[i] == graphql.Null { 34265 invalids++ 34266 } 34267 default: 34268 panic("unknown field " + strconv.Quote(field.Name)) 34269 } 34270 } 34271 out.Dispatch() 34272 if invalids > 0 { 34273 return graphql.Null 34274 } 34275 return out 34276 } 34277 34278 var applicationPageImplementors = []string{"ApplicationPage", "Pageable"} 34279 34280 func (ec *executionContext) _ApplicationPage(ctx context.Context, sel ast.SelectionSet, obj *ApplicationPage) graphql.Marshaler { 34281 fields := graphql.CollectFields(ec.OperationContext, sel, applicationPageImplementors) 34282 34283 out := graphql.NewFieldSet(fields) 34284 var invalids uint32 34285 for i, field := range fields { 34286 switch field.Name { 34287 case "__typename": 34288 out.Values[i] = graphql.MarshalString("ApplicationPage") 34289 case "data": 34290 out.Values[i] = ec._ApplicationPage_data(ctx, field, obj) 34291 if out.Values[i] == graphql.Null { 34292 invalids++ 34293 } 34294 case "pageInfo": 34295 out.Values[i] = ec._ApplicationPage_pageInfo(ctx, field, obj) 34296 if out.Values[i] == graphql.Null { 34297 invalids++ 34298 } 34299 case "totalCount": 34300 out.Values[i] = ec._ApplicationPage_totalCount(ctx, field, obj) 34301 if out.Values[i] == graphql.Null { 34302 invalids++ 34303 } 34304 default: 34305 panic("unknown field " + strconv.Quote(field.Name)) 34306 } 34307 } 34308 out.Dispatch() 34309 if invalids > 0 { 34310 return graphql.Null 34311 } 34312 return out 34313 } 34314 34315 var applicationStatusImplementors = []string{"ApplicationStatus"} 34316 34317 func (ec *executionContext) _ApplicationStatus(ctx context.Context, sel ast.SelectionSet, obj *ApplicationStatus) graphql.Marshaler { 34318 fields := graphql.CollectFields(ec.OperationContext, sel, applicationStatusImplementors) 34319 34320 out := graphql.NewFieldSet(fields) 34321 var invalids uint32 34322 for i, field := range fields { 34323 switch field.Name { 34324 case "__typename": 34325 out.Values[i] = graphql.MarshalString("ApplicationStatus") 34326 case "condition": 34327 out.Values[i] = ec._ApplicationStatus_condition(ctx, field, obj) 34328 if out.Values[i] == graphql.Null { 34329 invalids++ 34330 } 34331 case "timestamp": 34332 out.Values[i] = ec._ApplicationStatus_timestamp(ctx, field, obj) 34333 if out.Values[i] == graphql.Null { 34334 invalids++ 34335 } 34336 default: 34337 panic("unknown field " + strconv.Quote(field.Name)) 34338 } 34339 } 34340 out.Dispatch() 34341 if invalids > 0 { 34342 return graphql.Null 34343 } 34344 return out 34345 } 34346 34347 var applicationTemplateImplementors = []string{"ApplicationTemplate"} 34348 34349 func (ec *executionContext) _ApplicationTemplate(ctx context.Context, sel ast.SelectionSet, obj *ApplicationTemplate) graphql.Marshaler { 34350 fields := graphql.CollectFields(ec.OperationContext, sel, applicationTemplateImplementors) 34351 34352 out := graphql.NewFieldSet(fields) 34353 var invalids uint32 34354 for i, field := range fields { 34355 switch field.Name { 34356 case "__typename": 34357 out.Values[i] = graphql.MarshalString("ApplicationTemplate") 34358 case "id": 34359 out.Values[i] = ec._ApplicationTemplate_id(ctx, field, obj) 34360 if out.Values[i] == graphql.Null { 34361 atomic.AddUint32(&invalids, 1) 34362 } 34363 case "name": 34364 out.Values[i] = ec._ApplicationTemplate_name(ctx, field, obj) 34365 if out.Values[i] == graphql.Null { 34366 atomic.AddUint32(&invalids, 1) 34367 } 34368 case "description": 34369 out.Values[i] = ec._ApplicationTemplate_description(ctx, field, obj) 34370 case "webhooks": 34371 field := field 34372 out.Concurrently(i, func() (res graphql.Marshaler) { 34373 defer func() { 34374 if r := recover(); r != nil { 34375 ec.Error(ctx, ec.Recover(ctx, r)) 34376 } 34377 }() 34378 res = ec._ApplicationTemplate_webhooks(ctx, field, obj) 34379 return res 34380 }) 34381 case "applicationInput": 34382 out.Values[i] = ec._ApplicationTemplate_applicationInput(ctx, field, obj) 34383 if out.Values[i] == graphql.Null { 34384 atomic.AddUint32(&invalids, 1) 34385 } 34386 case "placeholders": 34387 out.Values[i] = ec._ApplicationTemplate_placeholders(ctx, field, obj) 34388 if out.Values[i] == graphql.Null { 34389 atomic.AddUint32(&invalids, 1) 34390 } 34391 case "labels": 34392 field := field 34393 out.Concurrently(i, func() (res graphql.Marshaler) { 34394 defer func() { 34395 if r := recover(); r != nil { 34396 ec.Error(ctx, ec.Recover(ctx, r)) 34397 } 34398 }() 34399 res = ec._ApplicationTemplate_labels(ctx, field, obj) 34400 return res 34401 }) 34402 case "accessLevel": 34403 out.Values[i] = ec._ApplicationTemplate_accessLevel(ctx, field, obj) 34404 if out.Values[i] == graphql.Null { 34405 atomic.AddUint32(&invalids, 1) 34406 } 34407 case "applicationNamespace": 34408 out.Values[i] = ec._ApplicationTemplate_applicationNamespace(ctx, field, obj) 34409 default: 34410 panic("unknown field " + strconv.Quote(field.Name)) 34411 } 34412 } 34413 out.Dispatch() 34414 if invalids > 0 { 34415 return graphql.Null 34416 } 34417 return out 34418 } 34419 34420 var applicationTemplatePageImplementors = []string{"ApplicationTemplatePage", "Pageable"} 34421 34422 func (ec *executionContext) _ApplicationTemplatePage(ctx context.Context, sel ast.SelectionSet, obj *ApplicationTemplatePage) graphql.Marshaler { 34423 fields := graphql.CollectFields(ec.OperationContext, sel, applicationTemplatePageImplementors) 34424 34425 out := graphql.NewFieldSet(fields) 34426 var invalids uint32 34427 for i, field := range fields { 34428 switch field.Name { 34429 case "__typename": 34430 out.Values[i] = graphql.MarshalString("ApplicationTemplatePage") 34431 case "data": 34432 out.Values[i] = ec._ApplicationTemplatePage_data(ctx, field, obj) 34433 if out.Values[i] == graphql.Null { 34434 invalids++ 34435 } 34436 case "pageInfo": 34437 out.Values[i] = ec._ApplicationTemplatePage_pageInfo(ctx, field, obj) 34438 if out.Values[i] == graphql.Null { 34439 invalids++ 34440 } 34441 case "totalCount": 34442 out.Values[i] = ec._ApplicationTemplatePage_totalCount(ctx, field, obj) 34443 if out.Values[i] == graphql.Null { 34444 invalids++ 34445 } 34446 default: 34447 panic("unknown field " + strconv.Quote(field.Name)) 34448 } 34449 } 34450 out.Dispatch() 34451 if invalids > 0 { 34452 return graphql.Null 34453 } 34454 return out 34455 } 34456 34457 var authImplementors = []string{"Auth"} 34458 34459 func (ec *executionContext) _Auth(ctx context.Context, sel ast.SelectionSet, obj *Auth) graphql.Marshaler { 34460 fields := graphql.CollectFields(ec.OperationContext, sel, authImplementors) 34461 34462 out := graphql.NewFieldSet(fields) 34463 var invalids uint32 34464 for i, field := range fields { 34465 switch field.Name { 34466 case "__typename": 34467 out.Values[i] = graphql.MarshalString("Auth") 34468 case "credential": 34469 out.Values[i] = ec._Auth_credential(ctx, field, obj) 34470 case "accessStrategy": 34471 out.Values[i] = ec._Auth_accessStrategy(ctx, field, obj) 34472 case "additionalHeaders": 34473 out.Values[i] = ec._Auth_additionalHeaders(ctx, field, obj) 34474 case "additionalHeadersSerialized": 34475 out.Values[i] = ec._Auth_additionalHeadersSerialized(ctx, field, obj) 34476 case "additionalQueryParams": 34477 out.Values[i] = ec._Auth_additionalQueryParams(ctx, field, obj) 34478 case "additionalQueryParamsSerialized": 34479 out.Values[i] = ec._Auth_additionalQueryParamsSerialized(ctx, field, obj) 34480 case "requestAuth": 34481 out.Values[i] = ec._Auth_requestAuth(ctx, field, obj) 34482 case "oneTimeToken": 34483 out.Values[i] = ec._Auth_oneTimeToken(ctx, field, obj) 34484 case "certCommonName": 34485 out.Values[i] = ec._Auth_certCommonName(ctx, field, obj) 34486 default: 34487 panic("unknown field " + strconv.Quote(field.Name)) 34488 } 34489 } 34490 out.Dispatch() 34491 if invalids > 0 { 34492 return graphql.Null 34493 } 34494 return out 34495 } 34496 34497 var automaticScenarioAssignmentImplementors = []string{"AutomaticScenarioAssignment"} 34498 34499 func (ec *executionContext) _AutomaticScenarioAssignment(ctx context.Context, sel ast.SelectionSet, obj *AutomaticScenarioAssignment) graphql.Marshaler { 34500 fields := graphql.CollectFields(ec.OperationContext, sel, automaticScenarioAssignmentImplementors) 34501 34502 out := graphql.NewFieldSet(fields) 34503 var invalids uint32 34504 for i, field := range fields { 34505 switch field.Name { 34506 case "__typename": 34507 out.Values[i] = graphql.MarshalString("AutomaticScenarioAssignment") 34508 case "scenarioName": 34509 out.Values[i] = ec._AutomaticScenarioAssignment_scenarioName(ctx, field, obj) 34510 if out.Values[i] == graphql.Null { 34511 invalids++ 34512 } 34513 case "selector": 34514 out.Values[i] = ec._AutomaticScenarioAssignment_selector(ctx, field, obj) 34515 if out.Values[i] == graphql.Null { 34516 invalids++ 34517 } 34518 default: 34519 panic("unknown field " + strconv.Quote(field.Name)) 34520 } 34521 } 34522 out.Dispatch() 34523 if invalids > 0 { 34524 return graphql.Null 34525 } 34526 return out 34527 } 34528 34529 var automaticScenarioAssignmentPageImplementors = []string{"AutomaticScenarioAssignmentPage", "Pageable"} 34530 34531 func (ec *executionContext) _AutomaticScenarioAssignmentPage(ctx context.Context, sel ast.SelectionSet, obj *AutomaticScenarioAssignmentPage) graphql.Marshaler { 34532 fields := graphql.CollectFields(ec.OperationContext, sel, automaticScenarioAssignmentPageImplementors) 34533 34534 out := graphql.NewFieldSet(fields) 34535 var invalids uint32 34536 for i, field := range fields { 34537 switch field.Name { 34538 case "__typename": 34539 out.Values[i] = graphql.MarshalString("AutomaticScenarioAssignmentPage") 34540 case "data": 34541 out.Values[i] = ec._AutomaticScenarioAssignmentPage_data(ctx, field, obj) 34542 if out.Values[i] == graphql.Null { 34543 invalids++ 34544 } 34545 case "pageInfo": 34546 out.Values[i] = ec._AutomaticScenarioAssignmentPage_pageInfo(ctx, field, obj) 34547 if out.Values[i] == graphql.Null { 34548 invalids++ 34549 } 34550 case "totalCount": 34551 out.Values[i] = ec._AutomaticScenarioAssignmentPage_totalCount(ctx, field, obj) 34552 if out.Values[i] == graphql.Null { 34553 invalids++ 34554 } 34555 default: 34556 panic("unknown field " + strconv.Quote(field.Name)) 34557 } 34558 } 34559 out.Dispatch() 34560 if invalids > 0 { 34561 return graphql.Null 34562 } 34563 return out 34564 } 34565 34566 var basicCredentialDataImplementors = []string{"BasicCredentialData", "CredentialData"} 34567 34568 func (ec *executionContext) _BasicCredentialData(ctx context.Context, sel ast.SelectionSet, obj *BasicCredentialData) graphql.Marshaler { 34569 fields := graphql.CollectFields(ec.OperationContext, sel, basicCredentialDataImplementors) 34570 34571 out := graphql.NewFieldSet(fields) 34572 var invalids uint32 34573 for i, field := range fields { 34574 switch field.Name { 34575 case "__typename": 34576 out.Values[i] = graphql.MarshalString("BasicCredentialData") 34577 case "username": 34578 out.Values[i] = ec._BasicCredentialData_username(ctx, field, obj) 34579 if out.Values[i] == graphql.Null { 34580 invalids++ 34581 } 34582 case "password": 34583 out.Values[i] = ec._BasicCredentialData_password(ctx, field, obj) 34584 if out.Values[i] == graphql.Null { 34585 invalids++ 34586 } 34587 default: 34588 panic("unknown field " + strconv.Quote(field.Name)) 34589 } 34590 } 34591 out.Dispatch() 34592 if invalids > 0 { 34593 return graphql.Null 34594 } 34595 return out 34596 } 34597 34598 var bundleImplementors = []string{"Bundle"} 34599 34600 func (ec *executionContext) _Bundle(ctx context.Context, sel ast.SelectionSet, obj *Bundle) graphql.Marshaler { 34601 fields := graphql.CollectFields(ec.OperationContext, sel, bundleImplementors) 34602 34603 out := graphql.NewFieldSet(fields) 34604 var invalids uint32 34605 for i, field := range fields { 34606 switch field.Name { 34607 case "__typename": 34608 out.Values[i] = graphql.MarshalString("Bundle") 34609 case "id": 34610 out.Values[i] = ec._Bundle_id(ctx, field, obj) 34611 if out.Values[i] == graphql.Null { 34612 atomic.AddUint32(&invalids, 1) 34613 } 34614 case "name": 34615 out.Values[i] = ec._Bundle_name(ctx, field, obj) 34616 if out.Values[i] == graphql.Null { 34617 atomic.AddUint32(&invalids, 1) 34618 } 34619 case "description": 34620 out.Values[i] = ec._Bundle_description(ctx, field, obj) 34621 case "instanceAuthRequestInputSchema": 34622 out.Values[i] = ec._Bundle_instanceAuthRequestInputSchema(ctx, field, obj) 34623 case "instanceAuth": 34624 field := field 34625 out.Concurrently(i, func() (res graphql.Marshaler) { 34626 defer func() { 34627 if r := recover(); r != nil { 34628 ec.Error(ctx, ec.Recover(ctx, r)) 34629 } 34630 }() 34631 res = ec._Bundle_instanceAuth(ctx, field, obj) 34632 return res 34633 }) 34634 case "instanceAuths": 34635 field := field 34636 out.Concurrently(i, func() (res graphql.Marshaler) { 34637 defer func() { 34638 if r := recover(); r != nil { 34639 ec.Error(ctx, ec.Recover(ctx, r)) 34640 } 34641 }() 34642 res = ec._Bundle_instanceAuths(ctx, field, obj) 34643 return res 34644 }) 34645 case "defaultInstanceAuth": 34646 out.Values[i] = ec._Bundle_defaultInstanceAuth(ctx, field, obj) 34647 case "apiDefinitions": 34648 field := field 34649 out.Concurrently(i, func() (res graphql.Marshaler) { 34650 defer func() { 34651 if r := recover(); r != nil { 34652 ec.Error(ctx, ec.Recover(ctx, r)) 34653 } 34654 }() 34655 res = ec._Bundle_apiDefinitions(ctx, field, obj) 34656 return res 34657 }) 34658 case "eventDefinitions": 34659 field := field 34660 out.Concurrently(i, func() (res graphql.Marshaler) { 34661 defer func() { 34662 if r := recover(); r != nil { 34663 ec.Error(ctx, ec.Recover(ctx, r)) 34664 } 34665 }() 34666 res = ec._Bundle_eventDefinitions(ctx, field, obj) 34667 return res 34668 }) 34669 case "documents": 34670 field := field 34671 out.Concurrently(i, func() (res graphql.Marshaler) { 34672 defer func() { 34673 if r := recover(); r != nil { 34674 ec.Error(ctx, ec.Recover(ctx, r)) 34675 } 34676 }() 34677 res = ec._Bundle_documents(ctx, field, obj) 34678 return res 34679 }) 34680 case "apiDefinition": 34681 field := field 34682 out.Concurrently(i, func() (res graphql.Marshaler) { 34683 defer func() { 34684 if r := recover(); r != nil { 34685 ec.Error(ctx, ec.Recover(ctx, r)) 34686 } 34687 }() 34688 res = ec._Bundle_apiDefinition(ctx, field, obj) 34689 return res 34690 }) 34691 case "eventDefinition": 34692 field := field 34693 out.Concurrently(i, func() (res graphql.Marshaler) { 34694 defer func() { 34695 if r := recover(); r != nil { 34696 ec.Error(ctx, ec.Recover(ctx, r)) 34697 } 34698 }() 34699 res = ec._Bundle_eventDefinition(ctx, field, obj) 34700 return res 34701 }) 34702 case "correlationIDs": 34703 out.Values[i] = ec._Bundle_correlationIDs(ctx, field, obj) 34704 case "document": 34705 field := field 34706 out.Concurrently(i, func() (res graphql.Marshaler) { 34707 defer func() { 34708 if r := recover(); r != nil { 34709 ec.Error(ctx, ec.Recover(ctx, r)) 34710 } 34711 }() 34712 res = ec._Bundle_document(ctx, field, obj) 34713 return res 34714 }) 34715 case "createdAt": 34716 out.Values[i] = ec._Bundle_createdAt(ctx, field, obj) 34717 case "updatedAt": 34718 out.Values[i] = ec._Bundle_updatedAt(ctx, field, obj) 34719 case "deletedAt": 34720 out.Values[i] = ec._Bundle_deletedAt(ctx, field, obj) 34721 case "error": 34722 out.Values[i] = ec._Bundle_error(ctx, field, obj) 34723 default: 34724 panic("unknown field " + strconv.Quote(field.Name)) 34725 } 34726 } 34727 out.Dispatch() 34728 if invalids > 0 { 34729 return graphql.Null 34730 } 34731 return out 34732 } 34733 34734 var bundleInstanceAuthImplementors = []string{"BundleInstanceAuth"} 34735 34736 func (ec *executionContext) _BundleInstanceAuth(ctx context.Context, sel ast.SelectionSet, obj *BundleInstanceAuth) graphql.Marshaler { 34737 fields := graphql.CollectFields(ec.OperationContext, sel, bundleInstanceAuthImplementors) 34738 34739 out := graphql.NewFieldSet(fields) 34740 var invalids uint32 34741 for i, field := range fields { 34742 switch field.Name { 34743 case "__typename": 34744 out.Values[i] = graphql.MarshalString("BundleInstanceAuth") 34745 case "id": 34746 out.Values[i] = ec._BundleInstanceAuth_id(ctx, field, obj) 34747 if out.Values[i] == graphql.Null { 34748 invalids++ 34749 } 34750 case "context": 34751 out.Values[i] = ec._BundleInstanceAuth_context(ctx, field, obj) 34752 case "inputParams": 34753 out.Values[i] = ec._BundleInstanceAuth_inputParams(ctx, field, obj) 34754 case "auth": 34755 out.Values[i] = ec._BundleInstanceAuth_auth(ctx, field, obj) 34756 case "status": 34757 out.Values[i] = ec._BundleInstanceAuth_status(ctx, field, obj) 34758 if out.Values[i] == graphql.Null { 34759 invalids++ 34760 } 34761 case "runtimeID": 34762 out.Values[i] = ec._BundleInstanceAuth_runtimeID(ctx, field, obj) 34763 case "runtimeContextID": 34764 out.Values[i] = ec._BundleInstanceAuth_runtimeContextID(ctx, field, obj) 34765 default: 34766 panic("unknown field " + strconv.Quote(field.Name)) 34767 } 34768 } 34769 out.Dispatch() 34770 if invalids > 0 { 34771 return graphql.Null 34772 } 34773 return out 34774 } 34775 34776 var bundleInstanceAuthStatusImplementors = []string{"BundleInstanceAuthStatus"} 34777 34778 func (ec *executionContext) _BundleInstanceAuthStatus(ctx context.Context, sel ast.SelectionSet, obj *BundleInstanceAuthStatus) graphql.Marshaler { 34779 fields := graphql.CollectFields(ec.OperationContext, sel, bundleInstanceAuthStatusImplementors) 34780 34781 out := graphql.NewFieldSet(fields) 34782 var invalids uint32 34783 for i, field := range fields { 34784 switch field.Name { 34785 case "__typename": 34786 out.Values[i] = graphql.MarshalString("BundleInstanceAuthStatus") 34787 case "condition": 34788 out.Values[i] = ec._BundleInstanceAuthStatus_condition(ctx, field, obj) 34789 if out.Values[i] == graphql.Null { 34790 invalids++ 34791 } 34792 case "timestamp": 34793 out.Values[i] = ec._BundleInstanceAuthStatus_timestamp(ctx, field, obj) 34794 if out.Values[i] == graphql.Null { 34795 invalids++ 34796 } 34797 case "message": 34798 out.Values[i] = ec._BundleInstanceAuthStatus_message(ctx, field, obj) 34799 if out.Values[i] == graphql.Null { 34800 invalids++ 34801 } 34802 case "reason": 34803 out.Values[i] = ec._BundleInstanceAuthStatus_reason(ctx, field, obj) 34804 if out.Values[i] == graphql.Null { 34805 invalids++ 34806 } 34807 default: 34808 panic("unknown field " + strconv.Quote(field.Name)) 34809 } 34810 } 34811 out.Dispatch() 34812 if invalids > 0 { 34813 return graphql.Null 34814 } 34815 return out 34816 } 34817 34818 var bundlePageImplementors = []string{"BundlePage", "Pageable"} 34819 34820 func (ec *executionContext) _BundlePage(ctx context.Context, sel ast.SelectionSet, obj *BundlePage) graphql.Marshaler { 34821 fields := graphql.CollectFields(ec.OperationContext, sel, bundlePageImplementors) 34822 34823 out := graphql.NewFieldSet(fields) 34824 var invalids uint32 34825 for i, field := range fields { 34826 switch field.Name { 34827 case "__typename": 34828 out.Values[i] = graphql.MarshalString("BundlePage") 34829 case "data": 34830 out.Values[i] = ec._BundlePage_data(ctx, field, obj) 34831 if out.Values[i] == graphql.Null { 34832 invalids++ 34833 } 34834 case "pageInfo": 34835 out.Values[i] = ec._BundlePage_pageInfo(ctx, field, obj) 34836 if out.Values[i] == graphql.Null { 34837 invalids++ 34838 } 34839 case "totalCount": 34840 out.Values[i] = ec._BundlePage_totalCount(ctx, field, obj) 34841 if out.Values[i] == graphql.Null { 34842 invalids++ 34843 } 34844 default: 34845 panic("unknown field " + strconv.Quote(field.Name)) 34846 } 34847 } 34848 out.Dispatch() 34849 if invalids > 0 { 34850 return graphql.Null 34851 } 34852 return out 34853 } 34854 34855 var cSRFTokenCredentialRequestAuthImplementors = []string{"CSRFTokenCredentialRequestAuth"} 34856 34857 func (ec *executionContext) _CSRFTokenCredentialRequestAuth(ctx context.Context, sel ast.SelectionSet, obj *CSRFTokenCredentialRequestAuth) graphql.Marshaler { 34858 fields := graphql.CollectFields(ec.OperationContext, sel, cSRFTokenCredentialRequestAuthImplementors) 34859 34860 out := graphql.NewFieldSet(fields) 34861 var invalids uint32 34862 for i, field := range fields { 34863 switch field.Name { 34864 case "__typename": 34865 out.Values[i] = graphql.MarshalString("CSRFTokenCredentialRequestAuth") 34866 case "tokenEndpointURL": 34867 out.Values[i] = ec._CSRFTokenCredentialRequestAuth_tokenEndpointURL(ctx, field, obj) 34868 if out.Values[i] == graphql.Null { 34869 invalids++ 34870 } 34871 case "credential": 34872 out.Values[i] = ec._CSRFTokenCredentialRequestAuth_credential(ctx, field, obj) 34873 case "additionalHeaders": 34874 out.Values[i] = ec._CSRFTokenCredentialRequestAuth_additionalHeaders(ctx, field, obj) 34875 case "additionalHeadersSerialized": 34876 out.Values[i] = ec._CSRFTokenCredentialRequestAuth_additionalHeadersSerialized(ctx, field, obj) 34877 case "additionalQueryParams": 34878 out.Values[i] = ec._CSRFTokenCredentialRequestAuth_additionalQueryParams(ctx, field, obj) 34879 case "additionalQueryParamsSerialized": 34880 out.Values[i] = ec._CSRFTokenCredentialRequestAuth_additionalQueryParamsSerialized(ctx, field, obj) 34881 default: 34882 panic("unknown field " + strconv.Quote(field.Name)) 34883 } 34884 } 34885 out.Dispatch() 34886 if invalids > 0 { 34887 return graphql.Null 34888 } 34889 return out 34890 } 34891 34892 var certificateOAuthCredentialDataImplementors = []string{"CertificateOAuthCredentialData", "CredentialData"} 34893 34894 func (ec *executionContext) _CertificateOAuthCredentialData(ctx context.Context, sel ast.SelectionSet, obj *CertificateOAuthCredentialData) graphql.Marshaler { 34895 fields := graphql.CollectFields(ec.OperationContext, sel, certificateOAuthCredentialDataImplementors) 34896 34897 out := graphql.NewFieldSet(fields) 34898 var invalids uint32 34899 for i, field := range fields { 34900 switch field.Name { 34901 case "__typename": 34902 out.Values[i] = graphql.MarshalString("CertificateOAuthCredentialData") 34903 case "clientId": 34904 out.Values[i] = ec._CertificateOAuthCredentialData_clientId(ctx, field, obj) 34905 if out.Values[i] == graphql.Null { 34906 invalids++ 34907 } 34908 case "certificate": 34909 out.Values[i] = ec._CertificateOAuthCredentialData_certificate(ctx, field, obj) 34910 if out.Values[i] == graphql.Null { 34911 invalids++ 34912 } 34913 case "url": 34914 out.Values[i] = ec._CertificateOAuthCredentialData_url(ctx, field, obj) 34915 if out.Values[i] == graphql.Null { 34916 invalids++ 34917 } 34918 default: 34919 panic("unknown field " + strconv.Quote(field.Name)) 34920 } 34921 } 34922 out.Dispatch() 34923 if invalids > 0 { 34924 return graphql.Null 34925 } 34926 return out 34927 } 34928 34929 var certificateSubjectMappingImplementors = []string{"CertificateSubjectMapping"} 34930 34931 func (ec *executionContext) _CertificateSubjectMapping(ctx context.Context, sel ast.SelectionSet, obj *CertificateSubjectMapping) graphql.Marshaler { 34932 fields := graphql.CollectFields(ec.OperationContext, sel, certificateSubjectMappingImplementors) 34933 34934 out := graphql.NewFieldSet(fields) 34935 var invalids uint32 34936 for i, field := range fields { 34937 switch field.Name { 34938 case "__typename": 34939 out.Values[i] = graphql.MarshalString("CertificateSubjectMapping") 34940 case "id": 34941 out.Values[i] = ec._CertificateSubjectMapping_id(ctx, field, obj) 34942 if out.Values[i] == graphql.Null { 34943 invalids++ 34944 } 34945 case "subject": 34946 out.Values[i] = ec._CertificateSubjectMapping_subject(ctx, field, obj) 34947 if out.Values[i] == graphql.Null { 34948 invalids++ 34949 } 34950 case "consumerType": 34951 out.Values[i] = ec._CertificateSubjectMapping_consumerType(ctx, field, obj) 34952 if out.Values[i] == graphql.Null { 34953 invalids++ 34954 } 34955 case "internalConsumerID": 34956 out.Values[i] = ec._CertificateSubjectMapping_internalConsumerID(ctx, field, obj) 34957 case "tenantAccessLevels": 34958 out.Values[i] = ec._CertificateSubjectMapping_tenantAccessLevels(ctx, field, obj) 34959 if out.Values[i] == graphql.Null { 34960 invalids++ 34961 } 34962 default: 34963 panic("unknown field " + strconv.Quote(field.Name)) 34964 } 34965 } 34966 out.Dispatch() 34967 if invalids > 0 { 34968 return graphql.Null 34969 } 34970 return out 34971 } 34972 34973 var certificateSubjectMappingPageImplementors = []string{"CertificateSubjectMappingPage", "Pageable"} 34974 34975 func (ec *executionContext) _CertificateSubjectMappingPage(ctx context.Context, sel ast.SelectionSet, obj *CertificateSubjectMappingPage) graphql.Marshaler { 34976 fields := graphql.CollectFields(ec.OperationContext, sel, certificateSubjectMappingPageImplementors) 34977 34978 out := graphql.NewFieldSet(fields) 34979 var invalids uint32 34980 for i, field := range fields { 34981 switch field.Name { 34982 case "__typename": 34983 out.Values[i] = graphql.MarshalString("CertificateSubjectMappingPage") 34984 case "data": 34985 out.Values[i] = ec._CertificateSubjectMappingPage_data(ctx, field, obj) 34986 if out.Values[i] == graphql.Null { 34987 invalids++ 34988 } 34989 case "pageInfo": 34990 out.Values[i] = ec._CertificateSubjectMappingPage_pageInfo(ctx, field, obj) 34991 if out.Values[i] == graphql.Null { 34992 invalids++ 34993 } 34994 case "totalCount": 34995 out.Values[i] = ec._CertificateSubjectMappingPage_totalCount(ctx, field, obj) 34996 if out.Values[i] == graphql.Null { 34997 invalids++ 34998 } 34999 default: 35000 panic("unknown field " + strconv.Quote(field.Name)) 35001 } 35002 } 35003 out.Dispatch() 35004 if invalids > 0 { 35005 return graphql.Null 35006 } 35007 return out 35008 } 35009 35010 var constraintReferenceImplementors = []string{"ConstraintReference"} 35011 35012 func (ec *executionContext) _ConstraintReference(ctx context.Context, sel ast.SelectionSet, obj *ConstraintReference) graphql.Marshaler { 35013 fields := graphql.CollectFields(ec.OperationContext, sel, constraintReferenceImplementors) 35014 35015 out := graphql.NewFieldSet(fields) 35016 var invalids uint32 35017 for i, field := range fields { 35018 switch field.Name { 35019 case "__typename": 35020 out.Values[i] = graphql.MarshalString("ConstraintReference") 35021 case "constraintID": 35022 out.Values[i] = ec._ConstraintReference_constraintID(ctx, field, obj) 35023 if out.Values[i] == graphql.Null { 35024 invalids++ 35025 } 35026 case "formationTemplateID": 35027 out.Values[i] = ec._ConstraintReference_formationTemplateID(ctx, field, obj) 35028 if out.Values[i] == graphql.Null { 35029 invalids++ 35030 } 35031 default: 35032 panic("unknown field " + strconv.Quote(field.Name)) 35033 } 35034 } 35035 out.Dispatch() 35036 if invalids > 0 { 35037 return graphql.Null 35038 } 35039 return out 35040 } 35041 35042 var credentialRequestAuthImplementors = []string{"CredentialRequestAuth"} 35043 35044 func (ec *executionContext) _CredentialRequestAuth(ctx context.Context, sel ast.SelectionSet, obj *CredentialRequestAuth) graphql.Marshaler { 35045 fields := graphql.CollectFields(ec.OperationContext, sel, credentialRequestAuthImplementors) 35046 35047 out := graphql.NewFieldSet(fields) 35048 var invalids uint32 35049 for i, field := range fields { 35050 switch field.Name { 35051 case "__typename": 35052 out.Values[i] = graphql.MarshalString("CredentialRequestAuth") 35053 case "csrf": 35054 out.Values[i] = ec._CredentialRequestAuth_csrf(ctx, field, obj) 35055 default: 35056 panic("unknown field " + strconv.Quote(field.Name)) 35057 } 35058 } 35059 out.Dispatch() 35060 if invalids > 0 { 35061 return graphql.Null 35062 } 35063 return out 35064 } 35065 35066 var documentImplementors = []string{"Document"} 35067 35068 func (ec *executionContext) _Document(ctx context.Context, sel ast.SelectionSet, obj *Document) graphql.Marshaler { 35069 fields := graphql.CollectFields(ec.OperationContext, sel, documentImplementors) 35070 35071 out := graphql.NewFieldSet(fields) 35072 var invalids uint32 35073 for i, field := range fields { 35074 switch field.Name { 35075 case "__typename": 35076 out.Values[i] = graphql.MarshalString("Document") 35077 case "id": 35078 out.Values[i] = ec._Document_id(ctx, field, obj) 35079 if out.Values[i] == graphql.Null { 35080 atomic.AddUint32(&invalids, 1) 35081 } 35082 case "title": 35083 out.Values[i] = ec._Document_title(ctx, field, obj) 35084 if out.Values[i] == graphql.Null { 35085 atomic.AddUint32(&invalids, 1) 35086 } 35087 case "displayName": 35088 out.Values[i] = ec._Document_displayName(ctx, field, obj) 35089 if out.Values[i] == graphql.Null { 35090 atomic.AddUint32(&invalids, 1) 35091 } 35092 case "description": 35093 out.Values[i] = ec._Document_description(ctx, field, obj) 35094 if out.Values[i] == graphql.Null { 35095 atomic.AddUint32(&invalids, 1) 35096 } 35097 case "format": 35098 out.Values[i] = ec._Document_format(ctx, field, obj) 35099 if out.Values[i] == graphql.Null { 35100 atomic.AddUint32(&invalids, 1) 35101 } 35102 case "kind": 35103 out.Values[i] = ec._Document_kind(ctx, field, obj) 35104 case "data": 35105 out.Values[i] = ec._Document_data(ctx, field, obj) 35106 case "fetchRequest": 35107 field := field 35108 out.Concurrently(i, func() (res graphql.Marshaler) { 35109 defer func() { 35110 if r := recover(); r != nil { 35111 ec.Error(ctx, ec.Recover(ctx, r)) 35112 } 35113 }() 35114 res = ec._Document_fetchRequest(ctx, field, obj) 35115 return res 35116 }) 35117 case "createdAt": 35118 out.Values[i] = ec._Document_createdAt(ctx, field, obj) 35119 case "updatedAt": 35120 out.Values[i] = ec._Document_updatedAt(ctx, field, obj) 35121 case "deletedAt": 35122 out.Values[i] = ec._Document_deletedAt(ctx, field, obj) 35123 case "error": 35124 out.Values[i] = ec._Document_error(ctx, field, obj) 35125 default: 35126 panic("unknown field " + strconv.Quote(field.Name)) 35127 } 35128 } 35129 out.Dispatch() 35130 if invalids > 0 { 35131 return graphql.Null 35132 } 35133 return out 35134 } 35135 35136 var documentPageImplementors = []string{"DocumentPage", "Pageable"} 35137 35138 func (ec *executionContext) _DocumentPage(ctx context.Context, sel ast.SelectionSet, obj *DocumentPage) graphql.Marshaler { 35139 fields := graphql.CollectFields(ec.OperationContext, sel, documentPageImplementors) 35140 35141 out := graphql.NewFieldSet(fields) 35142 var invalids uint32 35143 for i, field := range fields { 35144 switch field.Name { 35145 case "__typename": 35146 out.Values[i] = graphql.MarshalString("DocumentPage") 35147 case "data": 35148 out.Values[i] = ec._DocumentPage_data(ctx, field, obj) 35149 if out.Values[i] == graphql.Null { 35150 invalids++ 35151 } 35152 case "pageInfo": 35153 out.Values[i] = ec._DocumentPage_pageInfo(ctx, field, obj) 35154 if out.Values[i] == graphql.Null { 35155 invalids++ 35156 } 35157 case "totalCount": 35158 out.Values[i] = ec._DocumentPage_totalCount(ctx, field, obj) 35159 if out.Values[i] == graphql.Null { 35160 invalids++ 35161 } 35162 default: 35163 panic("unknown field " + strconv.Quote(field.Name)) 35164 } 35165 } 35166 out.Dispatch() 35167 if invalids > 0 { 35168 return graphql.Null 35169 } 35170 return out 35171 } 35172 35173 var eventDefinitionImplementors = []string{"EventDefinition"} 35174 35175 func (ec *executionContext) _EventDefinition(ctx context.Context, sel ast.SelectionSet, obj *EventDefinition) graphql.Marshaler { 35176 fields := graphql.CollectFields(ec.OperationContext, sel, eventDefinitionImplementors) 35177 35178 out := graphql.NewFieldSet(fields) 35179 var invalids uint32 35180 for i, field := range fields { 35181 switch field.Name { 35182 case "__typename": 35183 out.Values[i] = graphql.MarshalString("EventDefinition") 35184 case "id": 35185 out.Values[i] = ec._EventDefinition_id(ctx, field, obj) 35186 if out.Values[i] == graphql.Null { 35187 invalids++ 35188 } 35189 case "name": 35190 out.Values[i] = ec._EventDefinition_name(ctx, field, obj) 35191 if out.Values[i] == graphql.Null { 35192 invalids++ 35193 } 35194 case "description": 35195 out.Values[i] = ec._EventDefinition_description(ctx, field, obj) 35196 case "group": 35197 out.Values[i] = ec._EventDefinition_group(ctx, field, obj) 35198 case "spec": 35199 out.Values[i] = ec._EventDefinition_spec(ctx, field, obj) 35200 case "version": 35201 out.Values[i] = ec._EventDefinition_version(ctx, field, obj) 35202 case "createdAt": 35203 out.Values[i] = ec._EventDefinition_createdAt(ctx, field, obj) 35204 case "updatedAt": 35205 out.Values[i] = ec._EventDefinition_updatedAt(ctx, field, obj) 35206 case "deletedAt": 35207 out.Values[i] = ec._EventDefinition_deletedAt(ctx, field, obj) 35208 case "error": 35209 out.Values[i] = ec._EventDefinition_error(ctx, field, obj) 35210 default: 35211 panic("unknown field " + strconv.Quote(field.Name)) 35212 } 35213 } 35214 out.Dispatch() 35215 if invalids > 0 { 35216 return graphql.Null 35217 } 35218 return out 35219 } 35220 35221 var eventDefinitionPageImplementors = []string{"EventDefinitionPage", "Pageable"} 35222 35223 func (ec *executionContext) _EventDefinitionPage(ctx context.Context, sel ast.SelectionSet, obj *EventDefinitionPage) graphql.Marshaler { 35224 fields := graphql.CollectFields(ec.OperationContext, sel, eventDefinitionPageImplementors) 35225 35226 out := graphql.NewFieldSet(fields) 35227 var invalids uint32 35228 for i, field := range fields { 35229 switch field.Name { 35230 case "__typename": 35231 out.Values[i] = graphql.MarshalString("EventDefinitionPage") 35232 case "data": 35233 out.Values[i] = ec._EventDefinitionPage_data(ctx, field, obj) 35234 if out.Values[i] == graphql.Null { 35235 invalids++ 35236 } 35237 case "pageInfo": 35238 out.Values[i] = ec._EventDefinitionPage_pageInfo(ctx, field, obj) 35239 if out.Values[i] == graphql.Null { 35240 invalids++ 35241 } 35242 case "totalCount": 35243 out.Values[i] = ec._EventDefinitionPage_totalCount(ctx, field, obj) 35244 if out.Values[i] == graphql.Null { 35245 invalids++ 35246 } 35247 default: 35248 panic("unknown field " + strconv.Quote(field.Name)) 35249 } 35250 } 35251 out.Dispatch() 35252 if invalids > 0 { 35253 return graphql.Null 35254 } 35255 return out 35256 } 35257 35258 var eventSpecImplementors = []string{"EventSpec"} 35259 35260 func (ec *executionContext) _EventSpec(ctx context.Context, sel ast.SelectionSet, obj *EventSpec) graphql.Marshaler { 35261 fields := graphql.CollectFields(ec.OperationContext, sel, eventSpecImplementors) 35262 35263 out := graphql.NewFieldSet(fields) 35264 var invalids uint32 35265 for i, field := range fields { 35266 switch field.Name { 35267 case "__typename": 35268 out.Values[i] = graphql.MarshalString("EventSpec") 35269 case "id": 35270 out.Values[i] = ec._EventSpec_id(ctx, field, obj) 35271 if out.Values[i] == graphql.Null { 35272 atomic.AddUint32(&invalids, 1) 35273 } 35274 case "data": 35275 out.Values[i] = ec._EventSpec_data(ctx, field, obj) 35276 case "type": 35277 out.Values[i] = ec._EventSpec_type(ctx, field, obj) 35278 if out.Values[i] == graphql.Null { 35279 atomic.AddUint32(&invalids, 1) 35280 } 35281 case "format": 35282 out.Values[i] = ec._EventSpec_format(ctx, field, obj) 35283 if out.Values[i] == graphql.Null { 35284 atomic.AddUint32(&invalids, 1) 35285 } 35286 case "fetchRequest": 35287 field := field 35288 out.Concurrently(i, func() (res graphql.Marshaler) { 35289 defer func() { 35290 if r := recover(); r != nil { 35291 ec.Error(ctx, ec.Recover(ctx, r)) 35292 } 35293 }() 35294 res = ec._EventSpec_fetchRequest(ctx, field, obj) 35295 return res 35296 }) 35297 default: 35298 panic("unknown field " + strconv.Quote(field.Name)) 35299 } 35300 } 35301 out.Dispatch() 35302 if invalids > 0 { 35303 return graphql.Null 35304 } 35305 return out 35306 } 35307 35308 var fetchRequestImplementors = []string{"FetchRequest"} 35309 35310 func (ec *executionContext) _FetchRequest(ctx context.Context, sel ast.SelectionSet, obj *FetchRequest) graphql.Marshaler { 35311 fields := graphql.CollectFields(ec.OperationContext, sel, fetchRequestImplementors) 35312 35313 out := graphql.NewFieldSet(fields) 35314 var invalids uint32 35315 for i, field := range fields { 35316 switch field.Name { 35317 case "__typename": 35318 out.Values[i] = graphql.MarshalString("FetchRequest") 35319 case "url": 35320 out.Values[i] = ec._FetchRequest_url(ctx, field, obj) 35321 if out.Values[i] == graphql.Null { 35322 invalids++ 35323 } 35324 case "auth": 35325 out.Values[i] = ec._FetchRequest_auth(ctx, field, obj) 35326 case "mode": 35327 out.Values[i] = ec._FetchRequest_mode(ctx, field, obj) 35328 if out.Values[i] == graphql.Null { 35329 invalids++ 35330 } 35331 case "filter": 35332 out.Values[i] = ec._FetchRequest_filter(ctx, field, obj) 35333 case "status": 35334 out.Values[i] = ec._FetchRequest_status(ctx, field, obj) 35335 if out.Values[i] == graphql.Null { 35336 invalids++ 35337 } 35338 default: 35339 panic("unknown field " + strconv.Quote(field.Name)) 35340 } 35341 } 35342 out.Dispatch() 35343 if invalids > 0 { 35344 return graphql.Null 35345 } 35346 return out 35347 } 35348 35349 var fetchRequestStatusImplementors = []string{"FetchRequestStatus"} 35350 35351 func (ec *executionContext) _FetchRequestStatus(ctx context.Context, sel ast.SelectionSet, obj *FetchRequestStatus) graphql.Marshaler { 35352 fields := graphql.CollectFields(ec.OperationContext, sel, fetchRequestStatusImplementors) 35353 35354 out := graphql.NewFieldSet(fields) 35355 var invalids uint32 35356 for i, field := range fields { 35357 switch field.Name { 35358 case "__typename": 35359 out.Values[i] = graphql.MarshalString("FetchRequestStatus") 35360 case "condition": 35361 out.Values[i] = ec._FetchRequestStatus_condition(ctx, field, obj) 35362 if out.Values[i] == graphql.Null { 35363 invalids++ 35364 } 35365 case "message": 35366 out.Values[i] = ec._FetchRequestStatus_message(ctx, field, obj) 35367 case "timestamp": 35368 out.Values[i] = ec._FetchRequestStatus_timestamp(ctx, field, obj) 35369 if out.Values[i] == graphql.Null { 35370 invalids++ 35371 } 35372 default: 35373 panic("unknown field " + strconv.Quote(field.Name)) 35374 } 35375 } 35376 out.Dispatch() 35377 if invalids > 0 { 35378 return graphql.Null 35379 } 35380 return out 35381 } 35382 35383 var formationImplementors = []string{"Formation"} 35384 35385 func (ec *executionContext) _Formation(ctx context.Context, sel ast.SelectionSet, obj *Formation) graphql.Marshaler { 35386 fields := graphql.CollectFields(ec.OperationContext, sel, formationImplementors) 35387 35388 out := graphql.NewFieldSet(fields) 35389 var invalids uint32 35390 for i, field := range fields { 35391 switch field.Name { 35392 case "__typename": 35393 out.Values[i] = graphql.MarshalString("Formation") 35394 case "id": 35395 out.Values[i] = ec._Formation_id(ctx, field, obj) 35396 if out.Values[i] == graphql.Null { 35397 atomic.AddUint32(&invalids, 1) 35398 } 35399 case "name": 35400 out.Values[i] = ec._Formation_name(ctx, field, obj) 35401 if out.Values[i] == graphql.Null { 35402 atomic.AddUint32(&invalids, 1) 35403 } 35404 case "formationTemplateId": 35405 out.Values[i] = ec._Formation_formationTemplateId(ctx, field, obj) 35406 if out.Values[i] == graphql.Null { 35407 atomic.AddUint32(&invalids, 1) 35408 } 35409 case "state": 35410 out.Values[i] = ec._Formation_state(ctx, field, obj) 35411 if out.Values[i] == graphql.Null { 35412 atomic.AddUint32(&invalids, 1) 35413 } 35414 case "error": 35415 out.Values[i] = ec._Formation_error(ctx, field, obj) 35416 case "formationAssignment": 35417 field := field 35418 out.Concurrently(i, func() (res graphql.Marshaler) { 35419 defer func() { 35420 if r := recover(); r != nil { 35421 ec.Error(ctx, ec.Recover(ctx, r)) 35422 } 35423 }() 35424 res = ec._Formation_formationAssignment(ctx, field, obj) 35425 return res 35426 }) 35427 case "formationAssignments": 35428 field := field 35429 out.Concurrently(i, func() (res graphql.Marshaler) { 35430 defer func() { 35431 if r := recover(); r != nil { 35432 ec.Error(ctx, ec.Recover(ctx, r)) 35433 } 35434 }() 35435 res = ec._Formation_formationAssignments(ctx, field, obj) 35436 return res 35437 }) 35438 case "status": 35439 field := field 35440 out.Concurrently(i, func() (res graphql.Marshaler) { 35441 defer func() { 35442 if r := recover(); r != nil { 35443 ec.Error(ctx, ec.Recover(ctx, r)) 35444 } 35445 }() 35446 res = ec._Formation_status(ctx, field, obj) 35447 if res == graphql.Null { 35448 atomic.AddUint32(&invalids, 1) 35449 } 35450 return res 35451 }) 35452 default: 35453 panic("unknown field " + strconv.Quote(field.Name)) 35454 } 35455 } 35456 out.Dispatch() 35457 if invalids > 0 { 35458 return graphql.Null 35459 } 35460 return out 35461 } 35462 35463 var formationAssignmentImplementors = []string{"FormationAssignment"} 35464 35465 func (ec *executionContext) _FormationAssignment(ctx context.Context, sel ast.SelectionSet, obj *FormationAssignment) graphql.Marshaler { 35466 fields := graphql.CollectFields(ec.OperationContext, sel, formationAssignmentImplementors) 35467 35468 out := graphql.NewFieldSet(fields) 35469 var invalids uint32 35470 for i, field := range fields { 35471 switch field.Name { 35472 case "__typename": 35473 out.Values[i] = graphql.MarshalString("FormationAssignment") 35474 case "id": 35475 out.Values[i] = ec._FormationAssignment_id(ctx, field, obj) 35476 if out.Values[i] == graphql.Null { 35477 invalids++ 35478 } 35479 case "source": 35480 out.Values[i] = ec._FormationAssignment_source(ctx, field, obj) 35481 if out.Values[i] == graphql.Null { 35482 invalids++ 35483 } 35484 case "sourceType": 35485 out.Values[i] = ec._FormationAssignment_sourceType(ctx, field, obj) 35486 if out.Values[i] == graphql.Null { 35487 invalids++ 35488 } 35489 case "target": 35490 out.Values[i] = ec._FormationAssignment_target(ctx, field, obj) 35491 if out.Values[i] == graphql.Null { 35492 invalids++ 35493 } 35494 case "targetType": 35495 out.Values[i] = ec._FormationAssignment_targetType(ctx, field, obj) 35496 if out.Values[i] == graphql.Null { 35497 invalids++ 35498 } 35499 case "state": 35500 out.Values[i] = ec._FormationAssignment_state(ctx, field, obj) 35501 if out.Values[i] == graphql.Null { 35502 invalids++ 35503 } 35504 case "value": 35505 out.Values[i] = ec._FormationAssignment_value(ctx, field, obj) 35506 default: 35507 panic("unknown field " + strconv.Quote(field.Name)) 35508 } 35509 } 35510 out.Dispatch() 35511 if invalids > 0 { 35512 return graphql.Null 35513 } 35514 return out 35515 } 35516 35517 var formationAssignmentPageImplementors = []string{"FormationAssignmentPage", "Pageable"} 35518 35519 func (ec *executionContext) _FormationAssignmentPage(ctx context.Context, sel ast.SelectionSet, obj *FormationAssignmentPage) graphql.Marshaler { 35520 fields := graphql.CollectFields(ec.OperationContext, sel, formationAssignmentPageImplementors) 35521 35522 out := graphql.NewFieldSet(fields) 35523 var invalids uint32 35524 for i, field := range fields { 35525 switch field.Name { 35526 case "__typename": 35527 out.Values[i] = graphql.MarshalString("FormationAssignmentPage") 35528 case "data": 35529 out.Values[i] = ec._FormationAssignmentPage_data(ctx, field, obj) 35530 if out.Values[i] == graphql.Null { 35531 invalids++ 35532 } 35533 case "pageInfo": 35534 out.Values[i] = ec._FormationAssignmentPage_pageInfo(ctx, field, obj) 35535 if out.Values[i] == graphql.Null { 35536 invalids++ 35537 } 35538 case "totalCount": 35539 out.Values[i] = ec._FormationAssignmentPage_totalCount(ctx, field, obj) 35540 if out.Values[i] == graphql.Null { 35541 invalids++ 35542 } 35543 default: 35544 panic("unknown field " + strconv.Quote(field.Name)) 35545 } 35546 } 35547 out.Dispatch() 35548 if invalids > 0 { 35549 return graphql.Null 35550 } 35551 return out 35552 } 35553 35554 var formationConstraintImplementors = []string{"FormationConstraint"} 35555 35556 func (ec *executionContext) _FormationConstraint(ctx context.Context, sel ast.SelectionSet, obj *FormationConstraint) graphql.Marshaler { 35557 fields := graphql.CollectFields(ec.OperationContext, sel, formationConstraintImplementors) 35558 35559 out := graphql.NewFieldSet(fields) 35560 var invalids uint32 35561 for i, field := range fields { 35562 switch field.Name { 35563 case "__typename": 35564 out.Values[i] = graphql.MarshalString("FormationConstraint") 35565 case "id": 35566 out.Values[i] = ec._FormationConstraint_id(ctx, field, obj) 35567 if out.Values[i] == graphql.Null { 35568 invalids++ 35569 } 35570 case "name": 35571 out.Values[i] = ec._FormationConstraint_name(ctx, field, obj) 35572 if out.Values[i] == graphql.Null { 35573 invalids++ 35574 } 35575 case "constraintType": 35576 out.Values[i] = ec._FormationConstraint_constraintType(ctx, field, obj) 35577 if out.Values[i] == graphql.Null { 35578 invalids++ 35579 } 35580 case "targetOperation": 35581 out.Values[i] = ec._FormationConstraint_targetOperation(ctx, field, obj) 35582 if out.Values[i] == graphql.Null { 35583 invalids++ 35584 } 35585 case "operator": 35586 out.Values[i] = ec._FormationConstraint_operator(ctx, field, obj) 35587 if out.Values[i] == graphql.Null { 35588 invalids++ 35589 } 35590 case "resourceType": 35591 out.Values[i] = ec._FormationConstraint_resourceType(ctx, field, obj) 35592 if out.Values[i] == graphql.Null { 35593 invalids++ 35594 } 35595 case "resourceSubtype": 35596 out.Values[i] = ec._FormationConstraint_resourceSubtype(ctx, field, obj) 35597 if out.Values[i] == graphql.Null { 35598 invalids++ 35599 } 35600 case "inputTemplate": 35601 out.Values[i] = ec._FormationConstraint_inputTemplate(ctx, field, obj) 35602 if out.Values[i] == graphql.Null { 35603 invalids++ 35604 } 35605 case "constraintScope": 35606 out.Values[i] = ec._FormationConstraint_constraintScope(ctx, field, obj) 35607 if out.Values[i] == graphql.Null { 35608 invalids++ 35609 } 35610 default: 35611 panic("unknown field " + strconv.Quote(field.Name)) 35612 } 35613 } 35614 out.Dispatch() 35615 if invalids > 0 { 35616 return graphql.Null 35617 } 35618 return out 35619 } 35620 35621 var formationErrorImplementors = []string{"FormationError"} 35622 35623 func (ec *executionContext) _FormationError(ctx context.Context, sel ast.SelectionSet, obj *FormationError) graphql.Marshaler { 35624 fields := graphql.CollectFields(ec.OperationContext, sel, formationErrorImplementors) 35625 35626 out := graphql.NewFieldSet(fields) 35627 var invalids uint32 35628 for i, field := range fields { 35629 switch field.Name { 35630 case "__typename": 35631 out.Values[i] = graphql.MarshalString("FormationError") 35632 case "message": 35633 out.Values[i] = ec._FormationError_message(ctx, field, obj) 35634 if out.Values[i] == graphql.Null { 35635 invalids++ 35636 } 35637 case "errorCode": 35638 out.Values[i] = ec._FormationError_errorCode(ctx, field, obj) 35639 if out.Values[i] == graphql.Null { 35640 invalids++ 35641 } 35642 default: 35643 panic("unknown field " + strconv.Quote(field.Name)) 35644 } 35645 } 35646 out.Dispatch() 35647 if invalids > 0 { 35648 return graphql.Null 35649 } 35650 return out 35651 } 35652 35653 var formationPageImplementors = []string{"FormationPage", "Pageable"} 35654 35655 func (ec *executionContext) _FormationPage(ctx context.Context, sel ast.SelectionSet, obj *FormationPage) graphql.Marshaler { 35656 fields := graphql.CollectFields(ec.OperationContext, sel, formationPageImplementors) 35657 35658 out := graphql.NewFieldSet(fields) 35659 var invalids uint32 35660 for i, field := range fields { 35661 switch field.Name { 35662 case "__typename": 35663 out.Values[i] = graphql.MarshalString("FormationPage") 35664 case "data": 35665 out.Values[i] = ec._FormationPage_data(ctx, field, obj) 35666 if out.Values[i] == graphql.Null { 35667 invalids++ 35668 } 35669 case "pageInfo": 35670 out.Values[i] = ec._FormationPage_pageInfo(ctx, field, obj) 35671 if out.Values[i] == graphql.Null { 35672 invalids++ 35673 } 35674 case "totalCount": 35675 out.Values[i] = ec._FormationPage_totalCount(ctx, field, obj) 35676 if out.Values[i] == graphql.Null { 35677 invalids++ 35678 } 35679 default: 35680 panic("unknown field " + strconv.Quote(field.Name)) 35681 } 35682 } 35683 out.Dispatch() 35684 if invalids > 0 { 35685 return graphql.Null 35686 } 35687 return out 35688 } 35689 35690 var formationStatusImplementors = []string{"FormationStatus"} 35691 35692 func (ec *executionContext) _FormationStatus(ctx context.Context, sel ast.SelectionSet, obj *FormationStatus) graphql.Marshaler { 35693 fields := graphql.CollectFields(ec.OperationContext, sel, formationStatusImplementors) 35694 35695 out := graphql.NewFieldSet(fields) 35696 var invalids uint32 35697 for i, field := range fields { 35698 switch field.Name { 35699 case "__typename": 35700 out.Values[i] = graphql.MarshalString("FormationStatus") 35701 case "condition": 35702 out.Values[i] = ec._FormationStatus_condition(ctx, field, obj) 35703 if out.Values[i] == graphql.Null { 35704 invalids++ 35705 } 35706 case "errors": 35707 out.Values[i] = ec._FormationStatus_errors(ctx, field, obj) 35708 default: 35709 panic("unknown field " + strconv.Quote(field.Name)) 35710 } 35711 } 35712 out.Dispatch() 35713 if invalids > 0 { 35714 return graphql.Null 35715 } 35716 return out 35717 } 35718 35719 var formationStatusErrorImplementors = []string{"FormationStatusError"} 35720 35721 func (ec *executionContext) _FormationStatusError(ctx context.Context, sel ast.SelectionSet, obj *FormationStatusError) graphql.Marshaler { 35722 fields := graphql.CollectFields(ec.OperationContext, sel, formationStatusErrorImplementors) 35723 35724 out := graphql.NewFieldSet(fields) 35725 var invalids uint32 35726 for i, field := range fields { 35727 switch field.Name { 35728 case "__typename": 35729 out.Values[i] = graphql.MarshalString("FormationStatusError") 35730 case "assignmentID": 35731 out.Values[i] = ec._FormationStatusError_assignmentID(ctx, field, obj) 35732 case "message": 35733 out.Values[i] = ec._FormationStatusError_message(ctx, field, obj) 35734 if out.Values[i] == graphql.Null { 35735 invalids++ 35736 } 35737 case "errorCode": 35738 out.Values[i] = ec._FormationStatusError_errorCode(ctx, field, obj) 35739 if out.Values[i] == graphql.Null { 35740 invalids++ 35741 } 35742 default: 35743 panic("unknown field " + strconv.Quote(field.Name)) 35744 } 35745 } 35746 out.Dispatch() 35747 if invalids > 0 { 35748 return graphql.Null 35749 } 35750 return out 35751 } 35752 35753 var formationTemplateImplementors = []string{"FormationTemplate"} 35754 35755 func (ec *executionContext) _FormationTemplate(ctx context.Context, sel ast.SelectionSet, obj *FormationTemplate) graphql.Marshaler { 35756 fields := graphql.CollectFields(ec.OperationContext, sel, formationTemplateImplementors) 35757 35758 out := graphql.NewFieldSet(fields) 35759 var invalids uint32 35760 for i, field := range fields { 35761 switch field.Name { 35762 case "__typename": 35763 out.Values[i] = graphql.MarshalString("FormationTemplate") 35764 case "id": 35765 out.Values[i] = ec._FormationTemplate_id(ctx, field, obj) 35766 if out.Values[i] == graphql.Null { 35767 atomic.AddUint32(&invalids, 1) 35768 } 35769 case "name": 35770 out.Values[i] = ec._FormationTemplate_name(ctx, field, obj) 35771 if out.Values[i] == graphql.Null { 35772 atomic.AddUint32(&invalids, 1) 35773 } 35774 case "applicationTypes": 35775 out.Values[i] = ec._FormationTemplate_applicationTypes(ctx, field, obj) 35776 if out.Values[i] == graphql.Null { 35777 atomic.AddUint32(&invalids, 1) 35778 } 35779 case "runtimeTypes": 35780 out.Values[i] = ec._FormationTemplate_runtimeTypes(ctx, field, obj) 35781 case "runtimeTypeDisplayName": 35782 out.Values[i] = ec._FormationTemplate_runtimeTypeDisplayName(ctx, field, obj) 35783 case "runtimeArtifactKind": 35784 out.Values[i] = ec._FormationTemplate_runtimeArtifactKind(ctx, field, obj) 35785 case "webhooks": 35786 field := field 35787 out.Concurrently(i, func() (res graphql.Marshaler) { 35788 defer func() { 35789 if r := recover(); r != nil { 35790 ec.Error(ctx, ec.Recover(ctx, r)) 35791 } 35792 }() 35793 res = ec._FormationTemplate_webhooks(ctx, field, obj) 35794 return res 35795 }) 35796 case "leadingProductIDs": 35797 out.Values[i] = ec._FormationTemplate_leadingProductIDs(ctx, field, obj) 35798 case "formationConstraints": 35799 field := field 35800 out.Concurrently(i, func() (res graphql.Marshaler) { 35801 defer func() { 35802 if r := recover(); r != nil { 35803 ec.Error(ctx, ec.Recover(ctx, r)) 35804 } 35805 }() 35806 res = ec._FormationTemplate_formationConstraints(ctx, field, obj) 35807 return res 35808 }) 35809 default: 35810 panic("unknown field " + strconv.Quote(field.Name)) 35811 } 35812 } 35813 out.Dispatch() 35814 if invalids > 0 { 35815 return graphql.Null 35816 } 35817 return out 35818 } 35819 35820 var formationTemplatePageImplementors = []string{"FormationTemplatePage", "Pageable"} 35821 35822 func (ec *executionContext) _FormationTemplatePage(ctx context.Context, sel ast.SelectionSet, obj *FormationTemplatePage) graphql.Marshaler { 35823 fields := graphql.CollectFields(ec.OperationContext, sel, formationTemplatePageImplementors) 35824 35825 out := graphql.NewFieldSet(fields) 35826 var invalids uint32 35827 for i, field := range fields { 35828 switch field.Name { 35829 case "__typename": 35830 out.Values[i] = graphql.MarshalString("FormationTemplatePage") 35831 case "data": 35832 out.Values[i] = ec._FormationTemplatePage_data(ctx, field, obj) 35833 if out.Values[i] == graphql.Null { 35834 invalids++ 35835 } 35836 case "pageInfo": 35837 out.Values[i] = ec._FormationTemplatePage_pageInfo(ctx, field, obj) 35838 if out.Values[i] == graphql.Null { 35839 invalids++ 35840 } 35841 case "totalCount": 35842 out.Values[i] = ec._FormationTemplatePage_totalCount(ctx, field, obj) 35843 if out.Values[i] == graphql.Null { 35844 invalids++ 35845 } 35846 default: 35847 panic("unknown field " + strconv.Quote(field.Name)) 35848 } 35849 } 35850 out.Dispatch() 35851 if invalids > 0 { 35852 return graphql.Null 35853 } 35854 return out 35855 } 35856 35857 var healthCheckImplementors = []string{"HealthCheck"} 35858 35859 func (ec *executionContext) _HealthCheck(ctx context.Context, sel ast.SelectionSet, obj *HealthCheck) graphql.Marshaler { 35860 fields := graphql.CollectFields(ec.OperationContext, sel, healthCheckImplementors) 35861 35862 out := graphql.NewFieldSet(fields) 35863 var invalids uint32 35864 for i, field := range fields { 35865 switch field.Name { 35866 case "__typename": 35867 out.Values[i] = graphql.MarshalString("HealthCheck") 35868 case "type": 35869 out.Values[i] = ec._HealthCheck_type(ctx, field, obj) 35870 if out.Values[i] == graphql.Null { 35871 invalids++ 35872 } 35873 case "condition": 35874 out.Values[i] = ec._HealthCheck_condition(ctx, field, obj) 35875 if out.Values[i] == graphql.Null { 35876 invalids++ 35877 } 35878 case "origin": 35879 out.Values[i] = ec._HealthCheck_origin(ctx, field, obj) 35880 case "message": 35881 out.Values[i] = ec._HealthCheck_message(ctx, field, obj) 35882 case "timestamp": 35883 out.Values[i] = ec._HealthCheck_timestamp(ctx, field, obj) 35884 if out.Values[i] == graphql.Null { 35885 invalids++ 35886 } 35887 default: 35888 panic("unknown field " + strconv.Quote(field.Name)) 35889 } 35890 } 35891 out.Dispatch() 35892 if invalids > 0 { 35893 return graphql.Null 35894 } 35895 return out 35896 } 35897 35898 var healthCheckPageImplementors = []string{"HealthCheckPage", "Pageable"} 35899 35900 func (ec *executionContext) _HealthCheckPage(ctx context.Context, sel ast.SelectionSet, obj *HealthCheckPage) graphql.Marshaler { 35901 fields := graphql.CollectFields(ec.OperationContext, sel, healthCheckPageImplementors) 35902 35903 out := graphql.NewFieldSet(fields) 35904 var invalids uint32 35905 for i, field := range fields { 35906 switch field.Name { 35907 case "__typename": 35908 out.Values[i] = graphql.MarshalString("HealthCheckPage") 35909 case "data": 35910 out.Values[i] = ec._HealthCheckPage_data(ctx, field, obj) 35911 if out.Values[i] == graphql.Null { 35912 invalids++ 35913 } 35914 case "pageInfo": 35915 out.Values[i] = ec._HealthCheckPage_pageInfo(ctx, field, obj) 35916 if out.Values[i] == graphql.Null { 35917 invalids++ 35918 } 35919 case "totalCount": 35920 out.Values[i] = ec._HealthCheckPage_totalCount(ctx, field, obj) 35921 if out.Values[i] == graphql.Null { 35922 invalids++ 35923 } 35924 default: 35925 panic("unknown field " + strconv.Quote(field.Name)) 35926 } 35927 } 35928 out.Dispatch() 35929 if invalids > 0 { 35930 return graphql.Null 35931 } 35932 return out 35933 } 35934 35935 var intSysSystemAuthImplementors = []string{"IntSysSystemAuth", "SystemAuth"} 35936 35937 func (ec *executionContext) _IntSysSystemAuth(ctx context.Context, sel ast.SelectionSet, obj *IntSysSystemAuth) graphql.Marshaler { 35938 fields := graphql.CollectFields(ec.OperationContext, sel, intSysSystemAuthImplementors) 35939 35940 out := graphql.NewFieldSet(fields) 35941 var invalids uint32 35942 for i, field := range fields { 35943 switch field.Name { 35944 case "__typename": 35945 out.Values[i] = graphql.MarshalString("IntSysSystemAuth") 35946 case "id": 35947 out.Values[i] = ec._IntSysSystemAuth_id(ctx, field, obj) 35948 if out.Values[i] == graphql.Null { 35949 invalids++ 35950 } 35951 case "auth": 35952 out.Values[i] = ec._IntSysSystemAuth_auth(ctx, field, obj) 35953 case "type": 35954 out.Values[i] = ec._IntSysSystemAuth_type(ctx, field, obj) 35955 case "tenantId": 35956 out.Values[i] = ec._IntSysSystemAuth_tenantId(ctx, field, obj) 35957 case "referenceObjectId": 35958 out.Values[i] = ec._IntSysSystemAuth_referenceObjectId(ctx, field, obj) 35959 default: 35960 panic("unknown field " + strconv.Quote(field.Name)) 35961 } 35962 } 35963 out.Dispatch() 35964 if invalids > 0 { 35965 return graphql.Null 35966 } 35967 return out 35968 } 35969 35970 var integrationSystemImplementors = []string{"IntegrationSystem"} 35971 35972 func (ec *executionContext) _IntegrationSystem(ctx context.Context, sel ast.SelectionSet, obj *IntegrationSystem) graphql.Marshaler { 35973 fields := graphql.CollectFields(ec.OperationContext, sel, integrationSystemImplementors) 35974 35975 out := graphql.NewFieldSet(fields) 35976 var invalids uint32 35977 for i, field := range fields { 35978 switch field.Name { 35979 case "__typename": 35980 out.Values[i] = graphql.MarshalString("IntegrationSystem") 35981 case "id": 35982 out.Values[i] = ec._IntegrationSystem_id(ctx, field, obj) 35983 if out.Values[i] == graphql.Null { 35984 atomic.AddUint32(&invalids, 1) 35985 } 35986 case "name": 35987 out.Values[i] = ec._IntegrationSystem_name(ctx, field, obj) 35988 if out.Values[i] == graphql.Null { 35989 atomic.AddUint32(&invalids, 1) 35990 } 35991 case "description": 35992 out.Values[i] = ec._IntegrationSystem_description(ctx, field, obj) 35993 case "auths": 35994 field := field 35995 out.Concurrently(i, func() (res graphql.Marshaler) { 35996 defer func() { 35997 if r := recover(); r != nil { 35998 ec.Error(ctx, ec.Recover(ctx, r)) 35999 } 36000 }() 36001 res = ec._IntegrationSystem_auths(ctx, field, obj) 36002 return res 36003 }) 36004 default: 36005 panic("unknown field " + strconv.Quote(field.Name)) 36006 } 36007 } 36008 out.Dispatch() 36009 if invalids > 0 { 36010 return graphql.Null 36011 } 36012 return out 36013 } 36014 36015 var integrationSystemPageImplementors = []string{"IntegrationSystemPage", "Pageable"} 36016 36017 func (ec *executionContext) _IntegrationSystemPage(ctx context.Context, sel ast.SelectionSet, obj *IntegrationSystemPage) graphql.Marshaler { 36018 fields := graphql.CollectFields(ec.OperationContext, sel, integrationSystemPageImplementors) 36019 36020 out := graphql.NewFieldSet(fields) 36021 var invalids uint32 36022 for i, field := range fields { 36023 switch field.Name { 36024 case "__typename": 36025 out.Values[i] = graphql.MarshalString("IntegrationSystemPage") 36026 case "data": 36027 out.Values[i] = ec._IntegrationSystemPage_data(ctx, field, obj) 36028 if out.Values[i] == graphql.Null { 36029 invalids++ 36030 } 36031 case "pageInfo": 36032 out.Values[i] = ec._IntegrationSystemPage_pageInfo(ctx, field, obj) 36033 if out.Values[i] == graphql.Null { 36034 invalids++ 36035 } 36036 case "totalCount": 36037 out.Values[i] = ec._IntegrationSystemPage_totalCount(ctx, field, obj) 36038 if out.Values[i] == graphql.Null { 36039 invalids++ 36040 } 36041 default: 36042 panic("unknown field " + strconv.Quote(field.Name)) 36043 } 36044 } 36045 out.Dispatch() 36046 if invalids > 0 { 36047 return graphql.Null 36048 } 36049 return out 36050 } 36051 36052 var labelImplementors = []string{"Label"} 36053 36054 func (ec *executionContext) _Label(ctx context.Context, sel ast.SelectionSet, obj *Label) graphql.Marshaler { 36055 fields := graphql.CollectFields(ec.OperationContext, sel, labelImplementors) 36056 36057 out := graphql.NewFieldSet(fields) 36058 var invalids uint32 36059 for i, field := range fields { 36060 switch field.Name { 36061 case "__typename": 36062 out.Values[i] = graphql.MarshalString("Label") 36063 case "key": 36064 out.Values[i] = ec._Label_key(ctx, field, obj) 36065 if out.Values[i] == graphql.Null { 36066 invalids++ 36067 } 36068 case "value": 36069 out.Values[i] = ec._Label_value(ctx, field, obj) 36070 if out.Values[i] == graphql.Null { 36071 invalids++ 36072 } 36073 default: 36074 panic("unknown field " + strconv.Quote(field.Name)) 36075 } 36076 } 36077 out.Dispatch() 36078 if invalids > 0 { 36079 return graphql.Null 36080 } 36081 return out 36082 } 36083 36084 var labelDefinitionImplementors = []string{"LabelDefinition"} 36085 36086 func (ec *executionContext) _LabelDefinition(ctx context.Context, sel ast.SelectionSet, obj *LabelDefinition) graphql.Marshaler { 36087 fields := graphql.CollectFields(ec.OperationContext, sel, labelDefinitionImplementors) 36088 36089 out := graphql.NewFieldSet(fields) 36090 var invalids uint32 36091 for i, field := range fields { 36092 switch field.Name { 36093 case "__typename": 36094 out.Values[i] = graphql.MarshalString("LabelDefinition") 36095 case "key": 36096 out.Values[i] = ec._LabelDefinition_key(ctx, field, obj) 36097 if out.Values[i] == graphql.Null { 36098 invalids++ 36099 } 36100 case "schema": 36101 out.Values[i] = ec._LabelDefinition_schema(ctx, field, obj) 36102 default: 36103 panic("unknown field " + strconv.Quote(field.Name)) 36104 } 36105 } 36106 out.Dispatch() 36107 if invalids > 0 { 36108 return graphql.Null 36109 } 36110 return out 36111 } 36112 36113 var mutationImplementors = []string{"Mutation"} 36114 36115 func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 36116 fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors) 36117 36118 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 36119 Object: "Mutation", 36120 }) 36121 36122 out := graphql.NewFieldSet(fields) 36123 var invalids uint32 36124 for i, field := range fields { 36125 switch field.Name { 36126 case "__typename": 36127 out.Values[i] = graphql.MarshalString("Mutation") 36128 case "registerApplication": 36129 out.Values[i] = ec._Mutation_registerApplication(ctx, field) 36130 if out.Values[i] == graphql.Null { 36131 invalids++ 36132 } 36133 case "updateApplication": 36134 out.Values[i] = ec._Mutation_updateApplication(ctx, field) 36135 if out.Values[i] == graphql.Null { 36136 invalids++ 36137 } 36138 case "unregisterApplication": 36139 out.Values[i] = ec._Mutation_unregisterApplication(ctx, field) 36140 if out.Values[i] == graphql.Null { 36141 invalids++ 36142 } 36143 case "unpairApplication": 36144 out.Values[i] = ec._Mutation_unpairApplication(ctx, field) 36145 if out.Values[i] == graphql.Null { 36146 invalids++ 36147 } 36148 case "createApplicationTemplate": 36149 out.Values[i] = ec._Mutation_createApplicationTemplate(ctx, field) 36150 if out.Values[i] == graphql.Null { 36151 invalids++ 36152 } 36153 case "registerApplicationFromTemplate": 36154 out.Values[i] = ec._Mutation_registerApplicationFromTemplate(ctx, field) 36155 if out.Values[i] == graphql.Null { 36156 invalids++ 36157 } 36158 case "updateApplicationTemplate": 36159 out.Values[i] = ec._Mutation_updateApplicationTemplate(ctx, field) 36160 if out.Values[i] == graphql.Null { 36161 invalids++ 36162 } 36163 case "deleteApplicationTemplate": 36164 out.Values[i] = ec._Mutation_deleteApplicationTemplate(ctx, field) 36165 if out.Values[i] == graphql.Null { 36166 invalids++ 36167 } 36168 case "mergeApplications": 36169 out.Values[i] = ec._Mutation_mergeApplications(ctx, field) 36170 if out.Values[i] == graphql.Null { 36171 invalids++ 36172 } 36173 case "registerRuntime": 36174 out.Values[i] = ec._Mutation_registerRuntime(ctx, field) 36175 if out.Values[i] == graphql.Null { 36176 invalids++ 36177 } 36178 case "updateRuntime": 36179 out.Values[i] = ec._Mutation_updateRuntime(ctx, field) 36180 if out.Values[i] == graphql.Null { 36181 invalids++ 36182 } 36183 case "unregisterRuntime": 36184 out.Values[i] = ec._Mutation_unregisterRuntime(ctx, field) 36185 if out.Values[i] == graphql.Null { 36186 invalids++ 36187 } 36188 case "registerRuntimeContext": 36189 out.Values[i] = ec._Mutation_registerRuntimeContext(ctx, field) 36190 if out.Values[i] == graphql.Null { 36191 invalids++ 36192 } 36193 case "updateRuntimeContext": 36194 out.Values[i] = ec._Mutation_updateRuntimeContext(ctx, field) 36195 if out.Values[i] == graphql.Null { 36196 invalids++ 36197 } 36198 case "unregisterRuntimeContext": 36199 out.Values[i] = ec._Mutation_unregisterRuntimeContext(ctx, field) 36200 if out.Values[i] == graphql.Null { 36201 invalids++ 36202 } 36203 case "registerIntegrationSystem": 36204 out.Values[i] = ec._Mutation_registerIntegrationSystem(ctx, field) 36205 if out.Values[i] == graphql.Null { 36206 invalids++ 36207 } 36208 case "updateIntegrationSystem": 36209 out.Values[i] = ec._Mutation_updateIntegrationSystem(ctx, field) 36210 if out.Values[i] == graphql.Null { 36211 invalids++ 36212 } 36213 case "unregisterIntegrationSystem": 36214 out.Values[i] = ec._Mutation_unregisterIntegrationSystem(ctx, field) 36215 if out.Values[i] == graphql.Null { 36216 invalids++ 36217 } 36218 case "addWebhook": 36219 out.Values[i] = ec._Mutation_addWebhook(ctx, field) 36220 if out.Values[i] == graphql.Null { 36221 invalids++ 36222 } 36223 case "updateWebhook": 36224 out.Values[i] = ec._Mutation_updateWebhook(ctx, field) 36225 if out.Values[i] == graphql.Null { 36226 invalids++ 36227 } 36228 case "deleteWebhook": 36229 out.Values[i] = ec._Mutation_deleteWebhook(ctx, field) 36230 if out.Values[i] == graphql.Null { 36231 invalids++ 36232 } 36233 case "addAPIDefinitionToBundle": 36234 out.Values[i] = ec._Mutation_addAPIDefinitionToBundle(ctx, field) 36235 if out.Values[i] == graphql.Null { 36236 invalids++ 36237 } 36238 case "addAPIDefinitionToApplication": 36239 out.Values[i] = ec._Mutation_addAPIDefinitionToApplication(ctx, field) 36240 if out.Values[i] == graphql.Null { 36241 invalids++ 36242 } 36243 case "updateAPIDefinition": 36244 out.Values[i] = ec._Mutation_updateAPIDefinition(ctx, field) 36245 if out.Values[i] == graphql.Null { 36246 invalids++ 36247 } 36248 case "updateAPIDefinitionForApplication": 36249 out.Values[i] = ec._Mutation_updateAPIDefinitionForApplication(ctx, field) 36250 if out.Values[i] == graphql.Null { 36251 invalids++ 36252 } 36253 case "deleteAPIDefinition": 36254 out.Values[i] = ec._Mutation_deleteAPIDefinition(ctx, field) 36255 if out.Values[i] == graphql.Null { 36256 invalids++ 36257 } 36258 case "refetchAPISpec": 36259 out.Values[i] = ec._Mutation_refetchAPISpec(ctx, field) 36260 if out.Values[i] == graphql.Null { 36261 invalids++ 36262 } 36263 case "requestOneTimeTokenForRuntime": 36264 out.Values[i] = ec._Mutation_requestOneTimeTokenForRuntime(ctx, field) 36265 if out.Values[i] == graphql.Null { 36266 invalids++ 36267 } 36268 case "requestOneTimeTokenForApplication": 36269 out.Values[i] = ec._Mutation_requestOneTimeTokenForApplication(ctx, field) 36270 if out.Values[i] == graphql.Null { 36271 invalids++ 36272 } 36273 case "requestClientCredentialsForRuntime": 36274 out.Values[i] = ec._Mutation_requestClientCredentialsForRuntime(ctx, field) 36275 if out.Values[i] == graphql.Null { 36276 invalids++ 36277 } 36278 case "requestClientCredentialsForApplication": 36279 out.Values[i] = ec._Mutation_requestClientCredentialsForApplication(ctx, field) 36280 if out.Values[i] == graphql.Null { 36281 invalids++ 36282 } 36283 case "requestClientCredentialsForIntegrationSystem": 36284 out.Values[i] = ec._Mutation_requestClientCredentialsForIntegrationSystem(ctx, field) 36285 if out.Values[i] == graphql.Null { 36286 invalids++ 36287 } 36288 case "deleteSystemAuthForRuntime": 36289 out.Values[i] = ec._Mutation_deleteSystemAuthForRuntime(ctx, field) 36290 if out.Values[i] == graphql.Null { 36291 invalids++ 36292 } 36293 case "deleteSystemAuthForApplication": 36294 out.Values[i] = ec._Mutation_deleteSystemAuthForApplication(ctx, field) 36295 if out.Values[i] == graphql.Null { 36296 invalids++ 36297 } 36298 case "deleteSystemAuthForIntegrationSystem": 36299 out.Values[i] = ec._Mutation_deleteSystemAuthForIntegrationSystem(ctx, field) 36300 if out.Values[i] == graphql.Null { 36301 invalids++ 36302 } 36303 case "updateSystemAuth": 36304 out.Values[i] = ec._Mutation_updateSystemAuth(ctx, field) 36305 if out.Values[i] == graphql.Null { 36306 invalids++ 36307 } 36308 case "invalidateSystemAuthOneTimeToken": 36309 out.Values[i] = ec._Mutation_invalidateSystemAuthOneTimeToken(ctx, field) 36310 if out.Values[i] == graphql.Null { 36311 invalids++ 36312 } 36313 case "addEventDefinitionToBundle": 36314 out.Values[i] = ec._Mutation_addEventDefinitionToBundle(ctx, field) 36315 if out.Values[i] == graphql.Null { 36316 invalids++ 36317 } 36318 case "addEventDefinitionToApplication": 36319 out.Values[i] = ec._Mutation_addEventDefinitionToApplication(ctx, field) 36320 if out.Values[i] == graphql.Null { 36321 invalids++ 36322 } 36323 case "updateEventDefinition": 36324 out.Values[i] = ec._Mutation_updateEventDefinition(ctx, field) 36325 if out.Values[i] == graphql.Null { 36326 invalids++ 36327 } 36328 case "updateEventDefinitionForApplication": 36329 out.Values[i] = ec._Mutation_updateEventDefinitionForApplication(ctx, field) 36330 if out.Values[i] == graphql.Null { 36331 invalids++ 36332 } 36333 case "deleteEventDefinition": 36334 out.Values[i] = ec._Mutation_deleteEventDefinition(ctx, field) 36335 if out.Values[i] == graphql.Null { 36336 invalids++ 36337 } 36338 case "refetchEventDefinitionSpec": 36339 out.Values[i] = ec._Mutation_refetchEventDefinitionSpec(ctx, field) 36340 if out.Values[i] == graphql.Null { 36341 invalids++ 36342 } 36343 case "addDocumentToBundle": 36344 out.Values[i] = ec._Mutation_addDocumentToBundle(ctx, field) 36345 if out.Values[i] == graphql.Null { 36346 invalids++ 36347 } 36348 case "deleteDocument": 36349 out.Values[i] = ec._Mutation_deleteDocument(ctx, field) 36350 if out.Values[i] == graphql.Null { 36351 invalids++ 36352 } 36353 case "createFormation": 36354 out.Values[i] = ec._Mutation_createFormation(ctx, field) 36355 if out.Values[i] == graphql.Null { 36356 invalids++ 36357 } 36358 case "resynchronizeFormationNotifications": 36359 out.Values[i] = ec._Mutation_resynchronizeFormationNotifications(ctx, field) 36360 if out.Values[i] == graphql.Null { 36361 invalids++ 36362 } 36363 case "deleteFormation": 36364 out.Values[i] = ec._Mutation_deleteFormation(ctx, field) 36365 if out.Values[i] == graphql.Null { 36366 invalids++ 36367 } 36368 case "assignFormation": 36369 out.Values[i] = ec._Mutation_assignFormation(ctx, field) 36370 if out.Values[i] == graphql.Null { 36371 invalids++ 36372 } 36373 case "unassignFormation": 36374 out.Values[i] = ec._Mutation_unassignFormation(ctx, field) 36375 if out.Values[i] == graphql.Null { 36376 invalids++ 36377 } 36378 case "createFormationConstraint": 36379 out.Values[i] = ec._Mutation_createFormationConstraint(ctx, field) 36380 if out.Values[i] == graphql.Null { 36381 invalids++ 36382 } 36383 case "deleteFormationConstraint": 36384 out.Values[i] = ec._Mutation_deleteFormationConstraint(ctx, field) 36385 if out.Values[i] == graphql.Null { 36386 invalids++ 36387 } 36388 case "updateFormationConstraint": 36389 out.Values[i] = ec._Mutation_updateFormationConstraint(ctx, field) 36390 if out.Values[i] == graphql.Null { 36391 invalids++ 36392 } 36393 case "attachConstraintToFormationTemplate": 36394 out.Values[i] = ec._Mutation_attachConstraintToFormationTemplate(ctx, field) 36395 if out.Values[i] == graphql.Null { 36396 invalids++ 36397 } 36398 case "detachConstraintFromFormationTemplate": 36399 out.Values[i] = ec._Mutation_detachConstraintFromFormationTemplate(ctx, field) 36400 if out.Values[i] == graphql.Null { 36401 invalids++ 36402 } 36403 case "createLabelDefinition": 36404 out.Values[i] = ec._Mutation_createLabelDefinition(ctx, field) 36405 if out.Values[i] == graphql.Null { 36406 invalids++ 36407 } 36408 case "updateLabelDefinition": 36409 out.Values[i] = ec._Mutation_updateLabelDefinition(ctx, field) 36410 if out.Values[i] == graphql.Null { 36411 invalids++ 36412 } 36413 case "setApplicationLabel": 36414 out.Values[i] = ec._Mutation_setApplicationLabel(ctx, field) 36415 if out.Values[i] == graphql.Null { 36416 invalids++ 36417 } 36418 case "deleteApplicationLabel": 36419 out.Values[i] = ec._Mutation_deleteApplicationLabel(ctx, field) 36420 if out.Values[i] == graphql.Null { 36421 invalids++ 36422 } 36423 case "setRuntimeLabel": 36424 out.Values[i] = ec._Mutation_setRuntimeLabel(ctx, field) 36425 if out.Values[i] == graphql.Null { 36426 invalids++ 36427 } 36428 case "deleteRuntimeLabel": 36429 out.Values[i] = ec._Mutation_deleteRuntimeLabel(ctx, field) 36430 if out.Values[i] == graphql.Null { 36431 invalids++ 36432 } 36433 case "setDefaultEventingForApplication": 36434 out.Values[i] = ec._Mutation_setDefaultEventingForApplication(ctx, field) 36435 if out.Values[i] == graphql.Null { 36436 invalids++ 36437 } 36438 case "deleteDefaultEventingForApplication": 36439 out.Values[i] = ec._Mutation_deleteDefaultEventingForApplication(ctx, field) 36440 if out.Values[i] == graphql.Null { 36441 invalids++ 36442 } 36443 case "setBundleInstanceAuth": 36444 out.Values[i] = ec._Mutation_setBundleInstanceAuth(ctx, field) 36445 if out.Values[i] == graphql.Null { 36446 invalids++ 36447 } 36448 case "deleteBundleInstanceAuth": 36449 out.Values[i] = ec._Mutation_deleteBundleInstanceAuth(ctx, field) 36450 if out.Values[i] == graphql.Null { 36451 invalids++ 36452 } 36453 case "requestBundleInstanceAuthCreation": 36454 out.Values[i] = ec._Mutation_requestBundleInstanceAuthCreation(ctx, field) 36455 if out.Values[i] == graphql.Null { 36456 invalids++ 36457 } 36458 case "requestBundleInstanceAuthDeletion": 36459 out.Values[i] = ec._Mutation_requestBundleInstanceAuthDeletion(ctx, field) 36460 if out.Values[i] == graphql.Null { 36461 invalids++ 36462 } 36463 case "createBundleInstanceAuth": 36464 out.Values[i] = ec._Mutation_createBundleInstanceAuth(ctx, field) 36465 if out.Values[i] == graphql.Null { 36466 invalids++ 36467 } 36468 case "updateBundleInstanceAuth": 36469 out.Values[i] = ec._Mutation_updateBundleInstanceAuth(ctx, field) 36470 if out.Values[i] == graphql.Null { 36471 invalids++ 36472 } 36473 case "addBundle": 36474 out.Values[i] = ec._Mutation_addBundle(ctx, field) 36475 if out.Values[i] == graphql.Null { 36476 invalids++ 36477 } 36478 case "updateBundle": 36479 out.Values[i] = ec._Mutation_updateBundle(ctx, field) 36480 if out.Values[i] == graphql.Null { 36481 invalids++ 36482 } 36483 case "deleteBundle": 36484 out.Values[i] = ec._Mutation_deleteBundle(ctx, field) 36485 if out.Values[i] == graphql.Null { 36486 invalids++ 36487 } 36488 case "writeTenants": 36489 out.Values[i] = ec._Mutation_writeTenants(ctx, field) 36490 case "writeTenant": 36491 out.Values[i] = ec._Mutation_writeTenant(ctx, field) 36492 if out.Values[i] == graphql.Null { 36493 invalids++ 36494 } 36495 case "deleteTenants": 36496 out.Values[i] = ec._Mutation_deleteTenants(ctx, field) 36497 if out.Values[i] == graphql.Null { 36498 invalids++ 36499 } 36500 case "updateTenant": 36501 out.Values[i] = ec._Mutation_updateTenant(ctx, field) 36502 if out.Values[i] == graphql.Null { 36503 invalids++ 36504 } 36505 case "subscribeTenant": 36506 out.Values[i] = ec._Mutation_subscribeTenant(ctx, field) 36507 if out.Values[i] == graphql.Null { 36508 invalids++ 36509 } 36510 case "unsubscribeTenant": 36511 out.Values[i] = ec._Mutation_unsubscribeTenant(ctx, field) 36512 if out.Values[i] == graphql.Null { 36513 invalids++ 36514 } 36515 case "createFormationTemplate": 36516 out.Values[i] = ec._Mutation_createFormationTemplate(ctx, field) 36517 case "deleteFormationTemplate": 36518 out.Values[i] = ec._Mutation_deleteFormationTemplate(ctx, field) 36519 case "updateFormationTemplate": 36520 out.Values[i] = ec._Mutation_updateFormationTemplate(ctx, field) 36521 case "createCertificateSubjectMapping": 36522 out.Values[i] = ec._Mutation_createCertificateSubjectMapping(ctx, field) 36523 case "updateCertificateSubjectMapping": 36524 out.Values[i] = ec._Mutation_updateCertificateSubjectMapping(ctx, field) 36525 case "deleteCertificateSubjectMapping": 36526 out.Values[i] = ec._Mutation_deleteCertificateSubjectMapping(ctx, field) 36527 case "addTenantAccess": 36528 out.Values[i] = ec._Mutation_addTenantAccess(ctx, field) 36529 case "removeTenantAccess": 36530 out.Values[i] = ec._Mutation_removeTenantAccess(ctx, field) 36531 default: 36532 panic("unknown field " + strconv.Quote(field.Name)) 36533 } 36534 } 36535 out.Dispatch() 36536 if invalids > 0 { 36537 return graphql.Null 36538 } 36539 return out 36540 } 36541 36542 var oAuthCredentialDataImplementors = []string{"OAuthCredentialData", "CredentialData"} 36543 36544 func (ec *executionContext) _OAuthCredentialData(ctx context.Context, sel ast.SelectionSet, obj *OAuthCredentialData) graphql.Marshaler { 36545 fields := graphql.CollectFields(ec.OperationContext, sel, oAuthCredentialDataImplementors) 36546 36547 out := graphql.NewFieldSet(fields) 36548 var invalids uint32 36549 for i, field := range fields { 36550 switch field.Name { 36551 case "__typename": 36552 out.Values[i] = graphql.MarshalString("OAuthCredentialData") 36553 case "clientId": 36554 out.Values[i] = ec._OAuthCredentialData_clientId(ctx, field, obj) 36555 if out.Values[i] == graphql.Null { 36556 invalids++ 36557 } 36558 case "clientSecret": 36559 out.Values[i] = ec._OAuthCredentialData_clientSecret(ctx, field, obj) 36560 if out.Values[i] == graphql.Null { 36561 invalids++ 36562 } 36563 case "url": 36564 out.Values[i] = ec._OAuthCredentialData_url(ctx, field, obj) 36565 if out.Values[i] == graphql.Null { 36566 invalids++ 36567 } 36568 default: 36569 panic("unknown field " + strconv.Quote(field.Name)) 36570 } 36571 } 36572 out.Dispatch() 36573 if invalids > 0 { 36574 return graphql.Null 36575 } 36576 return out 36577 } 36578 36579 var oneTimeTokenForApplicationImplementors = []string{"OneTimeTokenForApplication", "OneTimeToken"} 36580 36581 func (ec *executionContext) _OneTimeTokenForApplication(ctx context.Context, sel ast.SelectionSet, obj *OneTimeTokenForApplication) graphql.Marshaler { 36582 fields := graphql.CollectFields(ec.OperationContext, sel, oneTimeTokenForApplicationImplementors) 36583 36584 out := graphql.NewFieldSet(fields) 36585 var invalids uint32 36586 for i, field := range fields { 36587 switch field.Name { 36588 case "__typename": 36589 out.Values[i] = graphql.MarshalString("OneTimeTokenForApplication") 36590 case "token": 36591 out.Values[i] = ec._OneTimeTokenForApplication_token(ctx, field, obj) 36592 if out.Values[i] == graphql.Null { 36593 atomic.AddUint32(&invalids, 1) 36594 } 36595 case "connectorURL": 36596 out.Values[i] = ec._OneTimeTokenForApplication_connectorURL(ctx, field, obj) 36597 if out.Values[i] == graphql.Null { 36598 atomic.AddUint32(&invalids, 1) 36599 } 36600 case "legacyConnectorURL": 36601 out.Values[i] = ec._OneTimeTokenForApplication_legacyConnectorURL(ctx, field, obj) 36602 if out.Values[i] == graphql.Null { 36603 atomic.AddUint32(&invalids, 1) 36604 } 36605 case "used": 36606 out.Values[i] = ec._OneTimeTokenForApplication_used(ctx, field, obj) 36607 if out.Values[i] == graphql.Null { 36608 atomic.AddUint32(&invalids, 1) 36609 } 36610 case "expiresAt": 36611 out.Values[i] = ec._OneTimeTokenForApplication_expiresAt(ctx, field, obj) 36612 if out.Values[i] == graphql.Null { 36613 atomic.AddUint32(&invalids, 1) 36614 } 36615 case "createdAt": 36616 out.Values[i] = ec._OneTimeTokenForApplication_createdAt(ctx, field, obj) 36617 case "usedAt": 36618 out.Values[i] = ec._OneTimeTokenForApplication_usedAt(ctx, field, obj) 36619 case "raw": 36620 field := field 36621 out.Concurrently(i, func() (res graphql.Marshaler) { 36622 defer func() { 36623 if r := recover(); r != nil { 36624 ec.Error(ctx, ec.Recover(ctx, r)) 36625 } 36626 }() 36627 res = ec._OneTimeTokenForApplication_raw(ctx, field, obj) 36628 return res 36629 }) 36630 case "rawEncoded": 36631 field := field 36632 out.Concurrently(i, func() (res graphql.Marshaler) { 36633 defer func() { 36634 if r := recover(); r != nil { 36635 ec.Error(ctx, ec.Recover(ctx, r)) 36636 } 36637 }() 36638 res = ec._OneTimeTokenForApplication_rawEncoded(ctx, field, obj) 36639 return res 36640 }) 36641 case "type": 36642 out.Values[i] = ec._OneTimeTokenForApplication_type(ctx, field, obj) 36643 case "scenarioGroups": 36644 out.Values[i] = ec._OneTimeTokenForApplication_scenarioGroups(ctx, field, obj) 36645 default: 36646 panic("unknown field " + strconv.Quote(field.Name)) 36647 } 36648 } 36649 out.Dispatch() 36650 if invalids > 0 { 36651 return graphql.Null 36652 } 36653 return out 36654 } 36655 36656 var oneTimeTokenForRuntimeImplementors = []string{"OneTimeTokenForRuntime", "OneTimeToken"} 36657 36658 func (ec *executionContext) _OneTimeTokenForRuntime(ctx context.Context, sel ast.SelectionSet, obj *OneTimeTokenForRuntime) graphql.Marshaler { 36659 fields := graphql.CollectFields(ec.OperationContext, sel, oneTimeTokenForRuntimeImplementors) 36660 36661 out := graphql.NewFieldSet(fields) 36662 var invalids uint32 36663 for i, field := range fields { 36664 switch field.Name { 36665 case "__typename": 36666 out.Values[i] = graphql.MarshalString("OneTimeTokenForRuntime") 36667 case "token": 36668 out.Values[i] = ec._OneTimeTokenForRuntime_token(ctx, field, obj) 36669 if out.Values[i] == graphql.Null { 36670 atomic.AddUint32(&invalids, 1) 36671 } 36672 case "connectorURL": 36673 out.Values[i] = ec._OneTimeTokenForRuntime_connectorURL(ctx, field, obj) 36674 if out.Values[i] == graphql.Null { 36675 atomic.AddUint32(&invalids, 1) 36676 } 36677 case "used": 36678 out.Values[i] = ec._OneTimeTokenForRuntime_used(ctx, field, obj) 36679 if out.Values[i] == graphql.Null { 36680 atomic.AddUint32(&invalids, 1) 36681 } 36682 case "expiresAt": 36683 out.Values[i] = ec._OneTimeTokenForRuntime_expiresAt(ctx, field, obj) 36684 if out.Values[i] == graphql.Null { 36685 atomic.AddUint32(&invalids, 1) 36686 } 36687 case "createdAt": 36688 out.Values[i] = ec._OneTimeTokenForRuntime_createdAt(ctx, field, obj) 36689 case "usedAt": 36690 out.Values[i] = ec._OneTimeTokenForRuntime_usedAt(ctx, field, obj) 36691 case "raw": 36692 field := field 36693 out.Concurrently(i, func() (res graphql.Marshaler) { 36694 defer func() { 36695 if r := recover(); r != nil { 36696 ec.Error(ctx, ec.Recover(ctx, r)) 36697 } 36698 }() 36699 res = ec._OneTimeTokenForRuntime_raw(ctx, field, obj) 36700 return res 36701 }) 36702 case "rawEncoded": 36703 field := field 36704 out.Concurrently(i, func() (res graphql.Marshaler) { 36705 defer func() { 36706 if r := recover(); r != nil { 36707 ec.Error(ctx, ec.Recover(ctx, r)) 36708 } 36709 }() 36710 res = ec._OneTimeTokenForRuntime_rawEncoded(ctx, field, obj) 36711 return res 36712 }) 36713 case "type": 36714 out.Values[i] = ec._OneTimeTokenForRuntime_type(ctx, field, obj) 36715 default: 36716 panic("unknown field " + strconv.Quote(field.Name)) 36717 } 36718 } 36719 out.Dispatch() 36720 if invalids > 0 { 36721 return graphql.Null 36722 } 36723 return out 36724 } 36725 36726 var pageInfoImplementors = []string{"PageInfo"} 36727 36728 func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *PageInfo) graphql.Marshaler { 36729 fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors) 36730 36731 out := graphql.NewFieldSet(fields) 36732 var invalids uint32 36733 for i, field := range fields { 36734 switch field.Name { 36735 case "__typename": 36736 out.Values[i] = graphql.MarshalString("PageInfo") 36737 case "startCursor": 36738 out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) 36739 if out.Values[i] == graphql.Null { 36740 invalids++ 36741 } 36742 case "endCursor": 36743 out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj) 36744 if out.Values[i] == graphql.Null { 36745 invalids++ 36746 } 36747 case "hasNextPage": 36748 out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) 36749 if out.Values[i] == graphql.Null { 36750 invalids++ 36751 } 36752 default: 36753 panic("unknown field " + strconv.Quote(field.Name)) 36754 } 36755 } 36756 out.Dispatch() 36757 if invalids > 0 { 36758 return graphql.Null 36759 } 36760 return out 36761 } 36762 36763 var placeholderDefinitionImplementors = []string{"PlaceholderDefinition"} 36764 36765 func (ec *executionContext) _PlaceholderDefinition(ctx context.Context, sel ast.SelectionSet, obj *PlaceholderDefinition) graphql.Marshaler { 36766 fields := graphql.CollectFields(ec.OperationContext, sel, placeholderDefinitionImplementors) 36767 36768 out := graphql.NewFieldSet(fields) 36769 var invalids uint32 36770 for i, field := range fields { 36771 switch field.Name { 36772 case "__typename": 36773 out.Values[i] = graphql.MarshalString("PlaceholderDefinition") 36774 case "name": 36775 out.Values[i] = ec._PlaceholderDefinition_name(ctx, field, obj) 36776 if out.Values[i] == graphql.Null { 36777 invalids++ 36778 } 36779 case "description": 36780 out.Values[i] = ec._PlaceholderDefinition_description(ctx, field, obj) 36781 case "jsonPath": 36782 out.Values[i] = ec._PlaceholderDefinition_jsonPath(ctx, field, obj) 36783 case "optional": 36784 out.Values[i] = ec._PlaceholderDefinition_optional(ctx, field, obj) 36785 default: 36786 panic("unknown field " + strconv.Quote(field.Name)) 36787 } 36788 } 36789 out.Dispatch() 36790 if invalids > 0 { 36791 return graphql.Null 36792 } 36793 return out 36794 } 36795 36796 var queryImplementors = []string{"Query"} 36797 36798 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { 36799 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) 36800 36801 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ 36802 Object: "Query", 36803 }) 36804 36805 out := graphql.NewFieldSet(fields) 36806 var invalids uint32 36807 for i, field := range fields { 36808 switch field.Name { 36809 case "__typename": 36810 out.Values[i] = graphql.MarshalString("Query") 36811 case "apisForApplication": 36812 field := field 36813 out.Concurrently(i, func() (res graphql.Marshaler) { 36814 defer func() { 36815 if r := recover(); r != nil { 36816 ec.Error(ctx, ec.Recover(ctx, r)) 36817 } 36818 }() 36819 res = ec._Query_apisForApplication(ctx, field) 36820 return res 36821 }) 36822 case "eventsForApplication": 36823 field := field 36824 out.Concurrently(i, func() (res graphql.Marshaler) { 36825 defer func() { 36826 if r := recover(); r != nil { 36827 ec.Error(ctx, ec.Recover(ctx, r)) 36828 } 36829 }() 36830 res = ec._Query_eventsForApplication(ctx, field) 36831 return res 36832 }) 36833 case "applications": 36834 field := field 36835 out.Concurrently(i, func() (res graphql.Marshaler) { 36836 defer func() { 36837 if r := recover(); r != nil { 36838 ec.Error(ctx, ec.Recover(ctx, r)) 36839 } 36840 }() 36841 res = ec._Query_applications(ctx, field) 36842 if res == graphql.Null { 36843 atomic.AddUint32(&invalids, 1) 36844 } 36845 return res 36846 }) 36847 case "application": 36848 field := field 36849 out.Concurrently(i, func() (res graphql.Marshaler) { 36850 defer func() { 36851 if r := recover(); r != nil { 36852 ec.Error(ctx, ec.Recover(ctx, r)) 36853 } 36854 }() 36855 res = ec._Query_application(ctx, field) 36856 return res 36857 }) 36858 case "applicationBySystemNumber": 36859 field := field 36860 out.Concurrently(i, func() (res graphql.Marshaler) { 36861 defer func() { 36862 if r := recover(); r != nil { 36863 ec.Error(ctx, ec.Recover(ctx, r)) 36864 } 36865 }() 36866 res = ec._Query_applicationBySystemNumber(ctx, field) 36867 return res 36868 }) 36869 case "applicationsForRuntime": 36870 field := field 36871 out.Concurrently(i, func() (res graphql.Marshaler) { 36872 defer func() { 36873 if r := recover(); r != nil { 36874 ec.Error(ctx, ec.Recover(ctx, r)) 36875 } 36876 }() 36877 res = ec._Query_applicationsForRuntime(ctx, field) 36878 if res == graphql.Null { 36879 atomic.AddUint32(&invalids, 1) 36880 } 36881 return res 36882 }) 36883 case "applicationTemplates": 36884 field := field 36885 out.Concurrently(i, func() (res graphql.Marshaler) { 36886 defer func() { 36887 if r := recover(); r != nil { 36888 ec.Error(ctx, ec.Recover(ctx, r)) 36889 } 36890 }() 36891 res = ec._Query_applicationTemplates(ctx, field) 36892 if res == graphql.Null { 36893 atomic.AddUint32(&invalids, 1) 36894 } 36895 return res 36896 }) 36897 case "applicationTemplate": 36898 field := field 36899 out.Concurrently(i, func() (res graphql.Marshaler) { 36900 defer func() { 36901 if r := recover(); r != nil { 36902 ec.Error(ctx, ec.Recover(ctx, r)) 36903 } 36904 }() 36905 res = ec._Query_applicationTemplate(ctx, field) 36906 return res 36907 }) 36908 case "runtimes": 36909 field := field 36910 out.Concurrently(i, func() (res graphql.Marshaler) { 36911 defer func() { 36912 if r := recover(); r != nil { 36913 ec.Error(ctx, ec.Recover(ctx, r)) 36914 } 36915 }() 36916 res = ec._Query_runtimes(ctx, field) 36917 if res == graphql.Null { 36918 atomic.AddUint32(&invalids, 1) 36919 } 36920 return res 36921 }) 36922 case "runtime": 36923 field := field 36924 out.Concurrently(i, func() (res graphql.Marshaler) { 36925 defer func() { 36926 if r := recover(); r != nil { 36927 ec.Error(ctx, ec.Recover(ctx, r)) 36928 } 36929 }() 36930 res = ec._Query_runtime(ctx, field) 36931 return res 36932 }) 36933 case "runtimeByTokenIssuer": 36934 field := field 36935 out.Concurrently(i, func() (res graphql.Marshaler) { 36936 defer func() { 36937 if r := recover(); r != nil { 36938 ec.Error(ctx, ec.Recover(ctx, r)) 36939 } 36940 }() 36941 res = ec._Query_runtimeByTokenIssuer(ctx, field) 36942 return res 36943 }) 36944 case "labelDefinitions": 36945 field := field 36946 out.Concurrently(i, func() (res graphql.Marshaler) { 36947 defer func() { 36948 if r := recover(); r != nil { 36949 ec.Error(ctx, ec.Recover(ctx, r)) 36950 } 36951 }() 36952 res = ec._Query_labelDefinitions(ctx, field) 36953 if res == graphql.Null { 36954 atomic.AddUint32(&invalids, 1) 36955 } 36956 return res 36957 }) 36958 case "labelDefinition": 36959 field := field 36960 out.Concurrently(i, func() (res graphql.Marshaler) { 36961 defer func() { 36962 if r := recover(); r != nil { 36963 ec.Error(ctx, ec.Recover(ctx, r)) 36964 } 36965 }() 36966 res = ec._Query_labelDefinition(ctx, field) 36967 return res 36968 }) 36969 case "bundleByInstanceAuth": 36970 field := field 36971 out.Concurrently(i, func() (res graphql.Marshaler) { 36972 defer func() { 36973 if r := recover(); r != nil { 36974 ec.Error(ctx, ec.Recover(ctx, r)) 36975 } 36976 }() 36977 res = ec._Query_bundleByInstanceAuth(ctx, field) 36978 return res 36979 }) 36980 case "bundleInstanceAuth": 36981 field := field 36982 out.Concurrently(i, func() (res graphql.Marshaler) { 36983 defer func() { 36984 if r := recover(); r != nil { 36985 ec.Error(ctx, ec.Recover(ctx, r)) 36986 } 36987 }() 36988 res = ec._Query_bundleInstanceAuth(ctx, field) 36989 return res 36990 }) 36991 case "healthChecks": 36992 field := field 36993 out.Concurrently(i, func() (res graphql.Marshaler) { 36994 defer func() { 36995 if r := recover(); r != nil { 36996 ec.Error(ctx, ec.Recover(ctx, r)) 36997 } 36998 }() 36999 res = ec._Query_healthChecks(ctx, field) 37000 if res == graphql.Null { 37001 atomic.AddUint32(&invalids, 1) 37002 } 37003 return res 37004 }) 37005 case "integrationSystems": 37006 field := field 37007 out.Concurrently(i, func() (res graphql.Marshaler) { 37008 defer func() { 37009 if r := recover(); r != nil { 37010 ec.Error(ctx, ec.Recover(ctx, r)) 37011 } 37012 }() 37013 res = ec._Query_integrationSystems(ctx, field) 37014 if res == graphql.Null { 37015 atomic.AddUint32(&invalids, 1) 37016 } 37017 return res 37018 }) 37019 case "integrationSystem": 37020 field := field 37021 out.Concurrently(i, func() (res graphql.Marshaler) { 37022 defer func() { 37023 if r := recover(); r != nil { 37024 ec.Error(ctx, ec.Recover(ctx, r)) 37025 } 37026 }() 37027 res = ec._Query_integrationSystem(ctx, field) 37028 return res 37029 }) 37030 case "viewer": 37031 field := field 37032 out.Concurrently(i, func() (res graphql.Marshaler) { 37033 defer func() { 37034 if r := recover(); r != nil { 37035 ec.Error(ctx, ec.Recover(ctx, r)) 37036 } 37037 }() 37038 res = ec._Query_viewer(ctx, field) 37039 if res == graphql.Null { 37040 atomic.AddUint32(&invalids, 1) 37041 } 37042 return res 37043 }) 37044 case "tenants": 37045 field := field 37046 out.Concurrently(i, func() (res graphql.Marshaler) { 37047 defer func() { 37048 if r := recover(); r != nil { 37049 ec.Error(ctx, ec.Recover(ctx, r)) 37050 } 37051 }() 37052 res = ec._Query_tenants(ctx, field) 37053 if res == graphql.Null { 37054 atomic.AddUint32(&invalids, 1) 37055 } 37056 return res 37057 }) 37058 case "tenantByExternalID": 37059 field := field 37060 out.Concurrently(i, func() (res graphql.Marshaler) { 37061 defer func() { 37062 if r := recover(); r != nil { 37063 ec.Error(ctx, ec.Recover(ctx, r)) 37064 } 37065 }() 37066 res = ec._Query_tenantByExternalID(ctx, field) 37067 return res 37068 }) 37069 case "tenantByInternalID": 37070 field := field 37071 out.Concurrently(i, func() (res graphql.Marshaler) { 37072 defer func() { 37073 if r := recover(); r != nil { 37074 ec.Error(ctx, ec.Recover(ctx, r)) 37075 } 37076 }() 37077 res = ec._Query_tenantByInternalID(ctx, field) 37078 return res 37079 }) 37080 case "tenantByLowestOwnerForResource": 37081 field := field 37082 out.Concurrently(i, func() (res graphql.Marshaler) { 37083 defer func() { 37084 if r := recover(); r != nil { 37085 ec.Error(ctx, ec.Recover(ctx, r)) 37086 } 37087 }() 37088 res = ec._Query_tenantByLowestOwnerForResource(ctx, field) 37089 if res == graphql.Null { 37090 atomic.AddUint32(&invalids, 1) 37091 } 37092 return res 37093 }) 37094 case "automaticScenarioAssignmentForScenario": 37095 field := field 37096 out.Concurrently(i, func() (res graphql.Marshaler) { 37097 defer func() { 37098 if r := recover(); r != nil { 37099 ec.Error(ctx, ec.Recover(ctx, r)) 37100 } 37101 }() 37102 res = ec._Query_automaticScenarioAssignmentForScenario(ctx, field) 37103 return res 37104 }) 37105 case "automaticScenarioAssignmentsForSelector": 37106 field := field 37107 out.Concurrently(i, func() (res graphql.Marshaler) { 37108 defer func() { 37109 if r := recover(); r != nil { 37110 ec.Error(ctx, ec.Recover(ctx, r)) 37111 } 37112 }() 37113 res = ec._Query_automaticScenarioAssignmentsForSelector(ctx, field) 37114 if res == graphql.Null { 37115 atomic.AddUint32(&invalids, 1) 37116 } 37117 return res 37118 }) 37119 case "automaticScenarioAssignments": 37120 field := field 37121 out.Concurrently(i, func() (res graphql.Marshaler) { 37122 defer func() { 37123 if r := recover(); r != nil { 37124 ec.Error(ctx, ec.Recover(ctx, r)) 37125 } 37126 }() 37127 res = ec._Query_automaticScenarioAssignments(ctx, field) 37128 return res 37129 }) 37130 case "systemAuth": 37131 field := field 37132 out.Concurrently(i, func() (res graphql.Marshaler) { 37133 defer func() { 37134 if r := recover(); r != nil { 37135 ec.Error(ctx, ec.Recover(ctx, r)) 37136 } 37137 }() 37138 res = ec._Query_systemAuth(ctx, field) 37139 return res 37140 }) 37141 case "systemAuthByToken": 37142 field := field 37143 out.Concurrently(i, func() (res graphql.Marshaler) { 37144 defer func() { 37145 if r := recover(); r != nil { 37146 ec.Error(ctx, ec.Recover(ctx, r)) 37147 } 37148 }() 37149 res = ec._Query_systemAuthByToken(ctx, field) 37150 return res 37151 }) 37152 case "formation": 37153 field := field 37154 out.Concurrently(i, func() (res graphql.Marshaler) { 37155 defer func() { 37156 if r := recover(); r != nil { 37157 ec.Error(ctx, ec.Recover(ctx, r)) 37158 } 37159 }() 37160 res = ec._Query_formation(ctx, field) 37161 return res 37162 }) 37163 case "formationByName": 37164 field := field 37165 out.Concurrently(i, func() (res graphql.Marshaler) { 37166 defer func() { 37167 if r := recover(); r != nil { 37168 ec.Error(ctx, ec.Recover(ctx, r)) 37169 } 37170 }() 37171 res = ec._Query_formationByName(ctx, field) 37172 return res 37173 }) 37174 case "formations": 37175 field := field 37176 out.Concurrently(i, func() (res graphql.Marshaler) { 37177 defer func() { 37178 if r := recover(); r != nil { 37179 ec.Error(ctx, ec.Recover(ctx, r)) 37180 } 37181 }() 37182 res = ec._Query_formations(ctx, field) 37183 if res == graphql.Null { 37184 atomic.AddUint32(&invalids, 1) 37185 } 37186 return res 37187 }) 37188 case "formationConstraints": 37189 field := field 37190 out.Concurrently(i, func() (res graphql.Marshaler) { 37191 defer func() { 37192 if r := recover(); r != nil { 37193 ec.Error(ctx, ec.Recover(ctx, r)) 37194 } 37195 }() 37196 res = ec._Query_formationConstraints(ctx, field) 37197 if res == graphql.Null { 37198 atomic.AddUint32(&invalids, 1) 37199 } 37200 return res 37201 }) 37202 case "formationConstraint": 37203 field := field 37204 out.Concurrently(i, func() (res graphql.Marshaler) { 37205 defer func() { 37206 if r := recover(); r != nil { 37207 ec.Error(ctx, ec.Recover(ctx, r)) 37208 } 37209 }() 37210 res = ec._Query_formationConstraint(ctx, field) 37211 if res == graphql.Null { 37212 atomic.AddUint32(&invalids, 1) 37213 } 37214 return res 37215 }) 37216 case "formationConstraintsByFormationType": 37217 field := field 37218 out.Concurrently(i, func() (res graphql.Marshaler) { 37219 defer func() { 37220 if r := recover(); r != nil { 37221 ec.Error(ctx, ec.Recover(ctx, r)) 37222 } 37223 }() 37224 res = ec._Query_formationConstraintsByFormationType(ctx, field) 37225 if res == graphql.Null { 37226 atomic.AddUint32(&invalids, 1) 37227 } 37228 return res 37229 }) 37230 case "formationTemplate": 37231 field := field 37232 out.Concurrently(i, func() (res graphql.Marshaler) { 37233 defer func() { 37234 if r := recover(); r != nil { 37235 ec.Error(ctx, ec.Recover(ctx, r)) 37236 } 37237 }() 37238 res = ec._Query_formationTemplate(ctx, field) 37239 return res 37240 }) 37241 case "formationTemplates": 37242 field := field 37243 out.Concurrently(i, func() (res graphql.Marshaler) { 37244 defer func() { 37245 if r := recover(); r != nil { 37246 ec.Error(ctx, ec.Recover(ctx, r)) 37247 } 37248 }() 37249 res = ec._Query_formationTemplates(ctx, field) 37250 if res == graphql.Null { 37251 atomic.AddUint32(&invalids, 1) 37252 } 37253 return res 37254 }) 37255 case "certificateSubjectMapping": 37256 field := field 37257 out.Concurrently(i, func() (res graphql.Marshaler) { 37258 defer func() { 37259 if r := recover(); r != nil { 37260 ec.Error(ctx, ec.Recover(ctx, r)) 37261 } 37262 }() 37263 res = ec._Query_certificateSubjectMapping(ctx, field) 37264 if res == graphql.Null { 37265 atomic.AddUint32(&invalids, 1) 37266 } 37267 return res 37268 }) 37269 case "certificateSubjectMappings": 37270 field := field 37271 out.Concurrently(i, func() (res graphql.Marshaler) { 37272 defer func() { 37273 if r := recover(); r != nil { 37274 ec.Error(ctx, ec.Recover(ctx, r)) 37275 } 37276 }() 37277 res = ec._Query_certificateSubjectMappings(ctx, field) 37278 if res == graphql.Null { 37279 atomic.AddUint32(&invalids, 1) 37280 } 37281 return res 37282 }) 37283 case "__type": 37284 out.Values[i] = ec._Query___type(ctx, field) 37285 case "__schema": 37286 out.Values[i] = ec._Query___schema(ctx, field) 37287 default: 37288 panic("unknown field " + strconv.Quote(field.Name)) 37289 } 37290 } 37291 out.Dispatch() 37292 if invalids > 0 { 37293 return graphql.Null 37294 } 37295 return out 37296 } 37297 37298 var runtimeImplementors = []string{"Runtime"} 37299 37300 func (ec *executionContext) _Runtime(ctx context.Context, sel ast.SelectionSet, obj *Runtime) graphql.Marshaler { 37301 fields := graphql.CollectFields(ec.OperationContext, sel, runtimeImplementors) 37302 37303 out := graphql.NewFieldSet(fields) 37304 var invalids uint32 37305 for i, field := range fields { 37306 switch field.Name { 37307 case "__typename": 37308 out.Values[i] = graphql.MarshalString("Runtime") 37309 case "id": 37310 out.Values[i] = ec._Runtime_id(ctx, field, obj) 37311 if out.Values[i] == graphql.Null { 37312 atomic.AddUint32(&invalids, 1) 37313 } 37314 case "metadata": 37315 out.Values[i] = ec._Runtime_metadata(ctx, field, obj) 37316 if out.Values[i] == graphql.Null { 37317 atomic.AddUint32(&invalids, 1) 37318 } 37319 case "name": 37320 out.Values[i] = ec._Runtime_name(ctx, field, obj) 37321 if out.Values[i] == graphql.Null { 37322 atomic.AddUint32(&invalids, 1) 37323 } 37324 case "description": 37325 out.Values[i] = ec._Runtime_description(ctx, field, obj) 37326 case "labels": 37327 field := field 37328 out.Concurrently(i, func() (res graphql.Marshaler) { 37329 defer func() { 37330 if r := recover(); r != nil { 37331 ec.Error(ctx, ec.Recover(ctx, r)) 37332 } 37333 }() 37334 res = ec._Runtime_labels(ctx, field, obj) 37335 return res 37336 }) 37337 case "webhooks": 37338 field := field 37339 out.Concurrently(i, func() (res graphql.Marshaler) { 37340 defer func() { 37341 if r := recover(); r != nil { 37342 ec.Error(ctx, ec.Recover(ctx, r)) 37343 } 37344 }() 37345 res = ec._Runtime_webhooks(ctx, field, obj) 37346 return res 37347 }) 37348 case "status": 37349 out.Values[i] = ec._Runtime_status(ctx, field, obj) 37350 if out.Values[i] == graphql.Null { 37351 atomic.AddUint32(&invalids, 1) 37352 } 37353 case "auths": 37354 field := field 37355 out.Concurrently(i, func() (res graphql.Marshaler) { 37356 defer func() { 37357 if r := recover(); r != nil { 37358 ec.Error(ctx, ec.Recover(ctx, r)) 37359 } 37360 }() 37361 res = ec._Runtime_auths(ctx, field, obj) 37362 return res 37363 }) 37364 case "eventingConfiguration": 37365 field := field 37366 out.Concurrently(i, func() (res graphql.Marshaler) { 37367 defer func() { 37368 if r := recover(); r != nil { 37369 ec.Error(ctx, ec.Recover(ctx, r)) 37370 } 37371 }() 37372 res = ec._Runtime_eventingConfiguration(ctx, field, obj) 37373 return res 37374 }) 37375 case "runtimeContext": 37376 field := field 37377 out.Concurrently(i, func() (res graphql.Marshaler) { 37378 defer func() { 37379 if r := recover(); r != nil { 37380 ec.Error(ctx, ec.Recover(ctx, r)) 37381 } 37382 }() 37383 res = ec._Runtime_runtimeContext(ctx, field, obj) 37384 return res 37385 }) 37386 case "runtimeContexts": 37387 field := field 37388 out.Concurrently(i, func() (res graphql.Marshaler) { 37389 defer func() { 37390 if r := recover(); r != nil { 37391 ec.Error(ctx, ec.Recover(ctx, r)) 37392 } 37393 }() 37394 res = ec._Runtime_runtimeContexts(ctx, field, obj) 37395 return res 37396 }) 37397 case "applicationNamespace": 37398 out.Values[i] = ec._Runtime_applicationNamespace(ctx, field, obj) 37399 default: 37400 panic("unknown field " + strconv.Quote(field.Name)) 37401 } 37402 } 37403 out.Dispatch() 37404 if invalids > 0 { 37405 return graphql.Null 37406 } 37407 return out 37408 } 37409 37410 var runtimeContextImplementors = []string{"RuntimeContext"} 37411 37412 func (ec *executionContext) _RuntimeContext(ctx context.Context, sel ast.SelectionSet, obj *RuntimeContext) graphql.Marshaler { 37413 fields := graphql.CollectFields(ec.OperationContext, sel, runtimeContextImplementors) 37414 37415 out := graphql.NewFieldSet(fields) 37416 var invalids uint32 37417 for i, field := range fields { 37418 switch field.Name { 37419 case "__typename": 37420 out.Values[i] = graphql.MarshalString("RuntimeContext") 37421 case "id": 37422 out.Values[i] = ec._RuntimeContext_id(ctx, field, obj) 37423 if out.Values[i] == graphql.Null { 37424 atomic.AddUint32(&invalids, 1) 37425 } 37426 case "key": 37427 out.Values[i] = ec._RuntimeContext_key(ctx, field, obj) 37428 if out.Values[i] == graphql.Null { 37429 atomic.AddUint32(&invalids, 1) 37430 } 37431 case "value": 37432 out.Values[i] = ec._RuntimeContext_value(ctx, field, obj) 37433 if out.Values[i] == graphql.Null { 37434 atomic.AddUint32(&invalids, 1) 37435 } 37436 case "labels": 37437 field := field 37438 out.Concurrently(i, func() (res graphql.Marshaler) { 37439 defer func() { 37440 if r := recover(); r != nil { 37441 ec.Error(ctx, ec.Recover(ctx, r)) 37442 } 37443 }() 37444 res = ec._RuntimeContext_labels(ctx, field, obj) 37445 return res 37446 }) 37447 default: 37448 panic("unknown field " + strconv.Quote(field.Name)) 37449 } 37450 } 37451 out.Dispatch() 37452 if invalids > 0 { 37453 return graphql.Null 37454 } 37455 return out 37456 } 37457 37458 var runtimeContextPageImplementors = []string{"RuntimeContextPage", "Pageable"} 37459 37460 func (ec *executionContext) _RuntimeContextPage(ctx context.Context, sel ast.SelectionSet, obj *RuntimeContextPage) graphql.Marshaler { 37461 fields := graphql.CollectFields(ec.OperationContext, sel, runtimeContextPageImplementors) 37462 37463 out := graphql.NewFieldSet(fields) 37464 var invalids uint32 37465 for i, field := range fields { 37466 switch field.Name { 37467 case "__typename": 37468 out.Values[i] = graphql.MarshalString("RuntimeContextPage") 37469 case "data": 37470 out.Values[i] = ec._RuntimeContextPage_data(ctx, field, obj) 37471 if out.Values[i] == graphql.Null { 37472 invalids++ 37473 } 37474 case "pageInfo": 37475 out.Values[i] = ec._RuntimeContextPage_pageInfo(ctx, field, obj) 37476 if out.Values[i] == graphql.Null { 37477 invalids++ 37478 } 37479 case "totalCount": 37480 out.Values[i] = ec._RuntimeContextPage_totalCount(ctx, field, obj) 37481 if out.Values[i] == graphql.Null { 37482 invalids++ 37483 } 37484 default: 37485 panic("unknown field " + strconv.Quote(field.Name)) 37486 } 37487 } 37488 out.Dispatch() 37489 if invalids > 0 { 37490 return graphql.Null 37491 } 37492 return out 37493 } 37494 37495 var runtimeEventingConfigurationImplementors = []string{"RuntimeEventingConfiguration"} 37496 37497 func (ec *executionContext) _RuntimeEventingConfiguration(ctx context.Context, sel ast.SelectionSet, obj *RuntimeEventingConfiguration) graphql.Marshaler { 37498 fields := graphql.CollectFields(ec.OperationContext, sel, runtimeEventingConfigurationImplementors) 37499 37500 out := graphql.NewFieldSet(fields) 37501 var invalids uint32 37502 for i, field := range fields { 37503 switch field.Name { 37504 case "__typename": 37505 out.Values[i] = graphql.MarshalString("RuntimeEventingConfiguration") 37506 case "defaultURL": 37507 out.Values[i] = ec._RuntimeEventingConfiguration_defaultURL(ctx, field, obj) 37508 if out.Values[i] == graphql.Null { 37509 invalids++ 37510 } 37511 default: 37512 panic("unknown field " + strconv.Quote(field.Name)) 37513 } 37514 } 37515 out.Dispatch() 37516 if invalids > 0 { 37517 return graphql.Null 37518 } 37519 return out 37520 } 37521 37522 var runtimeMetadataImplementors = []string{"RuntimeMetadata"} 37523 37524 func (ec *executionContext) _RuntimeMetadata(ctx context.Context, sel ast.SelectionSet, obj *RuntimeMetadata) graphql.Marshaler { 37525 fields := graphql.CollectFields(ec.OperationContext, sel, runtimeMetadataImplementors) 37526 37527 out := graphql.NewFieldSet(fields) 37528 var invalids uint32 37529 for i, field := range fields { 37530 switch field.Name { 37531 case "__typename": 37532 out.Values[i] = graphql.MarshalString("RuntimeMetadata") 37533 case "creationTimestamp": 37534 out.Values[i] = ec._RuntimeMetadata_creationTimestamp(ctx, field, obj) 37535 if out.Values[i] == graphql.Null { 37536 invalids++ 37537 } 37538 default: 37539 panic("unknown field " + strconv.Quote(field.Name)) 37540 } 37541 } 37542 out.Dispatch() 37543 if invalids > 0 { 37544 return graphql.Null 37545 } 37546 return out 37547 } 37548 37549 var runtimePageImplementors = []string{"RuntimePage", "Pageable"} 37550 37551 func (ec *executionContext) _RuntimePage(ctx context.Context, sel ast.SelectionSet, obj *RuntimePage) graphql.Marshaler { 37552 fields := graphql.CollectFields(ec.OperationContext, sel, runtimePageImplementors) 37553 37554 out := graphql.NewFieldSet(fields) 37555 var invalids uint32 37556 for i, field := range fields { 37557 switch field.Name { 37558 case "__typename": 37559 out.Values[i] = graphql.MarshalString("RuntimePage") 37560 case "data": 37561 out.Values[i] = ec._RuntimePage_data(ctx, field, obj) 37562 if out.Values[i] == graphql.Null { 37563 invalids++ 37564 } 37565 case "pageInfo": 37566 out.Values[i] = ec._RuntimePage_pageInfo(ctx, field, obj) 37567 if out.Values[i] == graphql.Null { 37568 invalids++ 37569 } 37570 case "totalCount": 37571 out.Values[i] = ec._RuntimePage_totalCount(ctx, field, obj) 37572 if out.Values[i] == graphql.Null { 37573 invalids++ 37574 } 37575 default: 37576 panic("unknown field " + strconv.Quote(field.Name)) 37577 } 37578 } 37579 out.Dispatch() 37580 if invalids > 0 { 37581 return graphql.Null 37582 } 37583 return out 37584 } 37585 37586 var runtimeStatusImplementors = []string{"RuntimeStatus"} 37587 37588 func (ec *executionContext) _RuntimeStatus(ctx context.Context, sel ast.SelectionSet, obj *RuntimeStatus) graphql.Marshaler { 37589 fields := graphql.CollectFields(ec.OperationContext, sel, runtimeStatusImplementors) 37590 37591 out := graphql.NewFieldSet(fields) 37592 var invalids uint32 37593 for i, field := range fields { 37594 switch field.Name { 37595 case "__typename": 37596 out.Values[i] = graphql.MarshalString("RuntimeStatus") 37597 case "condition": 37598 out.Values[i] = ec._RuntimeStatus_condition(ctx, field, obj) 37599 if out.Values[i] == graphql.Null { 37600 invalids++ 37601 } 37602 case "timestamp": 37603 out.Values[i] = ec._RuntimeStatus_timestamp(ctx, field, obj) 37604 if out.Values[i] == graphql.Null { 37605 invalids++ 37606 } 37607 default: 37608 panic("unknown field " + strconv.Quote(field.Name)) 37609 } 37610 } 37611 out.Dispatch() 37612 if invalids > 0 { 37613 return graphql.Null 37614 } 37615 return out 37616 } 37617 37618 var runtimeSystemAuthImplementors = []string{"RuntimeSystemAuth", "SystemAuth"} 37619 37620 func (ec *executionContext) _RuntimeSystemAuth(ctx context.Context, sel ast.SelectionSet, obj *RuntimeSystemAuth) graphql.Marshaler { 37621 fields := graphql.CollectFields(ec.OperationContext, sel, runtimeSystemAuthImplementors) 37622 37623 out := graphql.NewFieldSet(fields) 37624 var invalids uint32 37625 for i, field := range fields { 37626 switch field.Name { 37627 case "__typename": 37628 out.Values[i] = graphql.MarshalString("RuntimeSystemAuth") 37629 case "id": 37630 out.Values[i] = ec._RuntimeSystemAuth_id(ctx, field, obj) 37631 if out.Values[i] == graphql.Null { 37632 invalids++ 37633 } 37634 case "auth": 37635 out.Values[i] = ec._RuntimeSystemAuth_auth(ctx, field, obj) 37636 case "type": 37637 out.Values[i] = ec._RuntimeSystemAuth_type(ctx, field, obj) 37638 case "tenantId": 37639 out.Values[i] = ec._RuntimeSystemAuth_tenantId(ctx, field, obj) 37640 case "referenceObjectId": 37641 out.Values[i] = ec._RuntimeSystemAuth_referenceObjectId(ctx, field, obj) 37642 default: 37643 panic("unknown field " + strconv.Quote(field.Name)) 37644 } 37645 } 37646 out.Dispatch() 37647 if invalids > 0 { 37648 return graphql.Null 37649 } 37650 return out 37651 } 37652 37653 var tenantImplementors = []string{"Tenant"} 37654 37655 func (ec *executionContext) _Tenant(ctx context.Context, sel ast.SelectionSet, obj *Tenant) graphql.Marshaler { 37656 fields := graphql.CollectFields(ec.OperationContext, sel, tenantImplementors) 37657 37658 out := graphql.NewFieldSet(fields) 37659 var invalids uint32 37660 for i, field := range fields { 37661 switch field.Name { 37662 case "__typename": 37663 out.Values[i] = graphql.MarshalString("Tenant") 37664 case "id": 37665 out.Values[i] = ec._Tenant_id(ctx, field, obj) 37666 if out.Values[i] == graphql.Null { 37667 atomic.AddUint32(&invalids, 1) 37668 } 37669 case "internalID": 37670 out.Values[i] = ec._Tenant_internalID(ctx, field, obj) 37671 if out.Values[i] == graphql.Null { 37672 atomic.AddUint32(&invalids, 1) 37673 } 37674 case "name": 37675 out.Values[i] = ec._Tenant_name(ctx, field, obj) 37676 case "type": 37677 out.Values[i] = ec._Tenant_type(ctx, field, obj) 37678 case "parentID": 37679 out.Values[i] = ec._Tenant_parentID(ctx, field, obj) 37680 case "initialized": 37681 out.Values[i] = ec._Tenant_initialized(ctx, field, obj) 37682 case "labels": 37683 field := field 37684 out.Concurrently(i, func() (res graphql.Marshaler) { 37685 defer func() { 37686 if r := recover(); r != nil { 37687 ec.Error(ctx, ec.Recover(ctx, r)) 37688 } 37689 }() 37690 res = ec._Tenant_labels(ctx, field, obj) 37691 return res 37692 }) 37693 case "provider": 37694 out.Values[i] = ec._Tenant_provider(ctx, field, obj) 37695 if out.Values[i] == graphql.Null { 37696 atomic.AddUint32(&invalids, 1) 37697 } 37698 default: 37699 panic("unknown field " + strconv.Quote(field.Name)) 37700 } 37701 } 37702 out.Dispatch() 37703 if invalids > 0 { 37704 return graphql.Null 37705 } 37706 return out 37707 } 37708 37709 var tenantAccessImplementors = []string{"TenantAccess"} 37710 37711 func (ec *executionContext) _TenantAccess(ctx context.Context, sel ast.SelectionSet, obj *TenantAccess) graphql.Marshaler { 37712 fields := graphql.CollectFields(ec.OperationContext, sel, tenantAccessImplementors) 37713 37714 out := graphql.NewFieldSet(fields) 37715 var invalids uint32 37716 for i, field := range fields { 37717 switch field.Name { 37718 case "__typename": 37719 out.Values[i] = graphql.MarshalString("TenantAccess") 37720 case "tenantID": 37721 out.Values[i] = ec._TenantAccess_tenantID(ctx, field, obj) 37722 if out.Values[i] == graphql.Null { 37723 invalids++ 37724 } 37725 case "resourceType": 37726 out.Values[i] = ec._TenantAccess_resourceType(ctx, field, obj) 37727 if out.Values[i] == graphql.Null { 37728 invalids++ 37729 } 37730 case "resourceID": 37731 out.Values[i] = ec._TenantAccess_resourceID(ctx, field, obj) 37732 if out.Values[i] == graphql.Null { 37733 invalids++ 37734 } 37735 case "owner": 37736 out.Values[i] = ec._TenantAccess_owner(ctx, field, obj) 37737 if out.Values[i] == graphql.Null { 37738 invalids++ 37739 } 37740 default: 37741 panic("unknown field " + strconv.Quote(field.Name)) 37742 } 37743 } 37744 out.Dispatch() 37745 if invalids > 0 { 37746 return graphql.Null 37747 } 37748 return out 37749 } 37750 37751 var tenantBusinessTypeImplementors = []string{"TenantBusinessType"} 37752 37753 func (ec *executionContext) _TenantBusinessType(ctx context.Context, sel ast.SelectionSet, obj *TenantBusinessType) graphql.Marshaler { 37754 fields := graphql.CollectFields(ec.OperationContext, sel, tenantBusinessTypeImplementors) 37755 37756 out := graphql.NewFieldSet(fields) 37757 var invalids uint32 37758 for i, field := range fields { 37759 switch field.Name { 37760 case "__typename": 37761 out.Values[i] = graphql.MarshalString("TenantBusinessType") 37762 case "id": 37763 out.Values[i] = ec._TenantBusinessType_id(ctx, field, obj) 37764 if out.Values[i] == graphql.Null { 37765 invalids++ 37766 } 37767 case "code": 37768 out.Values[i] = ec._TenantBusinessType_code(ctx, field, obj) 37769 if out.Values[i] == graphql.Null { 37770 invalids++ 37771 } 37772 case "name": 37773 out.Values[i] = ec._TenantBusinessType_name(ctx, field, obj) 37774 if out.Values[i] == graphql.Null { 37775 invalids++ 37776 } 37777 default: 37778 panic("unknown field " + strconv.Quote(field.Name)) 37779 } 37780 } 37781 out.Dispatch() 37782 if invalids > 0 { 37783 return graphql.Null 37784 } 37785 return out 37786 } 37787 37788 var tenantPageImplementors = []string{"TenantPage", "Pageable"} 37789 37790 func (ec *executionContext) _TenantPage(ctx context.Context, sel ast.SelectionSet, obj *TenantPage) graphql.Marshaler { 37791 fields := graphql.CollectFields(ec.OperationContext, sel, tenantPageImplementors) 37792 37793 out := graphql.NewFieldSet(fields) 37794 var invalids uint32 37795 for i, field := range fields { 37796 switch field.Name { 37797 case "__typename": 37798 out.Values[i] = graphql.MarshalString("TenantPage") 37799 case "data": 37800 out.Values[i] = ec._TenantPage_data(ctx, field, obj) 37801 if out.Values[i] == graphql.Null { 37802 invalids++ 37803 } 37804 case "pageInfo": 37805 out.Values[i] = ec._TenantPage_pageInfo(ctx, field, obj) 37806 if out.Values[i] == graphql.Null { 37807 invalids++ 37808 } 37809 case "totalCount": 37810 out.Values[i] = ec._TenantPage_totalCount(ctx, field, obj) 37811 if out.Values[i] == graphql.Null { 37812 invalids++ 37813 } 37814 default: 37815 panic("unknown field " + strconv.Quote(field.Name)) 37816 } 37817 } 37818 out.Dispatch() 37819 if invalids > 0 { 37820 return graphql.Null 37821 } 37822 return out 37823 } 37824 37825 var versionImplementors = []string{"Version"} 37826 37827 func (ec *executionContext) _Version(ctx context.Context, sel ast.SelectionSet, obj *Version) graphql.Marshaler { 37828 fields := graphql.CollectFields(ec.OperationContext, sel, versionImplementors) 37829 37830 out := graphql.NewFieldSet(fields) 37831 var invalids uint32 37832 for i, field := range fields { 37833 switch field.Name { 37834 case "__typename": 37835 out.Values[i] = graphql.MarshalString("Version") 37836 case "value": 37837 out.Values[i] = ec._Version_value(ctx, field, obj) 37838 if out.Values[i] == graphql.Null { 37839 invalids++ 37840 } 37841 case "deprecated": 37842 out.Values[i] = ec._Version_deprecated(ctx, field, obj) 37843 case "deprecatedSince": 37844 out.Values[i] = ec._Version_deprecatedSince(ctx, field, obj) 37845 case "forRemoval": 37846 out.Values[i] = ec._Version_forRemoval(ctx, field, obj) 37847 default: 37848 panic("unknown field " + strconv.Quote(field.Name)) 37849 } 37850 } 37851 out.Dispatch() 37852 if invalids > 0 { 37853 return graphql.Null 37854 } 37855 return out 37856 } 37857 37858 var viewerImplementors = []string{"Viewer"} 37859 37860 func (ec *executionContext) _Viewer(ctx context.Context, sel ast.SelectionSet, obj *Viewer) graphql.Marshaler { 37861 fields := graphql.CollectFields(ec.OperationContext, sel, viewerImplementors) 37862 37863 out := graphql.NewFieldSet(fields) 37864 var invalids uint32 37865 for i, field := range fields { 37866 switch field.Name { 37867 case "__typename": 37868 out.Values[i] = graphql.MarshalString("Viewer") 37869 case "id": 37870 out.Values[i] = ec._Viewer_id(ctx, field, obj) 37871 if out.Values[i] == graphql.Null { 37872 invalids++ 37873 } 37874 case "type": 37875 out.Values[i] = ec._Viewer_type(ctx, field, obj) 37876 if out.Values[i] == graphql.Null { 37877 invalids++ 37878 } 37879 default: 37880 panic("unknown field " + strconv.Quote(field.Name)) 37881 } 37882 } 37883 out.Dispatch() 37884 if invalids > 0 { 37885 return graphql.Null 37886 } 37887 return out 37888 } 37889 37890 var webhookImplementors = []string{"Webhook"} 37891 37892 func (ec *executionContext) _Webhook(ctx context.Context, sel ast.SelectionSet, obj *Webhook) graphql.Marshaler { 37893 fields := graphql.CollectFields(ec.OperationContext, sel, webhookImplementors) 37894 37895 out := graphql.NewFieldSet(fields) 37896 var invalids uint32 37897 for i, field := range fields { 37898 switch field.Name { 37899 case "__typename": 37900 out.Values[i] = graphql.MarshalString("Webhook") 37901 case "id": 37902 out.Values[i] = ec._Webhook_id(ctx, field, obj) 37903 if out.Values[i] == graphql.Null { 37904 invalids++ 37905 } 37906 case "applicationID": 37907 out.Values[i] = ec._Webhook_applicationID(ctx, field, obj) 37908 case "applicationTemplateID": 37909 out.Values[i] = ec._Webhook_applicationTemplateID(ctx, field, obj) 37910 case "runtimeID": 37911 out.Values[i] = ec._Webhook_runtimeID(ctx, field, obj) 37912 case "integrationSystemID": 37913 out.Values[i] = ec._Webhook_integrationSystemID(ctx, field, obj) 37914 case "formationTemplateID": 37915 out.Values[i] = ec._Webhook_formationTemplateID(ctx, field, obj) 37916 case "type": 37917 out.Values[i] = ec._Webhook_type(ctx, field, obj) 37918 if out.Values[i] == graphql.Null { 37919 invalids++ 37920 } 37921 case "mode": 37922 out.Values[i] = ec._Webhook_mode(ctx, field, obj) 37923 case "correlationIdKey": 37924 out.Values[i] = ec._Webhook_correlationIdKey(ctx, field, obj) 37925 case "retryInterval": 37926 out.Values[i] = ec._Webhook_retryInterval(ctx, field, obj) 37927 case "timeout": 37928 out.Values[i] = ec._Webhook_timeout(ctx, field, obj) 37929 case "url": 37930 out.Values[i] = ec._Webhook_url(ctx, field, obj) 37931 case "auth": 37932 out.Values[i] = ec._Webhook_auth(ctx, field, obj) 37933 case "urlTemplate": 37934 out.Values[i] = ec._Webhook_urlTemplate(ctx, field, obj) 37935 case "inputTemplate": 37936 out.Values[i] = ec._Webhook_inputTemplate(ctx, field, obj) 37937 case "headerTemplate": 37938 out.Values[i] = ec._Webhook_headerTemplate(ctx, field, obj) 37939 case "outputTemplate": 37940 out.Values[i] = ec._Webhook_outputTemplate(ctx, field, obj) 37941 case "statusTemplate": 37942 out.Values[i] = ec._Webhook_statusTemplate(ctx, field, obj) 37943 case "createdAt": 37944 out.Values[i] = ec._Webhook_createdAt(ctx, field, obj) 37945 default: 37946 panic("unknown field " + strconv.Quote(field.Name)) 37947 } 37948 } 37949 out.Dispatch() 37950 if invalids > 0 { 37951 return graphql.Null 37952 } 37953 return out 37954 } 37955 37956 var __DirectiveImplementors = []string{"__Directive"} 37957 37958 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { 37959 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) 37960 37961 out := graphql.NewFieldSet(fields) 37962 var invalids uint32 37963 for i, field := range fields { 37964 switch field.Name { 37965 case "__typename": 37966 out.Values[i] = graphql.MarshalString("__Directive") 37967 case "name": 37968 out.Values[i] = ec.___Directive_name(ctx, field, obj) 37969 if out.Values[i] == graphql.Null { 37970 invalids++ 37971 } 37972 case "description": 37973 out.Values[i] = ec.___Directive_description(ctx, field, obj) 37974 case "locations": 37975 out.Values[i] = ec.___Directive_locations(ctx, field, obj) 37976 if out.Values[i] == graphql.Null { 37977 invalids++ 37978 } 37979 case "args": 37980 out.Values[i] = ec.___Directive_args(ctx, field, obj) 37981 if out.Values[i] == graphql.Null { 37982 invalids++ 37983 } 37984 default: 37985 panic("unknown field " + strconv.Quote(field.Name)) 37986 } 37987 } 37988 out.Dispatch() 37989 if invalids > 0 { 37990 return graphql.Null 37991 } 37992 return out 37993 } 37994 37995 var __EnumValueImplementors = []string{"__EnumValue"} 37996 37997 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { 37998 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) 37999 38000 out := graphql.NewFieldSet(fields) 38001 var invalids uint32 38002 for i, field := range fields { 38003 switch field.Name { 38004 case "__typename": 38005 out.Values[i] = graphql.MarshalString("__EnumValue") 38006 case "name": 38007 out.Values[i] = ec.___EnumValue_name(ctx, field, obj) 38008 if out.Values[i] == graphql.Null { 38009 invalids++ 38010 } 38011 case "description": 38012 out.Values[i] = ec.___EnumValue_description(ctx, field, obj) 38013 case "isDeprecated": 38014 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) 38015 if out.Values[i] == graphql.Null { 38016 invalids++ 38017 } 38018 case "deprecationReason": 38019 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) 38020 default: 38021 panic("unknown field " + strconv.Quote(field.Name)) 38022 } 38023 } 38024 out.Dispatch() 38025 if invalids > 0 { 38026 return graphql.Null 38027 } 38028 return out 38029 } 38030 38031 var __FieldImplementors = []string{"__Field"} 38032 38033 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { 38034 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) 38035 38036 out := graphql.NewFieldSet(fields) 38037 var invalids uint32 38038 for i, field := range fields { 38039 switch field.Name { 38040 case "__typename": 38041 out.Values[i] = graphql.MarshalString("__Field") 38042 case "name": 38043 out.Values[i] = ec.___Field_name(ctx, field, obj) 38044 if out.Values[i] == graphql.Null { 38045 invalids++ 38046 } 38047 case "description": 38048 out.Values[i] = ec.___Field_description(ctx, field, obj) 38049 case "args": 38050 out.Values[i] = ec.___Field_args(ctx, field, obj) 38051 if out.Values[i] == graphql.Null { 38052 invalids++ 38053 } 38054 case "type": 38055 out.Values[i] = ec.___Field_type(ctx, field, obj) 38056 if out.Values[i] == graphql.Null { 38057 invalids++ 38058 } 38059 case "isDeprecated": 38060 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) 38061 if out.Values[i] == graphql.Null { 38062 invalids++ 38063 } 38064 case "deprecationReason": 38065 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) 38066 default: 38067 panic("unknown field " + strconv.Quote(field.Name)) 38068 } 38069 } 38070 out.Dispatch() 38071 if invalids > 0 { 38072 return graphql.Null 38073 } 38074 return out 38075 } 38076 38077 var __InputValueImplementors = []string{"__InputValue"} 38078 38079 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { 38080 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) 38081 38082 out := graphql.NewFieldSet(fields) 38083 var invalids uint32 38084 for i, field := range fields { 38085 switch field.Name { 38086 case "__typename": 38087 out.Values[i] = graphql.MarshalString("__InputValue") 38088 case "name": 38089 out.Values[i] = ec.___InputValue_name(ctx, field, obj) 38090 if out.Values[i] == graphql.Null { 38091 invalids++ 38092 } 38093 case "description": 38094 out.Values[i] = ec.___InputValue_description(ctx, field, obj) 38095 case "type": 38096 out.Values[i] = ec.___InputValue_type(ctx, field, obj) 38097 if out.Values[i] == graphql.Null { 38098 invalids++ 38099 } 38100 case "defaultValue": 38101 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) 38102 default: 38103 panic("unknown field " + strconv.Quote(field.Name)) 38104 } 38105 } 38106 out.Dispatch() 38107 if invalids > 0 { 38108 return graphql.Null 38109 } 38110 return out 38111 } 38112 38113 var __SchemaImplementors = []string{"__Schema"} 38114 38115 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { 38116 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) 38117 38118 out := graphql.NewFieldSet(fields) 38119 var invalids uint32 38120 for i, field := range fields { 38121 switch field.Name { 38122 case "__typename": 38123 out.Values[i] = graphql.MarshalString("__Schema") 38124 case "types": 38125 out.Values[i] = ec.___Schema_types(ctx, field, obj) 38126 if out.Values[i] == graphql.Null { 38127 invalids++ 38128 } 38129 case "queryType": 38130 out.Values[i] = ec.___Schema_queryType(ctx, field, obj) 38131 if out.Values[i] == graphql.Null { 38132 invalids++ 38133 } 38134 case "mutationType": 38135 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) 38136 case "subscriptionType": 38137 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) 38138 case "directives": 38139 out.Values[i] = ec.___Schema_directives(ctx, field, obj) 38140 if out.Values[i] == graphql.Null { 38141 invalids++ 38142 } 38143 default: 38144 panic("unknown field " + strconv.Quote(field.Name)) 38145 } 38146 } 38147 out.Dispatch() 38148 if invalids > 0 { 38149 return graphql.Null 38150 } 38151 return out 38152 } 38153 38154 var __TypeImplementors = []string{"__Type"} 38155 38156 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { 38157 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) 38158 38159 out := graphql.NewFieldSet(fields) 38160 var invalids uint32 38161 for i, field := range fields { 38162 switch field.Name { 38163 case "__typename": 38164 out.Values[i] = graphql.MarshalString("__Type") 38165 case "kind": 38166 out.Values[i] = ec.___Type_kind(ctx, field, obj) 38167 if out.Values[i] == graphql.Null { 38168 invalids++ 38169 } 38170 case "name": 38171 out.Values[i] = ec.___Type_name(ctx, field, obj) 38172 case "description": 38173 out.Values[i] = ec.___Type_description(ctx, field, obj) 38174 case "fields": 38175 out.Values[i] = ec.___Type_fields(ctx, field, obj) 38176 case "interfaces": 38177 out.Values[i] = ec.___Type_interfaces(ctx, field, obj) 38178 case "possibleTypes": 38179 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) 38180 case "enumValues": 38181 out.Values[i] = ec.___Type_enumValues(ctx, field, obj) 38182 case "inputFields": 38183 out.Values[i] = ec.___Type_inputFields(ctx, field, obj) 38184 case "ofType": 38185 out.Values[i] = ec.___Type_ofType(ctx, field, obj) 38186 default: 38187 panic("unknown field " + strconv.Quote(field.Name)) 38188 } 38189 } 38190 out.Dispatch() 38191 if invalids > 0 { 38192 return graphql.Null 38193 } 38194 return out 38195 } 38196 38197 // endregion **************************** object.gotpl **************************** 38198 38199 // region ***************************** type.gotpl ***************************** 38200 38201 func (ec *executionContext) marshalNAPIDefinition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx context.Context, sel ast.SelectionSet, v APIDefinition) graphql.Marshaler { 38202 return ec._APIDefinition(ctx, sel, &v) 38203 } 38204 38205 func (ec *executionContext) marshalNAPIDefinition2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionᚄ(ctx context.Context, sel ast.SelectionSet, v []*APIDefinition) graphql.Marshaler { 38206 ret := make(graphql.Array, len(v)) 38207 var wg sync.WaitGroup 38208 isLen1 := len(v) == 1 38209 if !isLen1 { 38210 wg.Add(len(v)) 38211 } 38212 for i := range v { 38213 i := i 38214 fc := &graphql.FieldContext{ 38215 Index: &i, 38216 Result: &v[i], 38217 } 38218 ctx := graphql.WithFieldContext(ctx, fc) 38219 f := func(i int) { 38220 defer func() { 38221 if r := recover(); r != nil { 38222 ec.Error(ctx, ec.Recover(ctx, r)) 38223 ret = nil 38224 } 38225 }() 38226 if !isLen1 { 38227 defer wg.Done() 38228 } 38229 ret[i] = ec.marshalNAPIDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx, sel, v[i]) 38230 } 38231 if isLen1 { 38232 f(i) 38233 } else { 38234 go f(i) 38235 } 38236 38237 } 38238 wg.Wait() 38239 return ret 38240 } 38241 38242 func (ec *executionContext) marshalNAPIDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx context.Context, sel ast.SelectionSet, v *APIDefinition) graphql.Marshaler { 38243 if v == nil { 38244 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38245 ec.Errorf(ctx, "must not be null") 38246 } 38247 return graphql.Null 38248 } 38249 return ec._APIDefinition(ctx, sel, v) 38250 } 38251 38252 func (ec *executionContext) unmarshalNAPIDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionInput(ctx context.Context, v interface{}) (APIDefinitionInput, error) { 38253 return ec.unmarshalInputAPIDefinitionInput(ctx, v) 38254 } 38255 38256 func (ec *executionContext) unmarshalNAPIDefinitionInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionInput(ctx context.Context, v interface{}) (*APIDefinitionInput, error) { 38257 if v == nil { 38258 return nil, nil 38259 } 38260 res, err := ec.unmarshalNAPIDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionInput(ctx, v) 38261 return &res, err 38262 } 38263 38264 func (ec *executionContext) marshalNAPISpec2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpec(ctx context.Context, sel ast.SelectionSet, v APISpec) graphql.Marshaler { 38265 return ec._APISpec(ctx, sel, &v) 38266 } 38267 38268 func (ec *executionContext) marshalNAPISpec2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpec(ctx context.Context, sel ast.SelectionSet, v *APISpec) graphql.Marshaler { 38269 if v == nil { 38270 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38271 ec.Errorf(ctx, "must not be null") 38272 } 38273 return graphql.Null 38274 } 38275 return ec._APISpec(ctx, sel, v) 38276 } 38277 38278 func (ec *executionContext) unmarshalNAPISpecType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpecType(ctx context.Context, v interface{}) (APISpecType, error) { 38279 var res APISpecType 38280 return res, res.UnmarshalGQL(v) 38281 } 38282 38283 func (ec *executionContext) marshalNAPISpecType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpecType(ctx context.Context, sel ast.SelectionSet, v APISpecType) graphql.Marshaler { 38284 return v 38285 } 38286 38287 func (ec *executionContext) unmarshalNAny2interface(ctx context.Context, v interface{}) (interface{}, error) { 38288 if v == nil { 38289 return nil, nil 38290 } 38291 return graphql.UnmarshalAny(v) 38292 } 38293 38294 func (ec *executionContext) marshalNAny2interface(ctx context.Context, sel ast.SelectionSet, v interface{}) graphql.Marshaler { 38295 if v == nil { 38296 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38297 ec.Errorf(ctx, "must not be null") 38298 } 38299 return graphql.Null 38300 } 38301 res := graphql.MarshalAny(v) 38302 if res == graphql.Null { 38303 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38304 ec.Errorf(ctx, "must not be null") 38305 } 38306 } 38307 return res 38308 } 38309 38310 func (ec *executionContext) marshalNAppSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAppSystemAuth(ctx context.Context, sel ast.SelectionSet, v AppSystemAuth) graphql.Marshaler { 38311 return ec._AppSystemAuth(ctx, sel, &v) 38312 } 38313 38314 func (ec *executionContext) marshalNAppSystemAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAppSystemAuth(ctx context.Context, sel ast.SelectionSet, v *AppSystemAuth) graphql.Marshaler { 38315 if v == nil { 38316 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38317 ec.Errorf(ctx, "must not be null") 38318 } 38319 return graphql.Null 38320 } 38321 return ec._AppSystemAuth(ctx, sel, v) 38322 } 38323 38324 func (ec *executionContext) marshalNApplication2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx context.Context, sel ast.SelectionSet, v Application) graphql.Marshaler { 38325 return ec._Application(ctx, sel, &v) 38326 } 38327 38328 func (ec *executionContext) marshalNApplication2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationᚄ(ctx context.Context, sel ast.SelectionSet, v []*Application) graphql.Marshaler { 38329 ret := make(graphql.Array, len(v)) 38330 var wg sync.WaitGroup 38331 isLen1 := len(v) == 1 38332 if !isLen1 { 38333 wg.Add(len(v)) 38334 } 38335 for i := range v { 38336 i := i 38337 fc := &graphql.FieldContext{ 38338 Index: &i, 38339 Result: &v[i], 38340 } 38341 ctx := graphql.WithFieldContext(ctx, fc) 38342 f := func(i int) { 38343 defer func() { 38344 if r := recover(); r != nil { 38345 ec.Error(ctx, ec.Recover(ctx, r)) 38346 ret = nil 38347 } 38348 }() 38349 if !isLen1 { 38350 defer wg.Done() 38351 } 38352 ret[i] = ec.marshalNApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx, sel, v[i]) 38353 } 38354 if isLen1 { 38355 f(i) 38356 } else { 38357 go f(i) 38358 } 38359 38360 } 38361 wg.Wait() 38362 return ret 38363 } 38364 38365 func (ec *executionContext) marshalNApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx context.Context, sel ast.SelectionSet, v *Application) graphql.Marshaler { 38366 if v == nil { 38367 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38368 ec.Errorf(ctx, "must not be null") 38369 } 38370 return graphql.Null 38371 } 38372 return ec._Application(ctx, sel, v) 38373 } 38374 38375 func (ec *executionContext) marshalNApplicationEventingConfiguration2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationEventingConfiguration(ctx context.Context, sel ast.SelectionSet, v ApplicationEventingConfiguration) graphql.Marshaler { 38376 return ec._ApplicationEventingConfiguration(ctx, sel, &v) 38377 } 38378 38379 func (ec *executionContext) marshalNApplicationEventingConfiguration2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationEventingConfiguration(ctx context.Context, sel ast.SelectionSet, v *ApplicationEventingConfiguration) graphql.Marshaler { 38380 if v == nil { 38381 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38382 ec.Errorf(ctx, "must not be null") 38383 } 38384 return graphql.Null 38385 } 38386 return ec._ApplicationEventingConfiguration(ctx, sel, v) 38387 } 38388 38389 func (ec *executionContext) unmarshalNApplicationFromTemplateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationFromTemplateInput(ctx context.Context, v interface{}) (ApplicationFromTemplateInput, error) { 38390 return ec.unmarshalInputApplicationFromTemplateInput(ctx, v) 38391 } 38392 38393 func (ec *executionContext) unmarshalNApplicationJSONInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationJSONInput(ctx context.Context, v interface{}) (ApplicationJSONInput, error) { 38394 return ec.unmarshalInputApplicationJSONInput(ctx, v) 38395 } 38396 38397 func (ec *executionContext) unmarshalNApplicationJSONInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationJSONInput(ctx context.Context, v interface{}) (*ApplicationJSONInput, error) { 38398 if v == nil { 38399 return nil, nil 38400 } 38401 res, err := ec.unmarshalNApplicationJSONInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationJSONInput(ctx, v) 38402 return &res, err 38403 } 38404 38405 func (ec *executionContext) marshalNApplicationPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationPage(ctx context.Context, sel ast.SelectionSet, v ApplicationPage) graphql.Marshaler { 38406 return ec._ApplicationPage(ctx, sel, &v) 38407 } 38408 38409 func (ec *executionContext) marshalNApplicationPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationPage(ctx context.Context, sel ast.SelectionSet, v *ApplicationPage) graphql.Marshaler { 38410 if v == nil { 38411 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38412 ec.Errorf(ctx, "must not be null") 38413 } 38414 return graphql.Null 38415 } 38416 return ec._ApplicationPage(ctx, sel, v) 38417 } 38418 38419 func (ec *executionContext) unmarshalNApplicationRegisterInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationRegisterInput(ctx context.Context, v interface{}) (ApplicationRegisterInput, error) { 38420 return ec.unmarshalInputApplicationRegisterInput(ctx, v) 38421 } 38422 38423 func (ec *executionContext) marshalNApplicationStatus2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatus(ctx context.Context, sel ast.SelectionSet, v ApplicationStatus) graphql.Marshaler { 38424 return ec._ApplicationStatus(ctx, sel, &v) 38425 } 38426 38427 func (ec *executionContext) marshalNApplicationStatus2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatus(ctx context.Context, sel ast.SelectionSet, v *ApplicationStatus) graphql.Marshaler { 38428 if v == nil { 38429 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38430 ec.Errorf(ctx, "must not be null") 38431 } 38432 return graphql.Null 38433 } 38434 return ec._ApplicationStatus(ctx, sel, v) 38435 } 38436 38437 func (ec *executionContext) unmarshalNApplicationStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx context.Context, v interface{}) (ApplicationStatusCondition, error) { 38438 var res ApplicationStatusCondition 38439 return res, res.UnmarshalGQL(v) 38440 } 38441 38442 func (ec *executionContext) marshalNApplicationStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx context.Context, sel ast.SelectionSet, v ApplicationStatusCondition) graphql.Marshaler { 38443 return v 38444 } 38445 38446 func (ec *executionContext) marshalNApplicationTemplate2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplate(ctx context.Context, sel ast.SelectionSet, v ApplicationTemplate) graphql.Marshaler { 38447 return ec._ApplicationTemplate(ctx, sel, &v) 38448 } 38449 38450 func (ec *executionContext) marshalNApplicationTemplate2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateᚄ(ctx context.Context, sel ast.SelectionSet, v []*ApplicationTemplate) graphql.Marshaler { 38451 ret := make(graphql.Array, len(v)) 38452 var wg sync.WaitGroup 38453 isLen1 := len(v) == 1 38454 if !isLen1 { 38455 wg.Add(len(v)) 38456 } 38457 for i := range v { 38458 i := i 38459 fc := &graphql.FieldContext{ 38460 Index: &i, 38461 Result: &v[i], 38462 } 38463 ctx := graphql.WithFieldContext(ctx, fc) 38464 f := func(i int) { 38465 defer func() { 38466 if r := recover(); r != nil { 38467 ec.Error(ctx, ec.Recover(ctx, r)) 38468 ret = nil 38469 } 38470 }() 38471 if !isLen1 { 38472 defer wg.Done() 38473 } 38474 ret[i] = ec.marshalNApplicationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplate(ctx, sel, v[i]) 38475 } 38476 if isLen1 { 38477 f(i) 38478 } else { 38479 go f(i) 38480 } 38481 38482 } 38483 wg.Wait() 38484 return ret 38485 } 38486 38487 func (ec *executionContext) marshalNApplicationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplate(ctx context.Context, sel ast.SelectionSet, v *ApplicationTemplate) graphql.Marshaler { 38488 if v == nil { 38489 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38490 ec.Errorf(ctx, "must not be null") 38491 } 38492 return graphql.Null 38493 } 38494 return ec._ApplicationTemplate(ctx, sel, v) 38495 } 38496 38497 func (ec *executionContext) unmarshalNApplicationTemplateAccessLevel2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateAccessLevel(ctx context.Context, v interface{}) (ApplicationTemplateAccessLevel, error) { 38498 var res ApplicationTemplateAccessLevel 38499 return res, res.UnmarshalGQL(v) 38500 } 38501 38502 func (ec *executionContext) marshalNApplicationTemplateAccessLevel2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateAccessLevel(ctx context.Context, sel ast.SelectionSet, v ApplicationTemplateAccessLevel) graphql.Marshaler { 38503 return v 38504 } 38505 38506 func (ec *executionContext) unmarshalNApplicationTemplateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateInput(ctx context.Context, v interface{}) (ApplicationTemplateInput, error) { 38507 return ec.unmarshalInputApplicationTemplateInput(ctx, v) 38508 } 38509 38510 func (ec *executionContext) marshalNApplicationTemplatePage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplatePage(ctx context.Context, sel ast.SelectionSet, v ApplicationTemplatePage) graphql.Marshaler { 38511 return ec._ApplicationTemplatePage(ctx, sel, &v) 38512 } 38513 38514 func (ec *executionContext) marshalNApplicationTemplatePage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplatePage(ctx context.Context, sel ast.SelectionSet, v *ApplicationTemplatePage) graphql.Marshaler { 38515 if v == nil { 38516 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38517 ec.Errorf(ctx, "must not be null") 38518 } 38519 return graphql.Null 38520 } 38521 return ec._ApplicationTemplatePage(ctx, sel, v) 38522 } 38523 38524 func (ec *executionContext) unmarshalNApplicationTemplateUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplateUpdateInput(ctx context.Context, v interface{}) (ApplicationTemplateUpdateInput, error) { 38525 return ec.unmarshalInputApplicationTemplateUpdateInput(ctx, v) 38526 } 38527 38528 func (ec *executionContext) unmarshalNApplicationUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationUpdateInput(ctx context.Context, v interface{}) (ApplicationUpdateInput, error) { 38529 return ec.unmarshalInputApplicationUpdateInput(ctx, v) 38530 } 38531 38532 func (ec *executionContext) unmarshalNAuthInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx context.Context, v interface{}) (AuthInput, error) { 38533 return ec.unmarshalInputAuthInput(ctx, v) 38534 } 38535 38536 func (ec *executionContext) unmarshalNAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx context.Context, v interface{}) (*AuthInput, error) { 38537 if v == nil { 38538 return nil, nil 38539 } 38540 res, err := ec.unmarshalNAuthInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, v) 38541 return &res, err 38542 } 38543 38544 func (ec *executionContext) marshalNAutomaticScenarioAssignment2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignment(ctx context.Context, sel ast.SelectionSet, v AutomaticScenarioAssignment) graphql.Marshaler { 38545 return ec._AutomaticScenarioAssignment(ctx, sel, &v) 38546 } 38547 38548 func (ec *executionContext) marshalNAutomaticScenarioAssignment2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignmentᚄ(ctx context.Context, sel ast.SelectionSet, v []*AutomaticScenarioAssignment) graphql.Marshaler { 38549 ret := make(graphql.Array, len(v)) 38550 var wg sync.WaitGroup 38551 isLen1 := len(v) == 1 38552 if !isLen1 { 38553 wg.Add(len(v)) 38554 } 38555 for i := range v { 38556 i := i 38557 fc := &graphql.FieldContext{ 38558 Index: &i, 38559 Result: &v[i], 38560 } 38561 ctx := graphql.WithFieldContext(ctx, fc) 38562 f := func(i int) { 38563 defer func() { 38564 if r := recover(); r != nil { 38565 ec.Error(ctx, ec.Recover(ctx, r)) 38566 ret = nil 38567 } 38568 }() 38569 if !isLen1 { 38570 defer wg.Done() 38571 } 38572 ret[i] = ec.marshalNAutomaticScenarioAssignment2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignment(ctx, sel, v[i]) 38573 } 38574 if isLen1 { 38575 f(i) 38576 } else { 38577 go f(i) 38578 } 38579 38580 } 38581 wg.Wait() 38582 return ret 38583 } 38584 38585 func (ec *executionContext) marshalNAutomaticScenarioAssignment2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignment(ctx context.Context, sel ast.SelectionSet, v *AutomaticScenarioAssignment) graphql.Marshaler { 38586 if v == nil { 38587 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38588 ec.Errorf(ctx, "must not be null") 38589 } 38590 return graphql.Null 38591 } 38592 return ec._AutomaticScenarioAssignment(ctx, sel, v) 38593 } 38594 38595 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 38596 return graphql.UnmarshalBoolean(v) 38597 } 38598 38599 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 38600 res := graphql.MarshalBoolean(v) 38601 if res == graphql.Null { 38602 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38603 ec.Errorf(ctx, "must not be null") 38604 } 38605 } 38606 return res 38607 } 38608 38609 func (ec *executionContext) marshalNBundle2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundle(ctx context.Context, sel ast.SelectionSet, v Bundle) graphql.Marshaler { 38610 return ec._Bundle(ctx, sel, &v) 38611 } 38612 38613 func (ec *executionContext) marshalNBundle2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleᚄ(ctx context.Context, sel ast.SelectionSet, v []*Bundle) graphql.Marshaler { 38614 ret := make(graphql.Array, len(v)) 38615 var wg sync.WaitGroup 38616 isLen1 := len(v) == 1 38617 if !isLen1 { 38618 wg.Add(len(v)) 38619 } 38620 for i := range v { 38621 i := i 38622 fc := &graphql.FieldContext{ 38623 Index: &i, 38624 Result: &v[i], 38625 } 38626 ctx := graphql.WithFieldContext(ctx, fc) 38627 f := func(i int) { 38628 defer func() { 38629 if r := recover(); r != nil { 38630 ec.Error(ctx, ec.Recover(ctx, r)) 38631 ret = nil 38632 } 38633 }() 38634 if !isLen1 { 38635 defer wg.Done() 38636 } 38637 ret[i] = ec.marshalNBundle2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundle(ctx, sel, v[i]) 38638 } 38639 if isLen1 { 38640 f(i) 38641 } else { 38642 go f(i) 38643 } 38644 38645 } 38646 wg.Wait() 38647 return ret 38648 } 38649 38650 func (ec *executionContext) marshalNBundle2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundle(ctx context.Context, sel ast.SelectionSet, v *Bundle) graphql.Marshaler { 38651 if v == nil { 38652 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38653 ec.Errorf(ctx, "must not be null") 38654 } 38655 return graphql.Null 38656 } 38657 return ec._Bundle(ctx, sel, v) 38658 } 38659 38660 func (ec *executionContext) unmarshalNBundleCreateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleCreateInput(ctx context.Context, v interface{}) (BundleCreateInput, error) { 38661 return ec.unmarshalInputBundleCreateInput(ctx, v) 38662 } 38663 38664 func (ec *executionContext) unmarshalNBundleCreateInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleCreateInput(ctx context.Context, v interface{}) (*BundleCreateInput, error) { 38665 if v == nil { 38666 return nil, nil 38667 } 38668 res, err := ec.unmarshalNBundleCreateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleCreateInput(ctx, v) 38669 return &res, err 38670 } 38671 38672 func (ec *executionContext) marshalNBundleInstanceAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx context.Context, sel ast.SelectionSet, v BundleInstanceAuth) graphql.Marshaler { 38673 return ec._BundleInstanceAuth(ctx, sel, &v) 38674 } 38675 38676 func (ec *executionContext) marshalNBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx context.Context, sel ast.SelectionSet, v *BundleInstanceAuth) graphql.Marshaler { 38677 if v == nil { 38678 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38679 ec.Errorf(ctx, "must not be null") 38680 } 38681 return graphql.Null 38682 } 38683 return ec._BundleInstanceAuth(ctx, sel, v) 38684 } 38685 38686 func (ec *executionContext) unmarshalNBundleInstanceAuthCreateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthCreateInput(ctx context.Context, v interface{}) (BundleInstanceAuthCreateInput, error) { 38687 return ec.unmarshalInputBundleInstanceAuthCreateInput(ctx, v) 38688 } 38689 38690 func (ec *executionContext) unmarshalNBundleInstanceAuthRequestInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthRequestInput(ctx context.Context, v interface{}) (BundleInstanceAuthRequestInput, error) { 38691 return ec.unmarshalInputBundleInstanceAuthRequestInput(ctx, v) 38692 } 38693 38694 func (ec *executionContext) unmarshalNBundleInstanceAuthSetInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthSetInput(ctx context.Context, v interface{}) (BundleInstanceAuthSetInput, error) { 38695 return ec.unmarshalInputBundleInstanceAuthSetInput(ctx, v) 38696 } 38697 38698 func (ec *executionContext) unmarshalNBundleInstanceAuthSetStatusConditionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthSetStatusConditionInput(ctx context.Context, v interface{}) (BundleInstanceAuthSetStatusConditionInput, error) { 38699 var res BundleInstanceAuthSetStatusConditionInput 38700 return res, res.UnmarshalGQL(v) 38701 } 38702 38703 func (ec *executionContext) marshalNBundleInstanceAuthSetStatusConditionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthSetStatusConditionInput(ctx context.Context, sel ast.SelectionSet, v BundleInstanceAuthSetStatusConditionInput) graphql.Marshaler { 38704 return v 38705 } 38706 38707 func (ec *executionContext) marshalNBundleInstanceAuthStatus2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthStatus(ctx context.Context, sel ast.SelectionSet, v BundleInstanceAuthStatus) graphql.Marshaler { 38708 return ec._BundleInstanceAuthStatus(ctx, sel, &v) 38709 } 38710 38711 func (ec *executionContext) marshalNBundleInstanceAuthStatus2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthStatus(ctx context.Context, sel ast.SelectionSet, v *BundleInstanceAuthStatus) graphql.Marshaler { 38712 if v == nil { 38713 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38714 ec.Errorf(ctx, "must not be null") 38715 } 38716 return graphql.Null 38717 } 38718 return ec._BundleInstanceAuthStatus(ctx, sel, v) 38719 } 38720 38721 func (ec *executionContext) unmarshalNBundleInstanceAuthStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthStatusCondition(ctx context.Context, v interface{}) (BundleInstanceAuthStatusCondition, error) { 38722 var res BundleInstanceAuthStatusCondition 38723 return res, res.UnmarshalGQL(v) 38724 } 38725 38726 func (ec *executionContext) marshalNBundleInstanceAuthStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthStatusCondition(ctx context.Context, sel ast.SelectionSet, v BundleInstanceAuthStatusCondition) graphql.Marshaler { 38727 return v 38728 } 38729 38730 func (ec *executionContext) unmarshalNBundleInstanceAuthUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthUpdateInput(ctx context.Context, v interface{}) (BundleInstanceAuthUpdateInput, error) { 38731 return ec.unmarshalInputBundleInstanceAuthUpdateInput(ctx, v) 38732 } 38733 38734 func (ec *executionContext) unmarshalNBundleUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleUpdateInput(ctx context.Context, v interface{}) (BundleUpdateInput, error) { 38735 return ec.unmarshalInputBundleUpdateInput(ctx, v) 38736 } 38737 38738 func (ec *executionContext) unmarshalNBusinessTenantMappingInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBusinessTenantMappingInput(ctx context.Context, v interface{}) (BusinessTenantMappingInput, error) { 38739 return ec.unmarshalInputBusinessTenantMappingInput(ctx, v) 38740 } 38741 38742 func (ec *executionContext) unmarshalNBusinessTenantMappingInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBusinessTenantMappingInput(ctx context.Context, v interface{}) (*BusinessTenantMappingInput, error) { 38743 if v == nil { 38744 return nil, nil 38745 } 38746 res, err := ec.unmarshalNBusinessTenantMappingInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBusinessTenantMappingInput(ctx, v) 38747 return &res, err 38748 } 38749 38750 func (ec *executionContext) marshalNCertificateSubjectMapping2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMapping(ctx context.Context, sel ast.SelectionSet, v CertificateSubjectMapping) graphql.Marshaler { 38751 return ec._CertificateSubjectMapping(ctx, sel, &v) 38752 } 38753 38754 func (ec *executionContext) marshalNCertificateSubjectMapping2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMappingᚄ(ctx context.Context, sel ast.SelectionSet, v []*CertificateSubjectMapping) graphql.Marshaler { 38755 ret := make(graphql.Array, len(v)) 38756 var wg sync.WaitGroup 38757 isLen1 := len(v) == 1 38758 if !isLen1 { 38759 wg.Add(len(v)) 38760 } 38761 for i := range v { 38762 i := i 38763 fc := &graphql.FieldContext{ 38764 Index: &i, 38765 Result: &v[i], 38766 } 38767 ctx := graphql.WithFieldContext(ctx, fc) 38768 f := func(i int) { 38769 defer func() { 38770 if r := recover(); r != nil { 38771 ec.Error(ctx, ec.Recover(ctx, r)) 38772 ret = nil 38773 } 38774 }() 38775 if !isLen1 { 38776 defer wg.Done() 38777 } 38778 ret[i] = ec.marshalNCertificateSubjectMapping2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMapping(ctx, sel, v[i]) 38779 } 38780 if isLen1 { 38781 f(i) 38782 } else { 38783 go f(i) 38784 } 38785 38786 } 38787 wg.Wait() 38788 return ret 38789 } 38790 38791 func (ec *executionContext) marshalNCertificateSubjectMapping2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMapping(ctx context.Context, sel ast.SelectionSet, v *CertificateSubjectMapping) graphql.Marshaler { 38792 if v == nil { 38793 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38794 ec.Errorf(ctx, "must not be null") 38795 } 38796 return graphql.Null 38797 } 38798 return ec._CertificateSubjectMapping(ctx, sel, v) 38799 } 38800 38801 func (ec *executionContext) unmarshalNCertificateSubjectMappingInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMappingInput(ctx context.Context, v interface{}) (CertificateSubjectMappingInput, error) { 38802 return ec.unmarshalInputCertificateSubjectMappingInput(ctx, v) 38803 } 38804 38805 func (ec *executionContext) marshalNCertificateSubjectMappingPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMappingPage(ctx context.Context, sel ast.SelectionSet, v CertificateSubjectMappingPage) graphql.Marshaler { 38806 return ec._CertificateSubjectMappingPage(ctx, sel, &v) 38807 } 38808 38809 func (ec *executionContext) marshalNCertificateSubjectMappingPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMappingPage(ctx context.Context, sel ast.SelectionSet, v *CertificateSubjectMappingPage) graphql.Marshaler { 38810 if v == nil { 38811 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38812 ec.Errorf(ctx, "must not be null") 38813 } 38814 return graphql.Null 38815 } 38816 return ec._CertificateSubjectMappingPage(ctx, sel, v) 38817 } 38818 38819 func (ec *executionContext) marshalNConstraintReference2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐConstraintReference(ctx context.Context, sel ast.SelectionSet, v ConstraintReference) graphql.Marshaler { 38820 return ec._ConstraintReference(ctx, sel, &v) 38821 } 38822 38823 func (ec *executionContext) marshalNConstraintReference2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐConstraintReference(ctx context.Context, sel ast.SelectionSet, v *ConstraintReference) graphql.Marshaler { 38824 if v == nil { 38825 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38826 ec.Errorf(ctx, "must not be null") 38827 } 38828 return graphql.Null 38829 } 38830 return ec._ConstraintReference(ctx, sel, v) 38831 } 38832 38833 func (ec *executionContext) unmarshalNConstraintScope2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐConstraintScope(ctx context.Context, v interface{}) (ConstraintScope, error) { 38834 var res ConstraintScope 38835 return res, res.UnmarshalGQL(v) 38836 } 38837 38838 func (ec *executionContext) marshalNConstraintScope2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐConstraintScope(ctx context.Context, sel ast.SelectionSet, v ConstraintScope) graphql.Marshaler { 38839 return v 38840 } 38841 38842 func (ec *executionContext) unmarshalNConstraintType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐConstraintType(ctx context.Context, v interface{}) (ConstraintType, error) { 38843 var res ConstraintType 38844 return res, res.UnmarshalGQL(v) 38845 } 38846 38847 func (ec *executionContext) marshalNConstraintType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐConstraintType(ctx context.Context, sel ast.SelectionSet, v ConstraintType) graphql.Marshaler { 38848 return v 38849 } 38850 38851 func (ec *executionContext) marshalNDocument2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocument(ctx context.Context, sel ast.SelectionSet, v Document) graphql.Marshaler { 38852 return ec._Document(ctx, sel, &v) 38853 } 38854 38855 func (ec *executionContext) marshalNDocument2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentᚄ(ctx context.Context, sel ast.SelectionSet, v []*Document) graphql.Marshaler { 38856 ret := make(graphql.Array, len(v)) 38857 var wg sync.WaitGroup 38858 isLen1 := len(v) == 1 38859 if !isLen1 { 38860 wg.Add(len(v)) 38861 } 38862 for i := range v { 38863 i := i 38864 fc := &graphql.FieldContext{ 38865 Index: &i, 38866 Result: &v[i], 38867 } 38868 ctx := graphql.WithFieldContext(ctx, fc) 38869 f := func(i int) { 38870 defer func() { 38871 if r := recover(); r != nil { 38872 ec.Error(ctx, ec.Recover(ctx, r)) 38873 ret = nil 38874 } 38875 }() 38876 if !isLen1 { 38877 defer wg.Done() 38878 } 38879 ret[i] = ec.marshalNDocument2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocument(ctx, sel, v[i]) 38880 } 38881 if isLen1 { 38882 f(i) 38883 } else { 38884 go f(i) 38885 } 38886 38887 } 38888 wg.Wait() 38889 return ret 38890 } 38891 38892 func (ec *executionContext) marshalNDocument2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocument(ctx context.Context, sel ast.SelectionSet, v *Document) graphql.Marshaler { 38893 if v == nil { 38894 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38895 ec.Errorf(ctx, "must not be null") 38896 } 38897 return graphql.Null 38898 } 38899 return ec._Document(ctx, sel, v) 38900 } 38901 38902 func (ec *executionContext) unmarshalNDocumentFormat2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentFormat(ctx context.Context, v interface{}) (DocumentFormat, error) { 38903 var res DocumentFormat 38904 return res, res.UnmarshalGQL(v) 38905 } 38906 38907 func (ec *executionContext) marshalNDocumentFormat2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentFormat(ctx context.Context, sel ast.SelectionSet, v DocumentFormat) graphql.Marshaler { 38908 return v 38909 } 38910 38911 func (ec *executionContext) unmarshalNDocumentInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentInput(ctx context.Context, v interface{}) (DocumentInput, error) { 38912 return ec.unmarshalInputDocumentInput(ctx, v) 38913 } 38914 38915 func (ec *executionContext) unmarshalNDocumentInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentInput(ctx context.Context, v interface{}) (*DocumentInput, error) { 38916 if v == nil { 38917 return nil, nil 38918 } 38919 res, err := ec.unmarshalNDocumentInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentInput(ctx, v) 38920 return &res, err 38921 } 38922 38923 func (ec *executionContext) marshalNEventDefinition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx context.Context, sel ast.SelectionSet, v EventDefinition) graphql.Marshaler { 38924 return ec._EventDefinition(ctx, sel, &v) 38925 } 38926 38927 func (ec *executionContext) marshalNEventDefinition2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionᚄ(ctx context.Context, sel ast.SelectionSet, v []*EventDefinition) graphql.Marshaler { 38928 ret := make(graphql.Array, len(v)) 38929 var wg sync.WaitGroup 38930 isLen1 := len(v) == 1 38931 if !isLen1 { 38932 wg.Add(len(v)) 38933 } 38934 for i := range v { 38935 i := i 38936 fc := &graphql.FieldContext{ 38937 Index: &i, 38938 Result: &v[i], 38939 } 38940 ctx := graphql.WithFieldContext(ctx, fc) 38941 f := func(i int) { 38942 defer func() { 38943 if r := recover(); r != nil { 38944 ec.Error(ctx, ec.Recover(ctx, r)) 38945 ret = nil 38946 } 38947 }() 38948 if !isLen1 { 38949 defer wg.Done() 38950 } 38951 ret[i] = ec.marshalNEventDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx, sel, v[i]) 38952 } 38953 if isLen1 { 38954 f(i) 38955 } else { 38956 go f(i) 38957 } 38958 38959 } 38960 wg.Wait() 38961 return ret 38962 } 38963 38964 func (ec *executionContext) marshalNEventDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx context.Context, sel ast.SelectionSet, v *EventDefinition) graphql.Marshaler { 38965 if v == nil { 38966 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38967 ec.Errorf(ctx, "must not be null") 38968 } 38969 return graphql.Null 38970 } 38971 return ec._EventDefinition(ctx, sel, v) 38972 } 38973 38974 func (ec *executionContext) unmarshalNEventDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionInput(ctx context.Context, v interface{}) (EventDefinitionInput, error) { 38975 return ec.unmarshalInputEventDefinitionInput(ctx, v) 38976 } 38977 38978 func (ec *executionContext) unmarshalNEventDefinitionInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionInput(ctx context.Context, v interface{}) (*EventDefinitionInput, error) { 38979 if v == nil { 38980 return nil, nil 38981 } 38982 res, err := ec.unmarshalNEventDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionInput(ctx, v) 38983 return &res, err 38984 } 38985 38986 func (ec *executionContext) marshalNEventSpec2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpec(ctx context.Context, sel ast.SelectionSet, v EventSpec) graphql.Marshaler { 38987 return ec._EventSpec(ctx, sel, &v) 38988 } 38989 38990 func (ec *executionContext) marshalNEventSpec2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpec(ctx context.Context, sel ast.SelectionSet, v *EventSpec) graphql.Marshaler { 38991 if v == nil { 38992 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 38993 ec.Errorf(ctx, "must not be null") 38994 } 38995 return graphql.Null 38996 } 38997 return ec._EventSpec(ctx, sel, v) 38998 } 38999 39000 func (ec *executionContext) unmarshalNEventSpecType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpecType(ctx context.Context, v interface{}) (EventSpecType, error) { 39001 var res EventSpecType 39002 return res, res.UnmarshalGQL(v) 39003 } 39004 39005 func (ec *executionContext) marshalNEventSpecType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpecType(ctx context.Context, sel ast.SelectionSet, v EventSpecType) graphql.Marshaler { 39006 return v 39007 } 39008 39009 func (ec *executionContext) unmarshalNEventType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventType(ctx context.Context, v interface{}) (EventType, error) { 39010 var res EventType 39011 return res, res.UnmarshalGQL(v) 39012 } 39013 39014 func (ec *executionContext) marshalNEventType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventType(ctx context.Context, sel ast.SelectionSet, v EventType) graphql.Marshaler { 39015 return v 39016 } 39017 39018 func (ec *executionContext) unmarshalNFetchMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchMode(ctx context.Context, v interface{}) (FetchMode, error) { 39019 var res FetchMode 39020 return res, res.UnmarshalGQL(v) 39021 } 39022 39023 func (ec *executionContext) marshalNFetchMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchMode(ctx context.Context, sel ast.SelectionSet, v FetchMode) graphql.Marshaler { 39024 return v 39025 } 39026 39027 func (ec *executionContext) marshalNFetchRequestStatus2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestStatus(ctx context.Context, sel ast.SelectionSet, v FetchRequestStatus) graphql.Marshaler { 39028 return ec._FetchRequestStatus(ctx, sel, &v) 39029 } 39030 39031 func (ec *executionContext) marshalNFetchRequestStatus2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestStatus(ctx context.Context, sel ast.SelectionSet, v *FetchRequestStatus) graphql.Marshaler { 39032 if v == nil { 39033 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39034 ec.Errorf(ctx, "must not be null") 39035 } 39036 return graphql.Null 39037 } 39038 return ec._FetchRequestStatus(ctx, sel, v) 39039 } 39040 39041 func (ec *executionContext) unmarshalNFetchRequestStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestStatusCondition(ctx context.Context, v interface{}) (FetchRequestStatusCondition, error) { 39042 var res FetchRequestStatusCondition 39043 return res, res.UnmarshalGQL(v) 39044 } 39045 39046 func (ec *executionContext) marshalNFetchRequestStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestStatusCondition(ctx context.Context, sel ast.SelectionSet, v FetchRequestStatusCondition) graphql.Marshaler { 39047 return v 39048 } 39049 39050 func (ec *executionContext) marshalNFormation2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx context.Context, sel ast.SelectionSet, v Formation) graphql.Marshaler { 39051 return ec._Formation(ctx, sel, &v) 39052 } 39053 39054 func (ec *executionContext) marshalNFormation2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationᚄ(ctx context.Context, sel ast.SelectionSet, v []*Formation) graphql.Marshaler { 39055 ret := make(graphql.Array, len(v)) 39056 var wg sync.WaitGroup 39057 isLen1 := len(v) == 1 39058 if !isLen1 { 39059 wg.Add(len(v)) 39060 } 39061 for i := range v { 39062 i := i 39063 fc := &graphql.FieldContext{ 39064 Index: &i, 39065 Result: &v[i], 39066 } 39067 ctx := graphql.WithFieldContext(ctx, fc) 39068 f := func(i int) { 39069 defer func() { 39070 if r := recover(); r != nil { 39071 ec.Error(ctx, ec.Recover(ctx, r)) 39072 ret = nil 39073 } 39074 }() 39075 if !isLen1 { 39076 defer wg.Done() 39077 } 39078 ret[i] = ec.marshalNFormation2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx, sel, v[i]) 39079 } 39080 if isLen1 { 39081 f(i) 39082 } else { 39083 go f(i) 39084 } 39085 39086 } 39087 wg.Wait() 39088 return ret 39089 } 39090 39091 func (ec *executionContext) marshalNFormation2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx context.Context, sel ast.SelectionSet, v *Formation) graphql.Marshaler { 39092 if v == nil { 39093 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39094 ec.Errorf(ctx, "must not be null") 39095 } 39096 return graphql.Null 39097 } 39098 return ec._Formation(ctx, sel, v) 39099 } 39100 39101 func (ec *executionContext) marshalNFormationAssignment2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignment(ctx context.Context, sel ast.SelectionSet, v FormationAssignment) graphql.Marshaler { 39102 return ec._FormationAssignment(ctx, sel, &v) 39103 } 39104 39105 func (ec *executionContext) marshalNFormationAssignment2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignmentᚄ(ctx context.Context, sel ast.SelectionSet, v []*FormationAssignment) graphql.Marshaler { 39106 ret := make(graphql.Array, len(v)) 39107 var wg sync.WaitGroup 39108 isLen1 := len(v) == 1 39109 if !isLen1 { 39110 wg.Add(len(v)) 39111 } 39112 for i := range v { 39113 i := i 39114 fc := &graphql.FieldContext{ 39115 Index: &i, 39116 Result: &v[i], 39117 } 39118 ctx := graphql.WithFieldContext(ctx, fc) 39119 f := func(i int) { 39120 defer func() { 39121 if r := recover(); r != nil { 39122 ec.Error(ctx, ec.Recover(ctx, r)) 39123 ret = nil 39124 } 39125 }() 39126 if !isLen1 { 39127 defer wg.Done() 39128 } 39129 ret[i] = ec.marshalNFormationAssignment2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignment(ctx, sel, v[i]) 39130 } 39131 if isLen1 { 39132 f(i) 39133 } else { 39134 go f(i) 39135 } 39136 39137 } 39138 wg.Wait() 39139 return ret 39140 } 39141 39142 func (ec *executionContext) marshalNFormationAssignment2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignment(ctx context.Context, sel ast.SelectionSet, v *FormationAssignment) graphql.Marshaler { 39143 if v == nil { 39144 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39145 ec.Errorf(ctx, "must not be null") 39146 } 39147 return graphql.Null 39148 } 39149 return ec._FormationAssignment(ctx, sel, v) 39150 } 39151 39152 func (ec *executionContext) unmarshalNFormationAssignmentType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignmentType(ctx context.Context, v interface{}) (FormationAssignmentType, error) { 39153 var res FormationAssignmentType 39154 return res, res.UnmarshalGQL(v) 39155 } 39156 39157 func (ec *executionContext) marshalNFormationAssignmentType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignmentType(ctx context.Context, sel ast.SelectionSet, v FormationAssignmentType) graphql.Marshaler { 39158 return v 39159 } 39160 39161 func (ec *executionContext) marshalNFormationConstraint2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraint(ctx context.Context, sel ast.SelectionSet, v FormationConstraint) graphql.Marshaler { 39162 return ec._FormationConstraint(ctx, sel, &v) 39163 } 39164 39165 func (ec *executionContext) marshalNFormationConstraint2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraintᚄ(ctx context.Context, sel ast.SelectionSet, v []*FormationConstraint) graphql.Marshaler { 39166 ret := make(graphql.Array, len(v)) 39167 var wg sync.WaitGroup 39168 isLen1 := len(v) == 1 39169 if !isLen1 { 39170 wg.Add(len(v)) 39171 } 39172 for i := range v { 39173 i := i 39174 fc := &graphql.FieldContext{ 39175 Index: &i, 39176 Result: &v[i], 39177 } 39178 ctx := graphql.WithFieldContext(ctx, fc) 39179 f := func(i int) { 39180 defer func() { 39181 if r := recover(); r != nil { 39182 ec.Error(ctx, ec.Recover(ctx, r)) 39183 ret = nil 39184 } 39185 }() 39186 if !isLen1 { 39187 defer wg.Done() 39188 } 39189 ret[i] = ec.marshalNFormationConstraint2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraint(ctx, sel, v[i]) 39190 } 39191 if isLen1 { 39192 f(i) 39193 } else { 39194 go f(i) 39195 } 39196 39197 } 39198 wg.Wait() 39199 return ret 39200 } 39201 39202 func (ec *executionContext) marshalNFormationConstraint2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraint(ctx context.Context, sel ast.SelectionSet, v *FormationConstraint) graphql.Marshaler { 39203 if v == nil { 39204 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39205 ec.Errorf(ctx, "must not be null") 39206 } 39207 return graphql.Null 39208 } 39209 return ec._FormationConstraint(ctx, sel, v) 39210 } 39211 39212 func (ec *executionContext) unmarshalNFormationConstraintInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraintInput(ctx context.Context, v interface{}) (FormationConstraintInput, error) { 39213 return ec.unmarshalInputFormationConstraintInput(ctx, v) 39214 } 39215 39216 func (ec *executionContext) unmarshalNFormationConstraintUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraintUpdateInput(ctx context.Context, v interface{}) (FormationConstraintUpdateInput, error) { 39217 return ec.unmarshalInputFormationConstraintUpdateInput(ctx, v) 39218 } 39219 39220 func (ec *executionContext) unmarshalNFormationInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationInput(ctx context.Context, v interface{}) (FormationInput, error) { 39221 return ec.unmarshalInputFormationInput(ctx, v) 39222 } 39223 39224 func (ec *executionContext) unmarshalNFormationObjectType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationObjectType(ctx context.Context, v interface{}) (FormationObjectType, error) { 39225 var res FormationObjectType 39226 return res, res.UnmarshalGQL(v) 39227 } 39228 39229 func (ec *executionContext) marshalNFormationObjectType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationObjectType(ctx context.Context, sel ast.SelectionSet, v FormationObjectType) graphql.Marshaler { 39230 return v 39231 } 39232 39233 func (ec *executionContext) marshalNFormationPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationPage(ctx context.Context, sel ast.SelectionSet, v FormationPage) graphql.Marshaler { 39234 return ec._FormationPage(ctx, sel, &v) 39235 } 39236 39237 func (ec *executionContext) marshalNFormationPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationPage(ctx context.Context, sel ast.SelectionSet, v *FormationPage) graphql.Marshaler { 39238 if v == nil { 39239 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39240 ec.Errorf(ctx, "must not be null") 39241 } 39242 return graphql.Null 39243 } 39244 return ec._FormationPage(ctx, sel, v) 39245 } 39246 39247 func (ec *executionContext) marshalNFormationStatus2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatus(ctx context.Context, sel ast.SelectionSet, v FormationStatus) graphql.Marshaler { 39248 return ec._FormationStatus(ctx, sel, &v) 39249 } 39250 39251 func (ec *executionContext) marshalNFormationStatus2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatus(ctx context.Context, sel ast.SelectionSet, v *FormationStatus) graphql.Marshaler { 39252 if v == nil { 39253 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39254 ec.Errorf(ctx, "must not be null") 39255 } 39256 return graphql.Null 39257 } 39258 return ec._FormationStatus(ctx, sel, v) 39259 } 39260 39261 func (ec *executionContext) unmarshalNFormationStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatusCondition(ctx context.Context, v interface{}) (FormationStatusCondition, error) { 39262 var res FormationStatusCondition 39263 return res, res.UnmarshalGQL(v) 39264 } 39265 39266 func (ec *executionContext) marshalNFormationStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatusCondition(ctx context.Context, sel ast.SelectionSet, v FormationStatusCondition) graphql.Marshaler { 39267 return v 39268 } 39269 39270 func (ec *executionContext) marshalNFormationStatusError2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatusError(ctx context.Context, sel ast.SelectionSet, v FormationStatusError) graphql.Marshaler { 39271 return ec._FormationStatusError(ctx, sel, &v) 39272 } 39273 39274 func (ec *executionContext) marshalNFormationStatusError2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatusError(ctx context.Context, sel ast.SelectionSet, v *FormationStatusError) graphql.Marshaler { 39275 if v == nil { 39276 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39277 ec.Errorf(ctx, "must not be null") 39278 } 39279 return graphql.Null 39280 } 39281 return ec._FormationStatusError(ctx, sel, v) 39282 } 39283 39284 func (ec *executionContext) marshalNFormationTemplate2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplate(ctx context.Context, sel ast.SelectionSet, v FormationTemplate) graphql.Marshaler { 39285 return ec._FormationTemplate(ctx, sel, &v) 39286 } 39287 39288 func (ec *executionContext) marshalNFormationTemplate2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplateᚄ(ctx context.Context, sel ast.SelectionSet, v []*FormationTemplate) graphql.Marshaler { 39289 ret := make(graphql.Array, len(v)) 39290 var wg sync.WaitGroup 39291 isLen1 := len(v) == 1 39292 if !isLen1 { 39293 wg.Add(len(v)) 39294 } 39295 for i := range v { 39296 i := i 39297 fc := &graphql.FieldContext{ 39298 Index: &i, 39299 Result: &v[i], 39300 } 39301 ctx := graphql.WithFieldContext(ctx, fc) 39302 f := func(i int) { 39303 defer func() { 39304 if r := recover(); r != nil { 39305 ec.Error(ctx, ec.Recover(ctx, r)) 39306 ret = nil 39307 } 39308 }() 39309 if !isLen1 { 39310 defer wg.Done() 39311 } 39312 ret[i] = ec.marshalNFormationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplate(ctx, sel, v[i]) 39313 } 39314 if isLen1 { 39315 f(i) 39316 } else { 39317 go f(i) 39318 } 39319 39320 } 39321 wg.Wait() 39322 return ret 39323 } 39324 39325 func (ec *executionContext) marshalNFormationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplate(ctx context.Context, sel ast.SelectionSet, v *FormationTemplate) graphql.Marshaler { 39326 if v == nil { 39327 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39328 ec.Errorf(ctx, "must not be null") 39329 } 39330 return graphql.Null 39331 } 39332 return ec._FormationTemplate(ctx, sel, v) 39333 } 39334 39335 func (ec *executionContext) unmarshalNFormationTemplateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplateInput(ctx context.Context, v interface{}) (FormationTemplateInput, error) { 39336 return ec.unmarshalInputFormationTemplateInput(ctx, v) 39337 } 39338 39339 func (ec *executionContext) marshalNFormationTemplatePage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplatePage(ctx context.Context, sel ast.SelectionSet, v FormationTemplatePage) graphql.Marshaler { 39340 return ec._FormationTemplatePage(ctx, sel, &v) 39341 } 39342 39343 func (ec *executionContext) marshalNFormationTemplatePage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplatePage(ctx context.Context, sel ast.SelectionSet, v *FormationTemplatePage) graphql.Marshaler { 39344 if v == nil { 39345 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39346 ec.Errorf(ctx, "must not be null") 39347 } 39348 return graphql.Null 39349 } 39350 return ec._FormationTemplatePage(ctx, sel, v) 39351 } 39352 39353 func (ec *executionContext) marshalNHealthCheck2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheck(ctx context.Context, sel ast.SelectionSet, v HealthCheck) graphql.Marshaler { 39354 return ec._HealthCheck(ctx, sel, &v) 39355 } 39356 39357 func (ec *executionContext) marshalNHealthCheck2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckᚄ(ctx context.Context, sel ast.SelectionSet, v []*HealthCheck) graphql.Marshaler { 39358 ret := make(graphql.Array, len(v)) 39359 var wg sync.WaitGroup 39360 isLen1 := len(v) == 1 39361 if !isLen1 { 39362 wg.Add(len(v)) 39363 } 39364 for i := range v { 39365 i := i 39366 fc := &graphql.FieldContext{ 39367 Index: &i, 39368 Result: &v[i], 39369 } 39370 ctx := graphql.WithFieldContext(ctx, fc) 39371 f := func(i int) { 39372 defer func() { 39373 if r := recover(); r != nil { 39374 ec.Error(ctx, ec.Recover(ctx, r)) 39375 ret = nil 39376 } 39377 }() 39378 if !isLen1 { 39379 defer wg.Done() 39380 } 39381 ret[i] = ec.marshalNHealthCheck2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheck(ctx, sel, v[i]) 39382 } 39383 if isLen1 { 39384 f(i) 39385 } else { 39386 go f(i) 39387 } 39388 39389 } 39390 wg.Wait() 39391 return ret 39392 } 39393 39394 func (ec *executionContext) marshalNHealthCheck2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheck(ctx context.Context, sel ast.SelectionSet, v *HealthCheck) graphql.Marshaler { 39395 if v == nil { 39396 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39397 ec.Errorf(ctx, "must not be null") 39398 } 39399 return graphql.Null 39400 } 39401 return ec._HealthCheck(ctx, sel, v) 39402 } 39403 39404 func (ec *executionContext) marshalNHealthCheckPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckPage(ctx context.Context, sel ast.SelectionSet, v HealthCheckPage) graphql.Marshaler { 39405 return ec._HealthCheckPage(ctx, sel, &v) 39406 } 39407 39408 func (ec *executionContext) marshalNHealthCheckPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckPage(ctx context.Context, sel ast.SelectionSet, v *HealthCheckPage) graphql.Marshaler { 39409 if v == nil { 39410 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39411 ec.Errorf(ctx, "must not be null") 39412 } 39413 return graphql.Null 39414 } 39415 return ec._HealthCheckPage(ctx, sel, v) 39416 } 39417 39418 func (ec *executionContext) unmarshalNHealthCheckStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckStatusCondition(ctx context.Context, v interface{}) (HealthCheckStatusCondition, error) { 39419 var res HealthCheckStatusCondition 39420 return res, res.UnmarshalGQL(v) 39421 } 39422 39423 func (ec *executionContext) marshalNHealthCheckStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckStatusCondition(ctx context.Context, sel ast.SelectionSet, v HealthCheckStatusCondition) graphql.Marshaler { 39424 return v 39425 } 39426 39427 func (ec *executionContext) unmarshalNHealthCheckType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckType(ctx context.Context, v interface{}) (HealthCheckType, error) { 39428 var res HealthCheckType 39429 return res, res.UnmarshalGQL(v) 39430 } 39431 39432 func (ec *executionContext) marshalNHealthCheckType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckType(ctx context.Context, sel ast.SelectionSet, v HealthCheckType) graphql.Marshaler { 39433 return v 39434 } 39435 39436 func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { 39437 return graphql.UnmarshalID(v) 39438 } 39439 39440 func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 39441 res := graphql.MarshalID(v) 39442 if res == graphql.Null { 39443 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39444 ec.Errorf(ctx, "must not be null") 39445 } 39446 } 39447 return res 39448 } 39449 39450 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { 39451 return graphql.UnmarshalInt(v) 39452 } 39453 39454 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 39455 res := graphql.MarshalInt(v) 39456 if res == graphql.Null { 39457 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39458 ec.Errorf(ctx, "must not be null") 39459 } 39460 } 39461 return res 39462 } 39463 39464 func (ec *executionContext) marshalNIntSysSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntSysSystemAuth(ctx context.Context, sel ast.SelectionSet, v IntSysSystemAuth) graphql.Marshaler { 39465 return ec._IntSysSystemAuth(ctx, sel, &v) 39466 } 39467 39468 func (ec *executionContext) marshalNIntSysSystemAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntSysSystemAuth(ctx context.Context, sel ast.SelectionSet, v *IntSysSystemAuth) graphql.Marshaler { 39469 if v == nil { 39470 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39471 ec.Errorf(ctx, "must not be null") 39472 } 39473 return graphql.Null 39474 } 39475 return ec._IntSysSystemAuth(ctx, sel, v) 39476 } 39477 39478 func (ec *executionContext) marshalNIntegrationSystem2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystem(ctx context.Context, sel ast.SelectionSet, v IntegrationSystem) graphql.Marshaler { 39479 return ec._IntegrationSystem(ctx, sel, &v) 39480 } 39481 39482 func (ec *executionContext) marshalNIntegrationSystem2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystemᚄ(ctx context.Context, sel ast.SelectionSet, v []*IntegrationSystem) graphql.Marshaler { 39483 ret := make(graphql.Array, len(v)) 39484 var wg sync.WaitGroup 39485 isLen1 := len(v) == 1 39486 if !isLen1 { 39487 wg.Add(len(v)) 39488 } 39489 for i := range v { 39490 i := i 39491 fc := &graphql.FieldContext{ 39492 Index: &i, 39493 Result: &v[i], 39494 } 39495 ctx := graphql.WithFieldContext(ctx, fc) 39496 f := func(i int) { 39497 defer func() { 39498 if r := recover(); r != nil { 39499 ec.Error(ctx, ec.Recover(ctx, r)) 39500 ret = nil 39501 } 39502 }() 39503 if !isLen1 { 39504 defer wg.Done() 39505 } 39506 ret[i] = ec.marshalNIntegrationSystem2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystem(ctx, sel, v[i]) 39507 } 39508 if isLen1 { 39509 f(i) 39510 } else { 39511 go f(i) 39512 } 39513 39514 } 39515 wg.Wait() 39516 return ret 39517 } 39518 39519 func (ec *executionContext) marshalNIntegrationSystem2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystem(ctx context.Context, sel ast.SelectionSet, v *IntegrationSystem) graphql.Marshaler { 39520 if v == nil { 39521 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39522 ec.Errorf(ctx, "must not be null") 39523 } 39524 return graphql.Null 39525 } 39526 return ec._IntegrationSystem(ctx, sel, v) 39527 } 39528 39529 func (ec *executionContext) unmarshalNIntegrationSystemInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystemInput(ctx context.Context, v interface{}) (IntegrationSystemInput, error) { 39530 return ec.unmarshalInputIntegrationSystemInput(ctx, v) 39531 } 39532 39533 func (ec *executionContext) marshalNIntegrationSystemPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystemPage(ctx context.Context, sel ast.SelectionSet, v IntegrationSystemPage) graphql.Marshaler { 39534 return ec._IntegrationSystemPage(ctx, sel, &v) 39535 } 39536 39537 func (ec *executionContext) marshalNIntegrationSystemPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystemPage(ctx context.Context, sel ast.SelectionSet, v *IntegrationSystemPage) graphql.Marshaler { 39538 if v == nil { 39539 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39540 ec.Errorf(ctx, "must not be null") 39541 } 39542 return graphql.Null 39543 } 39544 return ec._IntegrationSystemPage(ctx, sel, v) 39545 } 39546 39547 func (ec *executionContext) marshalNLabel2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabel(ctx context.Context, sel ast.SelectionSet, v Label) graphql.Marshaler { 39548 return ec._Label(ctx, sel, &v) 39549 } 39550 39551 func (ec *executionContext) marshalNLabel2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabel(ctx context.Context, sel ast.SelectionSet, v *Label) graphql.Marshaler { 39552 if v == nil { 39553 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39554 ec.Errorf(ctx, "must not be null") 39555 } 39556 return graphql.Null 39557 } 39558 return ec._Label(ctx, sel, v) 39559 } 39560 39561 func (ec *executionContext) marshalNLabelDefinition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinition(ctx context.Context, sel ast.SelectionSet, v LabelDefinition) graphql.Marshaler { 39562 return ec._LabelDefinition(ctx, sel, &v) 39563 } 39564 39565 func (ec *executionContext) marshalNLabelDefinition2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinitionᚄ(ctx context.Context, sel ast.SelectionSet, v []*LabelDefinition) graphql.Marshaler { 39566 ret := make(graphql.Array, len(v)) 39567 var wg sync.WaitGroup 39568 isLen1 := len(v) == 1 39569 if !isLen1 { 39570 wg.Add(len(v)) 39571 } 39572 for i := range v { 39573 i := i 39574 fc := &graphql.FieldContext{ 39575 Index: &i, 39576 Result: &v[i], 39577 } 39578 ctx := graphql.WithFieldContext(ctx, fc) 39579 f := func(i int) { 39580 defer func() { 39581 if r := recover(); r != nil { 39582 ec.Error(ctx, ec.Recover(ctx, r)) 39583 ret = nil 39584 } 39585 }() 39586 if !isLen1 { 39587 defer wg.Done() 39588 } 39589 ret[i] = ec.marshalNLabelDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinition(ctx, sel, v[i]) 39590 } 39591 if isLen1 { 39592 f(i) 39593 } else { 39594 go f(i) 39595 } 39596 39597 } 39598 wg.Wait() 39599 return ret 39600 } 39601 39602 func (ec *executionContext) marshalNLabelDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinition(ctx context.Context, sel ast.SelectionSet, v *LabelDefinition) graphql.Marshaler { 39603 if v == nil { 39604 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39605 ec.Errorf(ctx, "must not be null") 39606 } 39607 return graphql.Null 39608 } 39609 return ec._LabelDefinition(ctx, sel, v) 39610 } 39611 39612 func (ec *executionContext) unmarshalNLabelDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinitionInput(ctx context.Context, v interface{}) (LabelDefinitionInput, error) { 39613 return ec.unmarshalInputLabelDefinitionInput(ctx, v) 39614 } 39615 39616 func (ec *executionContext) unmarshalNLabelFilter2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelFilter(ctx context.Context, v interface{}) (LabelFilter, error) { 39617 return ec.unmarshalInputLabelFilter(ctx, v) 39618 } 39619 39620 func (ec *executionContext) unmarshalNLabelFilter2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelFilter(ctx context.Context, v interface{}) (*LabelFilter, error) { 39621 if v == nil { 39622 return nil, nil 39623 } 39624 res, err := ec.unmarshalNLabelFilter2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelFilter(ctx, v) 39625 return &res, err 39626 } 39627 39628 func (ec *executionContext) unmarshalNLabelSelectorInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelSelectorInput(ctx context.Context, v interface{}) (LabelSelectorInput, error) { 39629 return ec.unmarshalInputLabelSelectorInput(ctx, v) 39630 } 39631 39632 func (ec *executionContext) marshalNOneTimeTokenForApplication2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenForApplication(ctx context.Context, sel ast.SelectionSet, v OneTimeTokenForApplication) graphql.Marshaler { 39633 return ec._OneTimeTokenForApplication(ctx, sel, &v) 39634 } 39635 39636 func (ec *executionContext) marshalNOneTimeTokenForApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenForApplication(ctx context.Context, sel ast.SelectionSet, v *OneTimeTokenForApplication) graphql.Marshaler { 39637 if v == nil { 39638 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39639 ec.Errorf(ctx, "must not be null") 39640 } 39641 return graphql.Null 39642 } 39643 return ec._OneTimeTokenForApplication(ctx, sel, v) 39644 } 39645 39646 func (ec *executionContext) marshalNOneTimeTokenForRuntime2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenForRuntime(ctx context.Context, sel ast.SelectionSet, v OneTimeTokenForRuntime) graphql.Marshaler { 39647 return ec._OneTimeTokenForRuntime(ctx, sel, &v) 39648 } 39649 39650 func (ec *executionContext) marshalNOneTimeTokenForRuntime2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenForRuntime(ctx context.Context, sel ast.SelectionSet, v *OneTimeTokenForRuntime) graphql.Marshaler { 39651 if v == nil { 39652 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39653 ec.Errorf(ctx, "must not be null") 39654 } 39655 return graphql.Null 39656 } 39657 return ec._OneTimeTokenForRuntime(ctx, sel, v) 39658 } 39659 39660 func (ec *executionContext) unmarshalNOperationType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationType(ctx context.Context, v interface{}) (OperationType, error) { 39661 var res OperationType 39662 return res, res.UnmarshalGQL(v) 39663 } 39664 39665 func (ec *executionContext) marshalNOperationType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationType(ctx context.Context, sel ast.SelectionSet, v OperationType) graphql.Marshaler { 39666 return v 39667 } 39668 39669 func (ec *executionContext) unmarshalNPageCursor2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx context.Context, v interface{}) (PageCursor, error) { 39670 var res PageCursor 39671 return res, res.UnmarshalGQL(v) 39672 } 39673 39674 func (ec *executionContext) marshalNPageCursor2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx context.Context, sel ast.SelectionSet, v PageCursor) graphql.Marshaler { 39675 return v 39676 } 39677 39678 func (ec *executionContext) marshalNPageInfo2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v PageInfo) graphql.Marshaler { 39679 return ec._PageInfo(ctx, sel, &v) 39680 } 39681 39682 func (ec *executionContext) marshalNPageInfo2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v *PageInfo) graphql.Marshaler { 39683 if v == nil { 39684 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39685 ec.Errorf(ctx, "must not be null") 39686 } 39687 return graphql.Null 39688 } 39689 return ec._PageInfo(ctx, sel, v) 39690 } 39691 39692 func (ec *executionContext) marshalNPlaceholderDefinition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinition(ctx context.Context, sel ast.SelectionSet, v PlaceholderDefinition) graphql.Marshaler { 39693 return ec._PlaceholderDefinition(ctx, sel, &v) 39694 } 39695 39696 func (ec *executionContext) marshalNPlaceholderDefinition2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinitionᚄ(ctx context.Context, sel ast.SelectionSet, v []*PlaceholderDefinition) graphql.Marshaler { 39697 ret := make(graphql.Array, len(v)) 39698 var wg sync.WaitGroup 39699 isLen1 := len(v) == 1 39700 if !isLen1 { 39701 wg.Add(len(v)) 39702 } 39703 for i := range v { 39704 i := i 39705 fc := &graphql.FieldContext{ 39706 Index: &i, 39707 Result: &v[i], 39708 } 39709 ctx := graphql.WithFieldContext(ctx, fc) 39710 f := func(i int) { 39711 defer func() { 39712 if r := recover(); r != nil { 39713 ec.Error(ctx, ec.Recover(ctx, r)) 39714 ret = nil 39715 } 39716 }() 39717 if !isLen1 { 39718 defer wg.Done() 39719 } 39720 ret[i] = ec.marshalNPlaceholderDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinition(ctx, sel, v[i]) 39721 } 39722 if isLen1 { 39723 f(i) 39724 } else { 39725 go f(i) 39726 } 39727 39728 } 39729 wg.Wait() 39730 return ret 39731 } 39732 39733 func (ec *executionContext) marshalNPlaceholderDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinition(ctx context.Context, sel ast.SelectionSet, v *PlaceholderDefinition) graphql.Marshaler { 39734 if v == nil { 39735 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39736 ec.Errorf(ctx, "must not be null") 39737 } 39738 return graphql.Null 39739 } 39740 return ec._PlaceholderDefinition(ctx, sel, v) 39741 } 39742 39743 func (ec *executionContext) unmarshalNPlaceholderDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinitionInput(ctx context.Context, v interface{}) (PlaceholderDefinitionInput, error) { 39744 return ec.unmarshalInputPlaceholderDefinitionInput(ctx, v) 39745 } 39746 39747 func (ec *executionContext) unmarshalNPlaceholderDefinitionInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinitionInput(ctx context.Context, v interface{}) (*PlaceholderDefinitionInput, error) { 39748 if v == nil { 39749 return nil, nil 39750 } 39751 res, err := ec.unmarshalNPlaceholderDefinitionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinitionInput(ctx, v) 39752 return &res, err 39753 } 39754 39755 func (ec *executionContext) unmarshalNResourceType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐResourceType(ctx context.Context, v interface{}) (ResourceType, error) { 39756 var res ResourceType 39757 return res, res.UnmarshalGQL(v) 39758 } 39759 39760 func (ec *executionContext) marshalNResourceType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐResourceType(ctx context.Context, sel ast.SelectionSet, v ResourceType) graphql.Marshaler { 39761 return v 39762 } 39763 39764 func (ec *executionContext) marshalNRuntime2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntime(ctx context.Context, sel ast.SelectionSet, v Runtime) graphql.Marshaler { 39765 return ec._Runtime(ctx, sel, &v) 39766 } 39767 39768 func (ec *executionContext) marshalNRuntime2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeᚄ(ctx context.Context, sel ast.SelectionSet, v []*Runtime) graphql.Marshaler { 39769 ret := make(graphql.Array, len(v)) 39770 var wg sync.WaitGroup 39771 isLen1 := len(v) == 1 39772 if !isLen1 { 39773 wg.Add(len(v)) 39774 } 39775 for i := range v { 39776 i := i 39777 fc := &graphql.FieldContext{ 39778 Index: &i, 39779 Result: &v[i], 39780 } 39781 ctx := graphql.WithFieldContext(ctx, fc) 39782 f := func(i int) { 39783 defer func() { 39784 if r := recover(); r != nil { 39785 ec.Error(ctx, ec.Recover(ctx, r)) 39786 ret = nil 39787 } 39788 }() 39789 if !isLen1 { 39790 defer wg.Done() 39791 } 39792 ret[i] = ec.marshalNRuntime2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntime(ctx, sel, v[i]) 39793 } 39794 if isLen1 { 39795 f(i) 39796 } else { 39797 go f(i) 39798 } 39799 39800 } 39801 wg.Wait() 39802 return ret 39803 } 39804 39805 func (ec *executionContext) marshalNRuntime2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntime(ctx context.Context, sel ast.SelectionSet, v *Runtime) graphql.Marshaler { 39806 if v == nil { 39807 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39808 ec.Errorf(ctx, "must not be null") 39809 } 39810 return graphql.Null 39811 } 39812 return ec._Runtime(ctx, sel, v) 39813 } 39814 39815 func (ec *executionContext) marshalNRuntimeContext2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContext(ctx context.Context, sel ast.SelectionSet, v RuntimeContext) graphql.Marshaler { 39816 return ec._RuntimeContext(ctx, sel, &v) 39817 } 39818 39819 func (ec *executionContext) marshalNRuntimeContext2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContextᚄ(ctx context.Context, sel ast.SelectionSet, v []*RuntimeContext) graphql.Marshaler { 39820 ret := make(graphql.Array, len(v)) 39821 var wg sync.WaitGroup 39822 isLen1 := len(v) == 1 39823 if !isLen1 { 39824 wg.Add(len(v)) 39825 } 39826 for i := range v { 39827 i := i 39828 fc := &graphql.FieldContext{ 39829 Index: &i, 39830 Result: &v[i], 39831 } 39832 ctx := graphql.WithFieldContext(ctx, fc) 39833 f := func(i int) { 39834 defer func() { 39835 if r := recover(); r != nil { 39836 ec.Error(ctx, ec.Recover(ctx, r)) 39837 ret = nil 39838 } 39839 }() 39840 if !isLen1 { 39841 defer wg.Done() 39842 } 39843 ret[i] = ec.marshalNRuntimeContext2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContext(ctx, sel, v[i]) 39844 } 39845 if isLen1 { 39846 f(i) 39847 } else { 39848 go f(i) 39849 } 39850 39851 } 39852 wg.Wait() 39853 return ret 39854 } 39855 39856 func (ec *executionContext) marshalNRuntimeContext2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContext(ctx context.Context, sel ast.SelectionSet, v *RuntimeContext) graphql.Marshaler { 39857 if v == nil { 39858 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39859 ec.Errorf(ctx, "must not be null") 39860 } 39861 return graphql.Null 39862 } 39863 return ec._RuntimeContext(ctx, sel, v) 39864 } 39865 39866 func (ec *executionContext) unmarshalNRuntimeContextInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContextInput(ctx context.Context, v interface{}) (RuntimeContextInput, error) { 39867 return ec.unmarshalInputRuntimeContextInput(ctx, v) 39868 } 39869 39870 func (ec *executionContext) marshalNRuntimeMetadata2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeMetadata(ctx context.Context, sel ast.SelectionSet, v RuntimeMetadata) graphql.Marshaler { 39871 return ec._RuntimeMetadata(ctx, sel, &v) 39872 } 39873 39874 func (ec *executionContext) marshalNRuntimeMetadata2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeMetadata(ctx context.Context, sel ast.SelectionSet, v *RuntimeMetadata) graphql.Marshaler { 39875 if v == nil { 39876 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39877 ec.Errorf(ctx, "must not be null") 39878 } 39879 return graphql.Null 39880 } 39881 return ec._RuntimeMetadata(ctx, sel, v) 39882 } 39883 39884 func (ec *executionContext) marshalNRuntimePage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimePage(ctx context.Context, sel ast.SelectionSet, v RuntimePage) graphql.Marshaler { 39885 return ec._RuntimePage(ctx, sel, &v) 39886 } 39887 39888 func (ec *executionContext) marshalNRuntimePage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimePage(ctx context.Context, sel ast.SelectionSet, v *RuntimePage) graphql.Marshaler { 39889 if v == nil { 39890 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39891 ec.Errorf(ctx, "must not be null") 39892 } 39893 return graphql.Null 39894 } 39895 return ec._RuntimePage(ctx, sel, v) 39896 } 39897 39898 func (ec *executionContext) unmarshalNRuntimeRegisterInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeRegisterInput(ctx context.Context, v interface{}) (RuntimeRegisterInput, error) { 39899 return ec.unmarshalInputRuntimeRegisterInput(ctx, v) 39900 } 39901 39902 func (ec *executionContext) marshalNRuntimeStatus2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatus(ctx context.Context, sel ast.SelectionSet, v RuntimeStatus) graphql.Marshaler { 39903 return ec._RuntimeStatus(ctx, sel, &v) 39904 } 39905 39906 func (ec *executionContext) marshalNRuntimeStatus2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatus(ctx context.Context, sel ast.SelectionSet, v *RuntimeStatus) graphql.Marshaler { 39907 if v == nil { 39908 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39909 ec.Errorf(ctx, "must not be null") 39910 } 39911 return graphql.Null 39912 } 39913 return ec._RuntimeStatus(ctx, sel, v) 39914 } 39915 39916 func (ec *executionContext) unmarshalNRuntimeStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatusCondition(ctx context.Context, v interface{}) (RuntimeStatusCondition, error) { 39917 var res RuntimeStatusCondition 39918 return res, res.UnmarshalGQL(v) 39919 } 39920 39921 func (ec *executionContext) marshalNRuntimeStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatusCondition(ctx context.Context, sel ast.SelectionSet, v RuntimeStatusCondition) graphql.Marshaler { 39922 return v 39923 } 39924 39925 func (ec *executionContext) marshalNRuntimeSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeSystemAuth(ctx context.Context, sel ast.SelectionSet, v RuntimeSystemAuth) graphql.Marshaler { 39926 return ec._RuntimeSystemAuth(ctx, sel, &v) 39927 } 39928 39929 func (ec *executionContext) marshalNRuntimeSystemAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeSystemAuth(ctx context.Context, sel ast.SelectionSet, v *RuntimeSystemAuth) graphql.Marshaler { 39930 if v == nil { 39931 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39932 ec.Errorf(ctx, "must not be null") 39933 } 39934 return graphql.Null 39935 } 39936 return ec._RuntimeSystemAuth(ctx, sel, v) 39937 } 39938 39939 func (ec *executionContext) unmarshalNRuntimeUpdateInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeUpdateInput(ctx context.Context, v interface{}) (RuntimeUpdateInput, error) { 39940 return ec.unmarshalInputRuntimeUpdateInput(ctx, v) 39941 } 39942 39943 func (ec *executionContext) unmarshalNSpecFormat2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSpecFormat(ctx context.Context, v interface{}) (SpecFormat, error) { 39944 var res SpecFormat 39945 return res, res.UnmarshalGQL(v) 39946 } 39947 39948 func (ec *executionContext) marshalNSpecFormat2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSpecFormat(ctx context.Context, sel ast.SelectionSet, v SpecFormat) graphql.Marshaler { 39949 return v 39950 } 39951 39952 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { 39953 return graphql.UnmarshalString(v) 39954 } 39955 39956 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 39957 res := graphql.MarshalString(v) 39958 if res == graphql.Null { 39959 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39960 ec.Errorf(ctx, "must not be null") 39961 } 39962 } 39963 return res 39964 } 39965 39966 func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 39967 var vSlice []interface{} 39968 if v != nil { 39969 if tmp1, ok := v.([]interface{}); ok { 39970 vSlice = tmp1 39971 } else { 39972 vSlice = []interface{}{v} 39973 } 39974 } 39975 var err error 39976 res := make([]string, len(vSlice)) 39977 for i := range vSlice { 39978 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 39979 if err != nil { 39980 return nil, err 39981 } 39982 } 39983 return res, nil 39984 } 39985 39986 func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 39987 ret := make(graphql.Array, len(v)) 39988 for i := range v { 39989 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 39990 } 39991 39992 return ret 39993 } 39994 39995 func (ec *executionContext) marshalNSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx context.Context, sel ast.SelectionSet, v SystemAuth) graphql.Marshaler { 39996 if v == nil { 39997 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 39998 ec.Errorf(ctx, "must not be null") 39999 } 40000 return graphql.Null 40001 } 40002 return ec._SystemAuth(ctx, sel, v) 40003 } 40004 40005 func (ec *executionContext) unmarshalNTargetOperation2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTargetOperation(ctx context.Context, v interface{}) (TargetOperation, error) { 40006 var res TargetOperation 40007 return res, res.UnmarshalGQL(v) 40008 } 40009 40010 func (ec *executionContext) marshalNTargetOperation2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTargetOperation(ctx context.Context, sel ast.SelectionSet, v TargetOperation) graphql.Marshaler { 40011 return v 40012 } 40013 40014 func (ec *executionContext) marshalNTenant2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenant(ctx context.Context, sel ast.SelectionSet, v Tenant) graphql.Marshaler { 40015 return ec._Tenant(ctx, sel, &v) 40016 } 40017 40018 func (ec *executionContext) marshalNTenant2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantᚄ(ctx context.Context, sel ast.SelectionSet, v []*Tenant) graphql.Marshaler { 40019 ret := make(graphql.Array, len(v)) 40020 var wg sync.WaitGroup 40021 isLen1 := len(v) == 1 40022 if !isLen1 { 40023 wg.Add(len(v)) 40024 } 40025 for i := range v { 40026 i := i 40027 fc := &graphql.FieldContext{ 40028 Index: &i, 40029 Result: &v[i], 40030 } 40031 ctx := graphql.WithFieldContext(ctx, fc) 40032 f := func(i int) { 40033 defer func() { 40034 if r := recover(); r != nil { 40035 ec.Error(ctx, ec.Recover(ctx, r)) 40036 ret = nil 40037 } 40038 }() 40039 if !isLen1 { 40040 defer wg.Done() 40041 } 40042 ret[i] = ec.marshalNTenant2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenant(ctx, sel, v[i]) 40043 } 40044 if isLen1 { 40045 f(i) 40046 } else { 40047 go f(i) 40048 } 40049 40050 } 40051 wg.Wait() 40052 return ret 40053 } 40054 40055 func (ec *executionContext) marshalNTenant2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenant(ctx context.Context, sel ast.SelectionSet, v *Tenant) graphql.Marshaler { 40056 if v == nil { 40057 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 40058 ec.Errorf(ctx, "must not be null") 40059 } 40060 return graphql.Null 40061 } 40062 return ec._Tenant(ctx, sel, v) 40063 } 40064 40065 func (ec *executionContext) unmarshalNTenantAccessInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccessInput(ctx context.Context, v interface{}) (TenantAccessInput, error) { 40066 return ec.unmarshalInputTenantAccessInput(ctx, v) 40067 } 40068 40069 func (ec *executionContext) unmarshalNTenantAccessObjectType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccessObjectType(ctx context.Context, v interface{}) (TenantAccessObjectType, error) { 40070 var res TenantAccessObjectType 40071 return res, res.UnmarshalGQL(v) 40072 } 40073 40074 func (ec *executionContext) marshalNTenantAccessObjectType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccessObjectType(ctx context.Context, sel ast.SelectionSet, v TenantAccessObjectType) graphql.Marshaler { 40075 return v 40076 } 40077 40078 func (ec *executionContext) marshalNTenantPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantPage(ctx context.Context, sel ast.SelectionSet, v TenantPage) graphql.Marshaler { 40079 return ec._TenantPage(ctx, sel, &v) 40080 } 40081 40082 func (ec *executionContext) marshalNTenantPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantPage(ctx context.Context, sel ast.SelectionSet, v *TenantPage) graphql.Marshaler { 40083 if v == nil { 40084 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 40085 ec.Errorf(ctx, "must not be null") 40086 } 40087 return graphql.Null 40088 } 40089 return ec._TenantPage(ctx, sel, v) 40090 } 40091 40092 func (ec *executionContext) unmarshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx context.Context, v interface{}) (Timestamp, error) { 40093 var res Timestamp 40094 return res, res.UnmarshalGQL(v) 40095 } 40096 40097 func (ec *executionContext) marshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx context.Context, sel ast.SelectionSet, v Timestamp) graphql.Marshaler { 40098 return v 40099 } 40100 40101 func (ec *executionContext) unmarshalNTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx context.Context, v interface{}) (*Timestamp, error) { 40102 if v == nil { 40103 return nil, nil 40104 } 40105 res, err := ec.unmarshalNTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, v) 40106 return &res, err 40107 } 40108 40109 func (ec *executionContext) marshalNTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx context.Context, sel ast.SelectionSet, v *Timestamp) graphql.Marshaler { 40110 if v == nil { 40111 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 40112 ec.Errorf(ctx, "must not be null") 40113 } 40114 return graphql.Null 40115 } 40116 return v 40117 } 40118 40119 func (ec *executionContext) marshalNViewer2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐViewer(ctx context.Context, sel ast.SelectionSet, v Viewer) graphql.Marshaler { 40120 return ec._Viewer(ctx, sel, &v) 40121 } 40122 40123 func (ec *executionContext) marshalNViewer2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐViewer(ctx context.Context, sel ast.SelectionSet, v *Viewer) graphql.Marshaler { 40124 if v == nil { 40125 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 40126 ec.Errorf(ctx, "must not be null") 40127 } 40128 return graphql.Null 40129 } 40130 return ec._Viewer(ctx, sel, v) 40131 } 40132 40133 func (ec *executionContext) unmarshalNViewerType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐViewerType(ctx context.Context, v interface{}) (ViewerType, error) { 40134 var res ViewerType 40135 return res, res.UnmarshalGQL(v) 40136 } 40137 40138 func (ec *executionContext) marshalNViewerType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐViewerType(ctx context.Context, sel ast.SelectionSet, v ViewerType) graphql.Marshaler { 40139 return v 40140 } 40141 40142 func (ec *executionContext) marshalNWebhook2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhook(ctx context.Context, sel ast.SelectionSet, v Webhook) graphql.Marshaler { 40143 return ec._Webhook(ctx, sel, &v) 40144 } 40145 40146 func (ec *executionContext) marshalNWebhook2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhook(ctx context.Context, sel ast.SelectionSet, v *Webhook) graphql.Marshaler { 40147 if v == nil { 40148 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 40149 ec.Errorf(ctx, "must not be null") 40150 } 40151 return graphql.Null 40152 } 40153 return ec._Webhook(ctx, sel, v) 40154 } 40155 40156 func (ec *executionContext) unmarshalNWebhookInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInput(ctx context.Context, v interface{}) (WebhookInput, error) { 40157 return ec.unmarshalInputWebhookInput(ctx, v) 40158 } 40159 40160 func (ec *executionContext) unmarshalNWebhookInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInput(ctx context.Context, v interface{}) (*WebhookInput, error) { 40161 if v == nil { 40162 return nil, nil 40163 } 40164 res, err := ec.unmarshalNWebhookInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInput(ctx, v) 40165 return &res, err 40166 } 40167 40168 func (ec *executionContext) unmarshalNWebhookType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx context.Context, v interface{}) (WebhookType, error) { 40169 var res WebhookType 40170 return res, res.UnmarshalGQL(v) 40171 } 40172 40173 func (ec *executionContext) marshalNWebhookType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx context.Context, sel ast.SelectionSet, v WebhookType) graphql.Marshaler { 40174 return v 40175 } 40176 40177 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { 40178 return ec.___Directive(ctx, sel, &v) 40179 } 40180 40181 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { 40182 ret := make(graphql.Array, len(v)) 40183 var wg sync.WaitGroup 40184 isLen1 := len(v) == 1 40185 if !isLen1 { 40186 wg.Add(len(v)) 40187 } 40188 for i := range v { 40189 i := i 40190 fc := &graphql.FieldContext{ 40191 Index: &i, 40192 Result: &v[i], 40193 } 40194 ctx := graphql.WithFieldContext(ctx, fc) 40195 f := func(i int) { 40196 defer func() { 40197 if r := recover(); r != nil { 40198 ec.Error(ctx, ec.Recover(ctx, r)) 40199 ret = nil 40200 } 40201 }() 40202 if !isLen1 { 40203 defer wg.Done() 40204 } 40205 ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) 40206 } 40207 if isLen1 { 40208 f(i) 40209 } else { 40210 go f(i) 40211 } 40212 40213 } 40214 wg.Wait() 40215 return ret 40216 } 40217 40218 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { 40219 return graphql.UnmarshalString(v) 40220 } 40221 40222 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 40223 res := graphql.MarshalString(v) 40224 if res == graphql.Null { 40225 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 40226 ec.Errorf(ctx, "must not be null") 40227 } 40228 } 40229 return res 40230 } 40231 40232 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 40233 var vSlice []interface{} 40234 if v != nil { 40235 if tmp1, ok := v.([]interface{}); ok { 40236 vSlice = tmp1 40237 } else { 40238 vSlice = []interface{}{v} 40239 } 40240 } 40241 var err error 40242 res := make([]string, len(vSlice)) 40243 for i := range vSlice { 40244 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) 40245 if err != nil { 40246 return nil, err 40247 } 40248 } 40249 return res, nil 40250 } 40251 40252 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 40253 ret := make(graphql.Array, len(v)) 40254 var wg sync.WaitGroup 40255 isLen1 := len(v) == 1 40256 if !isLen1 { 40257 wg.Add(len(v)) 40258 } 40259 for i := range v { 40260 i := i 40261 fc := &graphql.FieldContext{ 40262 Index: &i, 40263 Result: &v[i], 40264 } 40265 ctx := graphql.WithFieldContext(ctx, fc) 40266 f := func(i int) { 40267 defer func() { 40268 if r := recover(); r != nil { 40269 ec.Error(ctx, ec.Recover(ctx, r)) 40270 ret = nil 40271 } 40272 }() 40273 if !isLen1 { 40274 defer wg.Done() 40275 } 40276 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) 40277 } 40278 if isLen1 { 40279 f(i) 40280 } else { 40281 go f(i) 40282 } 40283 40284 } 40285 wg.Wait() 40286 return ret 40287 } 40288 40289 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { 40290 return ec.___EnumValue(ctx, sel, &v) 40291 } 40292 40293 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { 40294 return ec.___Field(ctx, sel, &v) 40295 } 40296 40297 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { 40298 return ec.___InputValue(ctx, sel, &v) 40299 } 40300 40301 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 40302 ret := make(graphql.Array, len(v)) 40303 var wg sync.WaitGroup 40304 isLen1 := len(v) == 1 40305 if !isLen1 { 40306 wg.Add(len(v)) 40307 } 40308 for i := range v { 40309 i := i 40310 fc := &graphql.FieldContext{ 40311 Index: &i, 40312 Result: &v[i], 40313 } 40314 ctx := graphql.WithFieldContext(ctx, fc) 40315 f := func(i int) { 40316 defer func() { 40317 if r := recover(); r != nil { 40318 ec.Error(ctx, ec.Recover(ctx, r)) 40319 ret = nil 40320 } 40321 }() 40322 if !isLen1 { 40323 defer wg.Done() 40324 } 40325 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 40326 } 40327 if isLen1 { 40328 f(i) 40329 } else { 40330 go f(i) 40331 } 40332 40333 } 40334 wg.Wait() 40335 return ret 40336 } 40337 40338 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { 40339 return ec.___Type(ctx, sel, &v) 40340 } 40341 40342 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 40343 ret := make(graphql.Array, len(v)) 40344 var wg sync.WaitGroup 40345 isLen1 := len(v) == 1 40346 if !isLen1 { 40347 wg.Add(len(v)) 40348 } 40349 for i := range v { 40350 i := i 40351 fc := &graphql.FieldContext{ 40352 Index: &i, 40353 Result: &v[i], 40354 } 40355 ctx := graphql.WithFieldContext(ctx, fc) 40356 f := func(i int) { 40357 defer func() { 40358 if r := recover(); r != nil { 40359 ec.Error(ctx, ec.Recover(ctx, r)) 40360 ret = nil 40361 } 40362 }() 40363 if !isLen1 { 40364 defer wg.Done() 40365 } 40366 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 40367 } 40368 if isLen1 { 40369 f(i) 40370 } else { 40371 go f(i) 40372 } 40373 40374 } 40375 wg.Wait() 40376 return ret 40377 } 40378 40379 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 40380 if v == nil { 40381 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 40382 ec.Errorf(ctx, "must not be null") 40383 } 40384 return graphql.Null 40385 } 40386 return ec.___Type(ctx, sel, v) 40387 } 40388 40389 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { 40390 return graphql.UnmarshalString(v) 40391 } 40392 40393 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 40394 res := graphql.MarshalString(v) 40395 if res == graphql.Null { 40396 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { 40397 ec.Errorf(ctx, "must not be null") 40398 } 40399 } 40400 return res 40401 } 40402 40403 func (ec *executionContext) marshalOAPIDefinition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx context.Context, sel ast.SelectionSet, v APIDefinition) graphql.Marshaler { 40404 return ec._APIDefinition(ctx, sel, &v) 40405 } 40406 40407 func (ec *executionContext) marshalOAPIDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinition(ctx context.Context, sel ast.SelectionSet, v *APIDefinition) graphql.Marshaler { 40408 if v == nil { 40409 return graphql.Null 40410 } 40411 return ec._APIDefinition(ctx, sel, v) 40412 } 40413 40414 func (ec *executionContext) unmarshalOAPIDefinitionInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionInputᚄ(ctx context.Context, v interface{}) ([]*APIDefinitionInput, error) { 40415 var vSlice []interface{} 40416 if v != nil { 40417 if tmp1, ok := v.([]interface{}); ok { 40418 vSlice = tmp1 40419 } else { 40420 vSlice = []interface{}{v} 40421 } 40422 } 40423 var err error 40424 res := make([]*APIDefinitionInput, len(vSlice)) 40425 for i := range vSlice { 40426 res[i], err = ec.unmarshalNAPIDefinitionInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionInput(ctx, vSlice[i]) 40427 if err != nil { 40428 return nil, err 40429 } 40430 } 40431 return res, nil 40432 } 40433 40434 func (ec *executionContext) marshalOAPIDefinitionPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionPage(ctx context.Context, sel ast.SelectionSet, v APIDefinitionPage) graphql.Marshaler { 40435 return ec._APIDefinitionPage(ctx, sel, &v) 40436 } 40437 40438 func (ec *executionContext) marshalOAPIDefinitionPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPIDefinitionPage(ctx context.Context, sel ast.SelectionSet, v *APIDefinitionPage) graphql.Marshaler { 40439 if v == nil { 40440 return graphql.Null 40441 } 40442 return ec._APIDefinitionPage(ctx, sel, v) 40443 } 40444 40445 func (ec *executionContext) marshalOAPISpec2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpec(ctx context.Context, sel ast.SelectionSet, v APISpec) graphql.Marshaler { 40446 return ec._APISpec(ctx, sel, &v) 40447 } 40448 40449 func (ec *executionContext) marshalOAPISpec2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpec(ctx context.Context, sel ast.SelectionSet, v *APISpec) graphql.Marshaler { 40450 if v == nil { 40451 return graphql.Null 40452 } 40453 return ec._APISpec(ctx, sel, v) 40454 } 40455 40456 func (ec *executionContext) unmarshalOAPISpecInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpecInput(ctx context.Context, v interface{}) (APISpecInput, error) { 40457 return ec.unmarshalInputAPISpecInput(ctx, v) 40458 } 40459 40460 func (ec *executionContext) unmarshalOAPISpecInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpecInput(ctx context.Context, v interface{}) (*APISpecInput, error) { 40461 if v == nil { 40462 return nil, nil 40463 } 40464 res, err := ec.unmarshalOAPISpecInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAPISpecInput(ctx, v) 40465 return &res, err 40466 } 40467 40468 func (ec *executionContext) marshalOAppSystemAuth2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAppSystemAuthᚄ(ctx context.Context, sel ast.SelectionSet, v []*AppSystemAuth) graphql.Marshaler { 40469 if v == nil { 40470 return graphql.Null 40471 } 40472 ret := make(graphql.Array, len(v)) 40473 var wg sync.WaitGroup 40474 isLen1 := len(v) == 1 40475 if !isLen1 { 40476 wg.Add(len(v)) 40477 } 40478 for i := range v { 40479 i := i 40480 fc := &graphql.FieldContext{ 40481 Index: &i, 40482 Result: &v[i], 40483 } 40484 ctx := graphql.WithFieldContext(ctx, fc) 40485 f := func(i int) { 40486 defer func() { 40487 if r := recover(); r != nil { 40488 ec.Error(ctx, ec.Recover(ctx, r)) 40489 ret = nil 40490 } 40491 }() 40492 if !isLen1 { 40493 defer wg.Done() 40494 } 40495 ret[i] = ec.marshalNAppSystemAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAppSystemAuth(ctx, sel, v[i]) 40496 } 40497 if isLen1 { 40498 f(i) 40499 } else { 40500 go f(i) 40501 } 40502 40503 } 40504 wg.Wait() 40505 return ret 40506 } 40507 40508 func (ec *executionContext) marshalOApplication2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx context.Context, sel ast.SelectionSet, v Application) graphql.Marshaler { 40509 return ec._Application(ctx, sel, &v) 40510 } 40511 40512 func (ec *executionContext) marshalOApplication2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplication(ctx context.Context, sel ast.SelectionSet, v *Application) graphql.Marshaler { 40513 if v == nil { 40514 return graphql.Null 40515 } 40516 return ec._Application(ctx, sel, v) 40517 } 40518 40519 func (ec *executionContext) marshalOApplicationEventingConfiguration2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationEventingConfiguration(ctx context.Context, sel ast.SelectionSet, v ApplicationEventingConfiguration) graphql.Marshaler { 40520 return ec._ApplicationEventingConfiguration(ctx, sel, &v) 40521 } 40522 40523 func (ec *executionContext) marshalOApplicationEventingConfiguration2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationEventingConfiguration(ctx context.Context, sel ast.SelectionSet, v *ApplicationEventingConfiguration) graphql.Marshaler { 40524 if v == nil { 40525 return graphql.Null 40526 } 40527 return ec._ApplicationEventingConfiguration(ctx, sel, v) 40528 } 40529 40530 func (ec *executionContext) unmarshalOApplicationStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx context.Context, v interface{}) (ApplicationStatusCondition, error) { 40531 var res ApplicationStatusCondition 40532 return res, res.UnmarshalGQL(v) 40533 } 40534 40535 func (ec *executionContext) marshalOApplicationStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx context.Context, sel ast.SelectionSet, v ApplicationStatusCondition) graphql.Marshaler { 40536 return v 40537 } 40538 40539 func (ec *executionContext) unmarshalOApplicationStatusCondition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx context.Context, v interface{}) (*ApplicationStatusCondition, error) { 40540 if v == nil { 40541 return nil, nil 40542 } 40543 res, err := ec.unmarshalOApplicationStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx, v) 40544 return &res, err 40545 } 40546 40547 func (ec *executionContext) marshalOApplicationStatusCondition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationStatusCondition(ctx context.Context, sel ast.SelectionSet, v *ApplicationStatusCondition) graphql.Marshaler { 40548 if v == nil { 40549 return graphql.Null 40550 } 40551 return v 40552 } 40553 40554 func (ec *executionContext) marshalOApplicationTemplate2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplate(ctx context.Context, sel ast.SelectionSet, v ApplicationTemplate) graphql.Marshaler { 40555 return ec._ApplicationTemplate(ctx, sel, &v) 40556 } 40557 40558 func (ec *executionContext) marshalOApplicationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐApplicationTemplate(ctx context.Context, sel ast.SelectionSet, v *ApplicationTemplate) graphql.Marshaler { 40559 if v == nil { 40560 return graphql.Null 40561 } 40562 return ec._ApplicationTemplate(ctx, sel, v) 40563 } 40564 40565 func (ec *executionContext) unmarshalOArtifactType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐArtifactType(ctx context.Context, v interface{}) (ArtifactType, error) { 40566 var res ArtifactType 40567 return res, res.UnmarshalGQL(v) 40568 } 40569 40570 func (ec *executionContext) marshalOArtifactType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐArtifactType(ctx context.Context, sel ast.SelectionSet, v ArtifactType) graphql.Marshaler { 40571 return v 40572 } 40573 40574 func (ec *executionContext) unmarshalOArtifactType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐArtifactType(ctx context.Context, v interface{}) (*ArtifactType, error) { 40575 if v == nil { 40576 return nil, nil 40577 } 40578 res, err := ec.unmarshalOArtifactType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐArtifactType(ctx, v) 40579 return &res, err 40580 } 40581 40582 func (ec *executionContext) marshalOArtifactType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐArtifactType(ctx context.Context, sel ast.SelectionSet, v *ArtifactType) graphql.Marshaler { 40583 if v == nil { 40584 return graphql.Null 40585 } 40586 return v 40587 } 40588 40589 func (ec *executionContext) marshalOAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuth(ctx context.Context, sel ast.SelectionSet, v Auth) graphql.Marshaler { 40590 return ec._Auth(ctx, sel, &v) 40591 } 40592 40593 func (ec *executionContext) marshalOAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuth(ctx context.Context, sel ast.SelectionSet, v *Auth) graphql.Marshaler { 40594 if v == nil { 40595 return graphql.Null 40596 } 40597 return ec._Auth(ctx, sel, v) 40598 } 40599 40600 func (ec *executionContext) unmarshalOAuthInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx context.Context, v interface{}) (AuthInput, error) { 40601 return ec.unmarshalInputAuthInput(ctx, v) 40602 } 40603 40604 func (ec *executionContext) unmarshalOAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx context.Context, v interface{}) (*AuthInput, error) { 40605 if v == nil { 40606 return nil, nil 40607 } 40608 res, err := ec.unmarshalOAuthInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAuthInput(ctx, v) 40609 return &res, err 40610 } 40611 40612 func (ec *executionContext) marshalOAutomaticScenarioAssignment2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignment(ctx context.Context, sel ast.SelectionSet, v AutomaticScenarioAssignment) graphql.Marshaler { 40613 return ec._AutomaticScenarioAssignment(ctx, sel, &v) 40614 } 40615 40616 func (ec *executionContext) marshalOAutomaticScenarioAssignment2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignment(ctx context.Context, sel ast.SelectionSet, v *AutomaticScenarioAssignment) graphql.Marshaler { 40617 if v == nil { 40618 return graphql.Null 40619 } 40620 return ec._AutomaticScenarioAssignment(ctx, sel, v) 40621 } 40622 40623 func (ec *executionContext) marshalOAutomaticScenarioAssignmentPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignmentPage(ctx context.Context, sel ast.SelectionSet, v AutomaticScenarioAssignmentPage) graphql.Marshaler { 40624 return ec._AutomaticScenarioAssignmentPage(ctx, sel, &v) 40625 } 40626 40627 func (ec *executionContext) marshalOAutomaticScenarioAssignmentPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐAutomaticScenarioAssignmentPage(ctx context.Context, sel ast.SelectionSet, v *AutomaticScenarioAssignmentPage) graphql.Marshaler { 40628 if v == nil { 40629 return graphql.Null 40630 } 40631 return ec._AutomaticScenarioAssignmentPage(ctx, sel, v) 40632 } 40633 40634 func (ec *executionContext) unmarshalOBasicCredentialDataInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBasicCredentialDataInput(ctx context.Context, v interface{}) (BasicCredentialDataInput, error) { 40635 return ec.unmarshalInputBasicCredentialDataInput(ctx, v) 40636 } 40637 40638 func (ec *executionContext) unmarshalOBasicCredentialDataInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBasicCredentialDataInput(ctx context.Context, v interface{}) (*BasicCredentialDataInput, error) { 40639 if v == nil { 40640 return nil, nil 40641 } 40642 res, err := ec.unmarshalOBasicCredentialDataInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBasicCredentialDataInput(ctx, v) 40643 return &res, err 40644 } 40645 40646 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { 40647 return graphql.UnmarshalBoolean(v) 40648 } 40649 40650 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { 40651 return graphql.MarshalBoolean(v) 40652 } 40653 40654 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { 40655 if v == nil { 40656 return nil, nil 40657 } 40658 res, err := ec.unmarshalOBoolean2bool(ctx, v) 40659 return &res, err 40660 } 40661 40662 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { 40663 if v == nil { 40664 return graphql.Null 40665 } 40666 return ec.marshalOBoolean2bool(ctx, sel, *v) 40667 } 40668 40669 func (ec *executionContext) marshalOBundle2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundle(ctx context.Context, sel ast.SelectionSet, v Bundle) graphql.Marshaler { 40670 return ec._Bundle(ctx, sel, &v) 40671 } 40672 40673 func (ec *executionContext) marshalOBundle2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundle(ctx context.Context, sel ast.SelectionSet, v *Bundle) graphql.Marshaler { 40674 if v == nil { 40675 return graphql.Null 40676 } 40677 return ec._Bundle(ctx, sel, v) 40678 } 40679 40680 func (ec *executionContext) unmarshalOBundleCreateInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleCreateInputᚄ(ctx context.Context, v interface{}) ([]*BundleCreateInput, error) { 40681 var vSlice []interface{} 40682 if v != nil { 40683 if tmp1, ok := v.([]interface{}); ok { 40684 vSlice = tmp1 40685 } else { 40686 vSlice = []interface{}{v} 40687 } 40688 } 40689 var err error 40690 res := make([]*BundleCreateInput, len(vSlice)) 40691 for i := range vSlice { 40692 res[i], err = ec.unmarshalNBundleCreateInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleCreateInput(ctx, vSlice[i]) 40693 if err != nil { 40694 return nil, err 40695 } 40696 } 40697 return res, nil 40698 } 40699 40700 func (ec *executionContext) marshalOBundleInstanceAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx context.Context, sel ast.SelectionSet, v BundleInstanceAuth) graphql.Marshaler { 40701 return ec._BundleInstanceAuth(ctx, sel, &v) 40702 } 40703 40704 func (ec *executionContext) marshalOBundleInstanceAuth2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthᚄ(ctx context.Context, sel ast.SelectionSet, v []*BundleInstanceAuth) graphql.Marshaler { 40705 if v == nil { 40706 return graphql.Null 40707 } 40708 ret := make(graphql.Array, len(v)) 40709 var wg sync.WaitGroup 40710 isLen1 := len(v) == 1 40711 if !isLen1 { 40712 wg.Add(len(v)) 40713 } 40714 for i := range v { 40715 i := i 40716 fc := &graphql.FieldContext{ 40717 Index: &i, 40718 Result: &v[i], 40719 } 40720 ctx := graphql.WithFieldContext(ctx, fc) 40721 f := func(i int) { 40722 defer func() { 40723 if r := recover(); r != nil { 40724 ec.Error(ctx, ec.Recover(ctx, r)) 40725 ret = nil 40726 } 40727 }() 40728 if !isLen1 { 40729 defer wg.Done() 40730 } 40731 ret[i] = ec.marshalNBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx, sel, v[i]) 40732 } 40733 if isLen1 { 40734 f(i) 40735 } else { 40736 go f(i) 40737 } 40738 40739 } 40740 wg.Wait() 40741 return ret 40742 } 40743 40744 func (ec *executionContext) marshalOBundleInstanceAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuth(ctx context.Context, sel ast.SelectionSet, v *BundleInstanceAuth) graphql.Marshaler { 40745 if v == nil { 40746 return graphql.Null 40747 } 40748 return ec._BundleInstanceAuth(ctx, sel, v) 40749 } 40750 40751 func (ec *executionContext) unmarshalOBundleInstanceAuthStatusInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthStatusInput(ctx context.Context, v interface{}) (BundleInstanceAuthStatusInput, error) { 40752 return ec.unmarshalInputBundleInstanceAuthStatusInput(ctx, v) 40753 } 40754 40755 func (ec *executionContext) unmarshalOBundleInstanceAuthStatusInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthStatusInput(ctx context.Context, v interface{}) (*BundleInstanceAuthStatusInput, error) { 40756 if v == nil { 40757 return nil, nil 40758 } 40759 res, err := ec.unmarshalOBundleInstanceAuthStatusInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundleInstanceAuthStatusInput(ctx, v) 40760 return &res, err 40761 } 40762 40763 func (ec *executionContext) marshalOBundlePage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundlePage(ctx context.Context, sel ast.SelectionSet, v BundlePage) graphql.Marshaler { 40764 return ec._BundlePage(ctx, sel, &v) 40765 } 40766 40767 func (ec *executionContext) marshalOBundlePage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBundlePage(ctx context.Context, sel ast.SelectionSet, v *BundlePage) graphql.Marshaler { 40768 if v == nil { 40769 return graphql.Null 40770 } 40771 return ec._BundlePage(ctx, sel, v) 40772 } 40773 40774 func (ec *executionContext) unmarshalOBusinessTenantMappingInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBusinessTenantMappingInputᚄ(ctx context.Context, v interface{}) ([]*BusinessTenantMappingInput, error) { 40775 var vSlice []interface{} 40776 if v != nil { 40777 if tmp1, ok := v.([]interface{}); ok { 40778 vSlice = tmp1 40779 } else { 40780 vSlice = []interface{}{v} 40781 } 40782 } 40783 var err error 40784 res := make([]*BusinessTenantMappingInput, len(vSlice)) 40785 for i := range vSlice { 40786 res[i], err = ec.unmarshalNBusinessTenantMappingInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐBusinessTenantMappingInput(ctx, vSlice[i]) 40787 if err != nil { 40788 return nil, err 40789 } 40790 } 40791 return res, nil 40792 } 40793 40794 func (ec *executionContext) unmarshalOCLOB2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx context.Context, v interface{}) (CLOB, error) { 40795 var res CLOB 40796 return res, res.UnmarshalGQL(v) 40797 } 40798 40799 func (ec *executionContext) marshalOCLOB2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx context.Context, sel ast.SelectionSet, v CLOB) graphql.Marshaler { 40800 return v 40801 } 40802 40803 func (ec *executionContext) unmarshalOCLOB2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx context.Context, v interface{}) (*CLOB, error) { 40804 if v == nil { 40805 return nil, nil 40806 } 40807 res, err := ec.unmarshalOCLOB2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx, v) 40808 return &res, err 40809 } 40810 40811 func (ec *executionContext) marshalOCLOB2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCLOB(ctx context.Context, sel ast.SelectionSet, v *CLOB) graphql.Marshaler { 40812 if v == nil { 40813 return graphql.Null 40814 } 40815 return v 40816 } 40817 40818 func (ec *executionContext) marshalOCSRFTokenCredentialRequestAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCSRFTokenCredentialRequestAuth(ctx context.Context, sel ast.SelectionSet, v CSRFTokenCredentialRequestAuth) graphql.Marshaler { 40819 return ec._CSRFTokenCredentialRequestAuth(ctx, sel, &v) 40820 } 40821 40822 func (ec *executionContext) marshalOCSRFTokenCredentialRequestAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCSRFTokenCredentialRequestAuth(ctx context.Context, sel ast.SelectionSet, v *CSRFTokenCredentialRequestAuth) graphql.Marshaler { 40823 if v == nil { 40824 return graphql.Null 40825 } 40826 return ec._CSRFTokenCredentialRequestAuth(ctx, sel, v) 40827 } 40828 40829 func (ec *executionContext) unmarshalOCSRFTokenCredentialRequestAuthInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCSRFTokenCredentialRequestAuthInput(ctx context.Context, v interface{}) (CSRFTokenCredentialRequestAuthInput, error) { 40830 return ec.unmarshalInputCSRFTokenCredentialRequestAuthInput(ctx, v) 40831 } 40832 40833 func (ec *executionContext) unmarshalOCSRFTokenCredentialRequestAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCSRFTokenCredentialRequestAuthInput(ctx context.Context, v interface{}) (*CSRFTokenCredentialRequestAuthInput, error) { 40834 if v == nil { 40835 return nil, nil 40836 } 40837 res, err := ec.unmarshalOCSRFTokenCredentialRequestAuthInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCSRFTokenCredentialRequestAuthInput(ctx, v) 40838 return &res, err 40839 } 40840 40841 func (ec *executionContext) unmarshalOCertificateOAuthCredentialDataInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateOAuthCredentialDataInput(ctx context.Context, v interface{}) (CertificateOAuthCredentialDataInput, error) { 40842 return ec.unmarshalInputCertificateOAuthCredentialDataInput(ctx, v) 40843 } 40844 40845 func (ec *executionContext) unmarshalOCertificateOAuthCredentialDataInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateOAuthCredentialDataInput(ctx context.Context, v interface{}) (*CertificateOAuthCredentialDataInput, error) { 40846 if v == nil { 40847 return nil, nil 40848 } 40849 res, err := ec.unmarshalOCertificateOAuthCredentialDataInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateOAuthCredentialDataInput(ctx, v) 40850 return &res, err 40851 } 40852 40853 func (ec *executionContext) marshalOCertificateSubjectMapping2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMapping(ctx context.Context, sel ast.SelectionSet, v CertificateSubjectMapping) graphql.Marshaler { 40854 return ec._CertificateSubjectMapping(ctx, sel, &v) 40855 } 40856 40857 func (ec *executionContext) marshalOCertificateSubjectMapping2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCertificateSubjectMapping(ctx context.Context, sel ast.SelectionSet, v *CertificateSubjectMapping) graphql.Marshaler { 40858 if v == nil { 40859 return graphql.Null 40860 } 40861 return ec._CertificateSubjectMapping(ctx, sel, v) 40862 } 40863 40864 func (ec *executionContext) marshalOCredentialData2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialData(ctx context.Context, sel ast.SelectionSet, v CredentialData) graphql.Marshaler { 40865 if v == nil { 40866 return graphql.Null 40867 } 40868 return ec._CredentialData(ctx, sel, v) 40869 } 40870 40871 func (ec *executionContext) unmarshalOCredentialDataInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialDataInput(ctx context.Context, v interface{}) (CredentialDataInput, error) { 40872 return ec.unmarshalInputCredentialDataInput(ctx, v) 40873 } 40874 40875 func (ec *executionContext) unmarshalOCredentialDataInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialDataInput(ctx context.Context, v interface{}) (*CredentialDataInput, error) { 40876 if v == nil { 40877 return nil, nil 40878 } 40879 res, err := ec.unmarshalOCredentialDataInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialDataInput(ctx, v) 40880 return &res, err 40881 } 40882 40883 func (ec *executionContext) marshalOCredentialRequestAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialRequestAuth(ctx context.Context, sel ast.SelectionSet, v CredentialRequestAuth) graphql.Marshaler { 40884 return ec._CredentialRequestAuth(ctx, sel, &v) 40885 } 40886 40887 func (ec *executionContext) marshalOCredentialRequestAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialRequestAuth(ctx context.Context, sel ast.SelectionSet, v *CredentialRequestAuth) graphql.Marshaler { 40888 if v == nil { 40889 return graphql.Null 40890 } 40891 return ec._CredentialRequestAuth(ctx, sel, v) 40892 } 40893 40894 func (ec *executionContext) unmarshalOCredentialRequestAuthInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialRequestAuthInput(ctx context.Context, v interface{}) (CredentialRequestAuthInput, error) { 40895 return ec.unmarshalInputCredentialRequestAuthInput(ctx, v) 40896 } 40897 40898 func (ec *executionContext) unmarshalOCredentialRequestAuthInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialRequestAuthInput(ctx context.Context, v interface{}) (*CredentialRequestAuthInput, error) { 40899 if v == nil { 40900 return nil, nil 40901 } 40902 res, err := ec.unmarshalOCredentialRequestAuthInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐCredentialRequestAuthInput(ctx, v) 40903 return &res, err 40904 } 40905 40906 func (ec *executionContext) marshalODocument2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocument(ctx context.Context, sel ast.SelectionSet, v Document) graphql.Marshaler { 40907 return ec._Document(ctx, sel, &v) 40908 } 40909 40910 func (ec *executionContext) marshalODocument2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocument(ctx context.Context, sel ast.SelectionSet, v *Document) graphql.Marshaler { 40911 if v == nil { 40912 return graphql.Null 40913 } 40914 return ec._Document(ctx, sel, v) 40915 } 40916 40917 func (ec *executionContext) unmarshalODocumentInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentInputᚄ(ctx context.Context, v interface{}) ([]*DocumentInput, error) { 40918 var vSlice []interface{} 40919 if v != nil { 40920 if tmp1, ok := v.([]interface{}); ok { 40921 vSlice = tmp1 40922 } else { 40923 vSlice = []interface{}{v} 40924 } 40925 } 40926 var err error 40927 res := make([]*DocumentInput, len(vSlice)) 40928 for i := range vSlice { 40929 res[i], err = ec.unmarshalNDocumentInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentInput(ctx, vSlice[i]) 40930 if err != nil { 40931 return nil, err 40932 } 40933 } 40934 return res, nil 40935 } 40936 40937 func (ec *executionContext) marshalODocumentPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentPage(ctx context.Context, sel ast.SelectionSet, v DocumentPage) graphql.Marshaler { 40938 return ec._DocumentPage(ctx, sel, &v) 40939 } 40940 40941 func (ec *executionContext) marshalODocumentPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐDocumentPage(ctx context.Context, sel ast.SelectionSet, v *DocumentPage) graphql.Marshaler { 40942 if v == nil { 40943 return graphql.Null 40944 } 40945 return ec._DocumentPage(ctx, sel, v) 40946 } 40947 40948 func (ec *executionContext) marshalOEventDefinition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx context.Context, sel ast.SelectionSet, v EventDefinition) graphql.Marshaler { 40949 return ec._EventDefinition(ctx, sel, &v) 40950 } 40951 40952 func (ec *executionContext) marshalOEventDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinition(ctx context.Context, sel ast.SelectionSet, v *EventDefinition) graphql.Marshaler { 40953 if v == nil { 40954 return graphql.Null 40955 } 40956 return ec._EventDefinition(ctx, sel, v) 40957 } 40958 40959 func (ec *executionContext) unmarshalOEventDefinitionInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionInputᚄ(ctx context.Context, v interface{}) ([]*EventDefinitionInput, error) { 40960 var vSlice []interface{} 40961 if v != nil { 40962 if tmp1, ok := v.([]interface{}); ok { 40963 vSlice = tmp1 40964 } else { 40965 vSlice = []interface{}{v} 40966 } 40967 } 40968 var err error 40969 res := make([]*EventDefinitionInput, len(vSlice)) 40970 for i := range vSlice { 40971 res[i], err = ec.unmarshalNEventDefinitionInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionInput(ctx, vSlice[i]) 40972 if err != nil { 40973 return nil, err 40974 } 40975 } 40976 return res, nil 40977 } 40978 40979 func (ec *executionContext) marshalOEventDefinitionPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionPage(ctx context.Context, sel ast.SelectionSet, v EventDefinitionPage) graphql.Marshaler { 40980 return ec._EventDefinitionPage(ctx, sel, &v) 40981 } 40982 40983 func (ec *executionContext) marshalOEventDefinitionPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventDefinitionPage(ctx context.Context, sel ast.SelectionSet, v *EventDefinitionPage) graphql.Marshaler { 40984 if v == nil { 40985 return graphql.Null 40986 } 40987 return ec._EventDefinitionPage(ctx, sel, v) 40988 } 40989 40990 func (ec *executionContext) marshalOEventSpec2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpec(ctx context.Context, sel ast.SelectionSet, v EventSpec) graphql.Marshaler { 40991 return ec._EventSpec(ctx, sel, &v) 40992 } 40993 40994 func (ec *executionContext) marshalOEventSpec2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpec(ctx context.Context, sel ast.SelectionSet, v *EventSpec) graphql.Marshaler { 40995 if v == nil { 40996 return graphql.Null 40997 } 40998 return ec._EventSpec(ctx, sel, v) 40999 } 41000 41001 func (ec *executionContext) unmarshalOEventSpecInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpecInput(ctx context.Context, v interface{}) (EventSpecInput, error) { 41002 return ec.unmarshalInputEventSpecInput(ctx, v) 41003 } 41004 41005 func (ec *executionContext) unmarshalOEventSpecInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpecInput(ctx context.Context, v interface{}) (*EventSpecInput, error) { 41006 if v == nil { 41007 return nil, nil 41008 } 41009 res, err := ec.unmarshalOEventSpecInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐEventSpecInput(ctx, v) 41010 return &res, err 41011 } 41012 41013 func (ec *executionContext) unmarshalOFetchMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchMode(ctx context.Context, v interface{}) (FetchMode, error) { 41014 var res FetchMode 41015 return res, res.UnmarshalGQL(v) 41016 } 41017 41018 func (ec *executionContext) marshalOFetchMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchMode(ctx context.Context, sel ast.SelectionSet, v FetchMode) graphql.Marshaler { 41019 return v 41020 } 41021 41022 func (ec *executionContext) unmarshalOFetchMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchMode(ctx context.Context, v interface{}) (*FetchMode, error) { 41023 if v == nil { 41024 return nil, nil 41025 } 41026 res, err := ec.unmarshalOFetchMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchMode(ctx, v) 41027 return &res, err 41028 } 41029 41030 func (ec *executionContext) marshalOFetchMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchMode(ctx context.Context, sel ast.SelectionSet, v *FetchMode) graphql.Marshaler { 41031 if v == nil { 41032 return graphql.Null 41033 } 41034 return v 41035 } 41036 41037 func (ec *executionContext) marshalOFetchRequest2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequest(ctx context.Context, sel ast.SelectionSet, v FetchRequest) graphql.Marshaler { 41038 return ec._FetchRequest(ctx, sel, &v) 41039 } 41040 41041 func (ec *executionContext) marshalOFetchRequest2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequest(ctx context.Context, sel ast.SelectionSet, v *FetchRequest) graphql.Marshaler { 41042 if v == nil { 41043 return graphql.Null 41044 } 41045 return ec._FetchRequest(ctx, sel, v) 41046 } 41047 41048 func (ec *executionContext) unmarshalOFetchRequestInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestInput(ctx context.Context, v interface{}) (FetchRequestInput, error) { 41049 return ec.unmarshalInputFetchRequestInput(ctx, v) 41050 } 41051 41052 func (ec *executionContext) unmarshalOFetchRequestInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestInput(ctx context.Context, v interface{}) (*FetchRequestInput, error) { 41053 if v == nil { 41054 return nil, nil 41055 } 41056 res, err := ec.unmarshalOFetchRequestInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFetchRequestInput(ctx, v) 41057 return &res, err 41058 } 41059 41060 func (ec *executionContext) marshalOFormation2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx context.Context, sel ast.SelectionSet, v Formation) graphql.Marshaler { 41061 return ec._Formation(ctx, sel, &v) 41062 } 41063 41064 func (ec *executionContext) marshalOFormation2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormation(ctx context.Context, sel ast.SelectionSet, v *Formation) graphql.Marshaler { 41065 if v == nil { 41066 return graphql.Null 41067 } 41068 return ec._Formation(ctx, sel, v) 41069 } 41070 41071 func (ec *executionContext) marshalOFormationAssignment2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignment(ctx context.Context, sel ast.SelectionSet, v FormationAssignment) graphql.Marshaler { 41072 return ec._FormationAssignment(ctx, sel, &v) 41073 } 41074 41075 func (ec *executionContext) marshalOFormationAssignment2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignment(ctx context.Context, sel ast.SelectionSet, v *FormationAssignment) graphql.Marshaler { 41076 if v == nil { 41077 return graphql.Null 41078 } 41079 return ec._FormationAssignment(ctx, sel, v) 41080 } 41081 41082 func (ec *executionContext) marshalOFormationAssignmentPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignmentPage(ctx context.Context, sel ast.SelectionSet, v FormationAssignmentPage) graphql.Marshaler { 41083 return ec._FormationAssignmentPage(ctx, sel, &v) 41084 } 41085 41086 func (ec *executionContext) marshalOFormationAssignmentPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationAssignmentPage(ctx context.Context, sel ast.SelectionSet, v *FormationAssignmentPage) graphql.Marshaler { 41087 if v == nil { 41088 return graphql.Null 41089 } 41090 return ec._FormationAssignmentPage(ctx, sel, v) 41091 } 41092 41093 func (ec *executionContext) marshalOFormationConstraint2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraintᚄ(ctx context.Context, sel ast.SelectionSet, v []*FormationConstraint) graphql.Marshaler { 41094 if v == nil { 41095 return graphql.Null 41096 } 41097 ret := make(graphql.Array, len(v)) 41098 var wg sync.WaitGroup 41099 isLen1 := len(v) == 1 41100 if !isLen1 { 41101 wg.Add(len(v)) 41102 } 41103 for i := range v { 41104 i := i 41105 fc := &graphql.FieldContext{ 41106 Index: &i, 41107 Result: &v[i], 41108 } 41109 ctx := graphql.WithFieldContext(ctx, fc) 41110 f := func(i int) { 41111 defer func() { 41112 if r := recover(); r != nil { 41113 ec.Error(ctx, ec.Recover(ctx, r)) 41114 ret = nil 41115 } 41116 }() 41117 if !isLen1 { 41118 defer wg.Done() 41119 } 41120 ret[i] = ec.marshalNFormationConstraint2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationConstraint(ctx, sel, v[i]) 41121 } 41122 if isLen1 { 41123 f(i) 41124 } else { 41125 go f(i) 41126 } 41127 41128 } 41129 wg.Wait() 41130 return ret 41131 } 41132 41133 func (ec *executionContext) marshalOFormationError2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationError(ctx context.Context, sel ast.SelectionSet, v FormationError) graphql.Marshaler { 41134 return ec._FormationError(ctx, sel, &v) 41135 } 41136 41137 func (ec *executionContext) marshalOFormationStatusError2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatusErrorᚄ(ctx context.Context, sel ast.SelectionSet, v []*FormationStatusError) graphql.Marshaler { 41138 if v == nil { 41139 return graphql.Null 41140 } 41141 ret := make(graphql.Array, len(v)) 41142 var wg sync.WaitGroup 41143 isLen1 := len(v) == 1 41144 if !isLen1 { 41145 wg.Add(len(v)) 41146 } 41147 for i := range v { 41148 i := i 41149 fc := &graphql.FieldContext{ 41150 Index: &i, 41151 Result: &v[i], 41152 } 41153 ctx := graphql.WithFieldContext(ctx, fc) 41154 f := func(i int) { 41155 defer func() { 41156 if r := recover(); r != nil { 41157 ec.Error(ctx, ec.Recover(ctx, r)) 41158 ret = nil 41159 } 41160 }() 41161 if !isLen1 { 41162 defer wg.Done() 41163 } 41164 ret[i] = ec.marshalNFormationStatusError2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationStatusError(ctx, sel, v[i]) 41165 } 41166 if isLen1 { 41167 f(i) 41168 } else { 41169 go f(i) 41170 } 41171 41172 } 41173 wg.Wait() 41174 return ret 41175 } 41176 41177 func (ec *executionContext) marshalOFormationTemplate2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplate(ctx context.Context, sel ast.SelectionSet, v FormationTemplate) graphql.Marshaler { 41178 return ec._FormationTemplate(ctx, sel, &v) 41179 } 41180 41181 func (ec *executionContext) marshalOFormationTemplate2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐFormationTemplate(ctx context.Context, sel ast.SelectionSet, v *FormationTemplate) graphql.Marshaler { 41182 if v == nil { 41183 return graphql.Null 41184 } 41185 return ec._FormationTemplate(ctx, sel, v) 41186 } 41187 41188 func (ec *executionContext) unmarshalOHealthCheckType2ᚕgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckTypeᚄ(ctx context.Context, v interface{}) ([]HealthCheckType, error) { 41189 var vSlice []interface{} 41190 if v != nil { 41191 if tmp1, ok := v.([]interface{}); ok { 41192 vSlice = tmp1 41193 } else { 41194 vSlice = []interface{}{v} 41195 } 41196 } 41197 var err error 41198 res := make([]HealthCheckType, len(vSlice)) 41199 for i := range vSlice { 41200 res[i], err = ec.unmarshalNHealthCheckType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckType(ctx, vSlice[i]) 41201 if err != nil { 41202 return nil, err 41203 } 41204 } 41205 return res, nil 41206 } 41207 41208 func (ec *executionContext) marshalOHealthCheckType2ᚕgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []HealthCheckType) graphql.Marshaler { 41209 if v == nil { 41210 return graphql.Null 41211 } 41212 ret := make(graphql.Array, len(v)) 41213 var wg sync.WaitGroup 41214 isLen1 := len(v) == 1 41215 if !isLen1 { 41216 wg.Add(len(v)) 41217 } 41218 for i := range v { 41219 i := i 41220 fc := &graphql.FieldContext{ 41221 Index: &i, 41222 Result: &v[i], 41223 } 41224 ctx := graphql.WithFieldContext(ctx, fc) 41225 f := func(i int) { 41226 defer func() { 41227 if r := recover(); r != nil { 41228 ec.Error(ctx, ec.Recover(ctx, r)) 41229 ret = nil 41230 } 41231 }() 41232 if !isLen1 { 41233 defer wg.Done() 41234 } 41235 ret[i] = ec.marshalNHealthCheckType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHealthCheckType(ctx, sel, v[i]) 41236 } 41237 if isLen1 { 41238 f(i) 41239 } else { 41240 go f(i) 41241 } 41242 41243 } 41244 wg.Wait() 41245 return ret 41246 } 41247 41248 func (ec *executionContext) unmarshalOHttpHeaders2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeaders(ctx context.Context, v interface{}) (HTTPHeaders, error) { 41249 if v == nil { 41250 return nil, nil 41251 } 41252 var res HTTPHeaders 41253 return res, res.UnmarshalGQL(v) 41254 } 41255 41256 func (ec *executionContext) marshalOHttpHeaders2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeaders(ctx context.Context, sel ast.SelectionSet, v HTTPHeaders) graphql.Marshaler { 41257 if v == nil { 41258 return graphql.Null 41259 } 41260 return v 41261 } 41262 41263 func (ec *executionContext) unmarshalOHttpHeadersSerialized2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeadersSerialized(ctx context.Context, v interface{}) (HTTPHeadersSerialized, error) { 41264 tmp, err := graphql.UnmarshalString(v) 41265 return HTTPHeadersSerialized(tmp), err 41266 } 41267 41268 func (ec *executionContext) marshalOHttpHeadersSerialized2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeadersSerialized(ctx context.Context, sel ast.SelectionSet, v HTTPHeadersSerialized) graphql.Marshaler { 41269 return graphql.MarshalString(string(v)) 41270 } 41271 41272 func (ec *executionContext) unmarshalOHttpHeadersSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeadersSerialized(ctx context.Context, v interface{}) (*HTTPHeadersSerialized, error) { 41273 if v == nil { 41274 return nil, nil 41275 } 41276 res, err := ec.unmarshalOHttpHeadersSerialized2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeadersSerialized(ctx, v) 41277 return &res, err 41278 } 41279 41280 func (ec *executionContext) marshalOHttpHeadersSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeadersSerialized(ctx context.Context, sel ast.SelectionSet, v *HTTPHeadersSerialized) graphql.Marshaler { 41281 if v == nil { 41282 return graphql.Null 41283 } 41284 return ec.marshalOHttpHeadersSerialized2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐHTTPHeadersSerialized(ctx, sel, *v) 41285 } 41286 41287 func (ec *executionContext) unmarshalOID2string(ctx context.Context, v interface{}) (string, error) { 41288 return graphql.UnmarshalID(v) 41289 } 41290 41291 func (ec *executionContext) marshalOID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 41292 return graphql.MarshalID(v) 41293 } 41294 41295 func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 41296 if v == nil { 41297 return nil, nil 41298 } 41299 res, err := ec.unmarshalOID2string(ctx, v) 41300 return &res, err 41301 } 41302 41303 func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 41304 if v == nil { 41305 return graphql.Null 41306 } 41307 return ec.marshalOID2string(ctx, sel, *v) 41308 } 41309 41310 func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { 41311 return graphql.UnmarshalInt(v) 41312 } 41313 41314 func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { 41315 return graphql.MarshalInt(v) 41316 } 41317 41318 func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { 41319 if v == nil { 41320 return nil, nil 41321 } 41322 res, err := ec.unmarshalOInt2int(ctx, v) 41323 return &res, err 41324 } 41325 41326 func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { 41327 if v == nil { 41328 return graphql.Null 41329 } 41330 return ec.marshalOInt2int(ctx, sel, *v) 41331 } 41332 41333 func (ec *executionContext) marshalOIntSysSystemAuth2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntSysSystemAuthᚄ(ctx context.Context, sel ast.SelectionSet, v []*IntSysSystemAuth) graphql.Marshaler { 41334 if v == nil { 41335 return graphql.Null 41336 } 41337 ret := make(graphql.Array, len(v)) 41338 var wg sync.WaitGroup 41339 isLen1 := len(v) == 1 41340 if !isLen1 { 41341 wg.Add(len(v)) 41342 } 41343 for i := range v { 41344 i := i 41345 fc := &graphql.FieldContext{ 41346 Index: &i, 41347 Result: &v[i], 41348 } 41349 ctx := graphql.WithFieldContext(ctx, fc) 41350 f := func(i int) { 41351 defer func() { 41352 if r := recover(); r != nil { 41353 ec.Error(ctx, ec.Recover(ctx, r)) 41354 ret = nil 41355 } 41356 }() 41357 if !isLen1 { 41358 defer wg.Done() 41359 } 41360 ret[i] = ec.marshalNIntSysSystemAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntSysSystemAuth(ctx, sel, v[i]) 41361 } 41362 if isLen1 { 41363 f(i) 41364 } else { 41365 go f(i) 41366 } 41367 41368 } 41369 wg.Wait() 41370 return ret 41371 } 41372 41373 func (ec *executionContext) marshalOIntegrationSystem2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystem(ctx context.Context, sel ast.SelectionSet, v IntegrationSystem) graphql.Marshaler { 41374 return ec._IntegrationSystem(ctx, sel, &v) 41375 } 41376 41377 func (ec *executionContext) marshalOIntegrationSystem2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐIntegrationSystem(ctx context.Context, sel ast.SelectionSet, v *IntegrationSystem) graphql.Marshaler { 41378 if v == nil { 41379 return graphql.Null 41380 } 41381 return ec._IntegrationSystem(ctx, sel, v) 41382 } 41383 41384 func (ec *executionContext) unmarshalOJSON2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx context.Context, v interface{}) (JSON, error) { 41385 var res JSON 41386 return res, res.UnmarshalGQL(v) 41387 } 41388 41389 func (ec *executionContext) marshalOJSON2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx context.Context, sel ast.SelectionSet, v JSON) graphql.Marshaler { 41390 return v 41391 } 41392 41393 func (ec *executionContext) unmarshalOJSON2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx context.Context, v interface{}) (*JSON, error) { 41394 if v == nil { 41395 return nil, nil 41396 } 41397 res, err := ec.unmarshalOJSON2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx, v) 41398 return &res, err 41399 } 41400 41401 func (ec *executionContext) marshalOJSON2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSON(ctx context.Context, sel ast.SelectionSet, v *JSON) graphql.Marshaler { 41402 if v == nil { 41403 return graphql.Null 41404 } 41405 return v 41406 } 41407 41408 func (ec *executionContext) unmarshalOJSONSchema2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSONSchema(ctx context.Context, v interface{}) (JSONSchema, error) { 41409 var res JSONSchema 41410 return res, res.UnmarshalGQL(v) 41411 } 41412 41413 func (ec *executionContext) marshalOJSONSchema2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSONSchema(ctx context.Context, sel ast.SelectionSet, v JSONSchema) graphql.Marshaler { 41414 return v 41415 } 41416 41417 func (ec *executionContext) unmarshalOJSONSchema2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSONSchema(ctx context.Context, v interface{}) (*JSONSchema, error) { 41418 if v == nil { 41419 return nil, nil 41420 } 41421 res, err := ec.unmarshalOJSONSchema2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSONSchema(ctx, v) 41422 return &res, err 41423 } 41424 41425 func (ec *executionContext) marshalOJSONSchema2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐJSONSchema(ctx context.Context, sel ast.SelectionSet, v *JSONSchema) graphql.Marshaler { 41426 if v == nil { 41427 return graphql.Null 41428 } 41429 return v 41430 } 41431 41432 func (ec *executionContext) marshalOLabelDefinition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinition(ctx context.Context, sel ast.SelectionSet, v LabelDefinition) graphql.Marshaler { 41433 return ec._LabelDefinition(ctx, sel, &v) 41434 } 41435 41436 func (ec *executionContext) marshalOLabelDefinition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelDefinition(ctx context.Context, sel ast.SelectionSet, v *LabelDefinition) graphql.Marshaler { 41437 if v == nil { 41438 return graphql.Null 41439 } 41440 return ec._LabelDefinition(ctx, sel, v) 41441 } 41442 41443 func (ec *executionContext) unmarshalOLabelFilter2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelFilterᚄ(ctx context.Context, v interface{}) ([]*LabelFilter, error) { 41444 var vSlice []interface{} 41445 if v != nil { 41446 if tmp1, ok := v.([]interface{}); ok { 41447 vSlice = tmp1 41448 } else { 41449 vSlice = []interface{}{v} 41450 } 41451 } 41452 var err error 41453 res := make([]*LabelFilter, len(vSlice)) 41454 for i := range vSlice { 41455 res[i], err = ec.unmarshalNLabelFilter2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabelFilter(ctx, vSlice[i]) 41456 if err != nil { 41457 return nil, err 41458 } 41459 } 41460 return res, nil 41461 } 41462 41463 func (ec *executionContext) unmarshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx context.Context, v interface{}) (Labels, error) { 41464 if v == nil { 41465 return nil, nil 41466 } 41467 var res Labels 41468 return res, res.UnmarshalGQL(v) 41469 } 41470 41471 func (ec *executionContext) marshalOLabels2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐLabels(ctx context.Context, sel ast.SelectionSet, v Labels) graphql.Marshaler { 41472 if v == nil { 41473 return graphql.Null 41474 } 41475 return v 41476 } 41477 41478 func (ec *executionContext) unmarshalOOAuthCredentialDataInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOAuthCredentialDataInput(ctx context.Context, v interface{}) (OAuthCredentialDataInput, error) { 41479 return ec.unmarshalInputOAuthCredentialDataInput(ctx, v) 41480 } 41481 41482 func (ec *executionContext) unmarshalOOAuthCredentialDataInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOAuthCredentialDataInput(ctx context.Context, v interface{}) (*OAuthCredentialDataInput, error) { 41483 if v == nil { 41484 return nil, nil 41485 } 41486 res, err := ec.unmarshalOOAuthCredentialDataInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOAuthCredentialDataInput(ctx, v) 41487 return &res, err 41488 } 41489 41490 func (ec *executionContext) marshalOOneTimeToken2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeToken(ctx context.Context, sel ast.SelectionSet, v OneTimeToken) graphql.Marshaler { 41491 if v == nil { 41492 return graphql.Null 41493 } 41494 return ec._OneTimeToken(ctx, sel, v) 41495 } 41496 41497 func (ec *executionContext) unmarshalOOneTimeTokenInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenInput(ctx context.Context, v interface{}) (OneTimeTokenInput, error) { 41498 return ec.unmarshalInputOneTimeTokenInput(ctx, v) 41499 } 41500 41501 func (ec *executionContext) unmarshalOOneTimeTokenInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenInput(ctx context.Context, v interface{}) (*OneTimeTokenInput, error) { 41502 if v == nil { 41503 return nil, nil 41504 } 41505 res, err := ec.unmarshalOOneTimeTokenInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenInput(ctx, v) 41506 return &res, err 41507 } 41508 41509 func (ec *executionContext) unmarshalOOneTimeTokenType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenType(ctx context.Context, v interface{}) (OneTimeTokenType, error) { 41510 var res OneTimeTokenType 41511 return res, res.UnmarshalGQL(v) 41512 } 41513 41514 func (ec *executionContext) marshalOOneTimeTokenType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenType(ctx context.Context, sel ast.SelectionSet, v OneTimeTokenType) graphql.Marshaler { 41515 return v 41516 } 41517 41518 func (ec *executionContext) unmarshalOOneTimeTokenType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenType(ctx context.Context, v interface{}) (*OneTimeTokenType, error) { 41519 if v == nil { 41520 return nil, nil 41521 } 41522 res, err := ec.unmarshalOOneTimeTokenType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenType(ctx, v) 41523 return &res, err 41524 } 41525 41526 func (ec *executionContext) marshalOOneTimeTokenType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOneTimeTokenType(ctx context.Context, sel ast.SelectionSet, v *OneTimeTokenType) graphql.Marshaler { 41527 if v == nil { 41528 return graphql.Null 41529 } 41530 return v 41531 } 41532 41533 func (ec *executionContext) unmarshalOOperationMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationMode(ctx context.Context, v interface{}) (OperationMode, error) { 41534 var res OperationMode 41535 return res, res.UnmarshalGQL(v) 41536 } 41537 41538 func (ec *executionContext) marshalOOperationMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationMode(ctx context.Context, sel ast.SelectionSet, v OperationMode) graphql.Marshaler { 41539 return v 41540 } 41541 41542 func (ec *executionContext) unmarshalOOperationMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationMode(ctx context.Context, v interface{}) (*OperationMode, error) { 41543 if v == nil { 41544 return nil, nil 41545 } 41546 res, err := ec.unmarshalOOperationMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationMode(ctx, v) 41547 return &res, err 41548 } 41549 41550 func (ec *executionContext) marshalOOperationMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐOperationMode(ctx context.Context, sel ast.SelectionSet, v *OperationMode) graphql.Marshaler { 41551 if v == nil { 41552 return graphql.Null 41553 } 41554 return v 41555 } 41556 41557 func (ec *executionContext) unmarshalOPageCursor2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx context.Context, v interface{}) (PageCursor, error) { 41558 var res PageCursor 41559 return res, res.UnmarshalGQL(v) 41560 } 41561 41562 func (ec *executionContext) marshalOPageCursor2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx context.Context, sel ast.SelectionSet, v PageCursor) graphql.Marshaler { 41563 return v 41564 } 41565 41566 func (ec *executionContext) unmarshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx context.Context, v interface{}) (*PageCursor, error) { 41567 if v == nil { 41568 return nil, nil 41569 } 41570 res, err := ec.unmarshalOPageCursor2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx, v) 41571 return &res, err 41572 } 41573 41574 func (ec *executionContext) marshalOPageCursor2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPageCursor(ctx context.Context, sel ast.SelectionSet, v *PageCursor) graphql.Marshaler { 41575 if v == nil { 41576 return graphql.Null 41577 } 41578 return v 41579 } 41580 41581 func (ec *executionContext) unmarshalOPlaceholderDefinitionInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinitionInputᚄ(ctx context.Context, v interface{}) ([]*PlaceholderDefinitionInput, error) { 41582 var vSlice []interface{} 41583 if v != nil { 41584 if tmp1, ok := v.([]interface{}); ok { 41585 vSlice = tmp1 41586 } else { 41587 vSlice = []interface{}{v} 41588 } 41589 } 41590 var err error 41591 res := make([]*PlaceholderDefinitionInput, len(vSlice)) 41592 for i := range vSlice { 41593 res[i], err = ec.unmarshalNPlaceholderDefinitionInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐPlaceholderDefinitionInput(ctx, vSlice[i]) 41594 if err != nil { 41595 return nil, err 41596 } 41597 } 41598 return res, nil 41599 } 41600 41601 func (ec *executionContext) unmarshalOQueryParams2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParams(ctx context.Context, v interface{}) (QueryParams, error) { 41602 if v == nil { 41603 return nil, nil 41604 } 41605 var res QueryParams 41606 return res, res.UnmarshalGQL(v) 41607 } 41608 41609 func (ec *executionContext) marshalOQueryParams2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParams(ctx context.Context, sel ast.SelectionSet, v QueryParams) graphql.Marshaler { 41610 if v == nil { 41611 return graphql.Null 41612 } 41613 return v 41614 } 41615 41616 func (ec *executionContext) unmarshalOQueryParamsSerialized2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParamsSerialized(ctx context.Context, v interface{}) (QueryParamsSerialized, error) { 41617 tmp, err := graphql.UnmarshalString(v) 41618 return QueryParamsSerialized(tmp), err 41619 } 41620 41621 func (ec *executionContext) marshalOQueryParamsSerialized2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParamsSerialized(ctx context.Context, sel ast.SelectionSet, v QueryParamsSerialized) graphql.Marshaler { 41622 return graphql.MarshalString(string(v)) 41623 } 41624 41625 func (ec *executionContext) unmarshalOQueryParamsSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParamsSerialized(ctx context.Context, v interface{}) (*QueryParamsSerialized, error) { 41626 if v == nil { 41627 return nil, nil 41628 } 41629 res, err := ec.unmarshalOQueryParamsSerialized2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParamsSerialized(ctx, v) 41630 return &res, err 41631 } 41632 41633 func (ec *executionContext) marshalOQueryParamsSerialized2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParamsSerialized(ctx context.Context, sel ast.SelectionSet, v *QueryParamsSerialized) graphql.Marshaler { 41634 if v == nil { 41635 return graphql.Null 41636 } 41637 return ec.marshalOQueryParamsSerialized2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐQueryParamsSerialized(ctx, sel, *v) 41638 } 41639 41640 func (ec *executionContext) marshalORuntime2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntime(ctx context.Context, sel ast.SelectionSet, v Runtime) graphql.Marshaler { 41641 return ec._Runtime(ctx, sel, &v) 41642 } 41643 41644 func (ec *executionContext) marshalORuntime2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntime(ctx context.Context, sel ast.SelectionSet, v *Runtime) graphql.Marshaler { 41645 if v == nil { 41646 return graphql.Null 41647 } 41648 return ec._Runtime(ctx, sel, v) 41649 } 41650 41651 func (ec *executionContext) marshalORuntimeContext2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContext(ctx context.Context, sel ast.SelectionSet, v RuntimeContext) graphql.Marshaler { 41652 return ec._RuntimeContext(ctx, sel, &v) 41653 } 41654 41655 func (ec *executionContext) marshalORuntimeContext2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContext(ctx context.Context, sel ast.SelectionSet, v *RuntimeContext) graphql.Marshaler { 41656 if v == nil { 41657 return graphql.Null 41658 } 41659 return ec._RuntimeContext(ctx, sel, v) 41660 } 41661 41662 func (ec *executionContext) marshalORuntimeContextPage2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContextPage(ctx context.Context, sel ast.SelectionSet, v RuntimeContextPage) graphql.Marshaler { 41663 return ec._RuntimeContextPage(ctx, sel, &v) 41664 } 41665 41666 func (ec *executionContext) marshalORuntimeContextPage2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeContextPage(ctx context.Context, sel ast.SelectionSet, v *RuntimeContextPage) graphql.Marshaler { 41667 if v == nil { 41668 return graphql.Null 41669 } 41670 return ec._RuntimeContextPage(ctx, sel, v) 41671 } 41672 41673 func (ec *executionContext) marshalORuntimeEventingConfiguration2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeEventingConfiguration(ctx context.Context, sel ast.SelectionSet, v RuntimeEventingConfiguration) graphql.Marshaler { 41674 return ec._RuntimeEventingConfiguration(ctx, sel, &v) 41675 } 41676 41677 func (ec *executionContext) marshalORuntimeEventingConfiguration2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeEventingConfiguration(ctx context.Context, sel ast.SelectionSet, v *RuntimeEventingConfiguration) graphql.Marshaler { 41678 if v == nil { 41679 return graphql.Null 41680 } 41681 return ec._RuntimeEventingConfiguration(ctx, sel, v) 41682 } 41683 41684 func (ec *executionContext) unmarshalORuntimeStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatusCondition(ctx context.Context, v interface{}) (RuntimeStatusCondition, error) { 41685 var res RuntimeStatusCondition 41686 return res, res.UnmarshalGQL(v) 41687 } 41688 41689 func (ec *executionContext) marshalORuntimeStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatusCondition(ctx context.Context, sel ast.SelectionSet, v RuntimeStatusCondition) graphql.Marshaler { 41690 return v 41691 } 41692 41693 func (ec *executionContext) unmarshalORuntimeStatusCondition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatusCondition(ctx context.Context, v interface{}) (*RuntimeStatusCondition, error) { 41694 if v == nil { 41695 return nil, nil 41696 } 41697 res, err := ec.unmarshalORuntimeStatusCondition2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatusCondition(ctx, v) 41698 return &res, err 41699 } 41700 41701 func (ec *executionContext) marshalORuntimeStatusCondition2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeStatusCondition(ctx context.Context, sel ast.SelectionSet, v *RuntimeStatusCondition) graphql.Marshaler { 41702 if v == nil { 41703 return graphql.Null 41704 } 41705 return v 41706 } 41707 41708 func (ec *executionContext) marshalORuntimeSystemAuth2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeSystemAuthᚄ(ctx context.Context, sel ast.SelectionSet, v []*RuntimeSystemAuth) graphql.Marshaler { 41709 if v == nil { 41710 return graphql.Null 41711 } 41712 ret := make(graphql.Array, len(v)) 41713 var wg sync.WaitGroup 41714 isLen1 := len(v) == 1 41715 if !isLen1 { 41716 wg.Add(len(v)) 41717 } 41718 for i := range v { 41719 i := i 41720 fc := &graphql.FieldContext{ 41721 Index: &i, 41722 Result: &v[i], 41723 } 41724 ctx := graphql.WithFieldContext(ctx, fc) 41725 f := func(i int) { 41726 defer func() { 41727 if r := recover(); r != nil { 41728 ec.Error(ctx, ec.Recover(ctx, r)) 41729 ret = nil 41730 } 41731 }() 41732 if !isLen1 { 41733 defer wg.Done() 41734 } 41735 ret[i] = ec.marshalNRuntimeSystemAuth2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐRuntimeSystemAuth(ctx, sel, v[i]) 41736 } 41737 if isLen1 { 41738 f(i) 41739 } else { 41740 go f(i) 41741 } 41742 41743 } 41744 wg.Wait() 41745 return ret 41746 } 41747 41748 func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { 41749 return graphql.UnmarshalString(v) 41750 } 41751 41752 func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { 41753 return graphql.MarshalString(v) 41754 } 41755 41756 func (ec *executionContext) unmarshalOString2ᚕstring(ctx context.Context, v interface{}) ([]string, error) { 41757 var vSlice []interface{} 41758 if v != nil { 41759 if tmp1, ok := v.([]interface{}); ok { 41760 vSlice = tmp1 41761 } else { 41762 vSlice = []interface{}{v} 41763 } 41764 } 41765 var err error 41766 res := make([]string, len(vSlice)) 41767 for i := range vSlice { 41768 res[i], err = ec.unmarshalOString2string(ctx, vSlice[i]) 41769 if err != nil { 41770 return nil, err 41771 } 41772 } 41773 return res, nil 41774 } 41775 41776 func (ec *executionContext) marshalOString2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 41777 if v == nil { 41778 return graphql.Null 41779 } 41780 ret := make(graphql.Array, len(v)) 41781 for i := range v { 41782 ret[i] = ec.marshalOString2string(ctx, sel, v[i]) 41783 } 41784 41785 return ret 41786 } 41787 41788 func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { 41789 var vSlice []interface{} 41790 if v != nil { 41791 if tmp1, ok := v.([]interface{}); ok { 41792 vSlice = tmp1 41793 } else { 41794 vSlice = []interface{}{v} 41795 } 41796 } 41797 var err error 41798 res := make([]string, len(vSlice)) 41799 for i := range vSlice { 41800 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) 41801 if err != nil { 41802 return nil, err 41803 } 41804 } 41805 return res, nil 41806 } 41807 41808 func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { 41809 if v == nil { 41810 return graphql.Null 41811 } 41812 ret := make(graphql.Array, len(v)) 41813 for i := range v { 41814 ret[i] = ec.marshalNString2string(ctx, sel, v[i]) 41815 } 41816 41817 return ret 41818 } 41819 41820 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { 41821 if v == nil { 41822 return nil, nil 41823 } 41824 res, err := ec.unmarshalOString2string(ctx, v) 41825 return &res, err 41826 } 41827 41828 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { 41829 if v == nil { 41830 return graphql.Null 41831 } 41832 return ec.marshalOString2string(ctx, sel, *v) 41833 } 41834 41835 func (ec *executionContext) marshalOSystemAuth2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuth(ctx context.Context, sel ast.SelectionSet, v SystemAuth) graphql.Marshaler { 41836 if v == nil { 41837 return graphql.Null 41838 } 41839 return ec._SystemAuth(ctx, sel, v) 41840 } 41841 41842 func (ec *executionContext) unmarshalOSystemAuthReferenceType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuthReferenceType(ctx context.Context, v interface{}) (SystemAuthReferenceType, error) { 41843 var res SystemAuthReferenceType 41844 return res, res.UnmarshalGQL(v) 41845 } 41846 41847 func (ec *executionContext) marshalOSystemAuthReferenceType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuthReferenceType(ctx context.Context, sel ast.SelectionSet, v SystemAuthReferenceType) graphql.Marshaler { 41848 return v 41849 } 41850 41851 func (ec *executionContext) unmarshalOSystemAuthReferenceType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuthReferenceType(ctx context.Context, v interface{}) (*SystemAuthReferenceType, error) { 41852 if v == nil { 41853 return nil, nil 41854 } 41855 res, err := ec.unmarshalOSystemAuthReferenceType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuthReferenceType(ctx, v) 41856 return &res, err 41857 } 41858 41859 func (ec *executionContext) marshalOSystemAuthReferenceType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐSystemAuthReferenceType(ctx context.Context, sel ast.SelectionSet, v *SystemAuthReferenceType) graphql.Marshaler { 41860 if v == nil { 41861 return graphql.Null 41862 } 41863 return v 41864 } 41865 41866 func (ec *executionContext) unmarshalOTemplateValueInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTemplateValueInput(ctx context.Context, v interface{}) (TemplateValueInput, error) { 41867 return ec.unmarshalInputTemplateValueInput(ctx, v) 41868 } 41869 41870 func (ec *executionContext) unmarshalOTemplateValueInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTemplateValueInput(ctx context.Context, v interface{}) ([]*TemplateValueInput, error) { 41871 var vSlice []interface{} 41872 if v != nil { 41873 if tmp1, ok := v.([]interface{}); ok { 41874 vSlice = tmp1 41875 } else { 41876 vSlice = []interface{}{v} 41877 } 41878 } 41879 var err error 41880 res := make([]*TemplateValueInput, len(vSlice)) 41881 for i := range vSlice { 41882 res[i], err = ec.unmarshalOTemplateValueInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTemplateValueInput(ctx, vSlice[i]) 41883 if err != nil { 41884 return nil, err 41885 } 41886 } 41887 return res, nil 41888 } 41889 41890 func (ec *executionContext) unmarshalOTemplateValueInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTemplateValueInput(ctx context.Context, v interface{}) (*TemplateValueInput, error) { 41891 if v == nil { 41892 return nil, nil 41893 } 41894 res, err := ec.unmarshalOTemplateValueInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTemplateValueInput(ctx, v) 41895 return &res, err 41896 } 41897 41898 func (ec *executionContext) marshalOTenant2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenant(ctx context.Context, sel ast.SelectionSet, v Tenant) graphql.Marshaler { 41899 return ec._Tenant(ctx, sel, &v) 41900 } 41901 41902 func (ec *executionContext) marshalOTenant2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenant(ctx context.Context, sel ast.SelectionSet, v *Tenant) graphql.Marshaler { 41903 if v == nil { 41904 return graphql.Null 41905 } 41906 return ec._Tenant(ctx, sel, v) 41907 } 41908 41909 func (ec *executionContext) marshalOTenantAccess2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccess(ctx context.Context, sel ast.SelectionSet, v TenantAccess) graphql.Marshaler { 41910 return ec._TenantAccess(ctx, sel, &v) 41911 } 41912 41913 func (ec *executionContext) marshalOTenantAccess2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantAccess(ctx context.Context, sel ast.SelectionSet, v *TenantAccess) graphql.Marshaler { 41914 if v == nil { 41915 return graphql.Null 41916 } 41917 return ec._TenantAccess(ctx, sel, v) 41918 } 41919 41920 func (ec *executionContext) marshalOTenantBusinessType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantBusinessType(ctx context.Context, sel ast.SelectionSet, v TenantBusinessType) graphql.Marshaler { 41921 return ec._TenantBusinessType(ctx, sel, &v) 41922 } 41923 41924 func (ec *executionContext) marshalOTenantBusinessType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTenantBusinessType(ctx context.Context, sel ast.SelectionSet, v *TenantBusinessType) graphql.Marshaler { 41925 if v == nil { 41926 return graphql.Null 41927 } 41928 return ec._TenantBusinessType(ctx, sel, v) 41929 } 41930 41931 func (ec *executionContext) unmarshalOTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx context.Context, v interface{}) (Timestamp, error) { 41932 var res Timestamp 41933 return res, res.UnmarshalGQL(v) 41934 } 41935 41936 func (ec *executionContext) marshalOTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx context.Context, sel ast.SelectionSet, v Timestamp) graphql.Marshaler { 41937 return v 41938 } 41939 41940 func (ec *executionContext) unmarshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx context.Context, v interface{}) (*Timestamp, error) { 41941 if v == nil { 41942 return nil, nil 41943 } 41944 res, err := ec.unmarshalOTimestamp2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx, v) 41945 return &res, err 41946 } 41947 41948 func (ec *executionContext) marshalOTimestamp2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐTimestamp(ctx context.Context, sel ast.SelectionSet, v *Timestamp) graphql.Marshaler { 41949 if v == nil { 41950 return graphql.Null 41951 } 41952 return v 41953 } 41954 41955 func (ec *executionContext) marshalOVersion2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐVersion(ctx context.Context, sel ast.SelectionSet, v Version) graphql.Marshaler { 41956 return ec._Version(ctx, sel, &v) 41957 } 41958 41959 func (ec *executionContext) marshalOVersion2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐVersion(ctx context.Context, sel ast.SelectionSet, v *Version) graphql.Marshaler { 41960 if v == nil { 41961 return graphql.Null 41962 } 41963 return ec._Version(ctx, sel, v) 41964 } 41965 41966 func (ec *executionContext) unmarshalOVersionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐVersionInput(ctx context.Context, v interface{}) (VersionInput, error) { 41967 return ec.unmarshalInputVersionInput(ctx, v) 41968 } 41969 41970 func (ec *executionContext) unmarshalOVersionInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐVersionInput(ctx context.Context, v interface{}) (*VersionInput, error) { 41971 if v == nil { 41972 return nil, nil 41973 } 41974 res, err := ec.unmarshalOVersionInput2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐVersionInput(ctx, v) 41975 return &res, err 41976 } 41977 41978 func (ec *executionContext) marshalOWebhook2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookᚄ(ctx context.Context, sel ast.SelectionSet, v []*Webhook) graphql.Marshaler { 41979 if v == nil { 41980 return graphql.Null 41981 } 41982 ret := make(graphql.Array, len(v)) 41983 var wg sync.WaitGroup 41984 isLen1 := len(v) == 1 41985 if !isLen1 { 41986 wg.Add(len(v)) 41987 } 41988 for i := range v { 41989 i := i 41990 fc := &graphql.FieldContext{ 41991 Index: &i, 41992 Result: &v[i], 41993 } 41994 ctx := graphql.WithFieldContext(ctx, fc) 41995 f := func(i int) { 41996 defer func() { 41997 if r := recover(); r != nil { 41998 ec.Error(ctx, ec.Recover(ctx, r)) 41999 ret = nil 42000 } 42001 }() 42002 if !isLen1 { 42003 defer wg.Done() 42004 } 42005 ret[i] = ec.marshalNWebhook2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhook(ctx, sel, v[i]) 42006 } 42007 if isLen1 { 42008 f(i) 42009 } else { 42010 go f(i) 42011 } 42012 42013 } 42014 wg.Wait() 42015 return ret 42016 } 42017 42018 func (ec *executionContext) unmarshalOWebhookInput2ᚕᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInputᚄ(ctx context.Context, v interface{}) ([]*WebhookInput, error) { 42019 var vSlice []interface{} 42020 if v != nil { 42021 if tmp1, ok := v.([]interface{}); ok { 42022 vSlice = tmp1 42023 } else { 42024 vSlice = []interface{}{v} 42025 } 42026 } 42027 var err error 42028 res := make([]*WebhookInput, len(vSlice)) 42029 for i := range vSlice { 42030 res[i], err = ec.unmarshalNWebhookInput2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookInput(ctx, vSlice[i]) 42031 if err != nil { 42032 return nil, err 42033 } 42034 } 42035 return res, nil 42036 } 42037 42038 func (ec *executionContext) unmarshalOWebhookMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookMode(ctx context.Context, v interface{}) (WebhookMode, error) { 42039 var res WebhookMode 42040 return res, res.UnmarshalGQL(v) 42041 } 42042 42043 func (ec *executionContext) marshalOWebhookMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookMode(ctx context.Context, sel ast.SelectionSet, v WebhookMode) graphql.Marshaler { 42044 return v 42045 } 42046 42047 func (ec *executionContext) unmarshalOWebhookMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookMode(ctx context.Context, v interface{}) (*WebhookMode, error) { 42048 if v == nil { 42049 return nil, nil 42050 } 42051 res, err := ec.unmarshalOWebhookMode2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookMode(ctx, v) 42052 return &res, err 42053 } 42054 42055 func (ec *executionContext) marshalOWebhookMode2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookMode(ctx context.Context, sel ast.SelectionSet, v *WebhookMode) graphql.Marshaler { 42056 if v == nil { 42057 return graphql.Null 42058 } 42059 return v 42060 } 42061 42062 func (ec *executionContext) unmarshalOWebhookType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx context.Context, v interface{}) (WebhookType, error) { 42063 var res WebhookType 42064 return res, res.UnmarshalGQL(v) 42065 } 42066 42067 func (ec *executionContext) marshalOWebhookType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx context.Context, sel ast.SelectionSet, v WebhookType) graphql.Marshaler { 42068 return v 42069 } 42070 42071 func (ec *executionContext) unmarshalOWebhookType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx context.Context, v interface{}) (*WebhookType, error) { 42072 if v == nil { 42073 return nil, nil 42074 } 42075 res, err := ec.unmarshalOWebhookType2githubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx, v) 42076 return &res, err 42077 } 42078 42079 func (ec *executionContext) marshalOWebhookType2ᚖgithubᚗcomᚋkymaᚑincubatorᚋcompassᚋcomponentsᚋdirectorᚋpkgᚋgraphqlᚐWebhookType(ctx context.Context, sel ast.SelectionSet, v *WebhookType) graphql.Marshaler { 42080 if v == nil { 42081 return graphql.Null 42082 } 42083 return v 42084 } 42085 42086 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler { 42087 if v == nil { 42088 return graphql.Null 42089 } 42090 ret := make(graphql.Array, len(v)) 42091 var wg sync.WaitGroup 42092 isLen1 := len(v) == 1 42093 if !isLen1 { 42094 wg.Add(len(v)) 42095 } 42096 for i := range v { 42097 i := i 42098 fc := &graphql.FieldContext{ 42099 Index: &i, 42100 Result: &v[i], 42101 } 42102 ctx := graphql.WithFieldContext(ctx, fc) 42103 f := func(i int) { 42104 defer func() { 42105 if r := recover(); r != nil { 42106 ec.Error(ctx, ec.Recover(ctx, r)) 42107 ret = nil 42108 } 42109 }() 42110 if !isLen1 { 42111 defer wg.Done() 42112 } 42113 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i]) 42114 } 42115 if isLen1 { 42116 f(i) 42117 } else { 42118 go f(i) 42119 } 42120 42121 } 42122 wg.Wait() 42123 return ret 42124 } 42125 42126 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler { 42127 if v == nil { 42128 return graphql.Null 42129 } 42130 ret := make(graphql.Array, len(v)) 42131 var wg sync.WaitGroup 42132 isLen1 := len(v) == 1 42133 if !isLen1 { 42134 wg.Add(len(v)) 42135 } 42136 for i := range v { 42137 i := i 42138 fc := &graphql.FieldContext{ 42139 Index: &i, 42140 Result: &v[i], 42141 } 42142 ctx := graphql.WithFieldContext(ctx, fc) 42143 f := func(i int) { 42144 defer func() { 42145 if r := recover(); r != nil { 42146 ec.Error(ctx, ec.Recover(ctx, r)) 42147 ret = nil 42148 } 42149 }() 42150 if !isLen1 { 42151 defer wg.Done() 42152 } 42153 ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i]) 42154 } 42155 if isLen1 { 42156 f(i) 42157 } else { 42158 go f(i) 42159 } 42160 42161 } 42162 wg.Wait() 42163 return ret 42164 } 42165 42166 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { 42167 if v == nil { 42168 return graphql.Null 42169 } 42170 ret := make(graphql.Array, len(v)) 42171 var wg sync.WaitGroup 42172 isLen1 := len(v) == 1 42173 if !isLen1 { 42174 wg.Add(len(v)) 42175 } 42176 for i := range v { 42177 i := i 42178 fc := &graphql.FieldContext{ 42179 Index: &i, 42180 Result: &v[i], 42181 } 42182 ctx := graphql.WithFieldContext(ctx, fc) 42183 f := func(i int) { 42184 defer func() { 42185 if r := recover(); r != nil { 42186 ec.Error(ctx, ec.Recover(ctx, r)) 42187 ret = nil 42188 } 42189 }() 42190 if !isLen1 { 42191 defer wg.Done() 42192 } 42193 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) 42194 } 42195 if isLen1 { 42196 f(i) 42197 } else { 42198 go f(i) 42199 } 42200 42201 } 42202 wg.Wait() 42203 return ret 42204 } 42205 42206 func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v introspection.Schema) graphql.Marshaler { 42207 return ec.___Schema(ctx, sel, &v) 42208 } 42209 42210 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler { 42211 if v == nil { 42212 return graphql.Null 42213 } 42214 return ec.___Schema(ctx, sel, v) 42215 } 42216 42217 func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { 42218 return ec.___Type(ctx, sel, &v) 42219 } 42220 42221 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { 42222 if v == nil { 42223 return graphql.Null 42224 } 42225 ret := make(graphql.Array, len(v)) 42226 var wg sync.WaitGroup 42227 isLen1 := len(v) == 1 42228 if !isLen1 { 42229 wg.Add(len(v)) 42230 } 42231 for i := range v { 42232 i := i 42233 fc := &graphql.FieldContext{ 42234 Index: &i, 42235 Result: &v[i], 42236 } 42237 ctx := graphql.WithFieldContext(ctx, fc) 42238 f := func(i int) { 42239 defer func() { 42240 if r := recover(); r != nil { 42241 ec.Error(ctx, ec.Recover(ctx, r)) 42242 ret = nil 42243 } 42244 }() 42245 if !isLen1 { 42246 defer wg.Done() 42247 } 42248 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) 42249 } 42250 if isLen1 { 42251 f(i) 42252 } else { 42253 go f(i) 42254 } 42255 42256 } 42257 wg.Wait() 42258 return ret 42259 } 42260 42261 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { 42262 if v == nil { 42263 return graphql.Null 42264 } 42265 return ec.___Type(ctx, sel, v) 42266 } 42267 42268 // endregion ***************************** type.gotpl *****************************